/claude-agenthunter:ai-agent-methodologyfrom claude-agenthunter
Master orchestrator for AI-agent red-team assessments. Routes to specialized hunt-agent-* skills by tool surface and enforces verification discipline to produce genuine, reproducible findings.
Ships in claude-agenthunter. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
You attack an AI agent through its tools, not through URLs and forms. The LLM is middleware; the tools are the sink; the real prize is what those tools can reach — cloud IAM, customer data, secrets managers, internal services, actions taken on a user's behalf. This skill routes you to the right hunt-agent-* skill AND enforces the verification discipline that separates an impactful, genuine finding from a confident-wrong one. In real engagements a false "the copilot leaked customer PII" is worse than useless — it burns client trust and gets the whole report dismissed. The discipline is not optional.
Agents generate text; they don't retrieve state. That is why a verification step is mandatory — a fluent answer can be a hallucination that looks identical to a real leak. Before you claim ANYTHING:
Why these exist (field war-stories): trusting an agent's "I don't sanitize" claim (false); mistaking a literal OOB probe for the real payload firing; misreading a binary status oracle; planning a boolean-oracle extraction against a tool whose allowlist made it impossible. Every rule above is a mistake that cost hours.
PART 0 stops you claiming a finding you cannot prove. This stops the opposite and more common failure: a probe that reports clean because it never looked. "We tested it and found nothing" is a claim to the client with the same evidentiary burden as a finding.
Measured in this bundle: a similarity gate scored a real system-prompt leak at 0.03 and said no-fire; a curated tool list hid two attacker-booked reservations; a two-character token floor missed the forged-observation attack that leaked the flag; a whitespace mismatch erased all 14 detections in a run; an HTTP 500 read as a refusal buried a confirmed auth bypass. Each was a probe calling a compromise clean.
| Deployment | Reached via | Auth model to probe | Crown jewel |
|---|---|---|---|
| Support/customer copilot | Web widget, Slack/Teams | per-user vs shared service account | cross-tenant customer PII |
| DevOps/SRE agent | Chatops, internal portal | service account (broad) | cloud IAM/metadata, prod shell |
| RAG knowledge assistant | Web, email/ticket ingest | per-user | cross-doc/tenant data, indirect injection |
| Coding/IDE agent | IDE, PR/CI bot | repo/CI token | source, secrets, CI execution |
| MCP / A2A tool server | Direct endpoint | often separate from web auth | protected resources, privileged tools |
| Autonomous workflow agent | API, schedule, webhook | delegated | on-behalf actions (payments, approvals) |
Two questions decide most findings: per-user identity or a shared service account? (shared → confused-deputy) and multi-tenant? (yes → cross-tenant access is the crown jewel).
| Agent Type / tool surface | Route to |
|---|---|
| Single-agent + tools | hunt-agent-tool-injection, hunt-agent-blind-exfil |
| Multi-agent / orchestrator / A2A protocol | hunt-agent-multi-agent, hunt-agent-race-condition |
| MCP-connected (probing an exposed server) | hunt-agent-mcp-exposure |
| MCP third-party/community servers, dynamic tools, no manifest pinning | hunt-agent-mcp-supply-chain (tool poisoning / rug-pull / shadowing) |
| RAG-augmented / doc-ingesting / vector store | hunt-agent-rag (poisoning, cross-tenant retrieval, embedding inversion), hunt-agent-prompt-injection (indirect) |
| Persistent memory / stored profile / writable knowledge | hunt-agent-memory-poisoning |
| Code execution (eval/exec) | hunt-agent-tool-injection (code path) |
| Data parser (YAML/JSON/XML/pickle) | hunt-agent-deserialization |
Tool wraps a native/compiled binary or legacy service (banner, %p pointer, libc error, tight byte-cap, arch in a debug tool) | hunt-agent-native-memory (overflow / leaked-pointer / ret2shellcode) |
| Agent operates a browser/desktop by vision or DOM (AI browser, computer-use, RPA copilot) — reads a screen/page, clicks & navigates | hunt-agent-browser-use (DOM/OCR injection, adversarial pixels, screen TOCTOU, cross-origin ATO) |
| Coding/IDE/CLI agent that reads project config (CLAUDE.md/AGENTS.md/.cursorrules/settings.json/.mcp.json/hooks) or can write its own config | hunt-agent-config-poisoning (rules-file backdoor, YOLO self-toggle, MCP/hook write-to-execute) |
| Network/fetch/URL/webhook | hunt-agent-tool-injection (SSRF), hunt-agent-blind-exfil (OOB) |
| DB access | hunt-agent-tool-injection (SQL/NoSQL) |
| Crypto tools (encrypt/decrypt/token) | hunt-agent-crypto |
| Guess/PIN/token verify, no lockout | hunt-agent-brute-force |
| Output hidden / DLP-filtered | hunt-agent-blind-exfil |
| Ingests external content (docs/URLs/email/tickets/RAG) or acts via tools | hunt-agent-prompt-injection (direct/indirect/multimodal) |
| Output rendered as markdown/HTML in a client (web/Slack/Teams/email/IDE) | hunt-agent-output-exfil (zero-click / link / HTML) |
| Secret likely in context / need tool contract | hunt-agent-prompt-extraction |
| Role/persona gate (admin/owner/root) | hunt-agent-auth-bypass |
| Time/day/window gate | hunt-agent-time-gate |
| Human approval / confirm step before a consequential action | hunt-agent-hitl-bypass |
| Log/diagnostic/file tools | hunt-agent-info-disclosure |
| Safety classifier / refusal / moderation / DLP blocks the payload | hunt-agent-guardrail-evasion (amplifier — layer onto the sink skill) |
| Metered/paid, autonomous loops, fan-out, paid downstream tools, shared quota | hunt-agent-resource-abuse (denial-of-wallet / DoS) |
1. CHARACTERIZE ─▶ 2. INJECT/ACCESS ─▶ 3. EXFILTRATE/EXTRACT ─▶ 4. ESCALATE/CHAIN
2+2, check <host>, key: value, {{7*7}}, SELECT 1).cat/grep/id exist.hunt-agent-prompt-extraction) — the system prompt often states the injection point.Separators (; \n && | $()), then resolve the newline mode (Mode A shell-exec vs Mode B the-agent-splits-into-a-tool-call — decides whether $() fires; see hunt-agent-tool-injection). Or bypass the agent via MCP/A2A.
Pick the channel by what Phase 1 proved: OOB (usually the winner for blind) → boolean oracle (only if a comparator runs) → timing (last resort, statistics required). hunt-agent-blind-exfil.
| You have | Escalate to | How |
|---|---|---|
| File read | Credential theft | .env, config, keys, cloud metadata/IAM, secrets manager |
| Command exec | Persistence / lateral | authorized_keys, cron, pivot to internal services / other agents |
| MCP/A2A resource access | Full data exfil | enumerate resources/tools, chain agents |
| Race condition | Financial/material loss | double-spend, limit bypass, on-behalf approval |
| Blind injection | Full extraction | OOB automation (min-necessary) |
| Single-agent RCE | Multi-agent / cross-tenant | use trust/shared state to reach privileged tools or other tenants |
| Engagement | Finding | Rejected |
|---|---|---|
| AI-agent pentest | tool injection, verified data exfil, MCP/A2A exposure, race, deserialization, crypto, auth/time bypass — with verified impact | "LLM said something," prompt injection with no sink, hallucinated secret |
| Bug bounty (AI platform) | impact-demonstrated exploitation | bare prompt disclosure (unless a real secret) |
| Red team | full chain: access → exfil → persistence → lateral / cross-tenant | isolated findings, no chaining |
| Internal audit | control-mapped (below), minimum-necessary evidence | findings without mapping; over-collected customer data |
RESEARCH-2026.md.RESEARCH-2026.md §3/§6.hunt-agent-prompt-injection · hunt-agent-output-exfil · hunt-agent-memory-poisoning · hunt-agent-rag · hunt-agent-guardrail-evasion · hunt-agent-resource-abuse · hunt-agent-tool-injection · hunt-agent-blind-exfil · hunt-agent-deserialization · hunt-agent-mcp-exposure · hunt-agent-mcp-supply-chain · hunt-agent-multi-agent (incl. A2A) · hunt-agent-prompt-extraction · hunt-agent-race-condition · hunt-agent-auth-bypass · hunt-agent-time-gate · hunt-agent-info-disclosure · hunt-agent-crypto · hunt-agent-brute-force · hunt-agent-hitl-bypass · hunt-agent-native-memory · hunt-agent-browser-use · hunt-agent-config-poisoning · redteam-mindset (discipline). See _CONTRACT.md for the standard every skill must meet.
Every hunt-agent skill carries a self-contained ## Runnable Probe (stdlib-only, copy-paste, ends with # LETHAL WHEN:). Grab the one for the surface you're on; each produces a discriminating oracle you then escalate to a real sink.
A static probe tests the payloads you thought of. When a guard/denylist blocks the obvious one, don't stop at the first refusal — mutate the payload (homoglyph, zero-width/Unicode-Tag smuggling, case/split, encoding) and re-fire, keeping a benign control that must NOT land so the oracle stays honest. The evasion a single probe missed is usually one transform away.
Status: FIELD-FIRED = validated on a live ARKX agent pod. UNTESTED = probe exists but hasn't been fired against a live agent (backed by public research/CVEs, pending field confirmation).
| Skill | Probe produces (the oracle) | Status |
|---|---|---|
| prompt-injection | canary page + OOB beacon → content-becomes-instructions (BANANA) + will-exfil | FIELD-FIRED |
| prompt-extraction | structural dump + run-twice reproducibility ratio → real leak vs confabulation | FIELD-FIRED |
| tool-injection | separator sweep: sleep timing delta + nslookup OOB → command exec | FIELD-FIRED |
| blind-exfil | OOB-DNS sink w/ literal-vs-substitution control → data in the DNS label | FIELD-FIRED |
| output-exfil | zero-click OOB listener + expired-allowlist-domain checker | UNTESTED |
| mcp-exposure | direct MCP client: initialize→list→read sensitive resource (bypass agent) | FIELD-FIRED |
| mcp-supply-chain | tools/list scan → hidden-Unicode + injection phrases in tool descriptions | UNTESTED |
| multi-agent | marker propagation A→B → confused-deputy action or self-replication | FIELD-FIRED |
| memory-poisoning | two-session marker → cross-session/user memory leak (MINJA shape) | UNTESTED |
| rag | poison-marker retrieval + cross-tenant filter IDOR | UNTESTED |
| guardrail-evasion | synthetic-token filter fingerprint → regex vs classifier + tag-smuggler | FIELD-FIRED |
| resource-abuse | amplification meter → one request → N billable calls (denial-of-wallet) | UNTESTED |
| native-memory | crash-offset binary-search + leaked-pointer regex | FIELD-FIRED |
| config-poisoning | craft hidden-Unicode rules file + repo scanner for invisible tags | UNTESTED |
| browser-use | 3-vector poisoned page (DOM/hidden/OCR) + OOB → cross-origin exfil | UNTESTED |
| auth-bypass | role claims + privilege-field bisection → names the effective field | FIELD-FIRED |
| deserialization | parser fingerprint + OOB-confirmed XXE | FIELD-FIRED |
| crypto | ECB repeated-block + padding-oracle detection | FIELD-FIRED |
| brute-force | throttle check + feedback/timing oracle | FIELD-FIRED |
| info-disclosure | traversal/encoding sweep → real secret-shaped content | FIELD-FIRED |
| race-condition | N concurrent identical requests → double-spend | FIELD-FIRED |
| time-gate | out-of-window + injected-time-claim → gate is prompt not server-clock | FIELD-FIRED |
| hitl-bypass | approval-summary vs actual-execution diff | UNTESTED |
Discipline: probes are single-target, marker-based, authorized-testing only. The probe gives you the oracle; PART 0 (Verification Law) + the skill's 8-point gate decide whether it's a finding.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
ai-agent, red-team, security-testing, llm-security, penetration-testing
24 skills in this plugin
/hunt-agent-auth-bypassAuthorization bypass in AI-agent tools — role/persona claims, unverifiable named-credential exceptions, privilege fields inside attacker-supplied credential documents, privilege escalation via prompt injection, data-classification override, and 'I-am-the-admin' attacks against prompt-level access control. Use when tools are gated by who is asking, or by a document the caller supplies, rather than by real authentication./hunt-agent-blind-exfilExtract data from AI-agent tools that execute but hide output — status-only, exit-code-only, or DLP-filtered. Characterize FIRST (visibility, allowlist, egress), then pick a channel: OOB DNS/HTTP, DLP-bypass via an unfiltered tool, boolean exit-code oracle, or timing. The channel that works is the one the filter doesn't inspect./hunt-agent-browser-useAttacks specific to computer-use and browser agents — agents that see a screen/DOM and act by clicking, typing, and navigating (AI browsers like Comet/Atlas, ChatGPT Operator, Claude Computer-Use, RPA copilots). Covers indirect injection through rendered page content the agent reads as instructions, screenshot/OCR-smuggled instructions invisible to humans, adversarial-pixel perturbation of a single image, screen TOCTOU (UI swaps under the agent between decision and click), deep-link/omnibox abuse, and the same-origin-policy collapse when one agent acts across all the user's authenticated tabs. Use when the target agent operates a browser or desktop by vision/DOM rather than a fixed tool API./hunt-agent-brute-forceBrute-force and rate-limiting weaknesses in AI-agent tools — PIN/token/password guessing with no lockout, and feedback oracles (correct-digit / too-high-low / Mastermind-style) that collapse the search space. Use when a tool accepts guesses and returns feedback without throttling./hunt-agent-config-poisoningThe agent's OWN configuration, instruction, and settings files as an attack surface — CLAUDE.md / AGENTS.md / .cursorrules / copilot-instructions.md, .vscode/settings.json, .claude/settings.json, .cursor/mcp.json / .mcp.json, hooks, and allowlist/YOLO toggles. A repo, doc, or upstream agent plants instructions or config the agent reads and trusts, so it emits backdoored code, disables its own guardrails, auto-approves tools, or runs a command at startup — often before any trust dialog. This is the self-write-to-execute class: distinct from mcp-supply-chain (third-party tool descriptions) and memory-poisoning (model/RAG memory). Use for coding/IDE/CLI agents and any agent that reads project config or can write its own config./hunt-agent-cryptoCryptographic weaknesses in AI-agent tools that encrypt/decrypt/sign or mint tokens — ECB cut-and-paste and byte-at-a-time, padding oracles, missing MAC, hardcoded keys/predictable IVs. Use when an agent exposes crypto operations as tools.npx claudepluginhub elementalsouls/claude-agenthunter --plugin claude-agenthunterOther plugins' skills for the same job