Performing Purple Team Atomic Testing
When to Use
- Validating detection coverage against specific MITRE ATT&CK techniques
- Running purple team exercises using Atomic Red Team test library
- Performing ATT&CK coverage gap analysis to identify blind spots in SIEM/EDR
- Building a detection validation loop: execute atomic test, check SIEM, tune rule, retest
- Generating ATT&CK Navigator heatmap layers for executive reporting
- Automating continuous atomic testing in CI/CD or scheduled pipelines
- Mapping threat intelligence reports to executable atomic tests
Do not use for full-scope red team engagements requiring custom implants or live adversary simulation beyond atomic tests; use Caldera, SCYTHE, or Cobalt Strike for advanced adversary emulation.
DISCLAIMER: Atomic Red Team tests execute real attack techniques. Run only on systems you own or have explicit written authorization to test. Many tests modify system state, create artifacts, or trigger security alerts. Always execute cleanup commands after testing. Never run atomic tests in production without risk acceptance from stakeholders.
Prerequisites
- Windows host with PowerShell 5.1+ or PowerShell Core 7+ (Linux/macOS supported for cross-platform atomics)
- Invoke-AtomicRedTeam PowerShell module installed from PSGallery
- Atomic Red Team atomics repository cloned locally
- SIEM/EDR with log ingestion from test endpoints (Splunk, Elastic, Microsoft Sentinel, CrowdStrike)
- MITRE ATT&CK Navigator (web-based or local instance) for layer visualization
- Python 3.9+ with
mitreattack-python, pyyaml, and requests for automation scripts
- Sigma rules repository for detection correlation
- Administrative/root access on test endpoints
- Isolated test environment (lab, sandbox, or dedicated test range)
Workflow
Step 1: Install and Configure Invoke-AtomicRedTeam
Set up the execution framework and download the atomics library:
# Install the PowerShell execution module
Install-Module -Name invoke-atomicredteam -Scope CurrentUser -Force
Install-Module -Name powershell-yaml -Scope CurrentUser -Force
# Import the module
Import-Module invoke-atomicredteam
# Install atomics to default location (C:\AtomicRedTeam\atomics)
IEX (IEX (New-Object System.Net.WebClient).DownloadString(
'https://raw.githubusercontent.com/redcanaryco/invoke-atomicredteam/master/install-atomicredteam.ps1'
)); Install-AtomicRedTeam -getAtomics -Force
# Verify installation - list available techniques
$atomicsPath = "C:\AtomicRedTeam\atomics"
$techniques = Get-ChildItem $atomicsPath -Directory | Where-Object { $_.Name -match '^T\d{4}' }
Write-Host "Available techniques: $($techniques.Count)"
# Configure execution logging
$env:ARTLOG = "C:\AtomicRedTeam\logs"
if (-not (Test-Path $env:ARTLOG)) { New-Item -Path $env:ARTLOG -ItemType Directory }
Step 2: Enumerate and Select Atomic Tests
Inventory available tests and select targets based on threat intelligence or gap analysis:
# List all tests for a specific technique
Invoke-AtomicTest T1059.001 -ShowDetailsBrief
# Show full details including attack commands and cleanup
Invoke-AtomicTest T1059.001 -ShowDetails
# List tests for a tactic (e.g., Persistence)
$persistenceTechniques = @(
"T1547.001", # Boot or Logon Autostart - Registry Run Keys
"T1053.005", # Scheduled Task
"T1136.001", # Create Account - Local Account
"T1543.003", # Create or Modify System Process - Windows Service
"T1546.001", # Event Triggered Execution - Change Default File Association
"T1574.001", # Hijack Execution Flow - DLL Search Order Hijacking
"T1197" # BITS Jobs
)
foreach ($tech in $persistenceTechniques) {
Write-Host "`n=== $tech ===" -ForegroundColor Cyan
try {
Invoke-AtomicTest $tech -ShowDetailsBrief
} catch {
Write-Host " No tests available" -ForegroundColor Yellow
}
}
> 📎 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-atomic-testing3description: "Executes Atomic Red Team tests mapped to MITRE ATT&CK via Invoke-AtomicRedTeam. Signals: red team, methodology, penetration testing workflow."4zh-signals: "Executes Atomic Red Team tests mapped to MITRE ATT&CK via Invoke-AtomicRedTeam 信号:红队,方法论,渗透流程。"5when-to-use: 'Executes Atomic Red Team tests mapped to MITRE ATT&CK via Invoke-AtomicRedTeam6 PowerShell, generates ATT&CK Navigator coverage heatmaps, correlates results against7 Sigma rules, and runs detection validation loops to measure blue team visibility.8 Use for purple team exercises, atomic test execution, ATT&CK coverage assessment,9 or detection engineering validation.1011 '12domain: cybersecurity13subdomain: purple-team14tags:15- purple-team16- atomic-red-team17- mitre-attack18- detection-engineering19- adversary-emulation20version: 1.0.021author: mukul97522license: Apache-2.023nist_ai_rmf:24- MEASURE-2.725- MAP-5.126- MANAGE-2.427atlas_techniques:28- AML.T007029- AML.T006630- AML.T008231d3fend_techniques:32- Executable Denylisting33- Execution Isolation34- File Metadata Consistency Validation35- Content Format Conversion36- File Content Analysis37nist_csf:38- ID.RA-0139- DE.AE-0740- GV.OV-0241mitre_attack:42- T107843- T119044- T105945metadata:46 source: https://skillmd.com/skills/dangeroussong/performing-purple-team-atomic-testing47---4849# Performing Purple Team Atomic Testing5051## When to Use5253- Validating detection coverage against specific MITRE ATT&CK techniques54- Running purple team exercises using Atomic Red Team test library55- Performing ATT&CK coverage gap analysis to identify blind spots in SIEM/EDR56- Building a detection validation loop: execute atomic test, check SIEM, tune rule, retest57- Generating ATT&CK Navigator heatmap layers for executive reporting58- Automating continuous atomic testing in CI/CD or scheduled pipelines59- Mapping threat intelligence reports to executable atomic tests6061**Do not use** for full-scope red team engagements requiring custom implants or live adversary simulation beyond atomic tests; use Caldera, SCYTHE, or Cobalt Strike for advanced adversary emulation.6263**DISCLAIMER**: Atomic Red Team tests execute real attack techniques. Run only on systems you own or have explicit written authorization to test. Many tests modify system state, create artifacts, or trigger security alerts. Always execute cleanup commands after testing. Never run atomic tests in production without risk acceptance from stakeholders.6465## Prerequisites6667- Windows host with PowerShell 5.1+ or PowerShell Core 7+ (Linux/macOS supported for cross-platform atomics)68- Invoke-AtomicRedTeam PowerShell module installed from PSGallery69- Atomic Red Team atomics repository cloned locally70- SIEM/EDR with log ingestion from test endpoints (Splunk, Elastic, Microsoft Sentinel, CrowdStrike)71- MITRE ATT&CK Navigator (web-based or local instance) for layer visualization72- Python 3.9+ with `mitreattack-python`, `pyyaml`, and `requests` for automation scripts73- Sigma rules repository for detection correlation74- Administrative/root access on test endpoints75- Isolated test environment (lab, sandbox, or dedicated test range)7677## Workflow7879### Step 1: Install and Configure Invoke-AtomicRedTeam8081Set up the execution framework and download the atomics library:8283```powershell84# Install the PowerShell execution module85Install-Module -Name invoke-atomicredteam -Scope CurrentUser -Force86Install-Module -Name powershell-yaml -Scope CurrentUser -Force8788# Import the module89Import-Module invoke-atomicredteam9091# Install atomics to default location (C:\AtomicRedTeam\atomics)92IEX (IEX (New-Object System.Net.WebClient).DownloadString(93 'https://raw.githubusercontent.com/redcanaryco/invoke-atomicredteam/master/install-atomicredteam.ps1'94)); Install-AtomicRedTeam -getAtomics -Force9596# Verify installation - list available techniques97$atomicsPath = "C:\AtomicRedTeam\atomics"98$techniques = Get-ChildItem $atomicsPath -Directory | Where-Object { $_.Name -match '^T\d{4}' }99Write-Host "Available techniques: $($techniques.Count)"100101# Configure execution logging102$env:ARTLOG = "C:\AtomicRedTeam\logs"103if (-not (Test-Path $env:ARTLOG)) { New-Item -Path $env:ARTLOG -ItemType Directory }104```105106### Step 2: Enumerate and Select Atomic Tests107108Inventory available tests and select targets based on threat intelligence or gap analysis:109110```powershell111# List all tests for a specific technique112Invoke-AtomicTest T1059.001 -ShowDetailsBrief113114# Show full details including attack commands and cleanup115Invoke-AtomicTest T1059.001 -ShowDetails116117# List tests for a tactic (e.g., Persistence)118$persistenceTechniques = @(119 "T1547.001", # Boot or Logon Autostart - Registry Run Keys120 "T1053.005", # Scheduled Task121 "T1136.001", # Create Account - Local Account122 "T1543.003", # Create or Modify System Process - Windows Service123 "T1546.001", # Event Triggered Execution - Change Default File Association124 "T1574.001", # Hijack Execution Flow - DLL Search Order Hijacking125 "T1197" # BITS Jobs126)127128foreach ($tech in $persistenceTechniques) {129 Write-Host "`n=== $tech ===" -ForegroundColor Cyan130 try {131 Invoke-AtomicTest $tech -ShowDetailsBrief132 } catch {133 Write-Host " No tests available" -ForegroundColor Yellow134 }135}136137> 📎 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.