🛰️ Daily AI Frontier
‹ back to 2026-11-05

A.S.E 2.0: Understanding How Repository Context Impacts the Security of LLM-Generated Code

arXiv cs.CR LLM Agents Jiongchi Yu, Keke Lian, Junqing Wang, Zhikang Fan, Zhaoxuan Li, Yongheng Huang, Ziming Zhao, Dong Zhang 2026-11-04

TL;DR - CASE-Bench evaluates how repository context affects the security of LLM-generated code across 145 real-CVE tasks. It shows that context optimized for functionality often misses critical safeguards, leaving code correct but exploitable.

  • Functionality-oriented context improved functional pass rates by up to 8.2 percentage points, but secure pass rates by at most 3.7 points.
  • Withholding one safeguard reduced secure pass rates by up to 8.1 points.
  • Adding one insecure exemplar increased correct-but-exploitable outputs by 6.3 points.
  • Coding agents encountered relevant safeguards in only 27–36% of trajectories.

view merged work →