Skip to content
Skillpedia
Testing35k · #6130

performing-purple-team-exercise

Helps your agent coordinate attack and defense tests. It simulates attacks and checks if defense teams can detect them in real-time. It's useful for improving collaboration and incident response capability.

What it does

This feature helps security teams test if their threat detection systems are working correctly. It simulates real cyberattacks and checks if alerts are generated, allowing teams to improve their defenses.

When to use it

  • ✓To verify if threat detection rules are functioning.
  • ✓To train security analysts with simulated attacks.
  • ✓To find gaps in threat detection and fix them.

Example of what to ask your AI

“Simulate a phishing attack with an attachment and check if the security alert is triggered.”

Want more? Open the sections below.

How to use

The easiest way: copy the message below and paste it into Claude, ChatGPT, Cursor or any AI. It reads the skill and follows the instructions.

Skill link

https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/performing-purple-team-exercise/SKILL.md

Ready-to-paste message

Use this skill to help me: https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/performing-purple-team-exercise/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
How it works

The tool simulates known attack techniques, like phishing or malicious code execution. Simultaneously, the defense team monitors systems to see if security tools detect these actions and generate alerts.

Installation

Easiest way: copy the skill link and paste it into Claude, ChatGPT or Cursor asking it to follow the instructions.

In the terminal (Claude Code, Codex, Cursor), in your project folder:

npx skills add mukul975/Anthropic-Cybersecurity-Skills --skill performing-purple-team-exercise

Or download just the file:

curl -L https://raw.githubusercontent.com/mukul975/Anthropic-Cybersecurity-Skills/main/skills/performing-purple-team-exercise/SKILL.md -o SKILL.md
Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

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

…
FAQ

What is a 'purple team' exercise?

It's a security exercise where the offensive (red team) and defensive (blue team) work together to test and improve an organization's security defenses.

Do I need technical knowledge to use this?

This feature is designed for security teams. While execution might require technical expertise, the goal is to simplify the testing and validation process.

Is this safe to use on production systems?

Yes, but it requires careful planning, authorization, and ideally an isolated test environment or an approved production scope with change management to avoid disruptions.

Details

Original description by the author

Performs purple team exercises by coordinating red team adversary emulation with blue team detection validation using MITRE ATT&CK-mapped attack scenarios, real-time detection testing, and collaborative gap remediation. Use when SOC teams need to validate detection capabilities, improve analyst skills, and close detection gaps through structured offensive-defensive collaboration. '

repo: mukul975/Anthropic-Cybersecurity-Skills

Popularity

GitHub stars
35k
Ranking position
#6130
License
Apache-2.0
Updated
8/31/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills