How bigsnack7/terraform-honeypot_lab works
Terraform Honeypot Lab provisions three opt-in, isolated AWS decoys and a monitoring environment. The principal workflow is internet traffic reaching a decoy, telemetry flowing to CloudWatch Logs, and analysts manually investigating it with saved Logs Insights queries; CloudTrail separately records management events in S3. The graph also preserves the documented isolation, management, alerting, budget, and optional security capabilities. Relationships reflect the README’s architecture; sampled source covered only the peripheral plan guard, so Terraform module wiring is not independently verified.
Main entry points: monitoring/main.tf CloudWatch Logs · networking/main.tf Isolated VPCs · linux-honeypot/main.tf Cowrie SSH decoy · web-honeypot/main.tf Flask web decoy
Components 14
Honeypot decoys
- Cowrie SSH decoy
terraform/modules/linux-honeypot/main.tf - Flask web decoy
terraform/modules/web-honeypot/main.tf - Windows decoy
terraform/modules/windows-honeypot/main.tf
Telemetry and audit
- CloudWatch Logs
terraform/modules/monitoring/main.tf - Investigation queries
detections/cloudwatch-logs-insights - Health alarms
terraform/modules/monitoring/main.tf - CloudTrail
terraform/modules/monitoring/main.tf - Audit S3 bucket
terraform/modules/monitoring/main.tf
Isolation and operations
- Isolated VPCs
terraform/modules/networking/main.tf - Instance IAM
terraform/modules/iam/main.tf - Systems Manager
- Budget alerts
terraform/modules/monitoring/main.tf
Optional security
- GuardDuty, Security Hub, Config
terraform/modules/security/main.tf
Other components
- Internet
Connections 15
- Internet → Cowrie SSH decoy: sends traffic
README.md - Internet → Flask web decoy: sends traffic
README.md - Internet → Windows decoy: sends traffic
README.md - Cowrie SSH decoy → CloudWatch Logs: sends telemetry
README.md - Flask web decoy → CloudWatch Logs: sends telemetry
README.md - Windows decoy → CloudWatch Logs: sends telemetry
README.md - CloudWatch Logs → Investigation queries: supports hunting
README.md - CloudWatch Logs → Health alarms: feeds health
README.md - CloudTrail → Audit S3 bucket: records events
README.md - Isolated VPCs → Cowrie SSH decoy: isolates
README.md - Isolated VPCs → Flask web decoy: isolates
README.md - Isolated VPCs → Windows decoy: isolates
README.md - Instance IAM → Systems Manager: enables access
README.md - Budget alerts → Internet: notifies operator
README.md - GuardDuty, Security Hub, Config → CloudTrail: adds findings
README.md