| name | security-scan |
| description | Run a comprehensive security scan on CloudFormation templates checking CIS AWS Foundations, NIST controls, and OWASP Cloud Top 10 |
Perform a security scan of the CloudFormation template or IAM policy currently open.
Map findings to the following frameworks and output a prioritised remediation plan.
Scanning checklist
Identity and Access Management
Data Protection
Network Security
Logging and Monitoring
Compute Security
Output format
Findings
| Control | Status | Severity | Resource | Finding | Fix |
|---|
| IAM-001 | FAIL | HIGH | MyRole | No permission boundary | Add PermissionsBoundary property |
| NET-003 | FAIL | HIGH | AppSG | Port 22 open to 0.0.0.0/0 | Restrict to VPN CIDR or use SSM |
| ENC-002 | FAIL | MEDIUM | LogsBucket | Encryption not configured | Add BucketEncryption property |
| MON-001 | PASS | | | ALB access logs enabled | |
Summary
- CRITICAL (deploy-blocker): X findings
- HIGH: X findings
- MEDIUM: X findings
- LOW/INFORMATIONAL: X findings
Compliance posture:
- CIS AWS Foundations Benchmark: [PASS/FAIL — list failed controls]
- OWASP Cloud Top 10: [Relevant findings mapped to OWASP controls]
Top 5 fixes (prioritised)
- [Most critical fix with exact code change]
- ...
Auto-fixable items
For findings where the fix is a simple template change, generate the corrected YAML snippet.