Skip to content

08 · Advanced

AI-Assisted IDOR Hunting

7 min readIDOR Hunting

By 2026, AI is table stakes in the bug bounty stack. It doesn’t find IDORs for you. It collapses the time between “I have a hunch” and “I have a working PoC.” Used carelessly, it floods you with hallucinations and leaks target data to third parties. Used well, it multiplies your speed 3-5× on the right phases.

Where AI actually helps (and where it doesn’t)

Section titled “Where AI actually helps (and where it doesn’t)”

Be specific about this, vague “AI for bug bounty” claims don’t survive contact with real targets.

Phase AI verdict Why
Endpoint discovery from JS bundles High value LLMs are excellent at extracting structured endpoint lists from minified JS, much faster than regex.
OpenAPI / Swagger triage High value Feed the spec, ask “rank these endpoints by IDOR risk based on parameter shape and naming.”
PoC script generation High value “Write a Python enumeration script for this endpoint with hard cap N=5”, saves 10 min, reliably.
Report drafting High value Structure, CVSS reasoning, impact framing. Always edit before submitting.
Mobile APK string analysis Useful LLMs surface base URLs and endpoint strings well, but verify, they hallucinate paths.
Bypass-payload brainstorming Useful Good for “give me 20 path-normalization variants”, but no substitute for testing each one.
Reasoning about authorization logic Low value LLMs don’t actually understand multi-tenant role models. They’ll confidently call non-bugs IDORs.
Confirming exploitability Low value “This looks like an IDOR” is a hypothesis. Always confirm with the two-account loop yourself.
Choosing what to hunt Low value Intuition for “this feature feels new and rushed” still beats any model.

The single highest-ROI use of AI in IDOR hunting. Take a target’s JavaScript bundle, paste it into Claude/GPT, and ask for:

Prompt template · JS-to-endpoints (PROMPT)

You are a security researcher reviewing a JavaScript bundle from
<target> for endpoint enumeration purposes (authorized program).
Extract:
1. Every HTTP endpoint (path + method when inferrable).
2. Every parameter name that appears to be an object identifier
(anything ending in _id, _uuid, _key, _slug, etc).
3. Any internal API base URLs or hostnames.
4. Authentication patterns (header names, token shapes).
Output as a structured table. Do not invent endpoints not
present in the source. Mark any uncertain inference with [?].
<paste bundle>

The “do not invent” instruction is doing real work. LLMs love to fabricate plausible-looking endpoints. Spot-check the output before fuzzing.

The same pattern applies to OpenAPI / Swagger specs. Ask the model to rank IDOR candidates by parameter shape. It also applies to decompiled mobile apps. Ask for endpoint strings and ignore UI code.

The 2025-2026 generation of proxy tooling shipped real AI features, not chatbot wrappers:

  • Caido Shift & Assistant (Proxy · Caido). Caido’s “Shift” lets you select a request in Replay and ask an LLM to mutate it (variant payloads, bypass attempts, type confusion). Their Assistant is a security-tuned model for explaining requests and suggesting attack vectors. Bring-your-own-model via OpenRouter (Anthropic, OpenAI, Google).
  • Chatio (Plugin · Caido). Community Caido plugin (2.0.0 released Feb 2026), multi-provider AI assistant integrated into the testing workflow with security-focused templates. Free, open-source.
  • Burp AI Assistant (Proxy · Burp). PortSwigger’s in-Repeater AI. Explains requests, suggests payload variants, generates custom Bambdas. Requires PortSwigger AI credits; locked to a single backing model.
  • PentestGPT (Agentic v1.0) (CLI · Agentic). Goes beyond chat, a three-module pipeline (reasoning, generation, parsing) that plans, executes, and adapts end-to-end. Docker-first with 20+ pre-installed tools. Strong on CTF-style targets; less proven on subtle business-logic IDORs.

The most credible 2026 research direction isn’t “one big agent finds bugs.” It’s many narrow agents that disagree. The open-source evilsocket/audit is the clearest artifact to study. It is built on the Claude Agent SDK and inspired by 2025 industry research programs, including Project Glasswing. Its multi-stage pipeline is readable:

Multi-agent vuln-discovery pipeline (ARCH)

# Different models, deliberate disagreement, reachability gate
1. Recon → Opus-class // map the repo / API, emit Hunt tasks
2. Hunt → Sonnet-class // one attack class per agent (BOLA, BFLA, mass-assign…)
3. Validate → Opus-class // adversarial re-read, tries to DISPROVE
4. Gapfill → Sonnet-class // re-queue under-covered surface
5. Reachability → static analysis // gating step: is the buggy path reachable?
6. PoC → Sonnet-class // generate concrete exploit attempt
7. Triage → Opus-class // severity + dedupe
8. Report → Opus-class // structured writeup

The key insight: asking the same model to find AND validate a bug is a recipe for false positives. Different models at the Hunt and Validate stages catch each other’s confabulations. The reachability gate kills the largest false-positive class, “this looks buggy in isolation but no real request path reaches it.”

Solo hunters should not run the full pipeline. Instead, split your AI workflow across two providers. Use one model to suggest IDOR candidates from an OpenAPI spec. Paste the candidates into a different model and ask “argue why each of these is NOT vulnerable.” Test manually the bugs that survive both passes.

This is the workflow that genuinely shaves hours per finding. Once you’ve manually proven a single-ID IDOR, ask an LLM to scaffold the enumeration script, with explicit safety constraints:

Prompt template · safe PoC scripting (PROMPT)

Write a Python script that demonstrates IDOR on this endpoint:
GET /api/v2/users/{id}/profile
Authorization: Bearer <token from env>
Constraints (NON-NEGOTIABLE):
- Hard-cap at 5 sequential IDs. Never more.
- Read TOKEN from env var, never hardcoded.
- Print only: id, http_status, length(response_body).
- Do NOT print response contents (could include real PII).
- Add a 1-second sleep between requests.
- Exit cleanly on any 429.
Output a single .py file. No commentary.

The constraints aren’t optional. They keep your PoC inside ethical and legal bounds. The 5-record cap, the sleep, and the no-content-print are the difference between “responsible disclosure” and “you exfiltrated PII.” Most current LLMs respect explicit caps if you state them up front.

LLMs are excellent at structured writing, exactly what reports need. Workflow:

  1. Save the vulnerable request/response pair and your reproduction notes to a text file.
  2. Ask the LLM: “Write a bug bounty report using the structure: Summary / Severity / Steps to Reproduce / PoC / Impact / Remediation. Use the source material below. Do not invent details I haven’t given you.”
  3. Ask for a CVSS v3.1 vector with explicit reasoning per metric.
  4. Edit it. Triagers can spot LLM phrasing. The structure is fine; the voice should be yours.

Integrating AI into the two-account methodology without breaking it:

The 2026 IDOR loop with AI inserted

  • Recon, LLM extracts endpoints from JS / OpenAPI / mobile decompile. You spot-check and prune hallucinations.
  • Triage, LLM ranks endpoints by IDOR likelihood given parameter shapes. You pick the top 10 to test.
  • Two-account loop, entirely manual. AI does not touch this step. Run Burp/Caido + Autorize as in section 03.
  • Bypass brainstorming, when manual hits 403, ask AI for “20 variants of this request to try.” Run them yourself; don’t trust AI’s “this one works” claim.
  • Confirmation, entirely manual. Two screenshots, both accounts, real distinguishable data.
  • PoC scripting, AI scaffolds the script with hard caps. You read every line before running it.
  • Report writing, AI drafts to structure. You edit for voice and verify every claim against the actual evidence.

The pattern: AI compresses the boundaries of the workflow (recon → triage, finding → PoC, draft → report). The core authorization-reasoning step, where you actually decide a bug exists, stays human. That’s the right division of labor in 2026, and it’s likely to stay the right one through 2027.

Next step: write it up. Writing the Report shows the structure triagers accept.

Connections2 backlinks · 1 outgoingFull graph →
Open local graph around this page
Open full graph →
Click a node to open · Drag to reposition · Scroll to zoom

IDOR HuntingFor educational and authorized bug bounty use only.