Implementation:0xSteph Pentest ai agents Exploit Chainer Agent
| 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
- Repository: pentest-ai-agents
- File: agents/exploit-chainer.md
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
- Principle:0xSteph_Pentest_ai_agents_Attack_Chain_Analysis
- Principle:0xSteph_Pentest_ai_agents_Scope_Enforcement_and_Safety
Uses Heuristics
- Heuristic:0xSteph_Pentest_ai_agents_OPSEC_Tagging
- Heuristic:0xSteph_Pentest_ai_agents_MITRE_ATTACK_Mapping
Related Implementations
- Implementation:0xSteph_Pentest_ai_agents_Scope_Guard provides the embedded safety framework
- Implementation:0xSteph_Pentest_ai_agents_Findings_CLI receives chain records from this agent
- Implementation:0xSteph_Pentest_ai_agents_Poc_Validator_Agent feeds confirmed findings to this agent
- Implementation:0xSteph_Pentest_ai_agents_Attack_Planner_Agent provides strategic view; this agent handles tactical execution