Production-grade AWS security operations implementation covering GuardDuty threat detection, Security Hub findings aggregation, Inspector vulnerability management, Macie data classification, and automated incident response via Lambda and EventBridge.
┌─────────────────────────────────────────────────────────────────┐
│ Security Tooling Account │
│ │
│ ┌─────────────┐ ┌─────────────┐ ┌──────────┐ ┌─────────┐ │
│ │ GuardDuty │ │ Inspector │ │ Macie │ │ Config │ │
│ │ (delegated) │ │ (org-wide) │ │(S3 scan) │ │ Rules │ │
│ └──────┬──────┘ └──────┬──────┘ └────┬─────┘ └────┬────┘ │
│ └────────────────┴──────────────┴──────────────┘ │
│ │ │
│ ┌─────────▼──────────┐ │
│ │ Security Hub │ │
│ │ (CSPM dashboard) │ │
│ └─────────┬──────────┘ │
│ │ EventBridge │
│ ┌───────────────┼───────────────┐ │
│ ▼ ▼ ▼ │
│ ┌──────────┐ ┌──────────────┐ ┌──────────┐ │
│ │ Lambda │ │ SNS/Slack │ │ JIRA │ │
│ │ Auto- │ │ Alerting │ │ Ticket │ │
│ │ Remediate│ └──────────────┘ └──────────┘ │
│ └──────────┘ │
└─────────────────────────────────────────────────────────────────┘
- GuardDuty — ML-based threat detection across all org accounts, centralized findings
- Security Hub — CIS AWS Foundations, AWS Foundational Security Best Practices, PCI DSS
- Inspector — Continuous EC2, Lambda, and ECR vulnerability scanning
- Macie — S3 sensitive data discovery and classification
- Automated Response — Lambda auto-remediation for critical findings
- EventBridge Rules — Route findings to Slack, PagerDuty, JIRA, and SNS
- Config Rules — 47 managed rules with automated remediation SSM documents
- Detective — Visual investigation of security findings
| Finding | Auto-Remediation |
|---|---|
UnauthorizedAccess:IAMUser/MaliciousIPCaller |
Disable IAM user, alert security team |
CryptoCurrency:EC2/BitcoinTool |
Isolate instance, snapshot, notify |
Stealth:S3/ServerAccessLoggingDisabled |
Re-enable server access logging |
Policy:IAMUser/RootCredentialUsage |
Alert immediately, require MFA re-auth |
UnauthorizedAccess:EC2/SSHBruteForce |
Add NACL deny rule, update WAF |
Backdoor:EC2/C&CActivity |
Isolate to quarantine SG, capture memory |
cd terraform/environments/prod
terraform init
terraform plan
terraform apply- CIS AWS Foundations Benchmark v1.4
- AWS Foundational Security Best Practices
- NIST SP 800-53
- PCI DSS 3.2.1
- SOC 2 Type II controls
MIT License