1---2name: purple-team-automation3description: Purple team automation skill that links offensive emulation (Atomic Red Team, Caldera, Stratus Red Team, Leonidas) with detection validation, telemetry-gap analysis, and continuous control testing. Use to design adversary emulation plans tied to MITRE ATT&CK, execute safe tests in lab or controlled environments, and produce evidence-backed detection coverage reports.4metadata:5 source: https://skillmd.com/skills/masriyan/purple-team-automation6---78# Purple Team Automation910## Authorization Boundary1112- Run only in environments with written approval, change windows, and rollback owners.13- Tag every test with a unique `campaign-id` for cleanup and timeline reconstruction.14- No data destruction, no real credential theft, no third-party services targeted.1516## Campaign Workflow17181. Pick an adversary or technique set with business relevance; cite ATT&CK IDs and known intrusion sets.192. Draft an emulation plan: prerequisites, steps, expected telemetry, success/fail criteria, cleanup.203. Execute with `invoke-atomicredteam`, `caldera` operations, `stratus`, or custom scripts in isolated runners.214. Capture telemetry across EDR, Sysmon, cloud audit, network, identity, and SIEM.225. Compare expected vs observed events; flag missing logs, parsing failures, and rule misses.236. File defensive backlog: new detections, tuning, telemetry enablement, and response runbook updates.2425## Coverage Scoring2627- `Prevented`, `Alerted`, `Logged-not-alerted`, `Missed`. Score by technique and by data source.28- Track time-to-detect and time-to-contain per test.29- Maintain a heatmap over ATT&CK with last-validated date and confidence.3031## Output Contract3233- `plans/<campaign>.md`: technique list, steps, expectations.34- `runs/<campaign>/`: command logs, artifacts, screenshots, raw telemetry.35- `coverage.csv`: technique × status × evidence × backlog ticket.36- `report.md`: executive coverage, top gaps, prioritized fixes with owners.