Skip to content

Purple Teaming: Attack and Defense in the Same Room

How purple teaming turns offensive testing into measurable detection improvements.

What Is Purple Teaming

Purple teaming is a collaborative exercise in which offensive testers (red team) and defenders (blue team) work together openly, with the red team executing attack techniques one at a time while the blue team checks whether each was prevented, detected and alerted on, and tunes controls in real time.

A red team exercise tests defenders without telling them. A purple team exercise removes the secrecy to maximize learning. The two are complementary: DORA's TLPT rules, for example, require a purple teaming exercise in the closure phase after the covert red team test.

How a Purple Team Exercise Runs

  1. Select techniques to test, usually from MITRE ATT&CK and based on relevant threat actors.
  2. Red team executes a technique, sharing exact timing and commands.
  3. Blue team checks telemetry: was it logged, detected, alerted, blocked?
  4. Both teams diagnose gaps: missing log source, weak rule, misrouted alert.
  5. Blue team adjusts detection; red team re-runs the technique to confirm.
  6. Results are recorded as a coverage matrix by technique.

Red, Blue and Purple

TeamRole
RedEmulates attackers
BlueDefends, detects and responds
PurpleA mode of working where both collaborate openly to improve defenses

Typical Outputs

  • Detection coverage mapped to ATT&CK techniques
  • New or tuned detection rules and log sources
  • Validated response playbooks
  • A prioritized list of control gaps for engineering

Sources and Standards

Frequently Asked Questions

What is purple teaming?

A collaborative exercise where red and blue teams work together openly, testing attack techniques one at a time and improving detection as they go.

How is purple teaming different from red teaming?

Red teaming is covert and tests whether defenders detect a realistic attack. Purple teaming is open and focuses on improving detection technique by technique.

Is purple teaming required by DORA?

DORA's TLPT technical standards include a purple teaming exercise in the closure phase of a threat-led penetration test.

Further Reading

Reviewed against the primary sources cited on this page. Verified 2026-12-02.

Start With What Attackers Can Reach

Run a free AI pentest against your internet-facing apps and APIs.

Free AI Pen Test

No credit card. Findings include reproducible steps and exploit code.

Firecompass ranked #1 AI on HackerOne. Read more →