agentleFS
Bizaza-devsBizaza-devs/Claude-PurpleTeam/skills/purpleteam-methodology/SKILL.md

purpleteam-methodology

Skill0 starsChanged 4 days agoMITView on GitHub

Operating model for threat-informed purple teaming: red and blue run one shared loop (emulate, observe, fix, retest) instead of a one-off pentest. Covers MITRE CTID threat-informed defense, the exercise lifecycle (prepare, emulate, observe, tune, retest, report), roles (facilitator, emulation operator, SOC analyst, detection engineer, system owner, approver), exercise types (tabletop, atomic unit tests, chained emulation, continuous BAS), cadence and maturity levels, the outcome scale (blocked / alerted / logged / not seen / partial), the authorisation and safety gate, and metrics (coverage, time to detect in exercise, gap closure rate). Use when asked to set up a purple team or programme, decide test cadence, explain what purple means, or route a phase to the right blue skill.

The file

We split this skill into the rules it gives an agent

11 rules. About 0 are common, 7 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Every other emulation skill (adversary-emulation-planning, atomic-red-team, caldera-operations, stratus-red-team-cloud, …

    line 11
  2. Distinctive:

    Not for: red-team operations, penetration testing of third parties, or any testing without the authorisation gate below.

    line 30
  3. Distinctive:

    No new exploit code, malware, droppers or payloads.

    line 47
  4. Very specific:

    A control that stops a test is a result: Never disable, blind or bypass EDR, AV or logging to make a test "work".

    line 48
  5. Distinctive:

    Prepare: test cards, rules of engagement, authorisation, change ticket, lab build, deconfliction plan.

    line 70
  6. Distinctive:

    Report: before/after outcomes, metrics, open gaps with owners, next cadence.

    line 82
  7. Distinctive:

    Test what relevant adversaries do, not what is easy to test.

    line 97
  8. Distinctive:

    Run this checklist before any emulation, every time.

    line 199
  9. Very specific:

    If any box is unchecked, the card is not run.

    line 220
  10. Very specific:

    If an exercise uncovers real attacker activity, stop the exercise and switch to incident-response (/ir).

    line 233
  11. Distinctive:

    No white cell for a no-notice test, so a real alert during the window is dismissed as "probably purple".

    line 276

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Purple-team methodology

The operating model for the emulation side of the bundle. Purple is not a team colour, it is a loop: run a published, ATT&CK-mapped procedure, watch what the defence does, fix what it missed, run it again, and report the measured change. Every other emulation skill (adversary-emulation-planning, atomic-red-team, caldera-operations, stratus-red-team-cloud, emulate-windows-endpoint, emulate-network-c2-exfil, purple-exercise-tracking) plugs into this lifecycle. For validating a single rule, purple-team-validation is the lighter path.

When to use

  • Standing up or reviewing a purple-team programme: who does what, how often, what gets measured, who signs off.
  • Someone asks "should we buy a pentest or do purple?", "what does purple mean for us?" or "how often should we test our detections?".
  • Planning the shape of an exercise before the details (threat, techniques, test cards) are worked out in adversary-emulation-planning.
  • Deciding which blue skill or command owns a phase (observe, tune, harden, report) so results turn into fixes instead of a slide.
  • Agreeing the outcome scale and metrics before the first test, so results from different exercises can be compared.

Not for: red-team operations, penetration testing of third parties, or any testing without the authorisation gate below. Not for writing new attack tooling: the bundle only runs published procedures.

Ground rules

The evidence gate for purple work: no test without a signed gate, no outcome without captured evidence, no gap without an owner.

  1. Authorised targets only. A lab, or production under a written authorisation plus a change ticket naming systems, techniques, time window and an abort contact. No gate, no test, regardless of who asks.
  2. Published procedures only. Atomic Red Team tests, MITRE Caldera abilities and adversary profiles, Stratus Red Team attack techniques, CTID Adversary Emulation Library plans, vendor BAS content, referenced by ATT&CK technique and test name/number. The operator confirms the local index (Invoke-AtomicTest T#### -ShowDetailsBrief, stratus list) before running. No new exploit code, malware, droppers or payloads.
  3. A control that stops a test is a result. Never disable, blind or bypass EDR, AV or logging to make a test "work". Record blocked and move on.
  4. Safe by default. Snapshot first, test accounts and test data, the project's own cleanup step after every test, SOC deconfliction (the SOC knows, or it is a no-notice test approved by the SOC lead).
  5. Expected before observed. Expected telemetry and expected detection are written on the test card before execution; otherwise every result looks like a pass in hindsight.
  6. An outcome needs evidence. alerted requires an alert ID, rule name and time linked to the test ID; logged requires a query and the raw event reference; not seen requires the search that came back empty. Memory and "the EDR probably saw it" are not evidence.
  7. Every gap ends in a ticket with an owner, a due date and a retest. A gap without a retest date is a finding, not a fix.

Workflow

  1. Set the programme frame (once, then yearly): sponsor, approver, scope of estates (lab, production segments, cloud accounts), outcome scale and metrics from this skill, tracking tool (purple-exercise-tracking).
  2. Pick the threat for the next exercise: sector reporting, advisories, own incidents, coverage gaps from /coverage (adversary-emulation-planning).
  3. Prepare: test cards, rules of engagement, authorisation, change ticket, lab build, deconfliction plan. Facilitator owns readiness; approver signs.
  4. Emulate: operator runs one card at a time, logs execution time (UTC), host, account and test ID; runs cleanup; verifies baseline.
  5. Observe: SOC analyst and detection engineer look for the expected telemetry and detection in the real tools, live, with the operator on the call.
  6. Score each card on the outcome scale with evidence (/scorecard).
  7. Tune: gaps go to the owning skill (telemetry, detection logic, alert routing, prevention, response). Quick fixes may be made during the exercise but must be re-run before they count.
  8. Retest fixed cards with the same procedure, same version, same host class; add a variant procedure for high-priority techniques.
  9. Report: before/after outcomes, metrics, open gaps with owners, next cadence.

Threat-informed defence in one page

The MITRE Center for Threat-Informed Defense (CTID) frames threat-informed defence as three parts used together:

PartQuestion it answersBundle skills
Cyber threat intelligenceWho targets us, and how (as ATT&CK techniques and procedures)?threat-intel-ioc, adversary-emulation-planning
Defensive measuresWhich telemetry, detections and controls address those techniques?logging-coverage, detection-engineering, hardening-windows-ad, hardening-m365-entra, hardening-linux, hardening-cloud
Testing and evaluationDo those defences work against the real procedures?purpleteam-methodology, emulation skills, purple-exercise-tracking

Practical consequences:

  • Test what relevant adversaries do, not what is easy to test. A coverage map of all ATT&CK is not the goal; coverage of the prioritised procedures is.
  • Score procedures, not techniques. One passing Atomic test for T1059.001 says nothing about the other ways PowerShell is abused.
  • Intelligence decays and estates change; results expire (see cadence).

Why purple instead of (only) a pentest

AspectOne-off pentest / red teamPurple exercise
GoalFind a path to an objective; prove impactMeasure and improve detection and prevention per technique
Defender involvementUsually blind; learns at the debriefIn the room (or white cell), watching tools live
OutputFindings list, often vulnerabilitiesPer-procedure outcome, evidence, gap tickets, retest results
RepeatabilityLow; different testers, different pathsHigh; pinned procedures re-run after every fix
Time to fixWeeks to months after the reportDuring or right after the exercise, verified by retest
What it provesSomething was exploitable at that timeWhich defences work, which regressed, how fast they alert

They are complementary: a red team tests the whole organisation under realistic pressure; purple turns specific techniques into measured, repeatable defence. Feed red-team findings into the next purple exercise as candidate techniques.

Exercise lifecycle

PhaseGoalKey inputsOutputsOwner
PrepareReady, authorised, safeThreat selection, coverage map, labTest cards, RoE, signed authorisation, change ticket, deconfliction planFacilitator + approver
EmulateRun the procedure exactly as writtenTest card, pinned procedure versionExecution log (UTC, host, account, test ID), cleanup proofEmulation operator
ObserveSee what the defence sawExecution log, SIEM/EDR accessTelemetry references, alert IDs, time to alertSOC analyst
TuneClose the gap at the right layerObserved vs expectedRule change, log-source fix, hardening change, playbook updateDetection engineer / system owner
RetestProve the fixSame card, same versionNew outcome with evidence; variant resultOperator + SOC analyst
ReportDecide and fund next stepsScored results, metrics, backlogManagement summary, Navigator layer, backlog, next dateFacilitator

A phase is not done until its output exists. "We emulated it" without an execution log cannot be observed or scored.

Roles

RoleResponsibilitiesMust not
Facilitator (purple-facilitator agent)Runs the exercise, keeps the card order, timekeeping, records decisions, chases evidence, owns the reportScore a card without the SOC's evidence
Emulation operator (emulation-operator agent)Builds and verifies prerequisites, runs published procedures, logs execution, runs cleanup, stops on abort criteriaModify procedures into new tooling, disable controls, act outside scope
SOC analyst (soc-analyst agent)Searches telemetry and alerts in production tools, triages as they would for real, records time to alertIgnore unexpected activity because "it is the exercise"
Detection engineer (detection-engineer agent)Diagnoses gaps, writes and tests fixes through the detection pipelinePush untested hotfix rules straight to production
System ownerConfirms targets, approves impact, verifies service health and cleanupDelegate approval of their system to the facilitator
ApproverSigns authorisation and change ticket, owns risk acceptance, names the abort contactApprove scope they cannot see in writing

Small teams may combine roles; never combine operator and approver, and never let the operator score their own test without the SOC analyst.

A white cell (SOC lead or delegate who knows the schedule) is required for no-notice tests, so a real incident is never dismissed as "the purple team".

Exercise types

TypeWhat runsBest forNotes
TabletopNothing executes; walk through a procedure and ask "what would we see?"New programme, production-only systems that cannot be tested, response stepsCheap; produces hypotheses, not outcomes. Score as not run
Atomic unit testsOne technique, one published test (atomic-red-team, stratus-red-team-cloud)Validating a rule, regression after changesFast, repeatable; misses chained context
Chained emulationSequence of procedures from an adversary profile or CTID plan (caldera-operations, emulate-* skills)Testing correlation, response hand-offs, multi-stage detectionsNeeds a lab mirroring production telemetry; longer windows
Continuous / BASScheduled automated runs of published content (Caldera schedules, vendor BAS, scripted Atomic runs)Drift and regression detectionResults are only as good as the evidence capture; review failures weekly

Cadence and maturity

Cadence is a local decision; agree it in the programme frame. A defensible starting point:

ItemSuggested trigger
Regression of passing high-priority cardsAfter EDR agent, policy, parser or rule-set changes, and on a fixed interval you can sustain
Retest of fixed gapsWhen the gap ticket is marked fixed, before it is closed
Threat-driven exerciseWhen a relevant advisory or own incident lands, and periodically per top threat
Result expiryA result older than the agreed regression interval is shown as unknown, not as covered

Maturity ladder (bundle convention, use it to say where you are and what is next):

LevelDescriptionEvidence
0 - Ad hocOccasional tests, no trackingnone or screenshots
1 - RepeatablePublished procedures, test cards, outcome scale, tracked resultsVECTR or CSV with evidence references
2 - Threat-informedExercises chosen from prioritised threats; gaps ticketed with ownersprioritisation matrix, backlog
3 - MeasuredRetests close the loop; coverage, time to detect and gap closure trendedKPI trend across at least two cycles
4 - ContinuousAutomated regression of passing cards; results drive detection and hardening roadmapsscheduled runs, stale-result alerts, roadmap linked to gaps

Outcome scale

One scale for the whole bundle. Score the procedure run, with evidence.

OutcomeMeaningEvidence required
blockedA preventive control stopped the procedure before its objectiveControl's block/prevention event and the procedure output showing failure. Note whether an alert reached the SOC; a silent block opens a visibility gap
alertedThe procedure ran and an alert tied to its behaviour reached the queue the SOC watchesAlert ID, rule name, severity, creation time; time to alert from the execution log
loggedTelemetry for the behaviour is in the SIEM/EDR, but no alertThe query and the raw event references (table, record ID, timestamp)
not seenNo telemetry for the behaviour in the searchable storeThe searches run, the time window and data sources checked, all empty
partialPart of the behaviour detected, or the alert is too generic, mis-severitised or later than the agreed thresholdWhich part was seen and which not; the alert and why it falls short

Non-outcomes: not run (gated out, tabletop only) and inconclusive (the procedure failed to execute, prerequisites missing). They never count as coverage. purple-team-validation uses the same scale with longer names (logged-only, not observed); treat them as identical.

Authorisation and safety gate

Run this checklist before any emulation, every time. The facilitator reads it aloud at the start of the window.

  • Target is a lab, or production with a signed authorisation and an approved change ticket naming systems, techniques, time window and abort contact.
  • Every card references a published procedure by ATT&CK ID and test name/number/GUID, with the project version pinned; the operator has checked the local index (-ShowDetailsBrief, stratus list).
  • No card requires disabling, blinding or excluding EDR/AV/logging.
  • Destructive or data-exposing techniques (backup or shadow-copy deletion, encryption, wiping, real credential dumping to disk, exfiltration outside the organisation) are lab-only.
  • Snapshot taken (lab) or backup confirmed (production); test accounts and test data only.
  • Cleanup step known for every card and assigned to the operator; system owner will verify baseline.
  • SOC deconfliction done: SOC knows the window, hosts and accounts, or a no-notice test is approved by the SOC lead with a white cell on call.
  • Abort criteria and abort contact agreed: unexpected impact, service degradation, real incident indicators, activity outside scope.

If any box is unchecked, the card is not run. Record why.

How the bundle plugs into each phase

PhaseSkillsCommands / agents
Prepareadversary-emulation-planning, threat-intel-ioc, logging-coverage, vuln-prioritization/exercise, /coverage, purple-facilitator
Emulateatomic-red-team, caldera-operations, stratus-red-team-cloud, emulate-windows-endpoint, emulate-network-c2-exfil/emulate, emulation-operator
Observealert-triage, hunt-dispatch and the hunt-* skills, query skills (kql-sentinel-defender, spl-splunk, elastic-eql-esql)/triage, /hunt, soc-analyst, threat-hunter
Tunedetection-engineering, sigma-rules, logging-coverage, hardening-windows-ad, hardening-m365-entra, hardening-linux, hardening-cloud/detect, /sigma, /harden, detection-engineer
Retestpurple-team-validation, the executor skill used originally/purple, /emulate
Reportpurple-exercise-tracking, ir-report-writing for style/scorecard

If an exercise uncovers real attacker activity, stop the exercise and switch to incident-response (/ir); the purple window does not make it benign.

Metrics

Define them once; report denominators with every number.

MetricDefinitionNotes
Detection coveragePrioritised procedures with latest outcome alerted (or blocked with an alert) / prioritised procedures testedReport separately per tactic and per estate (lab, production)
Prevention rateProcedures blocked / procedures testedDo not merge with detection coverage
VisibilityProcedures logged, alerted or blocked with telemetry / procedures testedLow visibility points to logging-coverage work
Time to detect in exerciseAlert creation time minus execution start time, per alerted cardReport median and worst case; include pipeline latency, not analyst time
Gap closure rateGaps closed by a passing retest in the period / gaps open at start plus opened in the periodA gap is closed only by a retest, never by a ticket status
Regression ratePreviously passing cards that fail on rerun / cards rerunSignals drift from agent, parser or rule changes
Stale resultsCards whose latest result is older than the regression interval / all cardsStale cards display as unknown

purple-exercise-tracking holds the formulas, the CSV schema and the trend view.

False positives & benign look-alikes

ObservationLooks likeActuallyHandle
Alerts on the harness (Atomic module import, Caldera agent beacon, PowerShell remoting used to launch tests)Technique detectedDetection of tooling, not the procedureDo not score; note harness noise separately
Generic "suspicious activity" alert firing for every cardalertedProof of telemetry, low fidelityScore partial; ticket for a specific detection
Activity on hosts or accounts outside the cardExercise side effectPossibly a real incidentStop, escalate to white cell, triage with alert-triage
Block by a control on a prerequisite downloadblockedPrerequisite blocked, technique never ranScore inconclusive; fix prerequisite in lab, rerun
Alert fires hours later via a batch rulealertedLate beyond the agreed thresholdScore partial with time to alert recorded

Pitfalls

  • Treating purple as a one-off event; without retests and cadence, results decay into an outdated slide.
  • Counting tests run, rules written or ATT&CK cells coloured instead of gaps closed (see purple-exercise-tracking).
  • Lab results reported as production coverage when the lab uses a different EDR policy, log pipeline or SIEM workspace.
  • EDR in audit or passive mode during tests, then reporting alerted as prevention.
  • Operators "helping" a test along by changing procedures, adding exclusions or turning off controls; that is a different test, and usually a forbidden one.
  • Scoring before observing: the SOC analyst must search before the operator says what was run, where blind scoring is part of the design.
  • No white cell for a no-notice test, so a real alert during the window is dismissed as "probably purple".

Output

  • Programme frame: sponsor, approver, scope, outcome scale, metrics, cadence, maturity level and the next level's target.
  • Per exercise: lifecycle plan with role assignments, completed safety gate, scored cards (via purple-exercise-tracking and /scorecard), gap tickets to detection-engineering, logging-coverage or hardening skills, retest dates.
  • Hand-offs: /exercise to plan a full exercise with adversary-emulation-planning; /emulate to run one card; /purple and purple-team-validation for a single-rule validation; /coverage for the coverage map; /scorecard for the heatmap and management summary.

References

  • MITRE ATT&CK: https://attack.mitre.org/ (techniques, groups, Navigator)
  • MITRE Center for Threat-Informed Defense (CTID): threat-informed defense concept, Adversary Emulation Library, Micro Emulation Plans, Top ATT&CK Techniques, Measure, Maximize, and Mature Threat-Informed Defense (M3TID)
  • SCYTHE: Purple Team Exercise Framework (PTEF)
  • Red Canary: Atomic Red Team; MITRE Caldera documentation; DataDog Stratus Red Team documentation
  • MITRE ATT&CK Evaluations methodology (detection categories) for scoring ideas
  • NIST SP 800-115 (Technical Guide to Information Security Testing and Assessment) for test planning and rules of engagement

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.