Sign in Start free

Purple teamFree course

Purple Teaming

A concept-first course on purple teaming: red and blue working together to see, fix and retest each attack technique. Roles and safety, threat-informed test plans in ATT&CK v20, test cases and outcomes, live rounds, closing telemetry, logic, triage and control gaps with Sigma, CAR, Summiting the Pyramid and D3FEND, metrics and heat maps, automation with Atomic Red Team and Caldera, and purple teaming in TIBER-EU 2025 and SAMA FEER, explained with diagrams and one Rimal exercise.

  • Level Junior → Expert
  • Time 240 min
  • Modules 10
  • Exercises 24 with worked solutions
  • Includes Lab, 5-question quiz, references

What you'll learn

  • Explain purple teaming, its formats and why it improves defence quickly
  • Build threat-informed test plans and test cases with expectations
  • Run live rounds and classify gaps as telemetry, logic, triage or control
  • Write robust detections and measure coverage honestly
  • Automate regression tests and run purple teaming in regulated tests

Each lesson is tagged Junior, Mid or Expert, so you can start where you are. Finish with the lab and the quiz; a score of 4 out of 5 marks the course complete in this browser.

The lessons below are in English for now, because they quote technical names, commands and log fields. An Arabic version is planned.

Course map

Each module moves from fundamentals to applied work to an expert challenge. Exercises have worked solutions: try first, then open the solution. 10 modules · 24 exercises · ~4 hours

  1. 0Start here: what purple teaming is and why it worksJuniorMidExpert25 min · 3 exercises
  2. 1Roles, environment and rulesJuniorMidExpert25 min · 2 exercises
  3. 2Threat-informed test plansJuniorMidExpert25 min · 3 exercises
  4. 3Anatomy of a test case and its outcomesJuniorMidExpert25 min · 2 exercises
  5. 4Running the exerciseJuniorMidExpert25 min · 3 exercises
  6. 5Closing gaps: detection engineering in the loopJuniorMidExpert25 min · 3 exercises
  7. 6Measuring coverage and progressJuniorMidExpert25 min · 2 exercises
  8. 7Automation and continuous validationJuniorMidExpert25 min · 3 exercises
  9. 8Purple teaming in regulated testsJuniorMidExpert20 min · 2 exercises
  10. 9Building the purple programme; cheat sheet and assessmentJuniorMidExpert20 min · 1 exercises

No prior experience is needed. Module 0 covers the architecture, installation and configuration, and sets up the project you extend in every module. Each command is labelled with its impact (read-only, changes files, changes the system, uses the network). Work on a computer or virtual machine you control.

0

Start here: what purple teaming is and why it works

Goal: Understand purple teaming as a collaborative function, why it improves defence faster than separate red and blue work, the main exercise formats, the frameworks involved, and the exercise you will follow.

25 min

A function, not a team

Purple teaming is red and blue working together on purpose: the red side executes realistic attack procedures, the blue side (SOC, detection engineering, incident response) watches what its controls and people see, and together they fix gaps and retest straight away. It is usually a function or exercise rather than a permanent third team. The goal is not to 'win', but to turn each attack technique into a defended one.

In a traditional red team, defenders learn what happened weeks later in a report, and fixes are rarely retested. In purple teaming the feedback loop shrinks from weeks to minutes: a technique runs, the analyst checks the SIEM, the detection engineer edits the rule, the technique runs again. Coverage stops being a claim and becomes evidence, technique by technique.

Red alonefinds paths, writes a reportdefenders learn weeks laterfixes rarely retestedPurpleattack and defence in the same roomsee, fix and retest in hoursmeasured per techniqueBlue alonetunes what it imaginesno proof rules fire on real attackscoverage is a claim
Planthreat-informed testsExecutered runs a procedureObserveblue looks for evidenceDiscusswhy seen or notImprovetelemetry, rule, playbookRetestuntil it works

Formats and frameworks

Purple teaming ranges from talk-through workshops to atomic exercises (one technique at a time), chained scenario exercises, the closure phase of a red team test, and continuous automated validation. It draws on MITRE ATT&CK for test design and reporting, threat intelligence and red team reports for priorities, the CTID Adversary Emulation Library, Atomic Red Team and MITRE Caldera for procedures, Sigma, MITRE CAR and CTID's Summiting the Pyramid for robust detections, MITRE D3FEND for controls, and TIBER-EU, which since 2025 makes purple teaming mandatory in its tests.

Workshop / tabletoptalk throughTTPs, no executionAtomic exerciseone technique ata time, open bookScenario exercisea chained attack, liveClosure purpleafter a red team,replay + retestContinuousautomated testsevery week
Framework or resourceWhat it gives the purple teamModule
MITRE ATT&CK v20test design and reporting language2, 6
CTID Adversary Emulation Libraryfull and micro emulation plans of real actors2
Atomic Red Team, MITRE Calderasmall tests and automated emulation3, 7
Sigma, MITRE CARdetections to write or adapt5
Summiting the Pyramid (CTID)how robust a detection is5
MITRE D3FENDnaming the control that fixes a gap5
Pyramid of Painwhy behaviour detections last5
TIBER-EU 2025, DORA TLPT, SAMA FEERpurple teaming in regulated tests8
VECTRtracking test cases and outcomes6

The exercise in this course

After the SANDGLASS red team (Red Team Operations course), Rimal runs its first purple programme: two days of purple rounds on the techniques the red team used and the SOC missed, then a monthly cycle and automated regression tests. You follow round 1, from planning to the before-and-after heat map.

Day -10plan from red reportDay -5test cases approvedDay 1 amidentity testsDay 1 pmfix rules liveDay 2 amlateral + mail testsDay 2 pmretest allWeek 2report + roadmapMonthlyautomated regression
Threat inputTest planTest libraryExecutionTelemetrySIEM / XDRSOC triageDetection fixesTrackingPurple roomAutomationRegulated closureProgrammeStage 0: red and blue work separately; findings arrive as a report.

Quick check: Purple teaming's main goal is to:

Exercise 1Junior

Explain to a SOC manager in two sentences why purple teaming finds different things than a red team.

Worked solution

A red team shows whether an adversary can reach an objective unseen, but defenders learn late and fixes are not retested. Purple teaming runs each technique openly, shows exactly what each control and analyst saw, and fixes and retests until the technique is detected.

Exercise 2Mid

When is a covert red team still better than purple teaming?

Worked solution

When the question is how the organisation performs on a normal day without warning, including people and escalation under real conditions, or when a regulator requires it. Purple teaming is open book; it measures capability, not surprise. Mature programmes use both.

Exercise 3Junior

Name the five formats from least to most effort.

Worked solution

Workshop or tabletop, atomic exercise, scenario exercise, closure purple after a red team, continuous automated validation (most effort to build, least effort per run once built).

Tools in this course

Atomic Red TeamTest

Open library of small tests mapped to ATT&CK.

Use it for: atomic purple tests, regression

Integrates with: PowerShell, CI

MITRE CalderaTest

Automated adversary emulation platform.

Use it for: chained scenarios at scale

Integrates with: ATT&CK, agents

VECTRPlan

Free platform to plan and track purple test cases and outcomes.

Use it for: outcomes per technique, trends

Integrates with: Atomic Red Team, ATT&CK

ATT&CK NavigatorPlan

Layers for plans and heat maps.

Use it for: before and after coverage

Integrates with: JSON layers

SigmaPolicy

Vendor-neutral detection rules.

Use it for: fixing logic gaps portably

Integrates with: Splunk, KQL, Elastic

Microsoft Sentinel / Splunk / ElasticSecOps

Where alerts appear and are triaged.

Use it for: observing outcomes

Integrates with: EDR, cloud logs

Project step 0

The purple mandate

Goal: A sponsor, objectives (techniques to defend), and agreement that red and blue share everything during rounds.

1

Roles, environment and rules

Goal: Understand who takes part in a purple exercise, where tests run (lab or production), the safety rules, and how communication and evidence work in the room.

25 min

Pro This part is included in the Pro plan. Sign in or see the plans to continue.

2

Threat-informed test plans

Goal: Learn how threat intelligence, red team reports and ATT&CK v20 turn into a prioritised set of test cases, and how emulation plans (full and micro) are used.

25 min

Pro This part is included in the Pro plan. Sign in or see the plans to continue.

3

Anatomy of a test case and its outcomes

Goal: Learn what every test case records, the expected evidence, the outcome scale from prevented to not observed, and how results are recorded.

25 min

Pro This part is included in the Pro plan. Sign in or see the plans to continue.

4

Running the exercise

Goal: Learn how a live round runs, how to time-box, how discussion turns into fixes, and how the results of Rimal's round 1 look.

25 min

Pro This part is included in the Pro plan. Sign in or see the plans to continue.

5

Closing gaps: detection engineering in the loop

Goal: Classify gaps as telemetry, logic, triage or control gaps, write robust detections using Sigma, MITRE CAR and CTID's Summiting the Pyramid, and use D3FEND for preventive fixes.

25 min

Pro This part is included in the Pro plan. Sign in or see the plans to continue.

6

Measuring coverage and progress

Goal: Measure prevention, detection and visibility rates, time to alert and time to fix, visualise coverage on ATT&CK heat maps, and report progress honestly.

25 min

Pro This part is included in the Pro plan. Sign in or see the plans to continue.

7

Automation and continuous validation

Goal: Understand how purple test cases become automated regression tests with Atomic Red Team, Caldera and breach and attack simulation, and the limits and risks of automation.

25 min

Pro This part is included in the Pro plan. Sign in or see the plans to continue.

8

Purple teaming in regulated tests

Goal: Understand how TIBER-EU 2025, DORA TLPT and SAMA FEER use replay and purple teaming in the closure of threat-led tests.

20 min

Pro This part is included in the Pro plan. Sign in or see the plans to continue.

9

Building the purple programme; cheat sheet and assessment

Goal: Design a purple teaming programme: cadence, governance, maturity, metrics, and how it fits with red teaming, the SOC and detection engineering.

20 min

Pro This part is included in the Pro plan. Sign in or see the plans to continue.

Quick reference (the cheat-sheet lessons and the PDF content)
1

Red + Blue = Purple

JuniorMidExpert

A way of working, not a third team: Red and Blue share results live, not in a report weeks later.

RED TEAMEmulate realattacker TTPsFind the gapsBLUE TEAMDetect, triageand respondClose the gapsPURPLESame room,one techniqueat a time,fix it liveAttackDefend
2

The exercise loop

JuniorMid

A technique is closed only when the re-test produces an alert the SOC can triage.

1. Pick techniquefrom threat intel2. Red executesAtomic, Caldera, manual3. Blue observeslogged? alerted? triaged?4. Score the gaplog, alert, response gaps5. Build or tuneSigma rule, EDR policy6. Re-testsame procedure, prove the fixnext techniqueevery result recorded

Ground rules for the room

  • No blame: a missed detection is a finding, not a failure
  • Red shares every command and its UTC start time
  • One technique at a time; score it before moving on

What you leave with

  • New or tuned detection rules, already tested
  • ATT&CK Navigator layer: before and after
  • A backlog of gaps with owners and a retest date
3

Roles in the room

JuniorMid
RoleResponsibility
Exercise leadRuns the agenda, keeps time, owns the scorecard
Red operatorRuns each procedure; announces start and stop times
Blue analyst / hunterSearches telemetry live; reports what is seen
Detection engineerWrites or tunes the rule on the spot
CTI analystChooses techniques that matter for your sector and region
ScribeRecords timestamps, evidence and action items
4

Planning an emulation

MidExpert

Use MITRE ATT&CK group pages and the Center for Threat-Informed Defense emulation plans as starting points.

1Adversarygroups targetingyour sector2TTPsATT&CK pages,CTI reports3Prioritizecommon, high impact,undetected first4Proceduresexact commands,expected telemetry5Safetytest hosts, stopconditions, rollback
5

Score every technique

JuniorMid
Not loggedno telemetryLogged onlyevents, no alertAlertedrule firedAlerted + triagedanalyst got it rightPreventedblocked and alertedEach re-test should move a technique at least one step to the right
ScoreMeaningNext action
Not loggedNo telemetry for the activityFix the data source first: Sysmon, audit policy, cloud logs
Logged onlyEvents exist, no alertWrite a detection
AlertedA rule firedCheck fidelity and write triage guidance
Alerted + triagedAnalyst identified it correctlyMeasure time to triage
PreventedBlocked by a controlConfirm the block also logs and alerts

Red team report vs purple exercise

Red teamPurple
GoalProve impactImprove detection
Blue aware?Usually noYes, in the room
OutputReport weeks laterRules tuned same day

When to run one

  • After a new EDR, SIEM or log source goes live
  • When a new threat report names your sector
  • Before and after a red team operation
  • Quarterly, to catch detections that broke
6

Starter technique set (high value, safe to run)

JuniorMid
ATT&CK IDTechniqueExpected signal
T1059.001PowerShell with an encoded commandScript-block log 4104, EDR alert
T1003.001LSASS memory accessSysmon 10 targeting lsass.exe
T1558.003KerberoastingBurst of 4769 with RC4 encryption
T1053.005Scheduled task persistence4698; Sysmon 1 for schtasks.exe
T1547.001Registry run keySysmon 13 on Run keys
T1021.002SMB / admin share lateral movement4624 type 3 + 5140 / 5145 share access
T1070.001Clear Windows event logs1102 / 104
T1110.003Password sprayingMany 4625 or sign-in failures from one source
T1567Exfiltration to cloud storageProxy / CASB upload volume anomaly
T1486Data encrypted for impact (simulated)Mass file rename / write from one process
7

Running an Atomic test

Mid
PowerShell · Invoke-AtomicRedTeam, lab host
# See what a test does before running it
Invoke-AtomicTest T1059.001 -ShowDetailsBrief
# Install anything the test needs
Invoke-AtomicTest T1059.001 -TestNumbers 1 -GetPrereqs
# Run it, note the exact start time (UTC)
Invoke-AtomicTest T1059.001 -TestNumbers 1
# Always clean up afterwards
Invoke-AtomicTest T1059.001 -TestNumbers 1 -Cleanup
8

Tooling

JuniorMid
NeedTools
Atomic testsAtomic Red Team
Automated emulationMITRE Caldera, Prelude, SCYTHE, AttackIQ, SafeBreach
Plan and trackVECTR, ATT&CK Navigator layers
Detection contentSigma, Elastic / Splunk / Sentinel rule repos
Show coverageNavigator heatmap, before vs after
9

Sample one-day exercise

JuniorMidExpert

Four attack blocks of three or four procedures each, with live tuning before the debrief.

09:00Kick-offscope, safety09:30Initial access+ execution11:00Credentials+ discovery12:30Breaklunch13:30Lateral move+ persistence15:00Exfil + impactsimulated16:00Tune + retesttop gaps16:45Debriefowners, dates
10

Program metrics

MidExpert

Measure the program

  • Detection coverage: share of priority techniques at Alerted or better
  • Time to detect per technique: red start time to first alert
  • Gap closure rate: gaps fixed and re-tested within 30 days
  • Regression rate: passing techniques that now fail (test quarterly)
11

Program maturity

Expert

From ad hoc to continuous

  1. Ad hoc: one-off exercise after an incident
  2. Scheduled: quarterly exercises with a scorecard
  3. Threat-led: techniques chosen from current intel
  4. Continuous: automated emulation (BAS) running daily, humans on the gaps
Try it free threatai.net/purple-team picks ATT&CK techniques, gives you the Atomic Red Team test and the logs to check, and records prevented / alerted / logged / missed with a Navigator export.

Key terms

Purple teaming
Red and blue working together to execute, observe, fix and retest attack techniques.
Test case
One procedure for one technique, with expected telemetry and detection written in advance.
Outcome
Prevented, alerted and handled, alerted, logged, or not observed.
Logic gap
Data exists but no detection fires.
Regression test
An automated rerun of a closed test case to make sure it still works.
Micro emulation plan
A short, focused emulation of a common behaviour (CTID).

Hands-on lab

Pro This part is included in the Pro plan. Sign in or see the plans to continue.

Knowledge check

Answer all five questions, then check your answers. Each answer comes with a short explanation.

1Purple teaming's main value is:
2A rule fired but the analyst closed the alert wrongly. Gap type?
3Why test 2-3 procedures per technique?
4Under TIBER-EU 2025, closure purple teaming happens:
5Automated regression tests are best for:

Further reading

Put it into practice

Use these ThreatAI tools to apply what you learned to your own environment.