A red team attacks, a blue team defends, and a purple team is the two working together so detections improve on the spot. The color coding in cyber security borrows from military exercises, where the “red” force attacks and the “blue” force defends. Understanding the split matters because it maps directly to how you should structure and test your security. Here is the clear breakdown.
Blue team: the defenders
The blue team is everyone responsible for defending the organization day to day. Their work is continuous and broad:
- Monitoring, logging, and alerting (SIEM, EDR)
- Incident detection and response
- Hardening, patching, and secure configuration
- Threat hunting and forensics
The blue team’s job is to prevent, detect, and respond. Its blind spot: it operates on assumptions about whether its controls and detections actually work.
NIST’s glossary describes the blue team as the group responsible for defending an enterprise’s use of information systems. Its headline metrics are mean time to detect and mean time to respond.
Red team: the attackers
The red team simulates a real adversary to test those assumptions. Rather than checking a list of vulnerabilities, a red team pursues a specific objective (reach the crown-jewel data, obtain domain admin) using whatever works: phishing, exploitation, physical access, and lateral movement, while trying to stay undetected. NIST’s glossary describes a red team as a group authorized and organized to emulate a potential adversary’s attack capabilities, and our guide to red team tools covers what operators use.
The red team’s job is to prove what a determined attacker could achieve, and crucially, whether the blue team would notice. Its output is not just a list of flaws but a narrative: here is the path we took, here is where you saw us, here is where you did not. Acting on it is the subject of what to do after a red team exercise.
Red team vs penetration testing
People conflate these too. The difference is scope and intent:
- A penetration test aims to find as many vulnerabilities as possible in a defined scope. Breadth of findings.
- A red team engagement is goal-based and stealthy, testing detection and response against a determined adversary pursuing one objective. Depth of realism.
Most organizations should be doing penetration testing well before they are ready for red teaming. We cover when you are ready in is your organization ready for red teaming?
The full comparison is in our guide to red teaming vs penetration testing.
Purple team: the two working together
A purple team is not a separate group, it is a mode of working where red and blue collaborate. The red team attacks while the blue team watches their own detections fire (or fail) in real time, and both sides improve on the spot. It turns a pass-or-fail exercise into a training loop that measurably strengthens detection and response. In a purple team assessment, each technique is mapped to MITRE ATT&CK, and anything that runs unseen gets a new detection and a re-run to prove it now fires.
How a purple team exercise works
- Pick the techniques. Both sides agree a list of MITRE ATT&CK techniques that match the threats you face.
- Run one technique. The red operator executes it, by hand or with an emulation tool such as Atomic Red Team or Apache Caldera, and tells the blue team when.
- Check the telemetry. The blue team looks for the log, the alert, and the response. Each technique is marked detected, logged only, or missed.
- Fix and re-run. A missed technique gets a new detection or log source, then runs again until the alert fires.
- Record coverage. The output is a technique-by-technique coverage map and the list of detections added.
In the room: the red operators, the SOC analysts and detection engineers, and whoever owns the SIEM and EDR.
Should the blue team know about a red team exercise?
For a red team exercise, usually not. The point is to measure real detection and response, so only a small control group knows the dates and scope. NIST’s glossary calls that group the white team: people who know about the unannounced red team activity, referee it, and keep it within agreed limits. For a purple team exercise the answer is the opposite, since the blue team takes part in every step.
Side by side: red team vs blue team vs purple team
| Blue team | Red team | Purple team | |
|---|---|---|---|
| Role | Defend | Attack | Attack and defend together |
| Who | In-house security staff or a managed SOC | Independent operators, usually external | Red operators and your defenders in one session |
| Mode | Continuous | Periodic, objective-based | Periodic, technique by technique |
| Goal | Prevent, detect, respond | Prove what an attacker could do | Build and prove detections |
| Measures | Coverage, response time | Whether defenses actually hold | Techniques detected before and after |
| Output | Alerts, incident reports, metrics | Attack narrative and detection gaps | Coverage map and new detections |
| Invadel price | Not a service we sell | From $12,500 | Scoped and quoted |
Which do you need?
Every organization needs blue team capability, that is your standing defense. You bring in an external red team to test that defense objectively, because internal teams cannot fully assess their own blind spots (our list of red team companies compares providers). And the fastest way to improve is to run them together as a purple team exercise.
If you have never been tested, the usual order is a penetration test first, a purple team exercise to build detections second, and an unannounced red team third. A tabletop exercise, where the team talks through an incident on paper, is a cheap rehearsal.
The relationship maps to a broader idea we explore in defensive vs offensive security: defense keeps you running, offense keeps you honest.
Frequently asked questions
What is the difference between a red team, a blue team and a purple team? The red team attacks, the blue team defends, and a purple team exercise puts both in one session so every attack technique is checked against a detection.
Is a purple team better than a red team? They answer different questions. A purple team exercise builds detection coverage quickly. A red team checks, unannounced, whether your people and tooling catch a real intrusion.
What is a white team in cyber security? The small control group that knows a red team exercise is running, referees it, and steps in if something goes wrong.
If you want to find out whether your blue team would actually catch a determined attacker, scope a red team engagement and we will show you. Red team pricing starts at $12,500.
Written by
Mark Kiss, Founder & CEO
15+ years in the field. Focus: Offensive security & strategy. Part of the team that scopes, tests, and reports for our clients. Full profile →