Container Cloud Auditor
Purpose
Use for authorized review of container and cloud deployment artifacts in recovered source, app repos, or exported infrastructure bundles.
Workflow
- Run
python container-cloud-auditor/scripts/analyze_container_cloud.py <target> --out output/container-cloud-auditor. - Review
findings.jsonandREPORT.md. - Chain findings into remediation or pentest report generation.
Coverage
Files are auto-classified (Dockerfile / Compose / Kubernetes / Terraform) so each rule applies in the right context. ~30 rules across:
- Dockerfile —
:latest/unpinned base,USER root/ no non-root USER, remoteADD, pipe-to-shell installs, secrets inENV/ARG, missingHEALTHCHECK. - Compose / containers —
privileged, host networking, added capabilities (SYS_ADMIN/ALL), mounteddocker.sock,:latestimages. - Kubernetes —
hostNetwork/hostPID/hostIPC,hostPath,allowPrivilegeEscalation,runAsNonRoot: false,readOnlyRootFilesystem: false, dangerous capabilities,automountServiceAccountToken,LoadBalancerexposure, missing resource limits / securityContext. - Terraform / cloud — public S3 ACL,
0.0.0.0/0ingress, wildcard IAM (*/*:*), encryption disabled,publicly_accessible. - Secrets (any file) — AWS/Google keys, private-key blocks, Slack tokens, hardcoded credentials.
Outputs
findings.jsonREPORT.md
Anti-Patterns
- Do not scan live cloud accounts from this skill.
- Do not treat regex evidence as proof without human validation.