Chain

From H-mmer/pentest-agents · View interactive version

Chain is an AI agent skill from the GitHub repository H-mmer/pentest-agents. Build deep exploit chains — dispatches chain-builder agent. Given bug A, recursively walks the chain graph. Usage: /chain (then describe bug A)

How to use this skill

Skill file

Build exploit chain from: $ARGUMENTS

Process

  1. Read brain for current target context:

uv run python3 $CLAUDE_PROJECT_DIR/tools/brain.py brief <target>

  1. Get bug A description:
  1. Read rules/chain-table.md — the capability→next-bug table
  1. Read policy.md — extract policy preamble for the agent
  1. ALWAYS dispatch chain-builder agent (model: inherit) with:
  1. After agent returns:

No inline chain logic. No capability table. The chain-builder agent does all the work.

Top-Tier Chain Standard

A chain is valuable only when each link grants a concrete capability.

Before dispatching, classify bug A as one capability:

Ask the chain-builder for three paths: fastest proof, highest impact, and safest policy-compliant path. Kill chains that require guessing, prohibited data access, or unbounded scanning. A reportable chain must include end-to-end reproduction, where link 2 consumes the capability from link 1 rather than merely coexisting with it.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.