Performing Purple Team Exercise
When to Use
Use this skill when:
- SOC teams need to validate that detection rules actually fire for the threats they target
- Red team assessments produced findings that need translation into detection improvements
- New detection tools or SIEM migrations require validation of detection coverage
- Analyst training requires hands-on experience with real attack techniques and SIEM responses
- Quarterly or semi-annual detection validation cycles are scheduled
Do not use for unannounced red team engagements — purple team exercises require explicit coordination between offensive and defensive teams with real-time collaboration.
Prerequisites
- Red team capability: internal team or contracted purple team operator
- Attack simulation tools: Atomic Red Team, MITRE Caldera, or C2 framework (authorized)
- SIEM access for real-time alert monitoring during exercise
- ATT&CK-mapped detection rule inventory with expected alert names
- Isolated test environment or approved production scope with change management approval
- Communication channel (Slack/Teams) for real-time red-blue coordination
Workflow
Step 1: Define Exercise Scope and Objectives
Document exercise parameters:
purple_team_exercise:
exercise_id: PT-2024-Q1
date: 2024-03-20
duration: 8 hours (09:00-17:00 UTC)
scope:
environment: Production (Finance VLAN, 10.0.5.0/24)
systems_in_scope:
- WORKSTATION-TEST01 (10.0.5.100) — Test endpoint
- DC-TEST (10.0.5.200) — Test domain controller
- FILESERVER-TEST (10.0.5.201) — Test file server
systems_excluded:
- All production domain controllers
- Customer-facing systems
objectives:
- Validate 15 detection rules mapped to FIN7 TTPs
- Test SOC analyst response to real attack indicators
- Identify detection gaps for credential access and lateral movement
- Measure detection latency for each technique
threat_scenario: FIN7 campaign targeting financial data via spearphishing
authorization: Approved by CISO, Change Request CR-2024-0567
communication: #purple-team-2024q1 Slack channel
Step 2: Build ATT&CK-Mapped Test Plan
Create technique-by-technique test matrix:
| # |
ATT&CK ID |
Technique |
Test Tool |
Expected Detection |
Blue Team Metric |
| 1 |
T1566.001 |
Spearphishing Attachment |
Manual email |
Email gateway alert |
Detection Y/N, latency |
| 2 |
T1204.002 |
User Execution |
Macro document |
Sysmon process creation |
Detection Y/N, latency |
| 3 |
T1059.001 |
PowerShell |
Atomic RT #1-3 |
PowerShell execution alert |
Detection Y/N, latency |
| 4 |
T1053.005 |
Scheduled Task |
Atomic RT |
Scheduled task creation alert |
Detection Y/N, latency |
| 5 |
T1547.001 |
Registry Run Keys |
Atomic RT |
Registry modification alert |
Detection Y/N, latency |
| 6 |
T1003.001 |
LSASS Memory |
Mimikatz |
Credential dumping alert |
Detection Y/N, latency |
| 7 |
T1550.002 |
Pass-the-Hash |
Mimikatz |
NTLM anomaly detection |
Detection Y/N, latency |
| 8 |
T1021.002 |
SMB/PsExec |
PsExec |
PsExec service creation alert |
Detection Y/N, latency |
| 9 |
T1047 |
WMI |
wmic /node |
WMI remote execution alert |
Detection Y/N, latency |
| 10 |
T1021.001 |
RDP |
xfreerdp |
RDP lateral movement alert |
Detection Y/N, latency |
| 11 |
T1071.001 |
Web C2 |
Cobalt Strike |
C2 beacon detection |
Detection Y/N, latency |
| 12 |
T1041 |
Exfiltration C2 |
Rclone |
Data exfiltration alert |
Detection Y/N, latency |
| 13 |
T1490 |
Inhibit Recovery |
vssadmin |
Shadow copy deletion alert |
Detection Y/N, latency |
| 14 |
T1486 |
Data Encrypted |
Test encryption |
Mass encryption detection |
Detection Y/N, latency |
| 15 |
T1070.001 |
Clear Logs |
wevtutil |
Log clearing detection |
Detection Y/N, latency |
Step 3: Execute Red Team Techniques
Run each technique with Atomic Red Team (or manual execution):
# Install Atomic Red Team
IEX (IWR 'https://raw.githubusercontent.com/redcanaryco/invoke-atomicredteam/master/install-atomicredteam.ps1' -UseBasicParsing)
Install-AtomicRedTeam -getAtomics
# Test 1: T1059.001 — PowerShell Execution
Write-Host "[$(Get-Date -Format 'HH:mm:ss')] Executing T1059.001 - PowerShell"
Invoke-AtomicTest T1059.001 -TestNumbers 1
# Notify blue team: "T1059.001 executed at $(Get-Date)"
# Test 2: T1053.005 — Scheduled Task Creation
Write-Host "[$(Get-Date -Format 'HH:mm:ss')] Executing T1053.005 - Scheduled Task"
Invoke-AtomicTest T1053.005 -TestNumbers 1
# Test 3: T1547.001 — Registry Run Key
Write-Host "[$(Get-Date -Format 'HH:mm:ss')] Executing T1547.001 - Registry Persistence"
Invoke-AtomicTest T1547.001 -TestNumbers 1,2
# Test 4: T1003.001 — Credential Dumping
Write-Host "[$(Get-Date -Format 'HH:mm:ss')] Executing T1003.001 - LSASS Access"
Invoke-AtomicTest T1003.001 -TestNumbers 1,2
# Test 5: T1490 — Shadow Copy Deletion
Write-Host "[$(Get-Date -Format 'HH:mm:ss')] Executing T1490 - Inhibit Recovery"
Invoke-AtomicTest T1490 -TestNumbers 1
> 📎 Detailed content (full examples / references / data tables) has been split into `reference.md` in the same directory; use Read to load the relevant section on demand.
1---2name: performing-purple-team-exercise3description: "Performs purple team exercises coordinating red team adversary emulation. Signals: red team, methodology, penetration testing workflow."4zh-signals: "Performs purple team exercises by coordinating red team adversary emulation 信号:红队,方法论,渗透流程。"5when-to-use: 'Performs purple team exercises by coordinating red team adversary emulation6 with blue team detection validation using MITRE ATT&CK-mapped attack scenarios,7 real-time detection testing, and collaborative gap remediation. Use when SOC teams8 need to validate detection capabilities, improve analyst skills, and close detection9 gaps through structured offensive-defensive collaboration.1011 '12domain: cybersecurity13subdomain: soc-operations14tags:15- soc16- purple-team17- red-team18- blue-team19- mitre-attack20- adversary-emulation21- detection-validation22version: '1.0'23author: mahipal24license: Apache-2.025d3fend_techniques:26- File Metadata Consistency Validation27- Application Protocol Command Analysis28- Identifier Analysis29- Content Format Conversion30- Message Analysis31nist_csf:32- DE.CM-0133- DE.AE-0234- RS.MA-0135- DE.AE-0636mitre_attack:37- T107838- T1685.00239- T1685.00540- T156641metadata:42 source: https://skillmd.com/skills/dangeroussong/performing-purple-team-exercise43---4445# Performing Purple Team Exercise4647## When to Use4849Use this skill when:50- SOC teams need to validate that detection rules actually fire for the threats they target51- Red team assessments produced findings that need translation into detection improvements52- New detection tools or SIEM migrations require validation of detection coverage53- Analyst training requires hands-on experience with real attack techniques and SIEM responses54- Quarterly or semi-annual detection validation cycles are scheduled5556**Do not use** for unannounced red team engagements — purple team exercises require explicit coordination between offensive and defensive teams with real-time collaboration.5758## Prerequisites5960- Red team capability: internal team or contracted purple team operator61- Attack simulation tools: Atomic Red Team, MITRE Caldera, or C2 framework (authorized)62- SIEM access for real-time alert monitoring during exercise63- ATT&CK-mapped detection rule inventory with expected alert names64- Isolated test environment or approved production scope with change management approval65- Communication channel (Slack/Teams) for real-time red-blue coordination6667## Workflow6869### Step 1: Define Exercise Scope and Objectives7071Document exercise parameters:7273```yaml74purple_team_exercise:75 exercise_id: PT-2024-Q176 date: 2024-03-2077 duration: 8 hours (09:00-17:00 UTC)78 scope:79 environment: Production (Finance VLAN, 10.0.5.0/24)80 systems_in_scope:81 - WORKSTATION-TEST01 (10.0.5.100) — Test endpoint82 - DC-TEST (10.0.5.200) — Test domain controller83 - FILESERVER-TEST (10.0.5.201) — Test file server84 systems_excluded:85 - All production domain controllers86 - Customer-facing systems87 objectives:88 - Validate 15 detection rules mapped to FIN7 TTPs89 - Test SOC analyst response to real attack indicators90 - Identify detection gaps for credential access and lateral movement91 - Measure detection latency for each technique92 threat_scenario: FIN7 campaign targeting financial data via spearphishing93 authorization: Approved by CISO, Change Request CR-2024-056794 communication: #purple-team-2024q1 Slack channel95```9697### Step 2: Build ATT&CK-Mapped Test Plan9899Create technique-by-technique test matrix:100101| # | ATT&CK ID | Technique | Test Tool | Expected Detection | Blue Team Metric |102|---|-----------|-----------|-----------|-------------------|------------------|103| 1 | T1566.001 | Spearphishing Attachment | Manual email | Email gateway alert | Detection Y/N, latency |104| 2 | T1204.002 | User Execution | Macro document | Sysmon process creation | Detection Y/N, latency |105| 3 | T1059.001 | PowerShell | Atomic RT #1-3 | PowerShell execution alert | Detection Y/N, latency |106| 4 | T1053.005 | Scheduled Task | Atomic RT | Scheduled task creation alert | Detection Y/N, latency |107| 5 | T1547.001 | Registry Run Keys | Atomic RT | Registry modification alert | Detection Y/N, latency |108| 6 | T1003.001 | LSASS Memory | Mimikatz | Credential dumping alert | Detection Y/N, latency |109| 7 | T1550.002 | Pass-the-Hash | Mimikatz | NTLM anomaly detection | Detection Y/N, latency |110| 8 | T1021.002 | SMB/PsExec | PsExec | PsExec service creation alert | Detection Y/N, latency |111| 9 | T1047 | WMI | wmic /node | WMI remote execution alert | Detection Y/N, latency |112| 10| T1021.001 | RDP | xfreerdp | RDP lateral movement alert | Detection Y/N, latency |113| 11| T1071.001 | Web C2 | Cobalt Strike | C2 beacon detection | Detection Y/N, latency |114| 12| T1041 | Exfiltration C2 | Rclone | Data exfiltration alert | Detection Y/N, latency |115| 13| T1490 | Inhibit Recovery | vssadmin | Shadow copy deletion alert | Detection Y/N, latency |116| 14| T1486 | Data Encrypted | Test encryption | Mass encryption detection | Detection Y/N, latency |117| 15| T1070.001 | Clear Logs | wevtutil | Log clearing detection | Detection Y/N, latency |118119### Step 3: Execute Red Team Techniques120121Run each technique with Atomic Red Team (or manual execution):122123```powershell124# Install Atomic Red Team125IEX (IWR 'https://raw.githubusercontent.com/redcanaryco/invoke-atomicredteam/master/install-atomicredteam.ps1' -UseBasicParsing)126Install-AtomicRedTeam -getAtomics127128# Test 1: T1059.001 — PowerShell Execution129Write-Host "[$(Get-Date -Format 'HH:mm:ss')] Executing T1059.001 - PowerShell"130Invoke-AtomicTest T1059.001 -TestNumbers 1131# Notify blue team: "T1059.001 executed at $(Get-Date)"132133# Test 2: T1053.005 — Scheduled Task Creation134Write-Host "[$(Get-Date -Format 'HH:mm:ss')] Executing T1053.005 - Scheduled Task"135Invoke-AtomicTest T1053.005 -TestNumbers 1136137# Test 3: T1547.001 — Registry Run Key138Write-Host "[$(Get-Date -Format 'HH:mm:ss')] Executing T1547.001 - Registry Persistence"139Invoke-AtomicTest T1547.001 -TestNumbers 1,2140141# Test 4: T1003.001 — Credential Dumping142Write-Host "[$(Get-Date -Format 'HH:mm:ss')] Executing T1003.001 - LSASS Access"143Invoke-AtomicTest T1003.001 -TestNumbers 1,2144145# Test 5: T1490 — Shadow Copy Deletion146Write-Host "[$(Get-Date -Format 'HH:mm:ss')] Executing T1490 - Inhibit Recovery"147Invoke-AtomicTest T1490 -TestNumbers 1148149> 📎 Detailed content (full examples / references / data tables) has been split into `reference.md` in the same directory; use Read to load the relevant section on demand.