LLM agents are increasingly used to automate vulnerability detection, but reliable detection is challenging because agents must distinguish subtle, security-relevant fixes from benign code variation. While underlying LLM capability has improved significantly, the accuracy of the agent still depends heavily on the harness: the code that defines the scaffolding around the LLM. Harnesses are typically fixed, and largely hand-written, limiting adaptation to evaluator feedback. Additionally, when harnesses are static, improvements on one dataset or model may not transfer to others. To address these challenges, we introduce MetaVul, a self-improving framework for harness discovery in vulnerability detection. Starting from a seed structured reasoning scaffold, MetaVul uses a workflow-based optimization loop to iteratively refine the harness using feedback from paired vulnerable and patched functions, while preserving the structured reasoning and verdict format. At each iteration, it searches over the history of prior harnesses, with access to their trajectories, logs, and metrics, and it returns a set of Pareto-optimal harnesses. We apply MetaVul to discover agent harnesses for various architectures. A validation set (202 pairs) is used for optimization, while an unseen dataset (430 pairs) is kept as the held-out set. We test whether harnesses learned from one model transfer to others not seen during optimization. Results on both frontier and small LLMs show that the optimized harnesses improve pairwise vulnerability detection up to 23.3 percentage points on the validation set and up to 25.8 points on the held-out set with a Pareto-frontier harness. Harnesses learned with one model also transfer to others. We show that harnesses optimized with one model transfer to another, improving held-out pairwise accuracy by 14.7 points without further optimization.
A Blind Trust, the Bloody Thrust: When Attacker-Controlled Hook Updates Steer AI Agent Harnesses towards Malicious Behaviors
Beijing University of Posts and Telecommunications(北京邮电大学);Data Technology Support Center of the Cyberspace Administration of China(中央网络安全和信息化委员会办公室数据技术支持中心);Beihang University(北京航空航天大学);Zhejiang University(浙江大学)
Harnessing Large Language Models for Software Vulnerability Detection: A Comprehensive Benchmarking Study
School of Information Technologies Tallinn University of Technology(塔林理工大学信息技术学院);School of Informatics, Computing, and Cyber Systems Northern Arizona University(北亚利桑那大学信息学、计算与网络系统学院)
Ulysses: A Security Harness For Synthesizing Verifiable Web Exploits
Carnegie Mellon University(卡内基梅隆大学);Language Technologies Institute(语言技术研究所);INESC-ID;Instituto Superior Técnico(里斯本高等技术学院);Faculdade de Engenharia do Porto(波尔图工程学院)
SecProbe: Adaptive Evaluation of Coding Agents on Cybersecurity Vulnerabilities
University of Notre Dame(圣母大学);Bake AI;Vanderbilt University(范德堡大学);University of Pennsylvania(宾夕法尼亚大学);LMU Munich(慕尼黑大学);University of Washington(华盛顿大学);Stanford University(斯坦福大学);Inria(法国国家信息与自动化研究所)
MVD: A Multi-Lingual Software Vulnerability Detection Framework
TikTok;CREST - Centre for Research on Engineering Software Technologies(CREST——工程软件技术研究中心);The University of Adelaide(阿德莱德大学);Cyber Security Cooperative Research Centre(网络安全合作研究中心)
Distilling Lightweight Language Models for C/C++ Vulnerabilities
School of Computer Science and Technology(计算机科学与技术学院);Beijing Institute of Technology(北京理工大学);School of Cyberspace Science and Technology(网络空间科学与技术学院);School of Computer Science(计算机科学学院);University of Auckland(奥克兰大学)