Skip to content
Skill

Sh threat hunt

Runs hypothesis-driven threat hunts over logs when no alert has fired

Sh threat hunt 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 threat hunt

This skill guides an agent through proactive threat hunting that starts from a hypothesis rather than an alert. Given an ATT&CK technique, an intel report, a vulnerability class found in review, or an open backlog item, the agent frames a testable hypothesis with a time window and scope, checks that the needed telemetry exists, and measures a normal baseline before judging anything as abnormal.

The workflow widens the search in steps, stack-counts values such as command lines, parent-child process pairs, destinations and user agents, and focuses on the rare values at the bottom of each stack. Every query is recorded with its source, window and hit count so it can be repeated. Each lead is classified as confirmed activity, benign with a named explanation, or inconclusive with the data that would settle it.

The skill relies on the indra command-line tool for SIEM listing, summary and search, and it can use indra to extract indicators from intel reports. It keeps a running hunt log and turns productive hunts into detection hypotheses and telemetry gaps into logging recommendations. It is read-only and takes no response actions.

When your agent uses it

Hypothesis-driven threat hunting with no alert to start from: turn a technique, an intel report, a vulnerability class a review found, or 'what should we hunt' into a testable hypothesis, check the telemetry exists, baseline normal, hunt in widening steps, stack-count the rare values, and classify the result as confirmed activity, benign, or inconclusive. Keeps a hunt log, turns productive hunts into detections and telemetry gaps into logging recommendations. Use when the user asks to hunt proactively, 'what should we hunt', or to look for a technique or intel in the logs without an alert. Read-only and advisory.

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 1 file (7 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@indra

Or copy only this skill to ~/.claude/skills/sh-threat-hunt:

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

For one project only, put the folder in .claude/skills/sh-threat-hunt inside it instead.

Claude Code docs on skills

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

For one repository only, put the folder in .agents/skills/sh-threat-hunt inside it instead.

Codex docs on skills

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

For one project only, put the folder in .cursor/skills/sh-threat-hunt inside it instead.

Cursor docs on skills

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-threat-hunt

Or copy the folder to ~/.gemini/skills/sh-threat-hunt yourself.

Gemini CLI docs on skills

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

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

For one project only, put the folder in .github/skills/sh-threat-hunt inside it instead.

VS Code docs on skills

Get the folder:

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

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

The SKILL.md format

What it does

Hypothesis framing
Turns a technique, intel report or review finding into a testable if-then hypothesis with scope and time window.
Telemetry and baseline checks
Confirms the needed log sources exist and measures normal volume and values before flagging anything.
Stepwise widening
Starts narrow and widens the window and host set until results stop changing, noting each step.
Rare-value stack counting
Groups events by key fields and examines the least common values for suspicious activity.
Starter hunt library
Provides ready hypotheses for identity, endpoint, network and cloud threats with their data requirements.
Hunt log and follow-ups
Records every query and classifies leads, then routes results to incident, detection or logging work.

Good for

  • Hunt for password spraying against user accounts in the last week
  • Check whether web server processes are spawning unexpected shells
  • Look for DNS tunnelling or beaconing to unfamiliar domains
  • Investigate new cloud access keys followed by unusual API calls
  • Search logs for indicators from a threat intel report

Sh threat hunt FAQ

What does the skill need to run?

It needs the indra command-line tool available and a SIEM source that answers, checked with indra siem list or indra siem test. It also reads hunts/LOG.md when that file exists.

Does Sh threat hunt change rules or respond to incidents?

No. It is read-only and advisory. It takes no response action and changes no rules or SIEM settings; confirmed findings are handed to other skills.

What files does Sh threat hunt write?

It writes a dated hunt report under hunts/ and appends one line to hunts/LOG.md, which is never rewritten.

When does Sh threat hunt trigger?

When the user asks to hunt proactively, asks what should be hunted, or wants to look for a technique or intel in the logs without an alert.

How do I install Sh threat hunt in Claude Code?

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

Does Sh threat hunt 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 threat hunt?

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 threat hunt?

The closest alternatives to Sh threat hunt are Sh log triage, Secops hunt, Systematic bug hunting, Sh detection rules and Hunt regressions.

Where this comes from

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

More from dmdhrumilmistry/indra

  1. Lets an agent triage SIEM alerts and logs, sweep indicators and build evidenced timelines

    • Open source
    • 44 GitHub stars
    • Security
  2. Gives a security review agent persistent Markdown memory of past findings and learnings

    • Open source
    • 44 GitHub stars
    • Knowledge and memory
  3. Security-reviews a GitHub pull request and reports findings as inline comments

    • Open source
    • 44 GitHub stars
    • Developer tools
  4. Publishes security review findings as de-duplicated Jira, GitHub, Confluence or Notion

    • Open source
    • 44 GitHub stars
    • Knowledge and memory
  5. Plans and runs approved purple-team tests to check whether SIEM detections fire

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

    • Open source
    • 44 GitHub stars
    • Security