How sannidhisriram-06/identity-threat-detection-lab works
This repository is an AWS identity-threat detection and response lab. Its principal workflow provisions an AWS host and telemetry sources, runs attack/JIT-access simulations, feeds host and CloudTrail events into Wazuh for detection, and presents alerts for SOC response. Vault brokers short-lived IAM credentials; Terraform, Docker configuration, and shell scripts define deployment and operation. The graph follows documented architecture and README relationships only; no source excerpts were available, so implementation-level calls are not asserted.
Main entry points: wazuh_manager.conf.tpl Wazuh Manager · terraform AWS Infrastructure · vault Vault · cloudtrail.tf CloudTrail
Components 19
AWS Provisioning
- AWS Infrastructure
terraform - EC2 Lab Host
terraform/ec2.tf
Identity Brokering
- Vault
docker/vault - Vault AWS Setup
docker/vault/scripts/init_vault_aws.sh - AWS IAM
terraform/iam.tf
Threat Telemetry
- CloudTrail
terraform/cloudtrail.tf - CloudTrail S3
terraform/cloudtrail.tf - Host Auth Logs
Detection and Response
- Wazuh Manager
docker/config/wazuh_cluster/wazuh_manager.conf.tpl - Custom Rules
docker/wazuh/rules/local_rules.xml - Wazuh Indexer
docker/config/wazuh_indexer/wazuh.indexer.yml - Wazuh Dashboard
docker/config/wazuh_dashboard/wazuh.yml - Incident Runbook
docs/INCIDENT_RESPONSE_RUNBOOK.md
Lab Operations
- Docker Stack
docker/docker-compose.yml - Attack Simulations
simulations - Stack Bootstrap
scripts/bootstrap_stack.sh - Stack Verification
scripts/verify_stack.sh
Other components
- Lab Operator
- SOC Analyst
Connections 20
- Lab Operator → AWS Infrastructure: provisions
README.md - AWS Infrastructure → EC2 Lab Host: creates
README.md - AWS Infrastructure → CloudTrail: configures
README.md - CloudTrail → CloudTrail S3: delivers logs
README.md - EC2 Lab Host → Docker Stack: runs
README.md - Lab Operator → Vault AWS Setup: initializes
README.md - Vault AWS Setup → Vault: configures
README.md - Attack Simulations → Host Auth Logs: generates activity
README.md - Attack Simulations → Vault: requests credentials
README.md - Vault → AWS IAM: creates IAM users
README.md - AWS IAM → CloudTrail: emits API events
README.md - Host Auth Logs → Wazuh Manager: feeds auth logs
README.md - CloudTrail S3 → Wazuh Manager: polls CloudTrail
README.md - Wazuh Manager → Custom Rules: evaluates rules
README.md - Wazuh Manager → Wazuh Indexer: indexes alerts
- Wazuh Indexer → Wazuh Dashboard: serves events
README.md - SOC Analyst → Wazuh Dashboard: reviews alerts
README.md - SOC Analyst → Incident Runbook: uses procedures
README.md - Lab Operator → Stack Bootstrap: starts stack
README.md - Lab Operator → Stack Verification: verifies stack
README.md