# Attack path stitcher

> Attack path stitcher is an open-source agent skill for security. Chains confirmed single-asset findings into multi-hop attack paths across an organization. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/transilienceai/communitytools/tree/main/skills/attack-path-stitcher
- **Repository:** https://github.com/transilienceai/communitytools
- **GitHub stars:** 641
- **License:** MIT
- **Skill name:** attack-path-stitcher
- **Collection:** https://github.com/transilienceai/communitytools
- **Categories:** [security](https://ai-powered.com/categories/security)
- **Listing updated:** 2026-12-02

## About

This skill takes validated findings from per-asset security testing and links them into graphs where each node is an asset and each edge is a confirmed exploit hop backed by the findings that enable it. It is meant to show how a foothold on one system can lead to a critical asset elsewhere, rather than treating each finding in isolation.

The workflow loads validated findings, an organization-wide surface graph of assets, services, network zones and trust relationships, and raw evidence files where credentials or tokens may appear. It then builds an edge for each detected pivot, using seven detector types covering credential reuse, shared secrets, trust-zone access, Active Directory chains, cloud role assumption, SSRF reach and supply-chain dependencies. From there it works backward from crown-jewel assets to find externally reachable entry points, and writes a JSON graph, a Graphviz DOT file and a ranked Markdown list of paths.

Paths are split into confirmed and inferred groups. Confirmed paths require every hop to have a reproduced proof of concept with a feasibility score of 1.0, while inferred paths rely on topology or supply-chain reasoning and are flagged for analyst review. The skill is read-only and does not re-run exploits. A Python tool in the repository performs the graph construction, and the skill supplies the rules it applies, with limits on edge count and path depth that are reported in the output.

## When your agent uses it

> Stitches confirmed single-asset findings into multi-hop attack paths across the organization. Builds a graph where nodes are assets and edges are confirmed exploit hops citing the findings that enable them.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/transilienceai/communitytools/tree/HEAD/skills/attack-path-stitcher)
- [License: MIT](https://github.com/transilienceai/communitytools/tree/HEAD/skills/attack-path-stitcher)

## Features

- **Asset graph construction:** Builds nodes for each asset with its tier, services, network zone and trust relationships.
- **Seven pivot detectors:** Detects credential reuse, shared secrets, trust-zone reach, AD, cloud IAM, SSRF and supply-chain hops.
- **Crown-jewel reachability:** Traces backward from critical assets to find external entry points that can reach them.
- **Confirmed versus inferred paths:** Separates paths backed by reproduced findings from those based on topology alone.
- **Feasibility scoring:** Scores each hop as reliable, conditional or theoretical to rank attack paths.
- **Graph and report outputs:** Writes JSON, Graphviz DOT and ranked Markdown files describing the discovered paths.

## Good for

- Map how a compromised web server could lead to a database holding customer data
- Show which externally exposed assets can reach crown-jewel systems
- Find credentials leaked in one engagement that are reused on other hosts
- Produce a ranked list of confirmed multi-hop attack paths for remediation planning

## Install

### Claude Code

Copy the skill folder to `~/.claude/skills/attack-path-stitcher` to use it in all your projects:

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

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

### Codex

Copy the skill folder to `~/.agents/skills/attack-path-stitcher` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/transilienceai/communitytools.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/attack-path-stitcher &&
cp -R "$tmp/skills/attack-path-stitcher" ~/.agents/skills/attack-path-stitcher &&
rm -rf "$tmp"
```

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

### Cursor

Copy the skill folder to `~/.cursor/skills/attack-path-stitcher` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/transilienceai/communitytools.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/attack-path-stitcher &&
cp -R "$tmp/skills/attack-path-stitcher" ~/.cursor/skills/attack-path-stitcher &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/attack-path-stitcher` 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/transilienceai/communitytools.git --path skills/attack-path-stitcher
```

Or copy the folder to `~/.gemini/skills/attack-path-stitcher` yourself.

### VS Code

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

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

For one project only, put the folder in `.github/skills/attack-path-stitcher` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/transilienceai/communitytools.git
```

Then copy `communitytools/skills/attack-path-stitcher` into your agent's skills folder as `attack-path-stitcher`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What inputs does the skill need?

It reads validated findings in validated/*.json, an organization surface file at artifacts/org-surface.json, and raw evidence files for credential extraction.

### Does Attack path stitcher run exploits?

No. The skill is read-only, never re-fires proof-of-concept tests and does not modify the findings folder.

### How does Attack path stitcher decide if a path is confirmed?

A path is confirmed only when every hop has feasibility 1.0 and cites at least one validated finding. Paths based only on trust zones, shared secrets or supply-chain links are listed as inferred.

### When does Attack path stitcher run?

The skill's trigger is a daily scheduled run, default 03:00 UTC, and it may also re-run after a validation batch completes.

### How do I install Attack path stitcher in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/attack-path-stitcher to use it in all your projects, or to .claude/skills/attack-path-stitcher in one project.

### Does Attack path stitcher 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 Attack path stitcher?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Attack path stitcher?

The closest alternatives to Attack path stitcher are Risk prioritiser, Chain construct, System, Systematic bug hunting and Systematic attacking.

## Where this comes from

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

## Alternatives

- [Risk prioritiser](https://ai-powered.com/skills/risk-prioritiser): Risk prioritiser is an open-source agent skill for security.
- [Chain construct](https://ai-powered.com/skills/chain-construct): Chain construct is an open-source agent skill for security.
- [System](https://ai-powered.com/skills/system): System 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.
- [Systematic attacking](https://ai-powered.com/skills/systematic-attacking): Systematic attacking is an open-source agent skill for security.
- [Techstack infra](https://ai-powered.com/skills/techstack-infra): Techstack infra 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.
- [Techstack identification](https://ai-powered.com/skills/techstack-identification): Techstack identification is an open-source agent skill for security.

---
Source: https://ai-powered.com/skills/attack-path-stitcher
