/claude-agenthunter:hunt-agent-brute-forcefrom claude-agenthunter
Tests AI-agent tools for brute-force and rate-limiting weaknesses by exploiting feedback oracles (correct-digit, too-high-low, Mastermind-style) to recover PINs, tokens, or passwords with minimal guesses.
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.
None: SKILL.md is the whole skill.
Tools that accept guesses (PINs, tokens, passwords) without rate limiting or lockout are brute-forceable, and any feedback ("digit correct," "too high") is an oracle that collapses the search space. In enterprises this is agent-fronted MFA/OTP/PIN checks, coupon/voucher validation, and token verification exposed as a tool.
Agent-fronted authentication (OTP/PIN/API-token verification), voucher/coupon systems, "unlock" gates — recovery = account/resource access.
When feedback says which digits are present, find the set, then permute.
Test 0000,1111,…,9999 → the four that return "1 correct" are the digits → test the 24 permutations
Field example: 10 digit tests + 24 permutations = 34 guesses vs 10,000.
"too high/low" → ~log2(N) guesses.
"correct position" feedback → test each position independently (~10×len).
After each guess, eliminate all candidates that would produce different feedback (Mastermind solver) until one remains.
A probe that reports clean because it never looked is the more common failure, and it reaches the client as "we tested it and found nothing". Before any negative:
No rate limiting; no lockout; verbose feedback oracle; small search space; guess-verification exposed as an unthrottled tool.
Field example: reproduced deterministically in lab/ — a 4-digit PIN gate with no lockout (25 wrong guesses all answered) and a short-circuit comparison that leaks prefix correctness. Control first: a known-right prefix timed 0.025s against 0.000s for a known-wrong one, proving the oracle discriminates before any timing result was trusted. The PIN then fell in 40 timed probes instead of 10,000 guesses, and the recovered value authenticates — an actioned secret, not a statistical hint. Gate: python3 lab/run_lab.py.
#!/usr/bin/env python3
# Two things: (1) is the verify endpoint throttled/locked after N bad guesses? (2) does it leak a
# feedback ORACLE (partial-correctness, differential timing/message) that shrinks the search space?
# deps: stdlib only. Small N — this is a control test, not an actual brute-force run.
import json, time, urllib.request
VERIFY = "https://target/agent/verify" # {"code": "..."} -> accept/reject
COOKIE = "session=REPLACE"
def guess(code):
t = time.time()
r = urllib.request.Request(VERIFY, data=json.dumps({"code": code}).encode(),
headers={"Cookie": COOKIE, "Content-Type": "application/json"}, method="POST")
try: body = urllib.request.urlopen(r, timeout=15).read().decode("utf-8", "replace")
except Exception as e: body = f"ERR {e}"
return time.time() - t, body
resps = [guess(f"{i:06d}") for i in range(20)] # 20 bad guesses
blocked = any("locked" in b.lower() or "too many" in b.lower() or "429" in b for _, b in resps)
print("[throttle]", "present (lockout/429 seen)" if blocked else "ABSENT — unlimited guessing")
msgs = {b for _, b in resps}
print("[oracle]", "LEAK — responses differ per guess (partial-correctness?)" if len(msgs) > 1
else "uniform responses (no obvious oracle)")
dts = sorted(dt for dt, _ in resps)
print(f"[timing] min={dts[0]:.3f}s max={dts[-1]:.3f}s (large spread -> timing oracle candidate)")
# LETHAL WHEN: no lockout AND (a) the keyspace is small enough to exhaust, or (b) an oracle
# (message/timing/partial-match) narrows it — and you actually RECOVER the secret and use it.
hunt-agent-crypto (token encrypted, not verified — ECB oracle) · hunt-agent-auth-bypass (claim the role instead of guessing) · ai-agent-methodology · redteam-mindset
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
brute-force, rate-limiting, oracle-attack, pin-recovery, token-guessing
24 skills in this plugin
/ai-agent-methodologyMaster orchestrator for AI-agent red-team assessments — enterprise copilots, DevOps/SRE agents, RAG assistants, coding/IDE agents, MCP/A2A tool servers, autonomous workflow agents. Load at the START of any agent test, when facing a new agent target, or when unsure what to test next. Routes to the hunt-agent-* skills by tool surface and architecture, and enforces the discipline that makes findings genuine: characterize first, verify every claim, reproduce, extract the minimum./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.npx claudepluginhub elementalsouls/claude-agenthunter --plugin claude-agenthunterOther plugins' skills for the same job