# Sh purple team

> Sh purple team is an open-source agent skill for security. Plans and runs approved purple-team tests to check whether SIEM detections fire. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/dmdhrumilmistry/indra/tree/main/plugins/indra/skills/sh-purple-team
- **Repository:** https://github.com/dmdhrumilmistry/indra
- **GitHub stars:** 44
- **License:** MIT
- **Skill name:** sh-purple-team
- **Collection:** https://github.com/dmdhrumilmistry/indra
- **Categories:** [security](https://ai-powered.com/categories/security)
- **Listing updated:** 2026-12-03

## About

This skill plans a purple-team exercise to test whether detection rules actually catch attacker behavior. It picks techniques from a threat model, a detection backlog or a user's list, and writes a benign, reversible test case for each one, covering the action, expected telemetry, expected rule, cleanup and a stop condition. A human must approve the plan before anything runs.

Test actions run only inside an authorized indra engagement with written scope, a time window and an authorization reference. Outside one, the skill writes the plan and stops. Cases run one at a time, and the agent then searches the SIEM for each case's window and scores it as detected, detected late or missed, with a reason for every miss.

The skill expects the indra CLI, access to a SIEM through indra, and the INDRA_ENGAGEMENT environment variable when tests are run. Output goes to a purple folder with a plan file and a results scorecard.

## When your agent uses it

> Plan and run a purple-team exercise that validates detections: pick techniques from the threat model, the detection backlog or the user, write a benign and reversible test case for each (expected telemetry, expected rule, cleanup, stop condition), get a human to approve the plan, run the cases one at a time inside an authorized indra engagement, then check what the SIEM saw and score each as detected, detected late or missed, with the reason. Use when the user asks for a purple team exercise, to validate detections, or an attack simulation. Runs test actions only inside an engagement with written scope, window and authorization; outside one it produces the plan only.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/dmdhrumilmistry/indra/tree/HEAD/plugins/indra/skills/sh-purple-team)
- [Asks for: Read, Write, Grep, Glob, Bash](https://github.com/dmdhrumilmistry/indra/blob/HEAD/plugins/indra/skills/sh-purple-team/SKILL.md)
- [License: MIT](https://github.com/dmdhrumilmistry/indra/tree/HEAD/plugins/indra/skills/sh-purple-team)

## Features

- **Technique selection:** Chooses ATT&CK techniques from the threat model, the detection backlog or the user's list, with a stated reason for each.
- **Reversible test cases:** Defines one benign action per technique with expected telemetry, expected rule, cleanup and stop conditions.
- **Human approval gate:** Requires a person to approve the plan before any test case runs, and records who approved it.
- **Engagement-bound execution:** Runs tests only inside an authorized engagement, one case at a time, and never against out-of-scope hosts.
- **SIEM detection scoring:** Searches the SIEM for each case window and scores results as detected, detected late or missed.
- **Miss routing:** Classifies each miss by reason and hands follow-up work to the rules or hardening skills.

## Good for

- Plan a purple-team exercise to validate detections for credential attacks
- Test whether SIEM alerts fire for a set of ATT&CK techniques
- Write approved, reversible attack simulations for a lab web server
- Score detection coverage and list the top missed techniques
- Draft a test plan without running anything outside an engagement

## Install

### Claude Code

This skill ships in the `indra` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add dmdhrumilmistry/indra
/plugin install indra@indra
```

Or copy only this skill to `~/.claude/skills/sh-purple-team`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/dmdhrumilmistry/indra.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/sh-purple-team &&
cp -R "$tmp/plugins/indra/skills/sh-purple-team" ~/.claude/skills/sh-purple-team &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/sh-purple-team` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/sh-purple-team` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/dmdhrumilmistry/indra.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/sh-purple-team &&
cp -R "$tmp/plugins/indra/skills/sh-purple-team" ~/.agents/skills/sh-purple-team &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/sh-purple-team` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/sh-purple-team` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/dmdhrumilmistry/indra.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/sh-purple-team &&
cp -R "$tmp/plugins/indra/skills/sh-purple-team" ~/.cursor/skills/sh-purple-team &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/sh-purple-team` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/dmdhrumilmistry/indra.git --path plugins/indra/skills/sh-purple-team
```

Or copy the folder to `~/.gemini/skills/sh-purple-team` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/sh-purple-team`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/dmdhrumilmistry/indra.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/sh-purple-team &&
cp -R "$tmp/plugins/indra/skills/sh-purple-team" ~/.copilot/skills/sh-purple-team &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/sh-purple-team` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/dmdhrumilmistry/indra.git
```

Then copy `indra/plugins/indra/skills/sh-purple-team` into your agent's skills folder as `sh-purple-team`. Agents that support SKILL.md read one folder per skill.

## FAQ

### When does Sh purple team run test actions?

Only inside an authorized indra engagement with written scope, a time window and authorization, and only after a human approves the plan. Outside an engagement, or with mode:plan, it writes the plan only.

### What does Sh purple team check after a test?

It searches the SIEM for the window of each case and checks whether the expected rule matched, then scores the case as detected, detected late or missed.

### What safety limits apply?

Actions must be benign and reversible. The skill forbids destructive, persistent or data-touching actions, credential theft, lateral movement beyond scope and denial of service, and stops a case on rate-limit or service errors.

### Where are the results saved?

In a purple folder named by date and slug, containing plan.md and results.md with a scorecard of techniques, tests, expected rules, results and time to detect.

### How do I install Sh purple team in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/sh-purple-team to use it in all your projects, or to .claude/skills/sh-purple-team in one project. Or install the indra plugin, which includes it: /plugin marketplace add dmdhrumilmistry/indra, then /plugin install indra@indra.

### Does Sh purple team run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Sh purple team?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

### What are the best alternatives to Sh purple team?

The closest alternatives to Sh purple team are Sh detection rules, Detection as code, Purple team, Sh detection coverage and Sh incident response.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Sh detection rules](https://ai-powered.com/skills/sh-detection-rules): Sh detection rules is an open-source agent skill for security.
- [Detection as code](https://ai-powered.com/skills/detection-as-code): Detection as code is an open-source agent skill for security.
- [Purple team](https://ai-powered.com/skills/purple-team): Purple team is an open-source agent skill for security.
- [Sh detection coverage](https://ai-powered.com/skills/sh-detection-coverage): Sh detection coverage is an open-source agent skill for security.
- [Sh incident response](https://ai-powered.com/skills/sh-incident-response): Sh incident response is an open-source agent skill for security.
- [Soc investigator](https://ai-powered.com/skills/soc-investigator): Soc investigator is an open-source agent skill for security.
- [Sh threat hunt](https://ai-powered.com/skills/sh-threat-hunt): Sh threat hunt is an open-source agent skill for security.
- [Sh autopilot](https://ai-powered.com/skills/sh-autopilot): Sh autopilot is an open-source agent skill for security.

---
Source: https://ai-powered.com/skills/sh-purple-team
