Purple teaming in cybersecurity: how red and blue teams work together to build resilience

 Security testing

What does purple teaming mean in cybersecurity? Purple is one of several colours used to name the different roles involved in testing an organisation’s defences. Why ‘purple’? It makes sense once you know the colours assigned to the two main testing roles: attacker and defender.

The red team plays the attacker. Its members are security specialists who use techniques similar to those used by real bad actors. They test whether it is possible to break in and achieve a goal (such as accessing sensitive data), usually without the defenders knowing when the 'attack' will occur. In contrast, the blue team defends. Often, that is the security operations centre (SOC), in-house or outsourced, whose analysts monitor systems, investigate alerts and respond to incidents daily.1

That covers red and blue. Mix them, and you make purple. Purple teaming requires both parties (the blue defenders and the red attackers) to work together instead of separately.


"There's a common idea that red and blue teams are on opposite sides. They aren't. Whether we run a red team or a purple team exercise, our goal is to improve our customers' defences and make them more resilient. In a purple team exercise, we work collaboratively with the defenders, sharing what we do as we go."

Antonio Spadaro, Director Adversary Simulation & Offensive Research, CSIS Security Group

 

Red team vs blue team vs purple team

The table below shows how the three compare at a glance.

Red team Blue team Purple team
Who they are Security specialists who play the attacker The defenders, usually the SOC The red and blue teams working together 
What they do ‘Attack’ the organisation using the techniques real bad actors often use 

Monitor systems, investigate alerts and respond to incidents 

Run attacks in the open and check each one together 
How testing works One full, covert attack, with a report weeks later Defends in both red and purple team exercises Iterative attack cycles with fast feedback 
Do they know a test is taking place? Yes, they run it Not in a red team exercise Yes, both teams do

 

The value of purple teaming

Purple teaming doesn’t replace red teaming. Red team exercises remain essential for uncovering weaknesses, demonstrating whether a determined attacker could reach their goal, and assessing how well an organisation responds in a realistic scenario. But an organisation that only runs red team exercises misses out on further value. Purple teaming works in iterative, collaborative and tighter attack cycles. Red teaming is more holistic: it follows the full narrative of a realistic, covert attack and produces an extensive report that sets out areas for improvement.

Antonio Spadaro, who leads adversary simulation at CSIS Security Group, makes a similar point in his article on getting more value from threat-led penetration testing:

“When a red team reaches its goal without being detected, that’s often treated as success, but it only tells you part of the story. The real value is in seeing how the organisation detects and responds, and where that breaks down, so it can become more resilient.”

Purple teaming adds that learning. Both sides work through each attack simultaneously and share what they see, so the defenders learn as the ‘attack’ unfolds rather than weeks later from a report. The European Central Bank describes the purpose of purple teaming in similar terms, as helping the blue team understand the strengths and weaknesses of its protection and detection systems.2

Purple teaming also tests an attack step by step. The red team runs a single test, such as extracting passwords or other authentication material from a computer’s memory, and the defenders check whether their tools picked it up. Testing each step separately means that when something is missed, the team can see exactly what went undetected and work out why.

The two methods complement each other, and regulators recognise the value of combining them. In financial services, some organisations must run red team tests known as threat-led penetration testing (TLPT). Unlike a traditional penetration test, a TLPT builds its attack scenarios from threat intelligence about the organisation, as this article from SecAlliance, our threat intelligence division, explains in more detail. Under the EU’s Digital Operational Resilience Act (DORA), the rules for TLPT require a purple team exercise once the red team test has finished.3 The TIBER-EU framework, on which those rules are based, also makes purple teaming mandatory.4


"Organisations don’t all face the same threats and attackers don’t all use the same tactics and techniques. Threat intelligence tells you which groups are likely to target you and how the attack will likely manifest including the methodology and tools the attackers will use. These insights enable you to better prepare and to prioritise defensive measures such as attack simulations and controls testing based around the specific attacks your organisation is most likely to experience.
"

Mick Reynolds, Senior Director of Intelligence, SecAlliance

 

What happens in a purple team exercise

In practice, a purple team exercise includes working sessions, often in one room or on one call, though the red and blue teams quite often work independently and check in regularly. The red team runs attacks while the SOC analysts watch their own tools to see what appears.

First, the two teams agree on which tactics and techniques to test. That decision should reflect the threats the organisation actually faces, which is where threat intelligence is essential.

The red team then follows a selected threat narrative. It conducts the attack overtly, running one or more techniques, often from inside the network, as if an attacker already had a foothold. The blue team knows a test is underway and checks whether it raised an alert. If it didn’t, they look for traces in the logs. In our experience, some gaps turn out to be activities recorded in the logs that never raised an alert because no detection rule was looking for them.

The red team then debriefs the blue team, helping them find out why techniques were caught or missed, before moving on to the next part of the narrative.

By the end, the organisation has a record of what each technique triggered and a list of changes, such as new or adjusted detection rules, gaps in logging, and points where the SOC’s processes slowed things down.

Techniques are often mapped to MITRE ATT&CK, a public framework that catalogues how attackers behave.5 That mapping shows which stages of an attack your defences cover well and which they barely cover.

Text version of the flowchart

  1. Red Team: Executes the attack – Follows the agreed threat narrative towards its objective.
    • attack activity: Defends as usual
    • The same day: Reveals its actions
  2. Blue team: Defends as usual – Knows about the test. Monitors and responds.
    • Then: Shows what it saw
  3. Red team: Reveals its actions – Shares what it did and when.
    • Then: Collaborate
    • After the fix: Replays the attack
  4. Blue Team: Shows what it saw – Brings logs, alerts and analyst decisions.
    • Then: Collaborate
  5. Collaborate – Observe the gaps between what red did and what blue saw.
    • Then: Evaluate
  6. Evaluate – Actions are scored as blocked, alerted, logged or not observed, and recommendations are noted.
    • Then: Tunes defences
  7. Blue team: Tunes defences – Sharpens detection logic and improves guidance for analysts.
    • Then: Validates fix
  8. Red team: Replays the attack – Repeats the affected parts of the path.
    • Then: Validates fix
  9. Blue team: Validates fix – Checks that the defence now sees, alerts on and understands the attacker's behaviour.

 

Practice or measurement

Organisations run purple team exercises for two different reasons.

The first is practice. It’s about strengthening operational competencies. Analysts rehearse spotting and handling attacks in a controlled manner, building skills and knowledge. The result is a better-trained team.

The second reason is measurement. The exercise produces evidence of what your tools and team catch, technique by technique. That evidence matters to anyone who has to show the board, an auditor or a regulator that the security investment works. Measurement leaves you with a documented list of gaps and their fixes.

At CSIS, we run purple team exercises for both purposes.

 

Why purple team exercises focus on detection

Whether the aim is practice or measurement, purple team exercises concentrate largely on detection, meaning whether the defenders and their tools notice each step of an attack.

It’s an obvious point, but analysts can only investigate the alerts they receive, and incident responders can only contain the attacks that have been spotted. Everything starts with detection, which is why purple team exercises prioritise it.

Early detection now matters even more, as some attacks are carried out at an increasing pace. In 2025, the average time attackers took to move from their first foothold to other systems fell to 29 minutes.6


"In incident response, speed is essential. The time between an attacker getting in and someone noticing largely determines how much damage they can do. Purple teaming prepares the organisation to respond faster by enabling all potential participants in a cyber incident to practise, including people not previously identified as having a role. Faster recognition helps contain the spread of a cyberattack.”

Simon Jonker, Senior Director of MDR and IR, CSIS

 

How to get the most from a purple team exercise

In our experience, four things decide whether an exercise changes how you defend or produces a report that sits unread.

  1. Keep scenarios current: base them on up-to-date threat intelligence on attackers targeting organisations like yours, and update them as those attackers change their techniques.
  2. Have the right people in the room: the analysts who investigate alerts need to participate, as do the people who can change detection rules and logging settings, and the security engineers who ensure the right logs and telemetry are collected.
  3. Fix, then test again: a gap is only closed when the same technique is caught next time, so agree when you will repeat the scenarios that were missed.
  4. Keep a record: writing down what you changed, and why, makes the next exercise faster and shows progress over time.

 

When to run a purple team exercise

The improved detection gained from purple teaming has a ‘sell by’ date. If a system is replaced or a log source suddenly stops sending data, a rule that previously raised an alert can stop working. Attackers also keep changing their techniques. So, it’s worth running a purple team exercise after significant changes, and on a regular schedule in between.

The most obvious moment is after a change to your defences, such as a new security tool, a new monitoring provider, or a new SOC setup. A purple team exercise can be designed to reveal whether the change works as expected before you rely on it.

Changes to the general IT environment matter just as much. A move to the cloud, a system migration or a merger can open new gaps. Testing will help you close them.

A purple team exercise is also good preparation for a red team test. In his article on threat-led penetration testing, Antonio argues that organisations that run smaller red and purple team exercises beforehand get better findings from a full test, with more of them relating to real business impact.

How often to run exercises in between depends on your organisation. As a rule of thumb, we recommend at least one purple team exercise a year. In heavily targeted sectors, such as finance or critical infrastructure, or in organisations whose systems change often, more frequent testing is needed, for example, every quarter.


"In a large organisation, cloud services, the office network and the OT systems are often monitored with separate tools. Each may have its own gaps. Trying to test everything in one exercise can spread the effort too thin. Focusing each exercise on a specific attack gives you a much clearer picture of how well detection works in that instance. Threat intelligence then helps you choose which parts of the environment to test next, based on where attackers are most likely to strike.”

Simon Jonker, Senior Director of MDR and IR, CSIS

 

How purple teaming is changing

Not long ago, purple teaming was an optional addition to regulated red team tests in Europe. In 2022, the European Central Bank published guidance on how to include it in TIBER-EU tests.2 Three years later, it became mandatory.4

We expect that shift to spread beyond finance. The NIS2 Directive requires organisations in critical sectors to have procedures for assessing whether their security measures actually work.7 It doesn’t prescribe purple teaming, but a threat-informed purple team exercise is one of the most practical ways to produce that evidence.

We also expect exercises to become smaller and more frequent. Rather than one large event a year, more organisations are likely to run multiple focused exercises, with automated tools repeating techniques that have already been tested. AI-enabled attacks and an unstable geopolitical environment make resilience (the ability to withstand attacks and recover from them) more important than ever. That is exactly what purple teaming helps to build.

 

Frequently asked questions

Answers to some common questions about red, blue and purple teaming.

What is the difference between a red team and a blue team?

The red team plays the attacker, using the techniques real attackers use to try to break in, usually without the defenders knowing. The blue team defends, usually through the SOC, which monitors systems, investigates alerts and responds to incidents. A red team exercise tests how well the blue team spots and responds to an attack.

What is the difference between red teaming and purple teaming?

In a red team exercise, the defenders aren’t told an attack is coming, so it tests whether a real attacker could reach their goal unnoticed and how well the organisation detects and responds to it. In a purple team exercise, the red and blue teams work together in the open, running attacks and debriefing on the results to find out what the defences catch and what they miss.

What is a purple team assessment?

A purple team assessment is an exercise that can be used to measure your defences and to train your team. The result is evidence of which attack techniques your tools and analysts detect, and which they miss.

Do you need your own red team to run a purple team exercise?

No, but many organisations bring in an external offensive security team to play the attacker, and our red team can take on that role. Your own defenders take part throughout, because the investigation is their job.

Does it work if our SOC is outsourced?

Yes, as long as the people who monitor you take part. If a provider runs your SOC, their analysts need to be involved in the exercise.

 

Plan a purple team exercise

We provide intelligence-driven purple team exercises that build cyber resilience. Get in touch to discuss how we can design an exercise that meets the specific needs of your team and organisation.

Talk to us about purple teaming

 

 

References

  1. NIST Computer Security Resource Center, glossary entry for Red Team/Blue Team Approach

  2. European Central Bank, Publication of TIBER-EU Purple Teaming Best Practices (2022)

  3. Commission Delegated Regulation (EU) 2025/1190, Article 12 (closure phase of threat-led penetration testing)

  4. European Central Bank, TIBER-EU Framework updated to align with DORA (February 2025)

  5. MITRE ATT&CK

  6. CrowdStrike, 2026 CrowdStrike Global Threat Report (press release)

  7. Directive (EU) 2022/2555 (NIS2), Article 21(2)(f)


Stay updated

 Sign up for our newsletter and get the latest cybersecurity analysis, reports and events from CSIS delivered straight to your inbox.

bg light

CSIS Newsletter

CSIS_PRI_LOGO_TURQUOISE_RGB