mlsanityData to 7 Oct 2026

DREA: Decoupled Reasoning and Exploration Agents for Repository-Level Vulnerability Detection

arXiv 2607.13439 ↗First posted 15 Jul 2026cs.CR cs.SEcited by 3

On the map: LLM reasoning → Reasoning for agents, planning and code

also in 1 more
Abstract (arXiv)

Large language models (LLMs) are increasingly applied to vulnerability detection due to their strong code comprehension capabilities, but most existing approaches rely on isolated functions or context extracted by fixed program-analysis rules. These methods cannot adaptively explore repository-level dependencies to gather sufficient context when vulnerabilities span multiple functions or files, compromising detection reliability. We present DREA (Decoupled Reasoning and Exploration Agents), a hypothesis-driven framework for repository-level vulnerability detection. DREA decouples reasoning from exploration through two collaborating agents: a planning agent backed by an advanced LLM that forms vulnerability hypotheses and directs the investigation, and an explorer agent powered by a lightweight model that retrieves repository-level context on demand. Goal-directed context acquisition is the primary source of detection improvement in this design, while offloading token-heavy exploration to the local model keeps inference economically tractable. To support evaluation, we construct RepoPairBench, a repository-grounded benchmark of validated Python vulnerability-fix pairs from real-world projects. Beyond binary detection accuracy, we introduce a reasoning correctness evaluation to assess whether a model's rationale matches the documented vulnerability mechanism. Across three LLMs, DREA improves Pair-Correctness from 19-26% to 30-42% while offloading over 93% of tokens to the explorer, reducing estimated billable API cost by a factor of 16-48. Reasoning correctness analysis further reveals that 26-55% of true positives, for both DREA and the function-only baseline, are correct predictions supported by flawed rationales, identifying security reasoning quality as a shared bottleneck for current LLMs.

Key facts. Cited by 3 papers in the map (data through 7 Oct 2026). Placed in Reasoning for agents, planning and code, one of 17 directions in LLM reasoning. Builds on 35 of its 49 references that are in the map. First posted on arXiv 15 Jul 2026.

Builds on

35 of 49 references.

Closest ancestors · 6

Same direction, newest first

  1. 2025VulnLLM-R: Specialized Reasoning LLM with Agent Scaffold for Vulnerability Detection8 Dec
  2. 2025VulInstruct: Teaching LLMs Root-Cause Reasoning for Vulnerability Detection via Security Specifications6 Nov
  3. 2025SV-TrustEval-C: Evaluating Structure and Semantic Reasoning in Large Language Models for Source Code Vulnerability Analysis27 May
  4. 2025R2Vul: Learning to Reason about Software Vulnerabilities with Reinforcement Learning and Structured Reasoning Distillation7 Apr
  5. 2024To Err is Machine: Vulnerability Detection Challenges LLM Reasoning25 Mar
  6. 2024LLM4Vuln: A Unified Evaluation Framework for Decoupling and Enhancing LLMs' Vulnerability Reasoning29 Jan

Other references · 29

  1. 2023Improving Factuality and Reasoning in Language Models through Multiagent Debatecited by 1,739
  2. 2024SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineeringcited by 1,628
  3. 2024Agentless: Demystifying LLM-based Software Engineering Agentscited by 400
  4. 2018AI safety via debatecited by 384
  5. 2024Vulnerability Detection with Code Language Models: How Far Are We?cited by 133
  6. 2024Vul-RAG: Enhancing LLM-based Vulnerability Detection via Knowledge-level RAGcited by 67
  7. 2025LLMs in Software Security: A Survey of Vulnerability Detection Techniques and Insightscited by 44
  8. 2024Large Language Model for Vulnerability Detection and Repair: Literature Review and the Road Aheadcited by 41
  9. 2024ReposVul: A Repository-Level High-Quality Vulnerability Datasetcited by 35
  10. 2024Chain-of-Thought Prompting of Large Language Models for Discovering and Fixing Software Vulnerabilitiescited by 31
  11. 2024Top Score on the Wrong Exam: On Benchmarking in Machine Learning for Vulnerability Detectioncited by 27
  12. 2025SecVulEval: Benchmarking LLMs for Real-World C/C++ Vulnerability Detectioncited by 19
17 more
  1. 2024VulEval: Towards Repository-Level Evaluation of Software Vulnerability Detectioncited by 18
  2. 2024Outside the Comfort Zone: Analysing LLM Capabilities in Software Vulnerability Detectioncited by 16
  3. 2025Everything You Wanted to Know About LLM-based Vulnerability Detection But Were Afraid to Askcited by 15
  4. 2024Security Vulnerability Detection with Multitask Self-Instructed Fine-Tuning of Large Language Modelscited by 14
  5. 2024VulDetectBench: Evaluating the Deep Capability of Vulnerability Detection with Large Language Modelscited by 11
  6. 2025A Systematic Literature Review on Detecting Software Vulnerabilities with Large Language Modelscited by 8
  7. 2025Context-Enhanced Vulnerability Detection Based on Large Language Modelcited by 6
  8. 2026MulVul: Retrieval-augmented Multi-Agent Code Vulnerability Detection via Cross-Model Prompt Evolutioncited by 6
  9. 2026Sifting the Noise: A Comparative Study of LLM Agents in Vulnerability False Positive Filteringcited by 5
  10. 2024CleanVul: Automatic Function-Level Vulnerability Detection in Code Commits Using LLM Heuristicscited by 4
  11. 2026LLM-based Vulnerability Detection at Project Scale: An Empirical Studycited by 3
  12. 2025Learning to Focus: Context Extraction for Efficient Code Vulnerability Detection with Language Modelscited by 2
  13. 2025Mono: Is Your "Clean" Vulnerability Dataset Really Solvable? Exposing and Trapping Undecidable Patches and Beyondcited by 2
  14. 2026AgenticSCR: An Autonomous Agentic Secure Code Review for Immature Vulnerabilities Detectioncited by 2
  15. 2024Closing the Gap: A User Study on the Real-world Usefulness of AI-powered Vulnerability Detection & Repair in the IDEcited by 1
  16. 2025LLMxCPG: Context-Aware Vulnerability Detection Through Code Property Graph-Guided Large Language Modelscited by 1
  17. 2026Do Fine-Tuned LLMs Understand Vulnerabilities? An Investigation into the Semantic Trapcited by 1

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 3.

3 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025Benchmarking LLMs and LLM-based Agents in Practical Vulnerability Detection for Code Repositories
  2. 2026VulnGym: Benchmarking Coding Agents for Repository-Level Vulnerability Detection
  3. 2025VulAgent: Hypothesis-Validation based Multi-Agent Vulnerability Detection
  4. 2026CLEAR: Causal Context-Based Agentic Reasoning for Vulnerability Detection
  5. 2026Antaeus: Hunting Repository-Level Logic Vulnerabilities via Context-Grounded LLM Reasoning ↗
  6. 2026Correct Verdicts, Flawed Reasoning: Structured Auditing of LLM-based Vulnerability Reasoning
  7. 2026Veritas: Grounding LLM Agents for Reliable Vulnerability Reasoning over Stripped Binaries
  8. 2025Boosting Vulnerability Detection of LLMs via Curriculum Preference Optimization with Synthetic Reasoning Data