Skip to content

"Tab, Tab, Bug": Security pitfalls of next edit suggestions (NES) in AI-integrated IDEs"Tab, Tab, Bug": Security Pitfalls of Next Edit Suggestions in AI-Integrated IDEs

arXiv· arXiv:2602.06759· ACM SIGSAC Conference on Computer and Communications Security 2026· Yunlong Lyu, Yixuan Tang, Peng Chen, Tian Dong, Xinyu Wang, Zhiqiang Dong, Hao ChenThe University of Hong Kong; McGill UniversityIndexed by this site · 7 days ago· Originally publishedAttacks

Translation in progress — untranslated text is omitted.

Quick read

Evaluation and benchmarks

Based on the paper PDF (AI-generated); refer to the original

AI summaryThe paper conducts a systematic security study of next edit suggestions (NES) in AI-integrated IDEs, which the authors describe as the first systematic study in this direction. Mechanism analysis found that NES retrieves significantly expanded context, including inputs from user actions that are hard to notice and global codebase retrieval, thereby expanding the attack surface. Laboratory evaluation shows that NES is susceptible to context poisoning and is sensitive to transactional edits and human-IDE interaction. An online survey of more than 200 professional developers found that developers generally lack awareness of NES security risks, and the paper accordingly calls for strengthening related education and improving security countermeasures.

Questions
AI IDEs are shifting from passive completion to proactive Next Edit Suggestions (NES), which aggregate implicit context such as recently viewed code and edit history, but existing research focuses only on the safety of standalone LLM code generation, and the mechanisms and security risks of NES remain unclear.
Methods
The authors analyze the NES architectures of GitHub Copilot and Zed Editor, derive a taxonomy of 12 risk vectors (Table 1), then use CodeQL to build 410 test cases from Java repositories, conduct white-box evaluation of the open-source model Zeta and black-box manual verification of four commercial IDEs, supplemented by a survey of 385 developers.
Experiments and results
In the white-box evaluation, Zeta's overall insecure suggestion rate is 74.44%, and the four commercial IDEs average 77.92% (Table 2); in the questionnaire, 81.1% of respondents report having seen insecure suggestions, and only 12.3% explicitly check security.
Limitations and future work
The authors note that the evaluation is limited to Java, one open-source NES model, and four commercial IDEs, and that what is reported is a conditional failure rate rather than a general incidence rate; the survey sample comes from one company and one university and involves biases such as self-selection; LLM judging may be sensitive to prompts or models.
Read originalACM SIGSAC Conference on Computer and Communications Security 2026