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
- 0Start here: what purple teaming is and why it worksJuniorMidExpert25 min · 3 exercises
- 1Roles, environment and rulesJuniorMidExpert25 min · 2 exercises
- 2Threat-informed test plansJuniorMidExpert25 min · 3 exercises
- 3Anatomy of a test case and its outcomesJuniorMidExpert25 min · 2 exercises
- 4Running the exerciseJuniorMidExpert25 min · 3 exercises
- 5Closing gaps: detection engineering in the loopJuniorMidExpert25 min · 3 exercises
- 6Measuring coverage and progressJuniorMidExpert25 min · 2 exercises
- 7Automation and continuous validationJuniorMidExpert25 min · 3 exercises
- 8Purple teaming in regulated testsJuniorMidExpert20 min · 2 exercises
- 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.
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.
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.
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.
| Framework or resource | What it gives the purple team | Module |
|---|---|---|
| MITRE ATT&CK v20 | test design and reporting language | 2, 6 |
| CTID Adversary Emulation Library | full and micro emulation plans of real actors | 2 |
| Atomic Red Team, MITRE Caldera | small tests and automated emulation | 3, 7 |
| Sigma, MITRE CAR | detections to write or adapt | 5 |
| Summiting the Pyramid (CTID) | how robust a detection is | 5 |
| MITRE D3FEND | naming the control that fixes a gap | 5 |
| Pyramid of Pain | why behaviour detections last | 5 |
| TIBER-EU 2025, DORA TLPT, SAMA FEER | purple teaming in regulated tests | 8 |
| VECTR | tracking test cases and outcomes | 6 |
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.
Quick check: Purple teaming's main goal is to:
Collaboration and retesting, not competition.
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
Open library of small tests mapped to ATT&CK.
Use it for: atomic purple tests, regression
Integrates with: PowerShell, CI
Automated adversary emulation platform.
Use it for: chained scenarios at scale
Integrates with: ATT&CK, agents
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
Layers for plans and heat maps.
Use it for: before and after coverage
Integrates with: JSON layers
Vendor-neutral detection rules.
Use it for: fixing logic gaps portably
Integrates with: Splunk, KQL, Elastic
Where alerts appear and are triaged.
Use it for: observing outcomes
Integrates with: EDR, cloud logs
The purple mandate
Goal: A sponsor, objectives (techniques to defend), and agreement that red and blue share everything during rounds.
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.
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.
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.
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.
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.
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.
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.
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.
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.
Quick reference (the cheat-sheet lessons and the PDF content)
Red + Blue = Purple
A way of working, not a third team: Red and Blue share results live, not in a report weeks later.
The exercise loop
A technique is closed only when the re-test produces an alert the SOC can triage.
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
Roles in the room
| Role | Responsibility |
|---|---|
| Exercise lead | Runs the agenda, keeps time, owns the scorecard |
| Red operator | Runs each procedure; announces start and stop times |
| Blue analyst / hunter | Searches telemetry live; reports what is seen |
| Detection engineer | Writes or tunes the rule on the spot |
| CTI analyst | Chooses techniques that matter for your sector and region |
| Scribe | Records timestamps, evidence and action items |
Planning an emulation
Use MITRE ATT&CK group pages and the Center for Threat-Informed Defense emulation plans as starting points.
Score every technique
| Score | Meaning | Next action |
|---|---|---|
| Not logged | No telemetry for the activity | Fix the data source first: Sysmon, audit policy, cloud logs |
| Logged only | Events exist, no alert | Write a detection |
| Alerted | A rule fired | Check fidelity and write triage guidance |
| Alerted + triaged | Analyst identified it correctly | Measure time to triage |
| Prevented | Blocked by a control | Confirm the block also logs and alerts |
Red team report vs purple exercise
| Red team | Purple | |
|---|---|---|
| Goal | Prove impact | Improve detection |
| Blue aware? | Usually no | Yes, in the room |
| Output | Report weeks later | Rules 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
Starter technique set (high value, safe to run)
| ATT&CK ID | Technique | Expected signal |
|---|---|---|
| T1059.001 | PowerShell with an encoded command | Script-block log 4104, EDR alert |
| T1003.001 | LSASS memory access | Sysmon 10 targeting lsass.exe |
| T1558.003 | Kerberoasting | Burst of 4769 with RC4 encryption |
| T1053.005 | Scheduled task persistence | 4698; Sysmon 1 for schtasks.exe |
| T1547.001 | Registry run key | Sysmon 13 on Run keys |
| T1021.002 | SMB / admin share lateral movement | 4624 type 3 + 5140 / 5145 share access |
| T1070.001 | Clear Windows event logs | 1102 / 104 |
| T1110.003 | Password spraying | Many 4625 or sign-in failures from one source |
| T1567 | Exfiltration to cloud storage | Proxy / CASB upload volume anomaly |
| T1486 | Data encrypted for impact (simulated) | Mass file rename / write from one process |
Running an Atomic test
# 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 -CleanupTooling
| Need | Tools |
|---|---|
| Atomic tests | Atomic Red Team |
| Automated emulation | MITRE Caldera, Prelude, SCYTHE, AttackIQ, SafeBreach |
| Plan and track | VECTR, ATT&CK Navigator layers |
| Detection content | Sigma, Elastic / Splunk / Sentinel rule repos |
| Show coverage | Navigator heatmap, before vs after |
Sample one-day exercise
Four attack blocks of three or four procedures each, with live tuning before the debrief.
Program metrics
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)
Program maturity
From ad hoc to continuous
- Ad hoc: one-off exercise after an incident
- Scheduled: quarterly exercises with a scorecard
- Threat-led: techniques chosen from current intel
- Continuous: automated emulation (BAS) running daily, humans on the gaps
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
Knowledge check
Answer all five questions, then check your answers. Each answer comes with a short explanation.
Further reading
- TIBER-EU Purple Teaming Guidance (2025) ecb.europa.eu
- CTID Adversary Emulation Library github.com
- Atomic Red Team github.com
- MITRE Caldera caldera.mitre.org
- VECTR vectr.io
- Summiting the Pyramid (CTID) ctid.mitre.org
Put it into practice
Use these ThreatAI tools to apply what you learned to your own environment.