attack-path-stitcher

attack-path-stitcher is a skill for Claude Code, Codex from transilienceai/communitytools. It costs 42 tokens per session (1,658 once invoked), scanned A, original, MIT.

A graph-building tool that links confirmed security findings across an organization’s assets into multi-step attack paths. An attack path shows how an attacker could move from one compromised asset to another.

In plain words
What is it for?
It helps map assets, trust relationships, and network zones; detect confirmed pivots; and show which findings enable movement between systems.
Why use it?
It reveals chains of risk that may be missed when each server or device is reviewed separately. The links are based on confirmed exploit paths such as reused credentials or shared secrets.

Skill for Claude CodeCodex

Part of the communitytools plugin — 42 skills, 5 commands, 9 agents, 1 hook shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/transilienceai/communitytools/attack-path-stitcher
Any agent
npx skills add transilienceai/communitytools --skill attack-path-stitcher
Clone the repo
git clone --depth 1 https://github.com/transilienceai/communitytools

Made for: Claude Code, Codex.

Or install communitytools, the plugin that ships this one along with the rest of its 42 skills, 5 commands, 9 agents, 1 hook.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for attack-path-stitcher

README.md
[![agentmods](https://agentmods.dev/badge/skills/transilienceai/communitytools/attack-path-stitcher.svg)](https://agentmods.dev/skills/transilienceai/communitytools/attack-path-stitcher)
Your own site
<a href="https://agentmods.dev/skills/transilienceai/communitytools/attack-path-stitcher"><img src="https://agentmods.dev/badge/skills/transilienceai/communitytools/attack-path-stitcher.svg" alt="Measured on agentmods" height="20"></a>
Per session 42 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,658 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00042 $0.01658
Opus 5 $0.00021 $0.00829
Sonnet 5 $0.00008 $0.00332
Haiku 4.5 $0.00004 $0.00166

Measured 4d ago against content hash a92cc17a97a4, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

attack-path-stitcher scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/attack-path-stitcher/SKILL.md · 101 lines

How it starts

The opening of the file, as written. The whole thing — 101 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Attack Path Stitcher

The Validation Run task (#3) produces confirmed findings per asset. Real attacker risk lives in chains: a finding on asset A leaks credentials that enable a finding on asset B that pivots into asset C. This skill builds that graph.

Mounted onto cloud-agent task #6.

Trigger

Cron daily (default 03:00 UTC). May also re-run after a Validation Run task batch completes.

Workflow

  1. Load inputs.
    • validated/*.json — every confirmed finding across all engagements.
    • artifacts/org-surface.json — the org-wide surface graph (assets, services, network zones, trust relationships).
    • findings/finding-NNN/evidence/raw-source.txt — for credential / token extraction during stitching.
  2. Build asset nodes. One node per asset in org-surface.json, attributed with: tier, services, network_zone, trust_relationships.
  3. Build edges — one edge per detected pivot. See reference/edge-detectors.md for the seven detectors:
    • Credential reuse (creds leaked on A reused as auth on B)
    • Shared secret / API key (same secret appears in two assets' evidence)
    • Trust-zone transitive access (A in zone X has implicit reach to B in zone X)
    • AD path hops (kerberoast / DC sync / RBCD chains)
    • Cloud IAM role chains (assume-role from compromised asset)
    • SSRF → internal asset reach (A's SSRF reaches B's internal endpoint)
    • Supply-chain (A is a dependency of B per source-code-scanning SBOM)
  4. Compute reachability closure. For each tier-crown_jewel node, BFS backwards through edges to find every external-facing node that can reach it. Mark these as "entry points".
  5. Write graph to artifacts/attack-paths.json plus a human DOT file artifacts/attack-paths.dot (renderable with Graphviz).

Implementation runs through tools/chain-merger.py which handles the graph construction. The skill provides the rules the tool consults; the tool does the iteration.

Output

{OUTPUT_DIR}/
  artifacts/
    attack-paths.json     # nodes, edges, entry_points, crown_jewel_paths
    attack-paths.dot      # Graphviz source
    attack-paths.md       # ranked list of distinct paths (human read)

Read the full file on GitHub · 101 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 101 lines · 42 tokens per session scan A a92cc17a97a4

Subscribe to this mod's changes

attack-path-stitcher is a skill published in the GitHub repository transilienceai/communitytools (505 stars, last pushed 1mo ago), licensed MIT. It adds 42 tokens to every session and 1,658 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

pentester-playwright

Phases 1b/3/4 authorized browser automation — SPA recon, multi-role auth, route/API catalog, PoC screenshots, Evidence landing (scoped proxy). Skill-gate read for web phases. Use when Phase 1b/3/4 web work, JS-rendered SPA, real browser needed, HAR/network capture, or Playwright PoC evidence.

fb0sh/pentester · 81 tokens

osint-recon

Phase 1 conditional OSINT depth — four-dimension model (server→site→domain→people; people is conditional). Skill-gate companion to pentester-enum-services / pentester-recon. Use for passive OSINT depth, full recon dimensions, author tracking, not as Phase 0/Schema replacement.

fb0sh/pentester · 69 tokens

pentester-exploit

Phase 4 exploitation — PoC construction, exploit-db/msf search, safe verification. Required Skill-gate read at Phase 4. Use when starting Phase 4, exploitation, exploit, PoC, exploit-db, msf, Metasploit, or payload delivery.

fb0sh/pentester · 61 tokens

pentester-recon

Phase 1 intelligence recon methodology — passive+active recon, stack fingerprint, attack-surface map. Required Skill-gate read at Phase 1 (with pentester-enum-services). Use when starting Phase 1, intelligence gathering, recon, reconnaissance, OSINT prep, target profiling, or attack surface mapping.

fb0sh/pentester · 68 tokens

pentester-toolkit

Provision the pinned pentest toolset via DotSlash for the current scanenv (host-kali or kali-target-${ID}). Adapter, not a tool wrapper.

fb0sh/pentester · 37 tokens

pentester-waf-bypass

Phase 4 conditional — WAF/filter bypass for authorized CTF/range/pentest when payloads are blocked. Use at Phase 4 if blocked, or when user mentions WAF bypass, filter evasion, SQL/XSS/command-injection bypass, or security filter analysis.

fb0sh/pentester · 64 tokens