Skip to main content

Infrastructure

Off by default (modules.infra = true to enable). Scans Terraform, Kubernetes, and Docker files. Prefix: INFRA-

Terraform

FindingSeverityPattern
INFRA-001ErrorWildcard IAM action ("Action": "*")
INFRA-002ErrorPublic S3 ACL (acl = "public-read")
INFRA-003WarningOpen security group (cidr_blocks = ["0.0.0.0/0"])

Kubernetes

FindingSeverityPattern
INFRA-004ErrorPrivileged container (privileged: true)
INFRA-005WarninghostPath volume mount
INFRA-006Warningimage: *:latest tag in pod spec
INFRA-007WarningMissing readinessProbe (pod receives traffic before ready)
INFRA-008WarningMissing livenessProbe (stuck pods won't be restarted)
INFRA-009WarningMissing resources limits/requests (noisy-neighbour risk)

Docker

FindingSeverityPattern
INFRA-010WarningFROM *:latest or untagged base image
INFRA-011WarningADD instruction (use COPY unless tar-extraction is needed)
INFRA-012WarningUSER root — container runs as root
INFRA-013WarningCOPY . . — entire build context copied (may include .env/secrets)
INFRA-014WarningNo USER instruction — image defaults to running as root

Note: FROM scratch is excluded from the missing-USER check (no shell or user management).