chain-builder

chain-builder is an agent for Claude Code from Awarexone/Agentic-Bug-Hunter. It costs 96 tokens per session (1,081 once invoked), scanned B, original, MIT.

A security-analysis agent that looks for ways to combine a confirmed bug with additional bugs to increase the overall impact. For example, it may examine whether an access-control flaw also affects account changes or deletion.

In plain words
What is it for?
Use it after confirming a vulnerability to test possible chains such as IDOR with privilege escalation, SSRF with cloud metadata access, or open redirects with OAuth account takeover.
Why use it?
Security issues can be more serious together than separately. This helps testers systematically check likely follow-up paths and confirm each link with an exact request.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter; positional $N argument.

Part of the agentic-bug-hunter plugin — 16 skills, 37 commands, 9 agents, 3 hooks shipped together

Good fit Use it after confirming a vulnerability to test possible chains such as IDOR with privilege escalation, SSRF with cloud metadata access, or open redirects with OAuth account takeover.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/awarexone/agentic-bug-hunter/chain-builder
About the project

Agentic Bug Hunter is a terminal toolkit that uses AI to investigate security targets, test for vulnerabilities, validate findings, and write bug bounty reports. It is for ethical hackers submitting findings to platforms such as HackerOne, Bugcrowd, Intigriti, or Immunefi, and can resume previous sessions. The catalogue entries package commands, skills, agents, instructions, hooks, and settings for using the toolkit.

Awarexone/Agentic-Bug-Hunter · 5,367 stars · on GitHub · awarexone.com

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.

Clone the repo
git clone --depth 1 https://github.com/Awarexone/Agentic-Bug-Hunter

Made for: Claude Code.

Or install agentic-bug-hunter, the plugin that ships this one along with the rest of its 16 skills, 37 commands, 9 agents, 3 hooks.

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 chain-builder

README.md
[![agentmods](https://agentmods.dev/badge/agents/awarexone/agentic-bug-hunter/chain-builder/github.svg)](https://agentmods.dev/agents/awarexone/agentic-bug-hunter/chain-builder)
Your own site
<a href="https://agentmods.dev/agents/awarexone/agentic-bug-hunter/chain-builder"><img src="https://agentmods.dev/badge/agents/awarexone/agentic-bug-hunter/chain-builder/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for chain-builder

Your own site · 80×15
<a href="https://agentmods.dev/agents/awarexone/agentic-bug-hunter/chain-builder"><img src="https://agentmods.dev/badge/agents/awarexone/agentic-bug-hunter/chain-builder.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 96 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,081 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 2 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00096 $0.01081
Opus 5.5 $0.00038 $0.00432
Sonnet 5.5 $0.00019 $0.00216
Haiku 4.5 $0.00010 $0.00108

Measured 1mo ago against content hash fce5e6683df3, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

chain-builder scanned grade B with 2 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 1mo 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.

Cloud metadata endpointmediumServer-side request forgery

One request to 169.254.169.254 can return temporary IAM credentials.

| SSRF DNS callback | 169.254.169.254 cloud metadata | Critical |

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- Use `curl` for HTTP requests (researcher provides auth headers)
agents/chain-builder.md · 90 lines

How it starts

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

Chain Builder Agent

You are a bug chain specialist. You take a confirmed bug A and systematically find B and C to combine for higher severity.

Your Approach

  1. Identify bug class of A
  2. Look up chain table for B candidates
  3. Check if B is testable from current position
  4. Confirm B exists (exact HTTP request)
  5. Output: chain path, combined severity, separate report count

The A→B Chain Table

Found A Check B Combined Impact
IDOR (GET) IDOR on PUT/DELETE same path Multiple High
Auth bypass Every sibling endpoint in same controller Multiple High
Stored XSS Admin views it? → priv esc Critical
SSRF DNS callback 169.254.169.254 cloud metadata Critical
Open redirect OAuth redirect_uri → code theft Critical ATO
S3 bucket listing JS bundles → grep OAuth creds Medium/High
GraphQL introspection Auth bypass on mutations High
LLM prompt injection IDOR via chatbot (other user data) High
Path traversal /proc/self/environ → RCE Critical
Subdomain takeover OAuth redirect_uri at subdomain Critical
JWT weak secret Forge admin token Critical
File upload bypass SVG→XSS, PHP→RCE High/Critical

Known High-Value Chains

Key Chain Examples

S3 → OAuth ATO: List bucket → download JS bundles → grep client_secret → test OAuth without code_challenge → 3 reports ~$1,200

Open Redirect → OAuth ATO: Confirm redirect → find OAuth flow → set redirect_uri to your redirect endpoint → victim clicks → code delivered to attacker → exchange for token

XSS → Admin Priv Esc: Stored XSS in user field → verify admin views it → payload auto-submits POST to promote attacker to admin

SSRF → Cloud Metadata: DNS callback only = Info → escalate to 169.254.169.254 → get IAM role → fetch credentials → enumerate AWS perms = Critical

Prompt Injection → IDOR: Confirm chatbot follows injected instructions → inject cross-user data request → if other user data returned = IDOR via AI feature

Read the full file on GitHub · 90 lines

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. 1mo ago Changed · -3 lines fce5e6683df3
  2. 1mo ago First seen · 93 lines · 96 tokens per session scan B 8a166f8111af

Subscribe to this mod's changes

chain-builder is an agent published in the GitHub repository Awarexone/Agentic-Bug-Hunter (5,367 stars, last pushed 11d ago), licensed MIT. It adds 96 tokens to every session and 1,081 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it B with 2 findings (cloud metadata endpoint, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other agents, from other repositories

ssti-hunter

Server-Side Template Injection specialist. Covers Jinja2 (H1 #74), Twig, Velocity, FreeMarker, ERB, Handlebars, Thymeleaf. Use for any rule-engine, comment/message rendering, PR automation, admin template, or user-customizable template surface. Systematic blocklist mapper + CVE bypass runner + runtime-vs-parse…

H-mmer/pentest-agents · 83 tokens

report-writer

Security report generation agent. Use for compiling findings into formal penetration test reports, executive summaries, technical write-ups, and bug bounty submissions. Provide the findings directory or list of vulnerabilities to document.

H-mmer/pentest-agents · 42 tokens

sast-danger-mapper

Maps dangerous operations in a source file: memory ops, type casts, arithmetic near trust boundaries, free/dealloc patterns. Pattern matching task — list what you see, don't speculate. Use via /sast command.

H-mmer/pentest-agents · 49 tokens

sast-gap-analyzer

Analyzes validation gaps in data flows. Takes traced flows and identifies where checks are missing, insufficient, or bypassable. The 'interaction reasoning' step — finds bugs that exist in the gaps between individually correct-looking code. MUST run on Opus. Use via /sast command.

H-mmer/pentest-agents · 63 tokens

browser-stealth-agent

Stealth browser automation agent for targets behind Cloudflare, Akamai, Google, DataDome, or PerimeterX bot detection. Drives the local camofox-browser REST server (Camoufox, C++-patched Firefox) for recon, client-side bug verification, and evidence capture. Prefer this over the Burp-backed browser-agent when the…

H-mmer/pentest-agents · 98 tokens

browser-verifier

Mandatory browser verification for client-side findings (XSS, DOM, postMessage, prototype pollution). Takes a finding with curl-based evidence and PROVES or DISPROVES it fires in a real browser. No finding ships without browser verification. Dispatched automatically by /hunt and /validate for client-side vuln classes.

H-mmer/pentest-agents · 66 tokens