# Sh attack surface

> Sh attack surface is an open-source agent skill for security. Maps which vulnerabilities an attacker can actually reach in a codebase's run. 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-attack-surface
- **Repository:** https://github.com/dmdhrumilmistry/indra
- **GitHub stars:** 44
- **License:** MIT
- **Skill name:** sh-attack-surface
- **Collection:** https://github.com/dmdhrumilmistry/indra
- **Categories:** [security](https://ai-powered.com/categories/security)
- **Listing updated:** 2026-12-03

## About

This skill works on an existing security review run. It checks each recon entry point to confirm whether it requires authentication, then examines known CVEs in dependencies to see whether the vulnerable function is actually called outside tests. Findings are also assigned an entry point and a reachability level such as unauthenticated, authenticated, internal or unreachable, based on the guards on the data path.

Results are written back into the run's codebase map and findings files as new fields, and a short attack-surface report is produced with a summary, the reachable issues worst first, the unreachable ones with reasons, and a Mermaid flowchart from the internet and signed-in users to the exposed vulnerabilities. The run data is meant to be viewed in the indra console.

It expects a prior review run containing a codebase-map.json, with findings in verified.jsonl or findings.jsonl. If no map exists, the recon stage of the security review skill must be run first. It works with the file tools and Bash, and it does not change any run data beyond the added reachability fields.

## When your agent uses it

> Map a codebase's attack surface and decide which of its vulnerabilities actually impact it: what an attacker can reach without a login, after one, or not at all. Covers known CVEs in dependencies (is the vulnerable code even called?) and review findings. Fills reachability into an existing review run so the indra console can draw the graph, and writes a short report. Use when the user asks for the attack surface, exposure, 'which vulnerabilities actually matter', 'are these CVEs reachable', or to prioritise findings by exposure.

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

## Features

- **Entry point auth check:** Confirms from middleware, decorators and router guards whether each entry point needs a login.
- **CVE reachability analysis:** Searches for imports and call sites of vulnerable functions to see if known CVEs are reachable.
- **Finding exposure mapping:** Assigns each finding an entry point and a reachability level based on the guards on its path.
- **Attack surface report:** Writes a markdown report ranking reachable issues worst first, with a Mermaid exposure diagram.
- **Run file updates:** Adds reachability fields to the existing codebase map and findings files while keeping them valid JSON.

## Good for

- Check whether the vulnerable functions in our dependency CVEs are actually called
- Show which security findings can be reached without logging in
- Prioritise review findings by how exposed they are
- Map the entry points of this codebase and flag those missing auth

## 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-attack-surface`:

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

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

### Codex

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

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

### Cursor

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

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

Or copy the folder to `~/.gemini/skills/sh-attack-surface` yourself.

### VS Code

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

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

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

## FAQ

### What does Sh attack surface need before it runs?

A prior review run with a codebase-map.json. If that file is missing, the recon stage of the sh-security-review skill has to be run first.

### What does Sh attack surface change?

It adds reachability, entry_point, evidence and notes fields to the run's codebase map and findings files and writes an attack-surface.md report. It does not change other content in those files.

### When does Sh attack surface trigger?

When the user asks for the attack surface, exposure, whether CVEs are reachable, which vulnerabilities actually matter, or to prioritise findings by exposure.

### How do I install Sh attack surface in Claude Code?

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

### Does Sh attack surface 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 attack surface?

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 attack surface?

The closest alternatives to Sh attack surface are Sh security review, Reconnaissance, Security review, Source code scanning and Security review.

## Where this comes from

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

## Alternatives

- [Sh security review](https://ai-powered.com/skills/sh-security-review): Sh security review is an open-source agent skill for security.
- [Reconnaissance](https://ai-powered.com/skills/reconnaissance): Reconnaissance is an open-source agent skill for security.
- [Security review](https://ai-powered.com/skills/security-review-nabwinsaud): Security review is an open-source agent skill for security.
- [Source code scanning](https://ai-powered.com/skills/source-code-scanning): Source code scanning is an open-source agent skill for security.
- [Security review](https://ai-powered.com/skills/security-review): Security review is an open-source agent skill for security.
- [Security review](https://ai-powered.com/skills/security-review-getsentry): Security review is an open-source agent skill for security.
- [C review](https://ai-powered.com/skills/c-review): C review is an open-source agent skill for security.
- [Pentest engagement](https://ai-powered.com/skills/pentest-engagement): Pentest engagement is an open-source agent skill for security.

---
Source: https://ai-powered.com/skills/sh-attack-surface
