security,

AI-Powered Cybersecurity Research: A Practical Field Guide

Where AI genuinely accelerates vulnerability research — and where it fails. Benchmarks, real-world cases (Big Sleep, AISLE, XBOW), tool recommendations, prompt engineering templates, and the limitations you need to know before trusting AI-generated findings.

AI has become a genuine force multiplier for vulnerability research — but not the autonomous hacking oracle some vendors claim. Google’s Big Sleep agent found real zero-days in SQLite and Chrome, AISLE discovered 15 OpenSSL CVEs (some hiding since 1998), and XBOW reached #1 on HackerOne’s US leaderboard — all in the past 18 months. Yet rigorous independent testing by Semgrep shows AI vulnerability scanners produce 82–86% false positives, and the best models achieve only 14–18% true positive rates on real codebases. The bottom line: AI dramatically accelerates specific security tasks while remaining unreliable for others. This guide covers exactly where the line falls, with concrete tools, commands, and workflows.

What AI actually excels at in security research

AI’s strengths in security work cluster around tasks that benefit from pattern recognition, natural language understanding, and rapid code comprehension — not tasks requiring deep inter-procedural analysis or runtime validation.

Code review and vulnerability pattern matching is the strongest use case. Semgrep’s rigorous 2025 benchmark tested Claude Code (Sonnet 4) and OpenAI Codex (o4-mini) against 11 real-world Python web applications, with all 400+ findings reviewed by human researchers. Claude Code found 46 true vulnerabilities at a 14% true positive rate; Codex found 21 at 18% TPR. Both excelled at Insecure Direct Object Reference flaws (Claude hit 22% TPR for IDOR) but struggled badly with SQL injection (5% TPR), which requires tracing data flow across multiple files. Total cost for Claude Code across all 11 applications: $114. An academic study comparing GPT-4o and Claude 3.5 Sonnet on the NIST SARD dataset found GPT-4o achieved F1 of 0.91 with step-by-step prompting, while Claude 3.5 Sonnet hit 0.89.

CVE explanation and vulnerability analysis is where LLMs shine brightest with minimal risk. Models excel at translating dense advisories into actionable guidance, mapping findings to MITRE ATT&CK and OWASP frameworks, and explaining complex vulnerability chains. Microsoft’s MSRC team (presented at Black Hat 2024) uses fine-tuned LLMs to predict severity and generate root causes from crash dumps.

Reconnaissance and information gathering benefits enormously from AI’s ability to parse, correlate, and prioritize data from multiple sources. The Kali Linux MCP integration (early 2026) translates natural language commands into nmap, gobuster, and other tool invocations, interprets results, and iterates autonomously. Report writing and documentation sees perhaps the most universal benefit — every major study confirms AI dramatically accelerates the reporting phase.

Reverse engineering assistance works well for explaining decompiled code, identifying unsafe patterns, and suggesting inputs that exercise edge cases. Fuzzing strategy design is another strong suit — AI generates fuzzing harnesses, identifies edge cases, and suggests mutation strategies, as demonstrated by Google’s OSS-Fuzz AI generating targets that covered 370,000 new lines of code across 272 projects.

The model landscape breaks down roughly as follows: Claude Opus/Sonnet 4+ consistently outperforms on depth-of-analysis tasks and PTES-based pentesting workflows. GPT-4o leads on step-by-step vulnerability analysis benchmarks. Open-source models (Llama, DeepSeek, Qwen variants) offer uncensored operation for legitimate offensive research where commercial model refusals block authorized work. For CTF and learning environments, PentestGPT (published at USENIX Security 2024) remains the most validated option.

Claude Code as a security research platform

Claude Code has emerged as one of the most capable tools for security-focused code analysis, with several purpose-built features and a growing ecosystem of security configurations.

The built-in /security-review slash command ships with Claude Code and can be run in any project directory. It checks for SQL injection, XSS, command injection, authentication flaws, insecure data handling, and dependency vulnerabilities. For customization, copy security-review.md from the anthropics/claude-code-security-review GitHub repository to your project’s .claude/commands/ directory and edit it to include organization-specific rules. The same repository provides a GitHub Action for automated PR security review:

name: Security Review
on: [pull_request]
jobs:
  security-review:
    runs-on: ubuntu-latest
    steps:
      - uses: anthropics/claude-code-security-review@v1
        with:
          anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
          model: claude-opus-4-1

Extended thinking is critical for security work and responds to specific trigger phrases: "think harder" allocates roughly 4K thinking tokens, "megathink" roughly 10K, and "ultrathink" roughly 32K. For security audits, use prompts like: "ultrathink: Review our authentication flow for vulnerabilities. Trace all data flows from user input through session management." Plan Mode (activated with Shift+Tab cycling twice) restricts Claude to read-only operations — ideal for security review before making changes.

Trail of Bits published professional security configurations for Claude Code at github.com/trailofbits/claude-code-config and github.com/trailofbits/skills. These include opinionated defaults for sandboxing, permissions, hooks, and security-focused skills covering static analysis with CodeQL and Semgrep, variant analysis, fuzz harness generation, smart contract analysis, reverse engineering, and audit report writing. Setup is straightforward:

git clone https://github.com/trailofbits/claude-code-config.git
cd claude-code-config && claude
# Then run: /trailofbits:config

For CI/CD pipelines requiring autonomous operation, run Claude Code in a locked-down Docker container:

docker run --rm --network=none --user 1000:1000 \
  -v $(pwd):/app:ro -v /tmp/output:/output \
  --env CLAUDE_API_KEY=${{ secrets.CLAUDE_KEY }} \
  anthropic/claude-code:1.0.33 \
  --dangerously-skip-permissions --output /output/result.md \
  "Analyze the source code for security vulnerabilities"

The MCP server ecosystem adds significant capability. Burp Suite MCP (PortSwigger) enables HTTP request crafting, proxy history analysis, and scanner issue review. Snyk CLI MCP provides SCA and SAST scanning directly from Claude Code. Semgrep MCP integrates static analysis rules. CyberMCP handles API security testing including auth bypass, injection, and header validation. For codebase navigation at scale, Claude Context MCP (Zilliz) provides AST-based intelligent code chunking with hybrid search, claiming ~40% token reduction with equivalent retrieval quality.

A critical security note: Check Point Research discovered vulnerabilities in Claude Code itself — CVE-2025-59536 (malicious hooks in .claude/ config enabling RCE) and CVE-2026-21852 (API key exfiltration through config manipulation). Always inspect .claude/ and .vscode/ directories before opening unfamiliar repositories.

AI agents that scan codebases autonomously

The agentic security scanning landscape has matured rapidly, with several production-grade systems now available alongside major research efforts.

Claude Code Security (launched February 2026 as a limited research preview) uses Opus 4.6 to reason about code like a human security researcher — tracing data flows, understanding component interactions, and catching business logic flaws that rule-based SAST misses. It found 500+ previously unknown vulnerabilities in production open-source codebases, with ten receiving CVE identifiers. Its multi-stage verification pipeline has Claude challenge its own findings in an adversarial verification pass before surfacing them. Currently available to Enterprise and Team customers, with free expedited access for open-source maintainers.

SecureVibes (github.com/anshumanbh/securevibes) is an open-source multi-agent scanner using five specialized Claude AI agents: an assessment agent that maps codebase architecture, a threat modeling agent using STRIDE methodology, a code review agent that validates vulnerabilities, a report generator, and an optional DAST agent for dynamic validation. In testing against its own codebase, it found 16–17 vulnerabilities — 4× more than single-agent Claude Code and zero from rule-based scanners like Semgrep and Bandit. Cost runs approximately $2–3 per scan with the Sonnet model:

pip install securevibes
export ANTHROPIC_API_KEY="your-key"
securevibes scan . --debug --format json --output results.json
securevibes scan . --severity high          # Filter by severity
securevibes scan . --subagent assessment    # Run specific agent only

Google’s Aardvark (private beta, powered by GPT-5) continuously monitors commits and analyzes repositories through a four-stage pipeline: full-repo threat model generation, commit scanning against that model, sandboxed validation of triggered vulnerabilities, and integration with Codex for one-click patch generation. It reports 92% recall on benchmark repositories and has found 10+ CVEs in open-source projects. Google DeepMind’s CodeMender (research stage) uses Gemini Deep Think models to autonomously debug and fix vulnerabilities, having upstreamed 72 security fixes to open-source projects in six months.

The primary limitations of agentic approaches are consistent across all tools. Non-determinism means identical scans produce different results — Semgrep found 3× variation in finding count across identical runs, suggesting 2–3 runs are advisable for critical codebases. False positive rates remain stubbornly high at 82–86%. Agents cannot assess exploitability in production environments. And BaxBench testing shows a 62% insecurity rate for AI-generated patches, meaning human review before applying any AI-suggested fix is non-negotiable.

How AI integrates with traditional static analysis tools

The most effective AI security tooling doesn’t replace static analysis — it layers intelligence on top of it. Six distinct integration patterns have emerged.

Semgrep Assistant combines pattern-matching SAST with LLMs (GPT-4.1 and fine-tuned models) to triage findings. When Semgrep’s rule engine detects something, code snippets are sent to the LLM for contextual analysis to determine true vs. false positives. The noise filter is over 95% accurate at categorizing false positives, and humans agree with auto-triage decisions 97% of the time. Setup is straightforward: navigate to Semgrep AppSec Platform → Settings → General → Assistant, enable code snippets in AI prompts, and configure your AI provider. The best model for noise filtering is o3-mini; best for other features is gpt-4.1. Pricing starts at $40/contributor/month for the Teams tier.

CodeQL + LLM integrations represent some of the most technically impressive work. GitHub’s Copilot Autofix (GA since August 2024) sends CodeQL alert data in SARIF format to an LLM, which generates fix suggestions. Developers fixed vulnerabilities 3× faster — SQL injection fixes averaged 18 minutes vs. 3.7 hours manually. The academic QLPro framework uses LLMs to generate CodeQL rules via a triple-voting mechanism, detecting 41 out of 62 vulnerabilities (vs. CodeQL’s 24/62) and discovering 6 previously unknown zero-days. IRIS (ICLR 2025, University of Pennsylvania) combines LLM-inferred taint specifications with CodeQL data flow analysis, detecting 55/120 vulnerabilities on CWE-Bench-Java vs. CodeQL’s 27/120, plus 4 unknown vulnerabilities. CyberArk’s Vulnhalla layers LLM reasoning over CodeQL results with pre-indexed databases for 3-second context retrieval, finding CVE-2025-9810 in Linenoise within 2 days for under $80.

Snyk’s DeepCode AI uses a hybrid approach with patent-pending CodeReduce technology that reduces code to minimal snippets containing the defect plus necessary context, rather than feeding entire programs to LLMs. Multiple fine-tuned models (not a single frontier model) process findings, and a symbolic AI engine then verifies that generated fixes don’t introduce new vulnerabilities. Snyk Agent Fix (GA October 2024) claims 80% accuracy for security autofixes and 84%+ MTTR reduction. SonarQube added AI CodeFix using GPT-4 (Enterprise Edition, GA in 2025.1), plus an AI Code Assurance feature that detects and tracks AI-generated code in projects. Checkmarx launched a Developer Assist Agent (GA August 2025) providing real-time context-aware remediation in IDEs including Cursor and Windsurf.

Google’s OSS-Fuzz AI takes a different approach, using LLMs to generate fuzz targets — the most time-consuming manual step. Fuzz Introspector identifies under-fuzzed code areas, creates prompts, and the LLM generates targets that are automatically tested. This discovered 26 new vulnerabilities unreachable with human-written targets, most notably CVE-2024-9143 in OpenSSL — an out-of-bounds memory write likely present for 20 years.

Landmark cases of AI finding real vulnerabilities

The evidence that AI can discover real, exploitable vulnerabilities in production software is now overwhelming, with several cases representing genuine firsts.

Google’s Big Sleep (Project Zero + DeepMind) has produced the most dramatic results. In November 2024, it found the first publicly confirmed AI-discovered exploitable vulnerability — a stack buffer underflow in SQLite, fixed before reaching any official release. In July 2025, it discovered CVE-2025-6965 (CVSS 7.2), a critical SQLite memory corruption flaw that Google claims was “known only to threat actors” — described as the first time an AI agent preemptively prevented a zero-day exploitation, with the entire detection-to-patch lifecycle completing in ~48 hours. It subsequently found CVE-2025-9132 (Chrome V8 out-of-bounds write) and CVE-2025-9478 (Chrome ANGLE use-after-free, CVSS 9.8). By August 2025, Google announced Big Sleep had found 20+ vulnerabilities in widely-used projects including FFmpeg and ImageMagick.

AISLE (AI Security Lab) may have produced the most technically impressive results. In the January 2026 OpenSSL release, their AI system discovered all 12 new zero-day vulnerabilities, including CVE-2025-15467 — a high-severity stack buffer overflow in CMS parsing, potentially remotely exploitable. Across 2025, AISLE is responsible for 13 of 14 OpenSSL CVEs assigned, totaling 15 across both releases. Some of these bugs trace back to 1998, in a codebase fuzzed for millions of CPU-hours and audited extensively for over two decades. AISLE is now integrated into OpenSSL and cURL development workflows.

The DARPA AIxCC finals at DEF CON 33 (August 2025) provided the most rigorous competition-based evidence. Seven finalist teams deployed AI Cyber Reasoning Systems across 54 million lines of code in Jenkins, Linux kernel, Nginx, SQLite3, and Apache Tika. Results improved dramatically from semifinals: teams identified 86% of synthetic vulnerabilities (up from 37%), patched 68% (up from 25%), and discovered 18 previously unknown real-world vulnerabilities with 11 viable patches. Average cost per task: $152. Team Atlanta (Georgia Tech) won $4M; Trail of Bits placed second with $3M. All finalist CRS were released as open source.

XBOW reached #1 on HackerOne’s US leaderboard between April and June 2025, submitting approximately 1,060 vulnerabilities (54 critical, 242 high, 524 medium). It completed 104 real-world scenarios in 28 minutes vs. 40 hours for a human pentester — an 85× speed advantage. It found a previously unknown vulnerability in Palo Alto’s GlobalProtect VPN affecting 2,000+ hosts. XBOW subsequently raised $75M from Altimeter and Sequoia Capital, and HackerOne split its leaderboards to separate companies/AI from individual researchers.

Where AI fails and why you cannot trust it blindly

The limitations are not merely theoretical. They are well-documented, mathematically grounded, and have real consequences for security practice.

Hallucination is mathematically inevitable. A 2024 paper by Xu et al. formally proved “it is impossible to eliminate hallucination in LLMs” because they “cannot learn all of the computable functions.” In security contexts, this manifests as fabricated CVEs, incorrect vulnerability analysis, and made-up function names. Daniel Stenberg (cURL maintainer) has documented waves of AI-generated bug reports on HackerOne featuring “professional formatting, appropriate jargon, and completely fabricated technical details” that initially appear worthy of incident response. Django’s security team added explicit “Note for AI Tools” sections to their disclosure policy. The PentestEval benchmark found that AI-generated exploits “reference non-existent files, scripts, or API endpoints” — the best model (Qwen-Max) achieved only 0.44 functional correctness for exploit generation.

False positive rates dominate real-world usage. The IBM/Boston University SecLLMHolmes evaluation concluded that current LLMs are “all currently unreliable at vulnerability detection and will answer incorrectly when asked to identify vulnerabilities in source code.” Maximum accuracy reached 89.5% but varied wildly across CWE types. Memory-related vulnerabilities (buffer overflows) receive disproportionately higher detection accuracy, while logical vulnerabilities remain poorly detected. The CORRECT framework meta-analysis found that multiple benchmark studies “employ datasets with label accuracy as low as 20–71%, critically compromising findings’ validity.”

Inter-procedural analysis remains a fundamental weakness. LLMs struggle to trace data flow across multiple files and functions — precisely the kind of analysis needed for SQL injection, XSS, and other taint-tracking vulnerabilities. Claude Code’s 5% TPR for SQL injection in Semgrep’s study illustrates this clearly. The JITVUL benchmark (ACL 2025) confirmed LLMs perform poorly on repository-level vulnerability detection requiring cross-function analysis. Non-determinism compounds these issues: identical prompts on identical code yield vastly different results across runs.

Context window limitations create blind spots. Domain-specific fine-tuning can actually constrain effective context to 200–400 tokens despite models supporting much longer sequences. Large codebases experience “context rot” where performance degrades as context compacts. AI cannot assess exploitability in live environments — configuration, authentication processes, and infrastructure dependencies remain outside scope. Business logic understanding remains largely a human-only capability.

Model refusals present a documented asymmetry for defenders. A Scale AI paper analyzing 2,390 prompts from a sanctioned NCCDC cyber defense competition found that LLMs refuse legitimate defensive requests at substantial rates when prompts contain security-sensitive terminology, while “attackers using unaligned tools face no constraints.” The safety-performance tradeoff is real: fine-tuning Llama 3.1 8B for cybersecurity dropped its prompt injection safety score from 0.95 to 0.15.

Prompt engineering that actually works for security

The most effective framework for security prompting, developed by Crash Override’s Mark Curphey, uses five components: persona (specific security expertise), context (system type, tech stack, compliance needs), examples (3–5 real input-output pairs showing classification logic), specific instructions (concrete, numbered detection criteria), and output format (JSON for CI/CD, Markdown for reports).

Academic research confirms that step-by-step prompting yields the best vulnerability detection results — GPT-4o’s F1 improved to 0.91 with step-by-step instructions vs. lower with concise prompts. Structure your prompts as: “Analyze this code step by step. First identify all user inputs. Then trace each input through the application. For each path, evaluate whether sanitization is applied before use in security-sensitive operations.”

For avoiding refusals during legitimate security research, frame requests defensively (“As the authorized network security administrator for [Organization]…”), provide professional context (“This is for an authorized penetration test under a signed statement of work”), and break complex requests into smaller components. Avoid isolated trigger words like “hack” or “exploit.” For extended analysis, always specify: “MINIMIZE FALSE POSITIVES: Only flag issues where you’re >80% confident of actual exploitability” — this single instruction dramatically improves signal-to-noise ratio. When working with Claude Code, the ultrathink prefix materially improves complex vulnerability analysis by allocating up to 32K reasoning tokens.

A proven code review prompt template:

PERSONA: Senior application security engineer specializing in [language/framework],
15 years of vulnerability research experience.

CONTEXT: [Application description, purpose, tech stack, sensitive data types, deployment].

TASK: Review the following code for security vulnerabilities.

CRITICAL INSTRUCTIONS:
- Only flag issues where you're >80% confident of actual exploitability
- Skip theoretical issues, style concerns, or low-impact findings
- For each finding: vulnerability type + CWE ID, affected location,
  severity, exploitation scenario, recommended fix with code example

SECURITY CATEGORIES: [SQLi, command injection, path traversal, auth bypass,
privilege escalation, insecure deserialization, SSRF]

What changed in 2024–2025 and what to watch next

The pace of development has been extraordinary. Specialized security models have arrived: Cisco’s Foundation-Sec-8B (April 2025) is an 8B-parameter model trained on 5.1 billion cybersecurity-specific tokens, achieving competitive performance against models 9× its size on CTI benchmarks. Google’s SecGemini (closed preview) is the first frontier LLM specifically designed for cybersecurity with access to live threat intelligence. Open-source options include WhiteRabbitNeo (7B and 70B variants) and Hackphyr, a 7B model matching GPT-4 performance on red-team network security tasks.

  • ARTEMIS multi-agent pentesting system costs $18.21/hour ($37,876 annualized) — significantly less than the average US penetration tester — and outperforms Claude Code on benchmark tasks by 20%+
  • CheckMate integrates classical planning with LLM agents, cutting time and cost by 50%+ over Claude Code alone
  • Meta’s CyberSecEval 4 (2025) added CyberSOCEval (with CrowdStrike) for malware analysis and AutoPatchBench for evaluating AI patch generation
  • 30+ vulnerabilities discovered in AI coding IDEs themselves (the “IDEsaster” findings), affecting Cursor, Windsurf, GitHub Copilot, and others, with 24 assigned CVEs
  • EU AI Act GPAI model obligations became applicable August 2025, with high-risk AI system cybersecurity requirements expected August 2026

The security of AI tools themselves has become a critical concern. Anthropic disclosed that a Chinese state-sponsored group weaponized Claude Code for espionage targeting ~30 organizations. AI-powered phishing surged 1,265% as models enable context-aware, tone-matched social engineering. The NVD faces a growing crisis with CVE submissions up 32% in 2024 and 30,000+ entries backlogged — a problem AI-accelerated vulnerability discovery will only intensify.

Conclusion

Three practical principles emerge from this research. First, layer AI on top of deterministic tools rather than replacing them — the IRIS, QLPro, and Semgrep Assistant approaches that combine CodeQL or Semgrep with LLM reasoning consistently outperform either approach alone. Second, run AI scans multiple times and treat every output as untrusted — non-determinism and 82–86% false positive rates mean single-pass results are unreliable, and AI-generated patches introduce new vulnerabilities 62% of the time. Third, match the model to the task — use Claude Code with ultrathink for deep code review, GPT-4o with step-by-step prompting for systematic vulnerability analysis, and open-source models for offensive research where refusals block legitimate work.

The most underappreciated insight is that AI’s ceiling for vulnerability discovery is far higher than its floor. AISLE finding 15 OpenSSL vulnerabilities in code audited for two decades, and Big Sleep preemptively catching an actively-exploited SQLite zero-day, represent capabilities that didn’t exist 18 months ago. The gap between what a skilled researcher achieves with AI assistance and without it is widening rapidly — making fluency with these tools increasingly a competitive necessity rather than an optional advantage.

§ home
~/knubertus/home/
1,1 Top