How bigsnack7/aws-cloud-security-foundation works
This repository is an AWS honeypot security landing zone defined in Terraform. Its main workflow is to deploy opt-in Cowrie, web, and Windows decoys in isolated networks, collect host and application telemetry centrally, and let analysts investigate it with saved CloudWatch Logs Insights queries. Optional security-baseline resources and GitHub Actions OIDC deployment support round out the product. Terraform module internals and most workflow wiring were not sampled, so relationships below are limited to README-documented capabilities; the three sampled plan-validation scripts are shown as a governance layer.
Main entry points: terraform/main.tf Terraform Landing Zone · github_oidc.tf AWS OIDC Roles · linux-honeypot/main.tf Cowrie SSH Decoy · web-honeypot/main.tf Flask Web Decoy
Components 18
Deployment and IAM
- Terraform Landing Zone
terraform/main.tf - AWS OIDC Roles
terraform/github-oidc/github_oidc.tf - IAM Baseline
terraform/modules/iam/main.tf
Honeypot Decoys
- Isolated Networks
terraform/modules/networking/main.tf - Cowrie SSH Decoy
terraform/modules/linux-honeypot/main.tf - Flask Web Decoy
terraform/modules/web-honeypot/main.tf - Windows RDP Decoy
terraform/modules/windows-honeypot/main.tf
Telemetry and Detection
- Optional Security Baseline
terraform/modules/security/main.tf - Central Monitoring
terraform/modules/monitoring/main.tf - Investigation Queries
detections/cloudwatch-logs-insights
Plan Governance
- Plan Safety Guard
terraform/scripts/guard-plan.py - IAM Policy Validator
terraform/scripts/validate-iam-policies.py - Plan Provenance Check
terraform/scripts/verify_plan_provenance.py
Other components
- Operator
- GitHub Actions
- CloudWatch Telemetry
- CloudTrail Events
- Security Analyst
Connections 16
- Operator → Terraform Landing Zone: deploys
README.md - Terraform Landing Zone → Cowrie SSH Decoy: provisions
README.md - Terraform Landing Zone → Flask Web Decoy: provisions
README.md - Terraform Landing Zone → Windows RDP Decoy: provisions
README.md - Terraform Landing Zone → Isolated Networks: isolates
README.md - Terraform Landing Zone → IAM Baseline: configures
- Terraform Landing Zone → Optional Security Baseline: enables optionally
README.md - Terraform Landing Zone → Central Monitoring: configures telemetry
README.md - Cowrie SSH Decoy → CloudWatch Telemetry: sends telemetry
README.md - Flask Web Decoy → CloudWatch Telemetry: sends telemetry
README.md - Windows RDP Decoy → CloudWatch Telemetry: sends telemetry
README.md - Terraform Landing Zone → CloudTrail Events: enables events
README.md - CloudWatch Telemetry → Investigation Queries: investigated with
README.md - Security Analyst → Investigation Queries: runs
README.md - GitHub Actions → AWS OIDC Roles: authenticates through
README.md - AWS OIDC Roles → Terraform Landing Zone: authorizes deployment
README.md