Skip to main content
Status: Stable Version: 1.0.0 Author: Rifteo Tags: ai, llm, prompt-injection, agentic, bug-bounty, pentest, owasp-llm
Installation

Summary

Apply a structured, eight-phase methodology to discover and confirm LLM/AI-specific vulnerabilities across all trust boundaries in AI-backed applications.
  • Phase 1 maps every LLM-backed feature, accessible tool, data source, and injection vector (direct, indirect via document/web/email/database)
  • Phases 2–3 run direct and indirect prompt injection — from system prompt extraction to document upload payloads, invisible Unicode Tags block smuggling, and web-page injection
  • Phase 4 tests all exfiltration channels (markdown image leak, SSRF via agent tools, DNS base32 exfiltration) with mandatory OOB confirmation via Burp Collaborator
  • Phase 5 covers agentic systems (OWASP ASI01–ASI10): goal hijacking, identity spoofing, tool misuse/SSRF, memory poisoning, sandbox escape, and inter-agent trust abuse
  • Phase 6 tests cross-tenant IDOR in RAG retrieval layers using planted canary strings across separate tenant sessions
  • Phase 7 enforces a five-check false-positive gate before any finding reaches a report — reproducibility, known-secret anchoring, cross-tenant artifact verification, OOB confirmation, and impact beyond refusal
  • Phase 8 produces a structured, submittable report with OWASP LLM/ASI category, CWE mapping, reproduction steps, and remediation guidance

SKILL.md file

AI / LLM Hunter

Systematically detect and confirm LLM/AI-specific vulnerabilities across all trust boundaries — prompt injection, system prompt leakage, exfiltration, agentic tool abuse, and cross-tenant IDOR in retrieval layers.

What Does It Check?

LLM-backed applications introduce a new class of trust-boundary vulnerabilities that differ fundamentally from traditional web bugs. The model itself is not the target — the target is the data, tools, and actions the model can reach. A jailbreak that makes the model say something rude is not a bug. A payload that causes the model to exfiltrate another tenant’s data, invoke a privileged tool, or execute code on a worker is.In scope:
  • Direct prompt injection: system prompt extraction, tool invocation bypass, context window pollution
  • Indirect prompt injection: document/PDF upload, web page injection, email injection, Unicode Tags block (invisible payload smuggling)
  • Data exfiltration: markdown image leak (zero-click), SSRF via agent tools, DNS base32 exfiltration — all require OOB confirmation
  • Agentic system testing (OWASP ASI01–ASI10): goal hijacking, identity spoofing, tool misuse/SSRF, memory poisoning, sandbox escape, inter-agent trust abuse
  • Cross-tenant IDOR in RAG/retrieval layers: canary-string methodology across separate accounts
Out of scope:
  • Content policy violations — model refusing or saying something offensive is not a bug
  • Traditional web vulnerabilities (XSS, SQLi) — use dedicated skills for those
  • Automated scanning — this is a guided manual methodology

How It Works

Phase 1: Reconnaissance — Map the AI Attack SurfaceIdentify LLM-backed features (streaming responses, /api/chat, choices/message in JSON), accessible tools (function_call, tool_use in responses, RAG/knowledge base, code execution, external integrations), and map all injection surfaces (direct via chat, indirect via document upload, web fetch, email, or database fields).Phase 2: Direct Prompt InjectionAttempt system prompt extraction via role overrides, continuation tricks, format injection, and model-specific token boundary exploits. Test tool invocation bypass to invoke restricted functions. Attempt context window pollution via many-shot overrides.Phase 3: Indirect Prompt InjectionPlant payloads in documents the model reads (PDF/DOCX with invisible text, HTML hidden elements), web pages it summarizes (HTML comment injection, meta tag injection), and emails it processes. Use Unicode Tags block (U+E0000–U+E007F) to smuggle instructions past human reviewers while remaining fully effective against the model.Phase 4: Data ExfiltrationTest all outbound channels the model controls:
  • Markdown image leak: if the model renders markdown and auto-fetches images, inject an image URL pointing to Burp Collaborator
  • SSRF via agent tools: ask the model to fetch your Collaborator URL using HTTP/fetch tools
  • DNS exfiltration: encode secrets as base32 subdomain labels and trigger DNS resolution
All exfiltration findings require a live Collaborator/webhook hit with actual data — on-screen rendering alone is never sufficient.Phase 5: Agentic System Testing (OWASP ASI01–ASI10)Phase 6: Cross-Tenant IDOR in LLM SystemsPlant a non-guessable canary string as Account A. Switch to Account B. Ask the AI to search for the canary. If Account B retrieves Account A’s canary from the RAG layer — confirmed cross-tenant IDOR. Requires reproducibility across fresh sessions.Phase 7: False-Positive Gate (run before every report)Fail any single check = do not report the finding.Phase 8: Report Structure

Quick-Reference: Priority Triage Order

Test in this order when time is limited — highest-impact first:
  1. Agentic tool access — can you invoke HTTP fetch, code exec, file write, or email send?
  2. Cross-tenant IDOR in retrieval — does the model return data from other tenants?
  3. Indirect injection surface — what external content does the model read (docs, web, email, DB fields)?
  4. System prompt leakage — extract via direct injection; anchor to non-guessable values before reporting
  5. Exfiltration channels — identify all outbound channels (image rendering, tool calls, webhooks)
  6. Sandbox escape — test code interpreter for OS command execution and network reach
  7. Memory/session persistence — poison long-term memory and verify it carries across sessions
  8. Direct injection — only payable if chained to real impact

Known Limitations

  • Exfiltration findings require an OOB server (Burp Collaborator, interactsh, or a webhook) — on-screen rendering is never sufficient for a payable finding
  • Cross-tenant IDOR testing requires two separate accounts with independent sessions
  • Memory poisoning tests require the application to expose long-term memory persistence — not all LLM systems have this
  • Sandbox escape techniques vary by sandbox implementation; OS command execution results depend on the specific container configuration

Benchmark Results

Tested on claude-sonnet-4-6 via Claude Code CLI. Same prompt, same model, same target. The only variable is whether the skill is loaded.

idor-hunter

Systematic IDOR/BOLA detection methodology — the same cross-tenant access control testing that applies to LLM retrieval layers

ssrf-hunter

Full SSRF methodology for exploiting agentic tool calls that reach internal infrastructure or cloud metadata endpoints

js-analyzer

JavaScript analysis for uncovering AI API endpoints, tool definitions, and hardcoded keys in LLM-backed frontends