Skip to content

Commit d033f0c

Browse files
fix(monitoring): alert on finding filters, automation rules and recorder changes
Add GuardDuty filter, Security Hub automation rule and control, Config recorder and snapshot block-public-access changes to the tamper rule. Document the ECR BASIC to ENHANCED scanning switch from Inspector. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
1 parent 16beccf commit d033f0c

2 files changed

Lines changed: 13 additions & 2 deletions

File tree

‎docs/platform-modules.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,11 @@ SNS topics, EventBridge rules, Config, GuardDuty, Security Hub, account guardrai
7474
|----------|---------|
7575
| `javabin-alerts` SNS | Cost anomalies, budgets |
7676
| `javabin-security` SNS | IAM changes, GuardDuty, Config, Security Hub |
77-
| EventBridge rules | IAM key creation, root login, console sign-in, resource creation, security tampering (CloudTrail/Config/GuardDuty/Security Hub/KMS/guardrail disables) |
77+
| EventBridge rules | IAM key creation, root login, console sign-in, resource creation, security tampering (CloudTrail/Config/GuardDuty/Security Hub/KMS/guardrail disables, plus GuardDuty filters, Security Hub automation rules and control changes, Config recorder changes). `UpdateDetector`, `UpdateServiceSetting` and the filter/rule events also fire on benign changes, including platform applies |
7878
| AWS Config | Configuration recorder (service-linked role, includes global IAM types) + S3 delivery (TLS-only, 2-year expiry) |
7979
| Account guardrails | EBS snapshot block-public-access (block all), AMI block-public-access (block new), EBS encryption by default, SSM document public sharing off |
8080
| IAM Access Analyzer | `javabin-external-access`, external-access findings only (free) |
81-
| Inspector | ECR + Lambda package scanning (EC2 and Lambda code scanning off) |
81+
| Inspector | ECR + Lambda package scanning (EC2 and Lambda code scanning off). Enabling it switches ECR registry scanning from BASIC to ENHANCED, so `scan_on_push` on repositories (`compute/`, `modules/ecr-repo`) no longer has an effect. Expect a first burst of findings into Security Hub, mostly from legacy Lambdas on deprecated runtimes |
8282
| GuardDuty | Threat detection |
8383
| Security Hub | Findings aggregation |
8484
| `javabin-alert-dedup` DynamoDB | Deduplication table used by slack-alert Lambda |

‎terraform/platform/monitoring/guardrails.tf‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,17 @@ resource "aws_cloudwatch_event_rule" "security_tampering" {
9494
"DisableImageBlockPublicAccess",
9595
"UpdateServiceSetting",
9696
"Disable",
97+
# Changes that hide findings or narrow recording rather than turn a
98+
# service off. Platform applies that touch these also alert, which
99+
# is the intended audit trail.
100+
"CreateFilter",
101+
"UpdateFilter",
102+
"CreateAutomationRules",
103+
"BatchUpdateAutomationRules",
104+
"UpdateStandardsControl",
105+
"BatchUpdateStandardsControlAssociations",
106+
"PutConfigurationRecorder",
107+
"EnableSnapshotBlockPublicAccess",
97108
]
98109
}
99110
})

0 commit comments

Comments
 (0)