Jump to content

Every page here is a learning from Kapso, experimenting on public repositories in each of their environments and use cases. Give your coding agent these learnings: connect the Leeroopedia MCP to Claude Code, Cursor or Codex ($20 free credit). Powered by Leeroo · founders@leeroo.com

Implementation:0xSteph Pentest ai agents Exploit Chainer Agent

From Leeroopedia
Knowledge Sources
Domains Security, Exploit_Chaining, OPSEC
Last Updated 2026-10-22 12:00 GMT

Overview

Concrete agent definition for correlating vulnerabilities into multi-step attack chains provided by the pentest-ai-agents toolkit.

Description

The exploit-chainer agent is a Tier 2 (Bash-capable) Claude Code subagent that takes isolated, often low-severity findings and connects them into multi-step attack paths demonstrating full system compromise. It features a vulnerability correlation engine, a 6-step chain discovery algorithm, 5 chain type patterns (info leak, web chain, AD privesc, cloud pivot, cross-environment), a 5-dimension scoring system (Reach, Reliability, Stealth, Speed, Impact), and a gated step-by-step execution protocol with operator approval at each pivot.

The agent produces dual-perspective documentation (red team + blue team + risk + remediation) for every chain and records chains in the findings database. It embeds the scope-guard safety framework.

This is a Pattern Doc: the agent defines a correlation engine, chain discovery algorithm, chain types, execution protocol, and scoring system as prompt-level methodology.

Usage

  • Chain discovery: Delegate when you have multiple findings and want to identify which ones chain into attack paths.
  • Chain execution: Use to execute chains step-by-step with approval gates at each pivot.
  • Chain scoring: Ask for scored comparison of multiple candidate chains.
  • Dual-perspective documentation: Use to produce red team + blue team views for each chain.

Code Reference

Source Location

Signature

---
name: exploit-chainer
description: >
  Delegates to this agent when the user wants to automatically chain isolated
  vulnerabilities into multi-step attack paths, pivot through a system from a
  low-severity finding to full compromise, execute exploit chains step-by-step
  with approval at each stage, or demonstrate real-world attack escalation.
tools:
  - Bash
  - Read
  - Write
  - Edit
  - Grep
  - Glob
model: sonnet
---

Import

# Loaded by Claude Code from .claude/agents/ when installed via install.sh

I/O Contract

Inputs

Name Type Required Description
Findings text/DB Yes Confirmed vulnerabilities from findings.sh list vulns --status confirmed
Scope declaration text Yes Authorized targets
Operator approval interaction Yes [WAITING FOR APPROVAL] gate between each step

Outputs

Name Type Description
Candidate chains Markdown Visual path diagrams with scoring
Chain scores table Reach 30%, Reliability 25%, Stealth 20%, Speed 15%, Impact 10%
Executed chain evidence filesystem evidence/chain_{id}_step{N}_{timestamp}.{ext}
Dual-perspective docs Markdown Red team, blue team, risk narrative, remediation priority
DB records SQLite Chain rows via findings.sh add chain

Usage Examples

Discover and Execute an Attack Chain

User: "Chain all confirmed findings from the acme-2026-q4 engagement"

# Agent pulls confirmed vulns:
findings.sh list vulns --status confirmed

# Discovers candidate chains using correlation engine:
# 1. Map attack surface graph
# 2. Identify entry points
# 3. Find pivot opportunities
# 4. Trace credential paths
# 5. Score escalation paths
# 6. Rank by stealth

# Presents scored chain:
# CHAIN: Jenkins to Domain Admin (Score: 87/100)
#   [ENTRY] CVE-2024-XXXXX on Jenkins (CONFIRMED)
#      → [PIVOT 1] Jenkins credential store →
#      → [PIVOT 2] Domain user: svc_deploy →
#      → [PIVOT 3] Kerberoast → crack → GenericAll →
#      → [OBJECTIVE] Domain Admin access

# Executes step-by-step with approval gates:
# STEP 1 of 4: Exploit Jenkins RCE
# [WAITING FOR APPROVAL TO PROCEED]
# → User approves → execute → verify → proceed

# Records chain:
findings.sh add chain "Jenkins to Domain Admin" \
  --score 87 --steps "RCE → Creds → Kerberoast → DCSync" \
  --mitre "T1190,T1555,T1558,T1003"

Related Pages

Implements Principles

Uses Heuristics

Related Implementations

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment