How rap1p1/c0015-conti-detection-lab works
C0015 Detection Lab is an evidence-driven campaign simulation and detection-engineering exercise, not a general-purpose intrusion tool. Its main workflow recreates a staged campaign with benign payloads and operator-controlled beacon sessions, observes host and network telemetry, evaluates version-controlled detections, and validates findings against run artifacts and a recorded evidence ledger. The README documents the overall topology and stage handoffs; sampled code confirms C2 tasking, payload behavior, and evidence validation. Several campaign stages are documented but their implementation was not sampled, so those links rely on README statements.
Main entry points: c2sim.py C2 simulator · c0015_beacon.ps1 PowerShell beacon · runs Run artifacts · docm Macro entry
Components 19
Campaign simulation
- Macro entry
payloads/docm - HTA bootstrap
payloads/hta - Bootstrap DLL
payloads/dll/c0015_bootstrap_dll.c - PowerShell beacon
payloads/beacon/c0015_beacon.ps1 - C2 simulator
scripts/c2sim.py - Operator runbook
scripts/runbooks/c0015-phase2.json - LSASS surrogate
payloads/lsass/c0015_mimikatz_surrogate.c - WMI pivot
payloads/dll/c0015_143_surrogate.c - Collection and impact
payloads/impact
Telemetry detection
- Windows telemetry
configs/sysmon - Detection queries
detections/queries - Rule exports
detections/exports - Elastic stack
Evidence validation
- Run artifacts
evidence/runs - Artifact tools
scripts/lab_tools.py - Run verifier
scripts/verify/verify_final_phases.py - Evidence ledger
evidence/runs - Reference reports
reports
Other components
- Lab operator
Connections 21
- Lab operator → Macro entry: opens document
README.md - Macro entry → HTA bootstrap: launches bootstrap
README.md - HTA bootstrap → Bootstrap DLL: loads DLL
README.md - Bootstrap DLL → PowerShell beacon: starts session
payloads/dll/c0015_bootstrap_dll.c - PowerShell beacon → C2 simulator: registers and checks in
README.md - Lab operator → C2 simulator: controls sessions
README.md - Operator runbook → C2 simulator: queues tasks
- PowerShell beacon → LSASS surrogate: runs operator task
- Lab operator → WMI pivot: directs pivot
README.md - WMI pivot → C2 simulator: starts second session
payloads/dll/c0015_143_surrogate.c - Lab operator → Collection and impact: drives later phases
README.md - Windows telemetry → Elastic stack: sends telemetry
README.md - Detection queries → Rule exports: generates rules
README.md - Rule exports → Elastic stack: imports rules
README.md - Elastic stack → Detection queries: evaluates detections
- Collection and impact → Run artifacts: produces receipts
README.md - Run artifacts → Artifact tools: checks artifacts
- Run artifacts → Evidence ledger: records evidence
README.md - Elastic stack → Run verifier: checks run events
scripts/verify/verify_final_phases.py - Run verifier → Evidence ledger: validates run evidence
scripts/verify/verify_final_phases.py - Evidence ledger → Reference reports: supports findings
README.md