mlsanityData to 24 Nov 2026

Reva: Real-Time Vulnerability Detection through Contextual Probing of Large Language Models

arXiv 2610.35829 ↗Submitted 26 Oct 2026cs.CR cs.AIcited by 0

On the map: LLM agents and tool use → Agent threats, guardrails and governance

Abstract (arXiv)

A vulnerability costs more to fix the later it is discovered. As coding agents generate code faster than developers can review it, software needs a first line of defense screening each new function in real time. LLM agents have recently become capable of finding real-world vulnerabilities by working as a security expert would: they run analysis tools, explore the surrounding code, test hypotheses and weigh the evidence before forming their own judgement. This reasoning, however, spans many model calls, so that each verdict takes minutes of compute, far too long for real-time screening. Faster detectors, which fine-tune deep learning models or prompt an LLM for a direct verdict, are less accurate: they judge a function without the context an agent gathers, and an LLM's generated verdict is unreliable even when given some of it. We present REVA (REal-time Vulnerability Analysis), an AI vulnerability detector that brings the security context and code understanding components behind agentic detectors into a single forward pass of an LLM. For each new function, REVA gives the LLM a pre-computed threat model of its module, lightweight static analysis findings and call-graph information. REVA leverages a trained probe to read the LLM's internal representations of the new function in this context. On PrimeVul's held-out test set, REVA on GLM-5.3-Flash reaches 60.0% accuracy in about one second per function. This matches VulTriage (59.2%), the state-of-the-art agentic detector, run on the same LLM, while being over 250 times faster and less than a tenth as costly. On the same prompt, the probe is 14% to 17% more accurate than the LLM's own direct verdict. Across three open LLMs, REVA is at least as accurate as VulTriage, and about 10% more accurate on two of them. An LLM's internal representations thus encode much of what agentic detectors obtain through reasoning.

Key facts. No citing papers in the map yet (data through 24 Nov 2026). Placed in Agent threats, guardrails and governance, one of 16 directions in LLM agents and tool use. Builds on 28 of its 36 references that are in the map. Submitted 26 Oct 2026.

Builds on

28 of 36 references.

Closest ancestors · 3

Same direction, newest first

  1. 2026CyberForge: Verified Vulnerability Injection at Repository Level for Cybersecurity Agent Training6 Aug
  2. 2025AVIATOR: Towards AI-Agentic Vulnerability Injection Workflow for High-Fidelity, Large-Scale Code Security Dataset28 Aug
  3. 2025Let the Trial Begin: A Mock-Court Approach to Vulnerability Detection using LLM-Based Agents16 May

Other references · 25

  1. 2022Language Models (Mostly) Know What They Knowcited by 2,077
  2. 2023Language Models Don't Always Say What They Think: Unfaithful Explanations in Chain-of-Thought Promptingcited by 1,324
  3. 2021Probing Classifiers: Promises, Shortcomings, and Advancescited by 971
  4. 2022Discovering Latent Knowledge in Language Models Without Supervisioncited by 840
  5. 2023The Geometry of Truth: Emergent Linear Structure in Large Language Model Representations of True/False Datasetscited by 810
  6. 2019Designing and Interpreting Probes with Control Taskscited by 736
  7. 2023The Internal State of an LLM Knows When It's Lyingcited by 725
  8. 2024LLMs Know More Than They Show: On the Intrinsic Representation of LLM Hallucinationscited by 290
  9. 2023Large Language Models for Code: Security Hardening and Adversarial Testingcited by 165
  10. 2024Vulnerability Detection with Code Language Models: How Far Are We?cited by 162
  11. 2023DiverseVul: A New Vulnerable Source Code Dataset for Deep Learning Based Vulnerability Detectioncited by 111
  12. 2023LLMs Cannot Reliably Identify and Reason About Security Vulnerabilities (Yet?): A Comprehensive Evaluation, Framework, and Benchmarkscited by 103
13 more
  1. 2025CyberGym: Evaluating AI Agents' Real-World Cybersecurity Capabilities at Scalecited by 96
  2. 2023Uncovering the Limits of Machine Learning for Automatic Vulnerability Detectioncited by 38
  3. 2024To Err is Machine: Vulnerability Detection Challenges LLM Reasoningcited by 25
  4. 2025A Mixture of Linear Corrections Generates Secure Codecited by 10
  5. 2025Boosting Vulnerability Detection of LLMs via Curriculum Preference Optimization with Synthetic Reasoning Datacited by 9
  6. 2026Reducing False Positives in Static Bug Detection with LLMs: An Empirical Study in Industrycited by 9
  7. 2025LLM-based Vulnerability Discovery through the Lens of Code Metricscited by 6
  8. 2026Minimal Prompt Perturbations Lead to Code Vulnerabilities: Prompt Fragility and Hidden-State Signals in Coding LLMscited by 4
  9. 2026Code Correctness Is Linearly Decodable from LLM Hidden States Before Generationcited by 4
  10. 2026VulTriage: Triple-Path Context Augmentation for LLM-Based Vulnerability Detectioncited by 3
  11. 2026Toward Scalable Automated Repository-Level Datasets for Software Vulnerability Detectioncited by 2
  12. 2026Probing the Prefill: Detecting Code Vulnerabilities via Latent Activationscited by 1
  13. 2026MiST: Mid-Training LLMs for Cybersecuritycited by 1

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2026ALIBI: Adaptive Agentic Attacks on LLM-Based Vulnerability Detectors via Adversarial Code Comments
  2. 2025Benchmarking LLMs and LLM-based Agents in Practical Vulnerability Detection for Code Repositories
  3. 2026MulVul: Retrieval-augmented Multi-Agent Code Vulnerability Detection via Cross-Model Prompt Evolution
  4. 2026AgenticSCR: An Autonomous Agentic Secure Code Review for Immature Vulnerabilities Detection
  5. 2026Revelio: Cost-Efficient Agentic Memory Safety Vulnerability Detection For Repository-Scale Codebases
  6. 2026Code-Augur: Agentic Vulnerability Detection via Specification Inference
  7. 2026MetaVul: Agentic Harness Discovery for Vulnerability Detection
  8. 2025SEC-bench: Automated Benchmarking of LLM Agents on Real-World Software Security Tasks