Berkeley RDI:Blog(AI 安全与评测) · 2026/11/11

CyberBinGym: Can AI Agents Turn Binary Patches into Real Exploits? Lam

CyberBinGym: Can AI Agents Turn Binary Patches into Real Exploits? Lambang Akbar Wijayadi 1 , Zhaoqi Xiao 1,2 , Zhun Wang 3 , Hongwei Li 4 , Wenbo Guo 4 , Heng Yin 2 , Zhenkai Liang 1 , Dawn Song 3 1 National University of Singapore, 2 UC Riverside, 3 UC Berke

CyberBinGym: Can AI Agents Turn Binary Patches into Real Exploits? Lambang Akbar Wijayadi 1 , Zhaoqi Xiao 1,2 , Zhun Wang 3 , Hongwei Li 4 , Wenbo Guo 4 , Heng Yin 2 , Zhenkai Liang 1 , Dawn Song 3 1 National University of Singapore, 2 UC Riverside, 3 UC Berkeley, 4 UC Santa Barbara Draft · Estimated 8-minute read Security fixes usually reach users as compiled updates, such as operating-system packages, firmware images, and releases of proprietary or third-party software. Patch deployment often takes a long time, and even critical systems can remain unpatched for months or years after a fix is released. During this window, comparing the patched and unpatched binaries can guide an attacker toward a working exploit. This is the 1-day setting : a fix is available, but systems still running the vulnerable version remain exposed. Turning that information into a working exploit has traditionally required substantial reverse-engineering expertise, considerable manual effort, and often days or weeks of analysis to localize the vulnerability and develop a working exploit. An analyst must understand compiled code, identify the security-relevant change, and determine whether the underlying error can produce more than a crash. If AI agents can automate this work, they could shift the balance in attackers’ favor. Reducing the expertise, effort, and time needed to exploit a released patch could make attacks more accessible and compress defenders’ effective response window. The update intended to protect systems can simultaneously give attackers actionable information, while defenders remain constrained by deployment delays. Measuring this capability is therefore critical for understanding AI’s impact on both attack and defense. Our earlier benchmarks examined complementary parts of this problem. CyberGym measures vulnerability reproduction with source access. CyberGym-E2E extends evaluation through discovery and repair. ExploitGym asks whether agents can turn supplied vulnerabilities and triggering inputs into working exploits. CyberBinGym asks what happens when the source code and the starting input are both removed. Given only a vulnerable binary and its patched counterpart, can an AI agent recover the vulnerability and exploit the vulnerable version? TL;DR CyberBinGym contains 100 tasks derived from real vulnerabilities in 53 open-source projects. Agents receive stripped vulnerable and patched binaries, runtime dependencies, analysis tools, and access to a controlled victim service. They receive no source code, source patch, vulnerability description, or reference proof of concept. The strongest evaluated configuration, Codex with GPT-5.6 , recovers the target vulnerability on 88% of tasks and completes audited exploitation on 20% . Claude Code with Claude Opus 5 achieves 85% recovery and 6% exploitation; Kimi Code with Kimi K3 achieves 64% recovery and no successful exploits. On a matched 20-task subset, supplying the patched binary raises Codex’s exploit rate from 10% to 25% . Rebuilding its 20 successful targets with standard binary hardening reduces successful exploitation to two tasks . These results show that agents can use compiled patches to develop working exploits in a controlled setting. They also reveal a substantial gap between recovering a vulnerability and turning it into a security consequence. Key Takeaways Binary-only exploitation is already within reach on some real vulnerabilities. The agents must work from recovered program structure and execution feedback. The strongest configuration succeeds without a supplied bug description or crashing input. A crash is only part of the story. Recovery rates of 64–88% coexist with exploitation rates of 0–20%. Understanding what a bug lets an attacker control remains a major challenge, even after the agent has found an input that triggers it. The compiled patch provides useful information. On the matched subset, access to the fixed version improves recovery from 55% to 90% and exploitation from 10% to 25%. Audited trajectories show that patch information can identify the exploited defect directly or help an agent redirect its search. Hardening substantially reduces observed success. Two exploits survive the hardened follow-up on the 20 tasks Codex exploited in the main evaluation. That finding supports layered defenses, while leaving open how these capabilities transfer to production systems. What Is CyberBinGym? CyberBinGym evaluates the 1-day setting : a fix has been released, but the vulnerable version remains in use. The patched binary is the agent’s main clue about what changed. Binary analysis removes many of the cues available in a source-code task. Compilation obscures variable names, types, comments, and program structure. Stripping removes additional symbols and debugging information. Decompilers can recover a readable approximation, but that approximation can be incomplete or misleading. Agents must reconcile it with actual execution. The benchmark starts from CyberGym instances and associated OSS-Fuzz and ARVO artifacts. We reconstruct vulnerable and patched revisions, remove sanitizer instrumentation from the binaries available to agents, strip symbols and debug information, and verify the pairs using internal reference inputs. This process yields 604 validated binary pairs , from which we select the 100-task evaluation set. The tasks span image and document processing, networking, compression, and cryptography. They cover six vulnerability families: spatial memory errors, temporal memory errors, invalid pointer access, invalid deallocation, initialization errors, and type-safety errors. Spatial memory errors account for 40 tasks; less common families receive deliberate additional coverage to exercise different analysis skills. These are substantial software artifacts. The median vulnerable binary is 1.60 MiB , and the largest reaches 38.04 MiB . The task mix includes 20 low-, 40 medium-, and 40 high-complexity cases, based on a curator-side rubric covering reachability, input construction, crash observability, binary complexity, and patch complexity. Two Separate Measures of Success CyberBinGym measures vulnerability recovery and exploitation independently. Vulnerability recovery requires a proof-of-concept input that triggers the expected sanitizer-detected failure in a hidden vulnerable validation build while the patched validation build remains non-failing. A generic process crash is insufficient. The instrumented validation builds are kept outside the agent workspace; the binaries the agent analyzes contain no sanitizer instrumentation. Exploitation requires retrieving a fresh secret flag from a separate victim service through vulnerability-driven behavior. A matching flag is necessary, but we also manually audit the trajectory. Direct access through the analysis environment and use of a program’s existing command-execution functionality do not earn exploitation credit. The two scores answer different questions. An agent may exploit a different vulnerability in the older program, and an accepted exploit need not also pass the target vulnerability’s differential crash test. This distinction matters when interpreting the gap between the headline rates. The environment separates static analysis, dynamic execution, and the victim service. External access is restricted, and native web search is disabled, limiting access to outside vulnerability information. Recorded tool interactions and submitted artifacts support the audit. The Main Results We evaluate three agent–model configurations on the same 100 tasks, with a nominal budget of 1,000 model calls per trajectory. The paper details exceptions in recorded traces and resource accounting. Agent Model Vulnerability recovery Audited exploitation Mean cost per task Mean time per task Codex GPT-5.6 88/100 (88%) 20/100 (20%) $28.11 2.13 hours Claude Code Claude Opus 5 85/100 (85%) 6/100 (6%) $14.90 1.26 hours Kimi Code Kimi K3 64/100 (64%) 0/100 (0%) $38.34 5.80 hours Costs and times are averages across tasks, including unsuccessful attempts. The main experiments use trusted-access programs with safeguards disabled to measure capability boundaries; these are results for the evaluated configurations, rather than ordinary safeguarded deployments. Codex and Claude recover vulnerabilities at similar rates, but their exploit rates differ substantially. Claude uses the least time and money per task. Kimi spends more on average while achieving lower recovery and no exploitation successes. More time spent searching does not necessarily mean more progress. To examine the gap on tasks with demonstrated exploitability, we look at the 22 tasks that at least one agent successfully exploits . Codex still stops at a crash-only outcome on two of them, Claude on 13, and Kimi on 17. These failures cannot all be explained by the task being impossible to exploit in the benchmark environment. The trajectory comparisons point to a recurring chall

FDE 判断

这条信息对 FDE 的直接价值在于提醒交付人员持续关注模型、智能体与企业流程之间的变化。面对类似项目,应先确认客户的真实业务目标、数据边界、权限条件和验收指标,再选择工具并用最小场景验证结果,避免只追逐功能更新。