Skip to content
Skill

Sh attack surface

Maps which vulnerabilities an attacker can actually reach in a codebase's run

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

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.

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 (4 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-attack-surface:

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.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/sh-attack-surface 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-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.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/sh-attack-surface 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-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.

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

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

Gemini CLI docs on skills

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

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.

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-attack-surface into your agent's skills folder as sh-attack-surface. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

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

Sh attack surface 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.

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