# Sh threat hunt

> Sh threat hunt is an open-source agent skill for security. Runs hypothesis-driven threat hunts over logs when no alert has fired. 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-threat-hunt
- **Repository:** https://github.com/dmdhrumilmistry/indra
- **GitHub stars:** 44
- **License:** MIT
- **Skill name:** sh-threat-hunt
- **Collection:** https://github.com/dmdhrumilmistry/indra
- **Categories:** [security](https://ai-powered.com/categories/security)
- **Listing updated:** 2026-12-03

## About

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.

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

## Features

- **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

## 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-threat-hunt`:

```sh
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.

### Codex

Copy the skill folder to `~/.agents/skills/sh-threat-hunt` 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-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.

### Cursor

Copy the skill folder to `~/.cursor/skills/sh-threat-hunt` 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-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.

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

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

### VS Code

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

```sh
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.

### Other agents

Get the folder:

```sh
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.

## 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.

## Alternatives

- [Sh log triage](https://ai-powered.com/skills/sh-log-triage): Sh log triage is an open-source agent skill for security.
- [Secops hunt](https://ai-powered.com/skills/secops-hunt): Secops hunt is an open-source agent skill for security.
- [Systematic bug hunting](https://ai-powered.com/skills/systematic-bug-hunting): Systematic bug hunting is an open-source agent skill for security.
- [Sh detection rules](https://ai-powered.com/skills/sh-detection-rules): Sh detection rules is an open-source agent skill for security.
- [Hunt regressions](https://ai-powered.com/skills/hunt-regressions): Hunt regressions is an open-source agent skill for developer tools.
- [Soc investigator](https://ai-powered.com/skills/soc-investigator): Soc investigator 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.

---
Source: https://ai-powered.com/skills/sh-threat-hunt
