Skip to content

AI-Assisted Bug Hunting: Practical LLM Workflows for 2026

6 min readBug Hunting for Beginners

AI in bug bounty went from “useful for report drafts” in 2023 to “part of every serious hunter’s pipeline” by 2026. The hunters who refuse to integrate LLMs are leaving real money on the table. However, hunters who use LLMs without judgment file noisy duplicate reports and damage their reputation.

This section focuses on the productive middle: using LLMs as a force multiplier on tasks that suit them, while keeping your human intuition in the loop where it matters.

Modern web apps ship multi-megabyte minified JS bundles. Reading them manually is a slog. An LLM can read the whole file in seconds and extract exactly what matters.

Effective Prompt Template:

You are reviewing a minified JavaScript bundle from a bug bounty target.
Extract and categorize:
1. Every API endpoint path (full URLs and relative paths)
2. Every internal/admin route
3. Any hardcoded credentials, API keys, tokens, or secrets (look for patterns like AWS_, sk_live_, Bearer, etc.)
4. Feature flag names and their default values
5. URLs pointing to staging, dev, or non-production environments
6. Any commented-out code that looks security-relevant
Return structured JSON.
--- BEGIN FILE ---
[paste JS content here]
--- END FILE ---

Pro Tip for 2026: If the JS file exceeds your LLM’s context window, use an open-source tool like fabric to pipe it directly via CLI. For files too large for a single context window: split by function boundaries (search for function or =>) and process in chunks.

8.2 Custom Wordlist and Payload Generation

Section titled “8.2 Custom Wordlist and Payload Generation”

LLMs are excellent at generating context-aware wordlists.

Examples:

  • “Generate a ffuf wordlist of 100 likely admin endpoint paths for a healthcare SaaS app, one per line, no comments.”
  • “Given this JS endpoint pattern /api/v2/{resource}/{id}/edit, generate 50 plausible {resource} values for a financial services API.”
  • “Write a polyglot XSS payload that works in attribute context with double-quote filtering and a CSP that allows unsafe-inline but not external scripts.”

8.3 Code Understanding for Open-Source Components

Section titled “8.3 Code Understanding for Open-Source Components”

When you discover a target runs an open-source dependency (Spring Boot, Strapi, Express, Drupal, etc.), grab the relevant source files from GitHub and ask the LLM:

  • “In this Express middleware, are there any authentication bypasses based on URL casing or path normalization?”
  • “Given this GraphQL resolver, list every field that lacks an authorization check.”
  • “This JWT verification function, what edge cases could allow forgery?”

LLMs tighten language better than humans without losing technical accuracy. The workflow:

  1. You write a rough bullet-point version of the report: vulnerability name, precise steps to reproduce, and concrete business impact.
  2. LLM reformats into a polished report with clear headers and professional tone.
  3. You verify every single technical claim. Never let the LLM invent technical details.

LLMs are good at writing nuclei templates from CVE descriptions or known vulnerability patterns.

Prompt:

Write a nuclei YAML template that detects CVE-2024-XXXXX in [software]:
- Vulnerable versions: [versions]
- Detection method: [GET /endpoint with payload, check response]
- Severity: high
Make sure the template follows the latest Nuclei v3 syntax schema.

Always validate the template against a known-vulnerable instance (a Docker container of the affected version) before running it broadly.

8.6 Copy-Pasteable Script Templates for Automation

Section titled “8.6 Copy-Pasteable Script Templates for Automation”

To operationalize AI workflows, you can automate JavaScript parsing and endpoint discovery using simple Python scripts and CLI commands.

Python Script: Automated JS Scanner (Using Gemini API)

Section titled “Python Script: Automated JS Scanner (Using Gemini API)”

Save this script as parse_js.py in your scratch folder. It reads a local JS file, automatically structures a query for the Gemini API (using the official Google GenAI SDK), and extracts API routes, hardcoded keys, and dev environments.

import os
import sys
import json
from google import genai
from google.genai import types
def analyze_js_file(filepath: str):
if not os.path.exists(filepath):
print(f"Error: File {filepath} not found.")
sys.exit(1)
# Read JS file content
with open(filepath, 'r', encoding='utf-8', errors='ignore') as f:
js_content = f.read()
# Initialize the client. This automatically picks up the GEMINI_API_KEY environment variable.
client = genai.Client()
prompt = """
You are an expert security researcher performing static analysis on a client-side JavaScript file from a bug bounty target.
Extract the following information:
1. All API endpoints and route paths (relative or absolute).
2. Any hardcoded secrets, api keys, authorization headers, or tokens.
3. Hostnames pointing to internal development, staging, or non-production subdomains.
4. Custom HTTP headers accepted by the client.
Return a structured JSON output with keys: "endpoints", "secrets", "subdomains", "custom_headers".
"""
print(f"[*] Sending {filepath} to Gemini ({len(js_content)} chars)...")
try:
response = client.models.generate_content(
model='gemini-2.5-flash',
contents=[prompt, f"--- BEGIN FILE ---\n{js_content}\n--- END FILE ---"],
config=types.GenerateContentConfig(
response_mime_type="application/json",
response_schema=types.Schema(
type=types.Type.OBJECT,
properties={
"endpoints": types.Schema(type=types.Type.ARRAY, items=types.Schema(type=types.Type.STRING)),
"secrets": types.Schema(type=types.Type.ARRAY, items=types.Schema(type=types.Type.STRING)),
"subdomains": types.Schema(type=types.Type.ARRAY, items=types.Schema(type=types.Type.STRING)),
"custom_headers": types.Schema(type=types.Type.ARRAY, items=types.Schema(type=types.Type.STRING)),
}
)
)
)
# Parse and print results
result = json.loads(response.text)
print(json.dumps(result, indent=2))
except Exception as e:
print(f"[-] API Error: {e}")
if __name__ == "__main__":
if len(sys.argv) < 2:
print("Usage: python parse_js.py <path_to_js_file>")
sys.exit(1)
analyze_js_file(sys.argv[1])

If you prefer running offline local models (e.g. llama3) or using Fabric for rapid piping:

Terminal window
# 1. Download wayback JS files and pipe to local model for API route detection
cat target_urls.txt | grep "\.js$" | head -5 | while read url; do
curl -s "$url" | ollama run llama3 "Identify all REST API endpoints in this code. Output list format."
done
# 2. Fabric pipeline to extract keys from local directories
cat data/target/main.js | fabric -p extract_api_keys

Integrated AI Tooling (What to Install in 2026)

Section titled “Integrated AI Tooling (What to Install in 2026)”

Shift (Caido’s official AI plugin) is the most polished integration in the space. Once installed:

  • Highlight any request/response, press Ctrl + Space to open an inline prompt. Type natural language commands like “Explain this JWT”, “Find IDORs in this JSON body”, “create a Match & Replace rule to set isAdmin=true on all responses”, or “generate a wordlist of common sensitive files that may be publicly exposed.”
  • Shift Agents run autonomously, background micro-agents that you configure for specific tasks (XSS exploration, WAF bypassing).
  • Works with Anthropic Claude, OpenAI, Google Gemini, DeepSeek, OpenRouter, or local Ollama for privacy-sensitive work.

Install: Caido Plugin Store → search “Shift” → install → enter API key in Settings → AI.

Chatio is a community-built AI security assistant for Caido. Free, MIT-licensed. Useful for natural-language analysis of captured traffic, vulnerability hypothesis generation, and PoC drafting.

The official paid Assistant uses a fine-tuned model specifically for security research. Worth the subscription once you’re earning regularly.

The srinivasans13/burpai extension embeds an autonomous AI agent directly into Burp Suite via the Montoya API. It:

  • Probes targets through Burp’s own engine (so every request is visible in HTTP history)
  • Runs in 19 vulnerability-class “focused modes” (e.g., “Find SSRF” tests only SSRF)
  • Tracks per-payload response timing for blind SSRF/CMDi detection
  • Supports Claude, Gemini, DeepSeek, OpenAI, OpenRouter, and local Ollama

This is the most aggressive end of AI bug bounty tooling, autonomous agentic testing. Use it as a recon/triage layer, not as a replacement for human judgment.

Burp Pro’s built-in AI Repeater integration explains requests, suggests next test cases, and generates payload variations without leaving the Repeater tab.

If you work in the terminal, the lakshanmuruganandam/recon-skill Claude Code skill orchestrates subfinder → httpx → nuclei → LLM triage into a single command that produces a prioritized report in plain English. Particularly good for the “raw nuclei output is 400 lines of mostly noise” problem.

The AI-Specific Bug Bounty Market (Easy Beginner Niche)

Section titled “The AI-Specific Bug Bounty Market (Easy Beginner Niche)”

If you’re comfortable thinking about prompts and language models, the AI bounty programs themselves are a beginner-accessible niche with substantial payouts.

  • Up to $35,000 per novel universal jailbreak that bypasses Claude’s Constitutional Classifiers system
  • Invite-only via HackerOne, but applications open continuously
  • Focuses on universal jailbreaks (works across many topics) and detailed jailbreaks (extracts substantial harmful information)
  • Currently scoped to CBRN-related misuse and cybersecurity
  • Up to $100,000 for exceptional critical findings (recently raised from $20,000)
  • Includes prompt injection bounties, financial rewards for realistic attack paths that expose unintended user data
  • Periodic promotional bonus periods on specific categories

A single researcher (Aonan Guan) demonstrated prompt injection attacks against AI-coding agents integrated with GitHub Actions:

  • $100 from Anthropic (Claude Code Security Review)
  • $1,337 from Google (Gemini CLI Action)
  • $500 from GitHub (Copilot, after initial dismissal)

The attack: prompt injection that exfiltrated API keys and GitHub access tokens from CI/CD runner environments. The payouts are smaller individually than traditional web bugs, but the surface is enormous and barely contested.

  • Google AI Vulnerability Reward Program (covers Gemini, Vertex AI, AI Studio)
  • Microsoft AI Bug Bounty (Copilot, Bing Chat, Azure OpenAI)
  • HuggingFace, LangChain, smaller AI platform programs

The opportunity: Most security researchers still treat “AI bugs” as out-of-scope curiosity. The dedicated AI bounty programs are under-explored relative to web. If you spend 4-6 hours reading current prompt-injection research (Simon Willison’s blog, Embrace The Red, Vulnomicon) you’re ahead of 90% of submitters.

  1. Protect Customer Data: Never paste in-scope customer PII, real credentials, or proprietary source code into public LLM APIs (like ChatGPT). Use local models (Ollama) or Enterprise APIs where data retention is explicitly disabled.
  2. Check the Rules: Some programs explicitly forbid AI-assisted automated scanning. Read the policy.
  3. Verify Hallucinations: If an LLM cites a CVE, verify it actually exists and applies to the target’s version before including it.
  4. Don’t generate speculative reports: Submit only what you’ve actually verified end-to-end. Filing speculative reports based on what the LLM “thinks” should work will tank your reputation.
  5. Watch out for AI-submission detectors: Some platforms now use machine learning models to identify AI-generated text. They look for tells: hedged language, generic remediation, lack of specific PoC details. Your reports must reflect actual testing you performed.

Next step: turn your recon into a scheduled pipeline in Section 9.

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

Bug Hunting for BeginnersFor authorized testing only. Read the ethics note before you put a domain in scope.