purple-team-exercise
Skill0 starsChanged 13 days agoMITView on GitHub
Plan and run a purple-team exercise where offensive operators and defenders work in the same room on threat-relevant procedures, covering objective and threat selection, procedure list, telemetry checks per step, live tuning, evidence capture and a remediation backlog. Use when organizing a purple-team day or week, turning red-team findings into detections, or validating readiness against a specific threat actor.
2 other projects use a version of this.
Adopted by
Most recently taken up by
- ftrout/secops-claude-skillstheir own version, first seen Sep 18, 2026
- annatchijova/SKILLStheir own version, first seen Jul 8, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- annatchijova/SKILLS★ 9same name
- ftrout/secops-claude-skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository273 other files it gives its agents.
- ad-attack-path-analysisSkill
- adcs-security-reviewSkill
- ad-privileged-access-reviewSkill
- dcsync-detectionSkill
- gpo-security-reviewSkill
- kerberos-attack-detectionSkill
- agent-tool-permission-reviewSkill
- ai-incident-responseSkill
- llm-gateway-controlsSkill
- llm-security-evaluationSkill
- mcp-server-security-reviewSkill
- model-artifact-securitySkill
- prompt-injection-reviewSkill
- rag-security-reviewSkill
- api-abuse-detectionSkill
- api-authorization-testingSkill
- api-inventorySkill
- api-schema-securitySkill
- dast-baselineSkill
- sast-triageSkill
- sca-dependency-riskSkill
- secure-code-reviewSkill
- security-requirementsSkill
- threat-modelingSkill
- asset-criticality-tieringSkill
- asset-inventory-reconciliationSkill
- external-attack-surface-reviewSkill
- shadow-it-discoverySkill
- aws-credential-compromiseSkill
- aws-iam-reviewSkill
- aws-org-guardrailsSkill
- cloudtrail-investigationSkill
- guardduty-triageSkill
- s3-exposure-reviewSkill
- azure-activity-investigationSkill
- azure-rbac-reviewSkill
- conditional-access-reviewSkill
- entra-audit-investigationSkill
- entra-signin-investigationSkill
- backup-assuranceSkill
- critical-service-mappingSkill
- ransomware-recoverySkill
- recovery-exerciseSkill
- cloud-exposure-reviewSkill
- cloud-incident-responseSkill
- cloud-logging-baselineSkill
- cloud-posture-assessmentSkill
- audit-evidence-packageSkill
- continuous-control-monitoringSkill
- control-mappingSkill
- control-testing-samplingSkill
- container-incidentSkill
- dockerfile-hardeningSkill
- image-scanningSkill
- runtime-detection-falcoSkill
- db-audit-loggingSkill
- db-exfiltration-investigationSkill
- db-hardeningSkill
- db-privilege-reviewSkill
- data-classificationSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 3 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 35
Keep 15-30 procedures for a day.
- Distinctive: line 48
If missed: decide now whether it is a telemetry gap, rule gap or tuning gap.
- Distinctive: line 72
No telemetry check: a "missed" detection that was never logged gets a rule written against data that does not exist.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Purple-Team Exercise
The value of purple teaming is the tight loop: run a procedure, look for it together, fix the gap, run it again. Without a written plan it degenerates into a red-team demo; without defenders at the keyboard it is just an audit.
1. Objective and threat selection
Pick one objective per exercise:
- Readiness against a named threat (e.g., a ransomware affiliate seen in your sector in the last 12 months).
- A kill-chain segment you have little evidence for (credential access → lateral movement).
- Validation of a new control or telemetry source (new EDR, Sysmon config, identity protection).
Derive procedures from CTI (see intel-to-detection and campaign-correlation): ATT&CK techniques and the concrete procedure the actor used, not just the technique ID.
2. Procedure list
| # | Technique | Procedure (actor-realistic) | Tool | Target | Expected telemetry | Expected detection |
| 1 | T1566.001 | Container file (ISO/ZIP) attachment with a shortcut, benign payload | Manual, test mailbox | Test mailbox | Mail flow, file creation, LNK exec | Mail gateway + EDR LNK child process |
| 2 | T1059.001 | Encoded PowerShell command fetching a benign test file | Atomic T1059.001 | WS-PT1 | 4104 script block, process creation | Encoded PS rule |
| 3 | T1003.001 | LSASS memory access with a built-in Windows component (as in the CTI report) | Atomic T1003.001 | WS-PT1 | Sysmon 10 / EDR LSASS access | LSASS access rule |
| 4 | T1021.002 | Remote service execution over SMB with a test admin account | Atomic T1021.002 | SRV-PT2 | 4624 type 3, service install 7045 | Lateral movement rule |
| 5 | T1547.001 | Run key persistence | Atomic T1547.001 | WS-PT1 | Registry set | Run key rule |
Keep 15-30 procedures for a day. Order them along the kill chain so later steps reuse earlier access.
3. Roles and ground rules
- Exercise lead (owns the schedule, safety calls), operators (execute), detection engineers and SOC analysts (search, tune), scribe (evidence log), asset owners on call.
- Signed rules of engagement and deconfliction (see
security-test-planning,attack-simulation-safety). - Dedicated test hosts and accounts tagged in the SIEM (
purple-teamtag) so any alert from them is routed to the exercise channel, not to on-call.
4. The loop per procedure
- Operator announces and executes; scribe logs UTC time, host, command line.
- Defenders check telemetry first: does the raw event exist? Record yes/no and the event IDs.
- Then detection: did an alert fire, which rule, how fast, with what severity?
- If missed: decide now whether it is a telemetry gap, rule gap or tuning gap. If a rule fix is quick, write it, deploy to test, re-run the procedure.
- Record outcome:
blocked,detected,logged-only,not-logged.
5. Evidence
Per procedure keep: exact command, timestamp, host, screenshots/exports of raw events, alert IDs, the rule version before and after tuning. After the exercise, score all procedures with detection-validation against the exported alerts so the report is not based on memory.
6. Outputs
# Purple-team exercise: <objective> Dates: <dates> Lead: <role>
Procedures: 24 Blocked: 3 Detected: 12 Logged-only: 6 Not logged: 3
New/updated rules deployed during exercise: 5 (re-tested: 5 pass)
## Backlog
| ID | Gap type | Technique | Fix | Owner | Due | Re-test date |
## ATT&CK layer: tested coverage as of <date> (attached)Schedule a re-test of every backlog item; an unverified fix is still a gap.
Common mistakes
- Running default Atomic tests only: they detect the tool, not the actor's procedure.
- Testing on hosts without production-like agents and policies.
- No telemetry check: a "missed" detection that was never logged gets a rule written against data that does not exist.
- Leaving test persistence or accounts behind (cleanup checklist in
attack-simulation-safety).
Related skills
detection-validation, security-test-planning, attack-simulation-safety, detection-testing, attack-coverage-mapping, hunt-to-detection
References
- MITRE ATT&CK: https://attack.mitre.org/
- SCYTHE Purple Team Exercise Framework (PTEF): https://github.com/scythe-io/purple-team-exercise-framework
- Atomic Red Team: https://github.com/redcanaryco/atomic-red-team
- MITRE Center for Threat-Informed Defense, Adversary Emulation Library: https://github.com/center-for-threat-informed-defense/adversary_emulation_library
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

