
Sh detection rules
Turns a missed behaviour into a tested Sigma detection rule with fixtures and noise checks
Sh detection rules is an open-source agent skill for security. It is available on Claude Code.
- Scripts
- None
- Platforms
- Claude Code
- GitHub stars
- 44
- Last commit
- License
- MIT
- Listing updated
Similar skills
About Sh detection rules
This skill guides an agent through detection engineering as code. Starting from a behaviour such as a missed engagement step, a security review finding, an ATT&CK technique or a log sample, the agent drafts a Sigma rule with matching and non-matching event fixtures, then runs the indra detect tooling to lint, test and backtest it against real logs. It also converts rules for Elastic, OpenSearch and Splunk, and records coverage against ATT&CK techniques with a Navigator layer.
The workflow starts with a written hypothesis and a look at the available telemetry, favouring behaviours that are hard for an attacker to change over easy-to-swap indicators. Each rule comes with a README entry covering the goal, blind spots, measured false positives, validation and analyst response. When a tuning request has no field that separates noise from the wanted events, the skill declines to invent a filter and explains why.
It expects the indra command-line tool and read access to a configured SIEM source. Rules are written as drafts for a defender to review and deploy; the skill never changes anything in a SIEM itself.
When your agent uses it
Detection engineering as code: turn a behaviour (activity a SIEM missed, a finding from a security review, an ATT&CK technique, a log sample) into a Sigma rule with fixtures, validate it with `indra detect` (lint, test, backtest on real logs), convert it for Elastic, OpenSearch or Splunk, and record coverage. Each rule gets a short alerting-and-detection-strategy entry. Use when the user asks for detection rules, Sigma, SIEM rules, 'why didn't we alert', detection gaps, purple team follow-up, rule tuning, or coverage for an ATT&CK technique. Never deploys a rule.
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
- Instructions only, no scripts(see the files on GitHub)
- Asks for: Read, Write, Grep, Glob, Bash(see the files on GitHub)
- License: MIT(see the files on GitHub)
From a static check of its 1 file (9 KB) on GitHub on 5 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.
Check another skill before you install it.
Install
This skill ships in the indra plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):
/plugin marketplace add dmdhrumilmistry/indra
/plugin install indra@indraOr copy only this skill to ~/.claude/skills/sh-detection-rules:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/dmdhrumilmistry/indra.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/sh-detection-rules &&
cp -R "$tmp/plugins/indra/skills/sh-detection-rules" ~/.claude/skills/sh-detection-rules &&
rm -rf "$tmp"For one project only, put the folder in .claude/skills/sh-detection-rules inside it instead.
Copy the skill folder to ~/.agents/skills/sh-detection-rules to use it in every repository:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/dmdhrumilmistry/indra.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/sh-detection-rules &&
cp -R "$tmp/plugins/indra/skills/sh-detection-rules" ~/.agents/skills/sh-detection-rules &&
rm -rf "$tmp"For one repository only, put the folder in .agents/skills/sh-detection-rules inside it instead.
Copy the skill folder to ~/.cursor/skills/sh-detection-rules to use it in every project:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/dmdhrumilmistry/indra.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/sh-detection-rules &&
cp -R "$tmp/plugins/indra/skills/sh-detection-rules" ~/.cursor/skills/sh-detection-rules &&
rm -rf "$tmp"For one project only, put the folder in .cursor/skills/sh-detection-rules inside it instead.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/dmdhrumilmistry/indra.git --path plugins/indra/skills/sh-detection-rulesOr copy the folder to ~/.gemini/skills/sh-detection-rules yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/sh-detection-rules:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/dmdhrumilmistry/indra.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/sh-detection-rules &&
cp -R "$tmp/plugins/indra/skills/sh-detection-rules" ~/.copilot/skills/sh-detection-rules &&
rm -rf "$tmp"For one project only, put the folder in .github/skills/sh-detection-rules inside it instead.
Get the folder:
git clone --depth 1 https://github.com/dmdhrumilmistry/indra.gitThen copy indra/plugins/indra/skills/sh-detection-rules into your agent's skills folder as sh-detection-rules. Agents that support SKILL.md read one folder per skill.
What it does
- Sigma rule authoring
- Writes Sigma YAML with ATT&CK tags, falsepositive notes and a level chosen from impact and fidelity.
- Fixture-based testing
- Produces matching and non-matching event files and runs them through lint and test commands.
- Backtesting on real logs
- Measures how often a rule would have fired on a configured SIEM source over a chosen period.
- Rule conversion
- Converts Sigma rules to Lucene, Splunk and other formats, labelled as untested until run by a defender.
- ATT&CK coverage tracking
- Reports covered, parent-only and missing techniques and produces a Navigator layer.
- Tuning without invented filters
- Declines to write a rule when no field separates noise from the behaviour, and suggests alternatives.
Good for
- Write a Sigma rule for a behaviour our SIEM missed during a purple team exercise
- Turn a security review finding into a detection rule with test events
- Check how noisy an existing detection is over the last week of logs
- Convert a Sigma rule into Splunk or Lucene syntax for a defender to run
- Report which ATT&CK techniques our detection rules currently cover
Sh detection rules FAQ
Does Sh detection rules deploy rules to my SIEM?
No. It writes rule files and reports, and states that the rules are drafts for a defender to review, test and deploy. It never changes anything in a SIEM.
What does Sh detection rules need to run?
The indra command-line tool must be installed. For backtesting, a SIEM source must be configured and reachable.
Which Sigma features are supported?
Common field modifiers such as contains, startswith, endswith, regex and cidr, plus and/or/not conditions and quantifiers. Aggregations, timeframes and correlation rules are not supported.
What files does Sh detection rules produce?
A Sigma YAML file, match and non-match JSONL fixtures, optionally a Navigator layer, and a README with coverage, logging gaps and per-rule entries.
How do I install Sh detection rules in Claude Code?
Copy the skill folder from GitHub to ~/.claude/skills/sh-detection-rules to use it in all your projects, or to .claude/skills/sh-detection-rules in one project. Or install the indra plugin, which includes it: /plugin marketplace add dmdhrumilmistry/indra, then /plugin install indra@indra.
Does Sh detection rules 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 rules?
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 rules?
The closest alternatives to Sh detection rules are Detection as code, Sh detection coverage, Sh purple team, Sh log triage and Semgrep rule author.
Where this comes from
- Description: from the skill's own SKILL.md.
More from dmdhrumilmistry/indra

Lets an agent triage SIEM alerts and logs, sweep indicators and build evidenced timelines
- Open source
- 44 GitHub stars
- Security

Gives a security review agent persistent Markdown memory of past findings and learnings
- Open source
- 44 GitHub stars
- Knowledge and memory

Security-reviews a GitHub pull request and reports findings as inline comments
- Open source
- 44 GitHub stars
- Developer tools

Publishes security review findings as de-duplicated Jira, GitHub, Confluence or Notion
- Open source
- 44 GitHub stars
- Knowledge and memory

Plans and runs approved purple-team tests to check whether SIEM detections fire
- Open source
- 44 GitHub stars
- Security

Re-checks one earlier security finding against current code or recorded traffic
- Open source
- 44 GitHub stars
- Security




