# Sh detection coverage

> Sh detection coverage is an open-source agent skill for security. Maps which ATT&CK techniques your detection rules cover and ranks the gaps to fix. 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-detection-coverage
- **Repository:** https://github.com/dmdhrumilmistry/indra
- **GitHub stars:** 44
- **License:** MIT
- **Skill name:** sh-detection-coverage
- **Collection:** https://github.com/dmdhrumilmistry/indra
- **Categories:** [security](https://ai-powered.com/categories/security)
- **Listing updated:** 2026-12-03

## About

This skill checks what a team can and cannot detect. It compares the Sigma rules in a detections folder against the ATT&CK techniques that a threat model, review findings, an engagement's missed steps or a user-supplied list say matter, and marks each wanted technique as covered, covered only at parent level, or missing.

Beyond raw coverage, it checks whether the log sources each technique needs actually exist in the SIEM, and it reviews rule health: lint and fixture failures, rules without tests, experimental-only rules, and rules that are noisy or silent during backtesting. The output is a prioritised detection backlog with telemetry status, existing rules, proposed rule or logging changes and effort estimates, plus an ATT&CK Navigator layer file for visualising gaps.

It expects the indra command-line tool, a rules folder with Sigma YAML files, and optionally a threat-model.json, verified review results or engagement detection data. It writes only a coverage report and a Navigator layer under the detections folder, and hands rule-writing off to a separate skill.

## When your agent uses it

> Assess and plan detection coverage: compare the rules in `detections/` (or any Sigma folder) with the ATT&CK techniques a threat model, review findings, an engagement's missed steps or the user's list say matter, check the telemetry exists, check rule health, and produce a prioritised detection backlog plus an ATT&CK Navigator layer. Use when the user asks about detection coverage, the ATT&CK matrix, a Navigator layer, 'what are we not detecting', or what rules to write next. Writes no rules and changes nothing in a SIEM.

## 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-detection-coverage)
- [Asks for: Read, Write, Grep, Glob, Bash](https://github.com/dmdhrumilmistry/indra/blob/HEAD/plugins/indra/skills/sh-detection-coverage/SKILL.md)
- [License: MIT](https://github.com/dmdhrumilmistry/indra/tree/HEAD/plugins/indra/skills/sh-detection-coverage)

## Features

- **Technique coverage mapping:** Compares existing rules against the ATT&CK techniques that matter, flagging parent-only and missing coverage.
- **Telemetry presence check:** Confirms whether the logs each wanted technique depends on are present, partial or missing in the SIEM.
- **Rule health review:** Runs lint, fixture tests and backtests to surface broken, untested, noisy or silent rules.
- **Prioritised detection backlog:** Ranks uncovered techniques by impact, telemetry readiness and how many threats share them.
- **ATT&CK Navigator layer:** Exports a Navigator layer that highlights wanted techniques that remain undetected.
- **Threat-driven technique selection:** Derives wanted techniques from threat models, review findings and engagement missed steps.

## Good for

- Show which ATT&CK techniques our rules do not yet detect
- Rank the next detection rules to write based on our threat model
- Check whether the logs needed for a given technique exist in our SIEM
- Find Sigma rules that fail tests or produce noisy alerts
- Generate an ATT&CK Navigator layer of our detection gaps

## 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-detection-coverage`:

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

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

### Codex

Copy the skill folder to `~/.agents/skills/sh-detection-coverage` 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-detection-coverage &&
cp -R "$tmp/plugins/indra/skills/sh-detection-coverage" ~/.agents/skills/sh-detection-coverage &&
rm -rf "$tmp"
```

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

### Cursor

Copy the skill folder to `~/.cursor/skills/sh-detection-coverage` 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-detection-coverage &&
cp -R "$tmp/plugins/indra/skills/sh-detection-coverage" ~/.cursor/skills/sh-detection-coverage &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/sh-detection-coverage` 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-detection-coverage
```

Or copy the folder to `~/.gemini/skills/sh-detection-coverage` yourself.

### VS Code

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

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

For one project only, put the folder in `.github/skills/sh-detection-coverage` 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-detection-coverage` into your agent's skills folder as `sh-detection-coverage`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does Sh detection coverage need to run?

It needs the indra command-line tool on the path and a folder of rule files, such as detections/. Optional inputs include a threat-model.json, verified findings, an engagement detections.json and a SIEM source.

### Does Sh detection coverage write or deploy detection rules?

No. It writes no rules and changes nothing in a SIEM. It produces a coverage report, a backlog and a Navigator layer, and suggests a separate rule-writing skill for the top items.

### Where are the results saved?

Under detections/coverage: a dated markdown coverage report and a dated ATT&CK Navigator layer JSON file.

### What happens when there are no rule files?

The coverage command exits with an error and every wanted technique is counted as missing.

### How do I install Sh detection coverage in Claude Code?

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

### Does Sh detection coverage 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 detection coverage?

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 detection coverage?

The closest alternatives to Sh detection coverage are Sh detection rules, Detection as code, Sh purple team, Sh threat hunt and Soc investigator.

## 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.
- [Sh purple team](https://ai-powered.com/skills/sh-purple-team): Sh purple team 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.
- [Soc investigator](https://ai-powered.com/skills/soc-investigator): Soc investigator is an open-source agent skill for security.
- [Detection engineering coverage evaluation](https://ai-powered.com/skills/detection-engineering-coverage-evaluation): Detection engineering coverage evaluation is an open-source agent skill for ai models and llm tooling.
- [Techstack security](https://ai-powered.com/skills/techstack-security): Techstack security is an open-source agent skill for security.
- [Techstack infra](https://ai-powered.com/skills/techstack-infra): Techstack infra is an open-source agent skill for security.

---
Source: https://ai-powered.com/skills/sh-detection-coverage
