Emulation, ATT&CK and the purple loop
Unit 1 of 5 in Adversary emulation and purple teaming.
You will be able to explain what adversary emulation is for, why ATT&CK gives red and blue a shared language, and how the purple loop runs on a VM you own.
Lesson
Emulation tests the defense, not the app
A penetration test asks whether a tester can get in and how far they can go. Adversary emulation asks a narrower question: when a known adversary behaviour happens here, do our sensors and people see it? MITRE's description of its adversary emulation plans states the purpose in these words: to let defenders test their networks and defenses more effectively by enabling red teams to model adversary behaviour as described by ATT&CK, and to create analytics for ATT&CK behaviours rather than for one specific indicator or tool.
That last point is the heart of purple teaming. A detection for a single file name or tool breaks the moment the tool changes. A detection for the behaviour keeps working. The measure of success is not whether the tester got through but whether the defenders learned what they can and cannot see.
ATT&CK is the shared language
MITRE describes ATT&CK as a globally accessible knowledge base of adversary tactics and techniques based on real-world observations, used as a foundation for threat models and methodologies in the private sector, government and the security community, and free to use. A technique has an identifier, a description, mitigations and detection guidance, so a red tester can say run T1033 and a blue analyst knows what that means and where to look.
Tactics are the why (for example Discovery, Persistence, Execution) and techniques are the how. This class works through those three tactics, one technique at a time, because the same loop works for each.
Plans come from threat reports, and have the same limits
MITRE's emulation plans are prototype documents built from publicly available threat reports and ATT&CK. The page is candid about their limits: many reports focus on malware reverse engineering, initial compromise and command-and-control, and not many describe how attackers chain techniques or work on the keyboard, so the plans inherit that gap, and MITRE supplies a sample way to string tactics together from general red-team experience. The plans also come with a field manual that breaks the behaviour into command-level examples mapped to ATT&CK.
The planning lab asks you to do the same from a public report: extract the reported techniques, map each to an ATT&CK identifier, sequence them, record how confident the intelligence is and never invent a step. A plan built that way says what was reported and what was assumed.
A library of small tests, and a platform to run them
Red Canary describes Atomic Red Team as a library of tests mapped to ATT&CK that security teams can use to test their environments quickly, portably and reproducibly. The tests can be run directly from the command line without installing anything, which is exactly why you read a test before you run it and check what its cleanup does.
MITRE describes Caldera as an adversary emulation platform designed to run autonomous breach-and-attack simulation exercises, that can also run manual red-team engagements or automated incident response, built on ATT&CK. It has a core system with a command-and-control server, a programming interface and a web interface, plus plugins for agents and sets of techniques. Both tools are for your own lab and your own scope.
The loop, and a bench to run it on
The purple loop has four steps. Run a small documented test. Look for the evidence it should leave. Tune the detection if the evidence was missing or drowned in noise. Validate by running the test again. Between loops, you write down the result, including the blind spots.
The bench for the loop is a Linux virtual machine you own with a clean snapshot taken before anything else and the audit daemon installed. The snapshot is what lets you say after every test that the machine is back to normal. The first lab builds it, and the validation lab shows the same loop with a Windows-style marker test and Sysmon events.
Key points
- Emulation asks whether defenders can see a known behaviour; detections should target behaviour, not one tool.
- ATT&CK gives red and blue the same identifiers: tactics are the why, techniques the how.
- Threat-report plans inherit the report's gaps; record confidence and never invent a step.
- The loop: run one documented test, look for evidence, tune, validate, then write it down; snapshot first.
Sources
- MITRE ATT&CK (home page)
- MITRE ATT&CK: Adversary Emulation Plans
- Atomic Red Team README (Red Canary, GitHub)
- MITRE Caldera documentation: home page
Lecture
Red, blue and purple: how the teams fit together: How red, blue, white and purple teams fit together and why the aim of an exercise is learning, not winning.
Practice in the labs
Build the bench and run the loop once on a marker test; then turn a public threat report into an emulation plan.
- Build a purple-team bench: auditd on a Linux VM you own, with a clean snapshot (Purple Discovery 1 of 6): You take a clean snapshot, install the audit daemon, write a first rule, find your own event and measure how noisy a broad rule is: the bench for the rest of the class.
- Validate your detections with Atomic Red Team: You run one low-risk atomic test after reading it, check whether your detection fired, tune, clean up, and learn that one test is one variation, not a checkmark.
- Build an adversary emulation plan from CTI: You turn a public report into an ordered emulation plan with ATT&CK identifiers, intelligence confidence and authorization written first. It is advanced and takes several hours.
Also try, in the simulators
- Test it, tune it, keep it honest (Detection Lab lesson): A short lesson on testing a detection against real and benign data and tuning it, the loop you just ran.
Knowledge check
- According to MITRE's description of its emulation plans, what is the purpose? Answer: To let defenders test their defenses and build analytics for behaviours, not for one indicator or tool. The page says plans let red teams model adversary behaviour as described by ATT&CK so defenders can test and create analytics for behaviours rather than a specific indicator or tool.
- Why can an emulation plan built from public threat reports have gaps? Answer: Many reports describe malware and initial compromise but few describe how attackers chain techniques on the keyboard. MITRE says the plans have the same limitations as the reports they are built from and supplies a sample way to string tactics together.
- Why do you read an Atomic Red Team test before you run it? Answer: It can be run directly from the command line, so you must know what it does and what its cleanup undoes. The README says tests can be executed with no installation, which is convenient and is also why reading comes first.
- What is the purpose of the clean snapshot taken before any test? Answer: To prove afterwards that the machine is back to normal, and to undo anything a cleanup missed. Every loop ends with a statement that the system is back to its starting state; the snapshot is the reference for that.
Back to the syllabus or see all classes.