# Sh incident response

> Sh incident response is an open-source agent skill for security. Guides an analyst through scoping, timelining and planning response to a security incident. 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-incident-response
- **Repository:** https://github.com/dmdhrumilmistry/indra
- **GitHub stars:** 44
- **License:** MIT
- **Skill name:** sh-incident-response
- **Collection:** https://github.com/dmdhrumilmistry/indra
- **Categories:** [security](https://ai-powered.com/categories/security)
- **Listing updated:** 2026-12-03

## About

This skill supports a SOC analyst or on-call engineer through an active security incident. It scopes the affected hosts, accounts and data from an alert or report, builds a UTC timeline with each event marked as fact or inference, and extracts and sweeps indicators of compromise through the indra CLI. It then lays out containment, eradication and recovery actions ordered by risk, each with its reason, blast radius, approver and rollback.

The skill is deliberately read-only and advisory. It correlates logs and writes documents such as a timeline, an indicator list, a report and stakeholder status drafts, but it never isolates hosts, blocks traffic, disables accounts, rotates credentials or deletes anything. It also tells the human what to preserve first, such as memory, short-retention logs and cloud audit trails, and what not to do yet, like rebooting before capture. A second mode writes or reviews a response playbook for named scenarios like a leaked cloud key or a web shell, with decision points that name a required approver.

It expects a SIEM reachable through the indra command line for scoping, though it can work from text alone. Output goes to incident folders and playbook files, and log or ticket content is treated as untrusted data.

## When your agent uses it

> Incident response support for a SOC analyst or on-call engineer: scope an incident from an alert or report, build an evidence-backed UTC timeline, extract and sweep indicators, plan containment, eradication and recovery ordered by risk, note what evidence to preserve, draft stakeholder status updates, and run a post-incident review. Also writes or reviews a response playbook for a named scenario (leaked cloud key, compromised CI token, ransomware, phished account, web shell). Use when the user asks about an incident, a suspected compromise, containment or recovery advice, an incident timeline or report, a post-incident review, or a response playbook. Read-only and advisory: it never contains, isolates, blocks, disables accounts, rotates credentials or deletes anything.

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

## Features

- **Incident scoping:** Determines affected hosts, accounts, data and services, the earliest evidence and what remains unknown.
- **UTC event timeline:** Builds a timeline of events with source, confidence and separation between facts and inferences.
- **Indicator extraction and sweep:** Pulls indicators from notes and sweeps them across recent logs to find additional affected systems.
- **Risk-ordered response plan:** Lists containment, eradication and recovery actions with approvals, blast radius and rollback steps.
- **Evidence preservation checklist:** Identifies volatile and short-retention evidence to capture first without modifying it.
- **Playbook writing and review:** Drafts or reviews response playbooks for scenarios such as leaked keys, ransomware and web shells.
- **Post-incident review:** Covers root cause, missed detections, hardening gaps and lessons with named owners.

## Good for

- Scope a suspected compromise from a SIEM alert
- Build a UTC timeline for an ongoing incident
- Plan containment steps ordered by risk with rollback notes
- Draft stakeholder status updates during an incident
- Write a playbook for a leaked cloud access key
- Run a post-incident review after a phishing compromise

## 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-incident-response`:

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

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

### Codex

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

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

### Cursor

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

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

Or copy the folder to `~/.gemini/skills/sh-incident-response` yourself.

### VS Code

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

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

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

## FAQ

### Does the skill take containment actions itself?

No. It is read-only and advisory. It never isolates, blocks, disables accounts, rotates credentials or deletes anything. It recommends each action for a human to approve and carry out.

### What does Sh incident response need to run?

It uses the indra command line for SIEM scoping and indicator sweeps when a source is available. Without a SIEM source it works from the text it is given.

### What files does Sh incident response produce?

For an incident it writes a timeline, a report and an indicator file in an incidents folder. For a playbook it writes a markdown file under playbooks.

### Which scenarios does Sh incident response cover in playbook mode?

The examples given are leaked cloud keys, compromised CI tokens, ransomware, phished accounts and web shells, and it can also handle other scenarios the user names.

### How do I install Sh incident response in Claude Code?

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

### Does Sh incident response 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 incident response?

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 incident response?

The closest alternatives to Sh incident response are Incident response runbook, Sh log triage, Soc investigator, Sh detection rules and Sh purple team.

## Where this comes from

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

## Alternatives

- [Incident response runbook](https://ai-powered.com/skills/incident-response-runbook): Incident response runbook is an open-source agent skill for security.
- [Sh log triage](https://ai-powered.com/skills/sh-log-triage): Sh log triage 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 detection rules](https://ai-powered.com/skills/sh-detection-rules): Sh detection rules 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.
- [Forensic timeline authoring](https://ai-powered.com/skills/forensic-timeline-authoring): Forensic timeline authoring 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 alert triage](https://ai-powered.com/skills/soc-alert-triage): Soc alert triage is an open-source agent skill for security.

---
Source: https://ai-powered.com/skills/sh-incident-response
