Skip to content
Search
paperAugust 2026Unreviewed

WeSCE: A Benchmark for Measuring Security Drift in LLM-Driven Code Editing

Zhiyu Zhang, Tingyue Wen, Senke Sun, Dengxiang Liang, Enhao Huang

Abstract

In this work, we introduce WeSCE, a benchmark for quantifying security drift in code editing under weak-security constraints, where tasks specify only functional objectives without explicit security requirements. WeSCE consists of 400 executable programs derived from real-world code, covering feature addition, feature removal, bug fixing, and refactoring. To quantify security drift, we propose a continuous risk representation that aggregates heterogeneous vulnerability signals through a unified

Categories

Cite

@misc{zhang2026wesce,
  title = {{WeSCE: A Benchmark for Measuring Security Drift in LLM-Driven Code Editing}},
  author = {Zhiyu Zhang and Tingyue Wen and Senke Sun and Dengxiang Liang and Enhao Huang},
  year = {2026},
  month = aug,
  eprint = {2608.15092},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2608.15092}
}