How mmmphyun/aleph-project works
CloudShield is a hybrid-cloud threat-detection and automated-response pipeline. Its main workflow carries simulated or real attacks into target logs, streams those logs through CloudWatch to a Lambda orchestrator, accumulates events across batches, detects threats, applies infrastructure controls, and notifies SecOps in Slack. The graph also preserves the documented network-analysis and Terraform infrastructure branches. Some runtime calls and deployment wiring are documented in the README but their full implementations were not sampled; those links cite the README.
Main entry points: orchestrator.py Lambda Orchestrator · remediation.py Remediation Engine · slack_notifier.py Slack Notifier · incident.py Incident Contract
Components 25
Attack Simulation
- Hydra Lab
network/lab/hydra_lab.py - Hydra Worker
network/lab/hydra_worker.py - Lab Runner
network/lab/run.py - SG Timeline
network/sg_connection_timeline.py - WAF Timeline
network/waf_packet_timeline.py
Log Collection
- Target EC2
- CloudWatch Agent
src/collector/amazon-cloudwatch-agent.json - CloudWatch Logs
- Log Processor
src/collector/cw_processor.py - Collection Latency
src/collector/collection_latency.py
Detection and Contracts
- Event Contracts
src/contracts/events.py - Signature Rules
src/detection/rules.py - URL Normalizer
src/detection/url_normalizer.py - Incident Mapper
src/detection/incident_mapper.py - Incident Contract
src/contracts/incident.py
Response and Reporting
- Lambda Orchestrator
src/remediation/orchestrator.py - Auth Window
src/remediation/auth_window.py - Web Window
src/remediation/web_window.py - DynamoDB
- Remediation Engine
src/remediation/remediation.py - Slack Webhook
- Slack Notifier
src/reporter/slack_notifier.py
Cloud Infrastructure
- AWS Security Controls
- Terraform Infrastructure
infra/terraform
Other components
- Attack Source
Connections 24
- Attack Source → Target EC2: sends attacks
README.md - Hydra Lab → Attack Source: runs simulations
README.md - Target EC2 → CloudWatch Agent: records logs
README.md - CloudWatch Agent → CloudWatch Logs: streams logs
README.md - CloudWatch Logs → Lambda Orchestrator: triggers batches
README.md - Lambda Orchestrator → Log Processor: decodes logs
README.md - Log Processor → Event Contracts: parses payload
src/collector/cw_processor.py - Lambda Orchestrator → Event Contracts: decodes payload
src/remediation/orchestrator.py - Lambda Orchestrator → Auth Window: updates counts
src/remediation/orchestrator.py - Lambda Orchestrator → Web Window: records web events
src/remediation/orchestrator.py - Auth Window → DynamoDB: persists counters
README.md - Web Window → DynamoDB: persists events
src/remediation/web_window.py - Lambda Orchestrator → Signature Rules: evaluates threats
README.md - Signature Rules → URL Normalizer: normalizes paths
src/detection/rules.py - Lambda Orchestrator → Incident Mapper: maps detections
README.md - Incident Mapper → Incident Contract: builds reports
src/detection/incident_mapper.py - Lambda Orchestrator → Remediation Engine: requests controls
README.md - Remediation Engine → Incident Contract: reads action
src/remediation/remediation.py - Remediation Engine → AWS Security Controls: blocks or isolates
README.md - Lambda Orchestrator → Slack Notifier: requests notification
README.md - Slack Notifier → Incident Contract: renders report
src/reporter/slack_notifier.py - Slack Notifier → Slack Webhook: posts cards
README.md - Terraform Infrastructure → AWS Security Controls: provisions services
README.md - SG Timeline → WAF Timeline
network/sg_connection_timeline.py