Threat mapping
Each flaw tied to the CIS AWS Foundations Benchmark area it breaks and the ATT&CK technique it enables.
| Misconfiguration | CIS area | ATT&CK | What an attacker gets |
|---|---|---|---|
| Public S3 bucket | S3 public access, encryption | T1530 | Reads the bucket anonymously |
| Wildcard IAM policy | IAM least privilege | T1078.004 | One leaked credential becomes full admin |
| SSH open to the internet | Security group ingress | T1133 | A login prompt reachable from anywhere |
| Public EBS snapshot | Storage sharing, exposure | T1530 | Restores the disk in their own account |
Scan, harden, re-scan
The same two scanners run against both states, and a script compares the reports.
- Deploy vulnerablebaseline stateharden=false
- ScanProwler + ScoutSuiterun_prowler.sh
- Hardensame resources, fixedharden=true
- Re-scansame checksrun_scoutsuite.sh
- Comparewhich findings closed, which remaincompare_reports.py
- Tear downand verify nothing is leftverify_teardown.sh
Cost guardrail
An AWS Budgets alarm emails at 80% and 100% of a monthly limit, so a forgotten lab can’t run up a bill. The limit is a variable, $5 by default.
$0
Alert at 80%$4
Alert at 100%$5
budget.tf.