00->1
Learning pathStep 16 of 62Defence, offence and intelligence ← All writeups

Blue, Red and Purple Teams, Explained

If you are reading this, you have probably seen the words "red team", "blue team" and "purple team" and wondered what the colours mean. The answer is simpler than the jargon suggests.

By the end you will be able to explain what each team does and why it exists, tell a red team exercise apart from a penetration test (a very common mix-up), describe how an exercise runs from start to finish, and spot the common myths. Everything is explained from scratch.


1. The idea behind the colours

Think of a football team that wants to improve. Playing only against itself would teach it little. So it plays practice matches against a team that behaves like a real opponent. Afterwards, both sides review what happened.

Security works the same way. Real attackers do not announce themselves, so organizations create safe, authorized practice attacks and watch how their defences cope.

This idea is old. It started in military war-gaming in the early 1960s, when the RAND Corporation ran simulations for the US military in which the "red team" played the Soviet Union and the "blue team" played the United States. The red and blue naming then moved into cybersecurity (Wikipedia: Red team).

The three colours in this guide:

  • Red team: plays the attacker.
  • Blue team: plays the defender.
  • Purple team: the two working together, so that each learns from the other.

2. The red team: the attackers

Definition

NIST's glossary, quoting the US standard CNSSI 4009-2022, defines a red team as (source):

"A group of people authorized and organized to emulate a potential adversary's attack or exploitation capabilities against an enterprise's security posture."

Three words matter most:

  • Authorized: a red team has permission. That is what separates it from criminals.
  • Emulate: it imitates how a real attacker would behave.
  • Adversary: it copies the attackers that actually threaten this organization, not generic ones.

A red team works for the organization it tests, then reports back so defences can improve.

What a red team does

A red team has a goal and tries to reach it the way a real attacker would. A goal might be "obtain access to the customer database" or "reach the finance team's file server". To get there it may use:

  • Research on the organization (called reconnaissance)
  • Technical attacks on networks, computers and applications
  • Social engineering, which means tricking people, for example with a deceptive email or phone call
  • In some tests, physical attempts to enter buildings

NIST's red-team control (SP 800-53 Rev. 5, CA-8(2)) says red team exercises may include technology-based attacks and social engineering-based attacks, the latter meaning interactions "via email, telephone, shoulder surfing, or personal conversations" (SP 800-53 Rev. 5). It also says they "extend the objectives of penetration testing by examining the security and privacy posture of organizations and the capability to implement effective cyber defenses". NIST's glossary defines a red team exercise as a simulated adversarial attempt, reflecting real-world conditions, to compromise an organization's missions or business processes.

Why attackers' methods are used

Red teams usually copy the tactics, techniques and procedures (TTPs) of real threat groups. The TIBER-EU framework describes this as intelligence-led: the test mimics TTPs of threat actors who are believed to pose a genuine threat to the organization. MITRE's ATT&CK knowledge base gives red teams "a common language and framework" to emulate specific threats and plan their operations (MITRE ATT&CK).

What a red team is not trying to do

It is not trying to find every vulnerability, and it is not trying to cause damage. Its job is to answer a question such as: "If a determined attacker came after us, would we stop them, notice them, or neither?"


3. The blue team: the defenders

Definition

NIST's glossary defines the blue team, again quoting CNSSI 4009-2022 (source):

"The group responsible for defending an enterprise's use of information systems by maintaining its security posture against a group of mock attackers (i.e., the Red Team)."

Defending a system is a continuous job, not a one-off event. The same glossary adds that the blue team must defend over extended periods in realistic operating conditions.

What a blue team does

In plain terms, the blue team has four jobs: prevent, detect, respond and improve.

Job Examples
Prevent Hardening systems, applying patches, managing vulnerabilities, configuring firewalls and access controls
Detect Watching logs and alerts with tools such as a SIEM (a system that collects and correlates logs) and endpoint detection tools (see Security Operations)
Respond Investigating alerts, containing an incident, removing the attacker, restoring services
Improve Learning lessons after incidents and tuning defences

Typical blue team tools are log management platforms, SIEM software and forensic analysis tools. Blue team work includes threat hunting (actively searching for signs of attackers that alarms have not caught).

Two meanings to be aware of

The word "blue team" is used in two ways, and it helps to know both:

  1. The ongoing defenders. This is the everyday meaning above: the people who defend the organization.
  2. In a formal exercise, the TIBER-EU framework (January 2025 edition) defines the blue team as all staff at the tested organization, its third-party service providers and any other party deemed relevant who are not part of the control team and are not aware of the test. (The control team, called the white team in older documents, is explained below.) So in a real exercise, "blue team" can mean the entire security and IT operation, not only the monitoring staff.

NIST's glossary also lists a second, older definition: a group that performs operational network vulnerability evaluations and gives mitigation advice to customers who need an independent review. If you meet this in older documents, it is a different use of the same word.


4. The purple team: collaboration

What it is

A purple team is not usually a third group of people. It is a way of working in which the red team and the blue team cooperate openly and share what they learn as they go. One practitioner source puts it this way: "In most organizations the purple team is not a separate group but an operating model" (Picus Security).

Purple team is a less formally defined term than red and blue, so descriptions vary a little between vendors. The core idea is consistent: red and blue collaborate throughout instead of only at the end.

How it differs from a red team exercise

Red team exercise Purple team exercise
Does the blue team know in advance? Usually no Yes
Do red and blue talk during the test? No, only at the end Yes, throughout
Main aim Test how well the whole organization really responds Improve specific detections and responses quickly
Style Realistic and secret Open and step by step

How a purple team exercise runs

The pattern is a loop: attack, observe, fix, re-test.

  1. The team agrees on one attacker technique to test, often picked from the MITRE ATT&CK catalogue.
  2. The red side performs it safely.
  3. The blue side checks: did our tools see it? Did an alert fire? Did anyone notice?
  4. If not, both sides work out why and the blue side fixes it (a new alert rule, a missing log source, a setting change).
  5. The red side runs the technique again to confirm the fix works.
  6. They move on to the next technique.

Purple teaming inside a formal test

The ECB's TIBER-EU Purple Teaming Guidance (January 2025) describes purple teaming as "a form of a collaborative activity that involves both the red team testers (RTT) and the blue team (BT) in a TIBER-EU test and their corresponding offensive and defensive actions". Inside a TIBER-EU test it happens at only two points:

  • Limited purple teaming during active testing. This is "a last resort, once all other options have been exhausted", used to continue a test that could not otherwise go on safely or meaningfully. It needs a proposal from the control team and the agreement of the authority's test manager.
  • A purple teaming exercise in the closure phase. This is a fixed step after the blue team has been told about the test. The two sides focus on topics they pick together, such as vulnerabilities found during the test or issues that could not be tested, and the blue team may even cooperate with the red team testers.

The guidance adds that purple teaming "is not intended to replace the confidential active red teaming phase" of a test.

Tools commonly used

  • MITRE ATT&CK: a catalogue of real attacker behaviour, organized so that everyone uses the same names (see Threats and Vulnerabilities for how it compares with the Cyber Kill Chain and D3FEND). MITRE says defenders can use it to develop analytics that detect adversary techniques and to assess their capabilities and decide which tools or logging to implement.
  • Atomic Red Team: an open-source "a library of tests mapped to the MITRE ATT&CK® framework" (GitHub). Each small test simulates one specific behaviour so that defenders can check whether they would see it.
  • Adversary Emulation Library: from MITRE's Center for Threat-Informed Defense. It contains emulation plans that let organizations evaluate their defences against real-world threats. Full plans emulate a specific adversary's whole attack chain (examples include APT29, FIN7 and Carbanak), and micro plans focus on a smaller set of behaviours such as web shell deployment or Active Directory enumeration (library).

A limitation worth knowing

When red and blue work closely together, they can start to share the same assumptions and miss things that a fresh pair of eyes would catch. This is a known downside, often called groupthink, and it is why organizations still use independent red team tests from outside as well.


5. The white team: the referee

You will meet this team in formal exercises. Per NIST's glossary (source), the white team is:

  • A small group who have prior knowledge of the unannounced red team activity, who watch the test and keep it within its agreed boundaries.
  • The group that manages the engagement between red and blue like a referee: it enforces the rules, scores performance, resolves issues and runs the after-action review.

The TIBER-EU framework used the name White Team in its 2018 edition. Its January 2025 edition calls the same idea the Control Team (CT): a small group at the tested organization, led by a Control Team Lead, who know about the test, determine the scope (including its board approval), the scenarios and the risk controls, and coordinate all test activity. The test manager at the supervising authority validates these.

It typically sets the rules of engagement, which NIST SP 800-115 defines as "detailed guidelines and constraints regarding the execution of information security testing", agreed before testing starts. The white team is how a secret test stays safe: someone senior always knows, so a red team action is never mistaken for a real emergency and cannot go outside the agreed limits.


6. Red, blue and purple side by side

Red team Blue team Purple team
Role Attacker Defender Collaboration between the two
Mindset "How could I get in and reach the goal?" "How do I stop, spot and recover from this?" "Did we catch it, and how do we catch it next time?"
Main output A report of what was achieved and how, plus a replay Detections, alerts, response and hardening Tested and improved detections
Success looks like Reaching the agreed goal, or showing where defences held Detecting and stopping the attack A measurable list of fixed gaps
Typical question "Can an attacker reach the database?" "Would we notice if they did?" "Which techniques do we miss, and are they fixed now?"

One important point: the aim is learning, not winning. TIBER-EU says a test "will not result in a pass or fail" but gives everyone insight into strengths and weaknesses. A red team "win" is not a defeat for the defenders; it is the most useful information they could get before a real attacker finds the same hole.


7. Red team vs penetration test

This is the most common confusion. Both involve authorized attacks, but they answer different questions.

NIST defines a penetration test as a test methodology in which assessors, typically working under specific constraints, attempt to circumvent or defeat the security features of a system (source).

Penetration test Red team exercise
Question "What weaknesses can be found and exploited in this system?" "Can a realistic attacker reach our critical goals, and would we detect and respond?"
Scope Defined systems or applications The organization as a whole: technology, people and processes
Defenders informed? Usually yes Usually not, apart from a few people
Approach Find as many issues as possible Pursue a goal the way a real attacker would
Social engineering / physical Often excluded Often included
Report List of vulnerabilities, risk and fixes Story of the attack path, what was detected and what wasn't

NIST's own wording in SP 800-53 makes the same point: "While penetration testing may be primarily laboratory-based testing, organizations can use red team exercises to provide more comprehensive assessments that reflect real-world conditions."

Neither is better. (How a penetration test is planned and run, and how it differs from a vulnerability scan, is in Security Testing.) A penetration test is the right tool for finding and fixing weaknesses in a system. A red team exercise suits an organization that already has reasonable defences and wants to test how they perform against a realistic attacker.


8. How a formal exercise runs

The European Central Bank's TIBER-EU framework (Threat Intelligence-based Ethical Red Teaming; January 2025 edition) is a well-documented example. It was designed for financial entities in the European Union, although the framework "can be used by any type or size of entity across the financial and other sectors". It is built so that a test completed under it also meets the threat-led penetration testing requirements of the EU's Digital Operational Resilience Act (DORA), provided the competent authorities' formal requirements are met. The process has three mandatory phases:

  1. Preparation: the organization forms its control team, whose lead determines the scope and gets it approved by the board, and sets the scenarios and risk controls (validated by the authority's test manager). It also procures its providers. An external threat intelligence provider is mandatory. External red team testers are "strongly encouraged", and internal testers may be used only in exceptional circumstances with the test manager's prior approval.
  2. Testing: the threat intelligence provider produces a targeted threat intelligence report describing realistic attack scenarios. The red team testers write a test plan and then carry out the active test against the organization's real, live production systems, mimicking the real attackers.
  3. Closure: the red team and the blue team write their reports. The blue team is told about the test for the first time. The two sides then replay the test, hold a purple teaming exercise, and agree a remediation plan of fixes, followed by feedback and an attestation.

Three things the framework stresses, which apply to any serious exercise:

  • Secrecy with control. TIBER-EU tests are "to be performed without the prior knowledge" of the organization's security or response capability, which is the blue team. Only a small control team knows about the test. The framework says it is critical that the blue team be "completely excluded from the preparation and conduct" of the test.
  • Risk management. Because the systems are real, "the possibility of causing a denial-of-service incident, an unexpected system crash, damage to critical live production systems, or the loss, modification, or disclosure of data, highlights the need for active and robust risk management".
  • Independence. The framework says external testers "provide a fresh and independent perspective, which may not always be feasible with internal teams that have grown accustomed to the internal systems, people and processes".

9. A simple worked example

Here is one small, safe exercise to show how the three roles fit together. The attacker technique names below come from the MITRE ATT&CK tactics list (such as Initial Access, Persistence and Credential Access).

Scenario: the organization wants to know whether it would notice a suspicious scheduled task being created on a workstation, a technique attackers use to keep access after a restart (ATT&CK tactic: Persistence).

Step Who What happens
1 Both Agree the technique, the test machine and the time window, and note them in the rules of engagement
2 Red Creates a harmless test scheduled task on the agreed machine, the way an attacker's tool would
3 Blue Checks the logs and alerts: was the task seen? Did an alert fire?
4 Both If nothing fired, find out why. Perhaps the right log was not being collected
5 Blue Turns on the missing log and adds an alert rule
6 Red Runs the test again
7 Blue Confirms the alert now fires, and records the result

This single loop is a purple team exercise in miniature. A full red team exercise would instead run a whole attack chain without telling the blue team, and then review everything at the end.


10. Common myths

Myth The facts
"A purple team is a third group of staff" Usually it is a way of working together, not a separate team
"Red team and penetration test are the same thing" They have different goals, scope and level of secrecy (section 7)
"The red team is out to hurt the company" It is authorized, works for the company and follows rules of engagement
"If the red team succeeds, the blue team failed" The purpose is learning; TIBER-EU says there is no pass or fail
"The blue team is just the SOC" In a formal exercise it can mean everyone outside the control (white) team who does not know about the test
"Red teams are always secret" Red team exercises often are; purple team exercises are open by design

11. Where to learn and practise

You can learn each side with hands-on, authorized practice:

  • Defence (blue): TryHackMe's SOC Level 1 path, and Hack The Box Academy's Security Monitoring & SIEM Fundamentals module.
  • Attack (red): TryHackMe's Jr Penetration Tester path and PortSwigger's free Web Security Academy.
  • Shared language: read the MITRE ATT&CK tactics, then look at the Atomic Red Team tests and the Adversary Emulation Library to see how techniques are tested.
  • How a real programme is structured: the ECB's TIBER-EU framework (January 2025) and its Purple Teaming Guidance.

Platforms change which paths and modules are free, so check each one's current plan before you start. Always practise on your own lab, on training platforms built for it, or on systems where you have written permission. Unauthorized testing is illegal even when the intention is good.


Closing

Red attacks, blue defends, and purple joins them so the lessons are not lost. A white team keeps the whole game fair and safe. Behind all four sits one idea: the best time to find a weakness is in a controlled practice session, not during a real attack.

Keep these points:

  • Red: authorized attackers who copy real threats to reach a goal.
  • Blue: the defenders who prevent, detect, respond and recover.
  • Purple: a collaboration where red and blue test, fix and re-test together.
  • White: the referee who sets the rules and keeps it safe.
  • Penetration test vs red team: finding weaknesses in a system vs testing whether a realistic attacker could reach a goal and be caught.

If you can explain the table in section 6 and the loop in section 9 in your own words, you have this topic.