Examining Zero-Shot Vulnerability Repair with Large Language Models
The DOI matches its Crossref record; 43 of the 43 references it cites were found in a registry or an index.
Abstract
Human developers can produce code with cybersecurity bugs. Can emerging ‘smart’ code completion tools help repair those bugs? In this work, we examine the use of large language models (LLMs) for code (such as OpenAI’s Codex and AI21’s Jurassic J-1) for zero-shot vulnerability repair. We investigate challenges in the design of prompts that coax LLMs into generating repaired versions of insecure code. This is difficult due to the numerous ways to phrase key information— both semantically and syntactically—with natural languages. We perform a large scale study of five commercially available, black-box, "off-the-shelf" LLMs, as well as an open-source model and our own locally-trained model, on a mix of synthetic, hand-crafted, and real-world security bug scenarios. Our experiments demonstrate that while the approach has promise (the LLMs could collectively repair 100% of our synthetically generated and hand-crafted scenarios), a qualitative evaluation of the model’s performance over a corpus of historical real-world examples highlights challenges in generating functionally correct code.
Overview
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Integrity signals
Registry
Cites
Statistics
Verification
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Claims other papers make about this one
Each is checked against this paper’s own text: does it say what the citing paper says it does?
In the citing paper
“That said, LLMs may also generate secure code as a replacement for insecure code [27] (i.e. may be used for bug patches). Although this was only shown to reliably work for small synthetic examples rather than for case studies taken from real-world vulnerabilities, where the results were inconclusive”
From Lost at C: A User Study on the Security Implications of Large Language Model Code Assistants (2022) · cites this paper as [27]
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Citations
Cites
Language Models are Few-Shot Learners
Brown, T. B., Mann, B., Ryder, N., Subbiah, M., Kaplan, J., Dhariwal, P., Neelakantan, A., Shyam, P., Sastry, G., Askell, A., et al. (2020) · arXiv · doi:10.48550/arxiv.2005.14165 · Cited by 23,372 · cited 2×
“LLMs trained on large corpora of data can inadvertently gain some ability to perform multiple tasks, even in a “zeroshot” setting [5], [6].”
BackgroundKaugeranna, R., Kaugeranna, E., & Aion, (. S. 4. 6. (2023) · DROPS (Schloss Dagstuhl – Leibniz Center for Informatics) · doi:10.4230/lipics.giscience.2023.43 · Cited by 13,690
2017 USENIX Annual Technical Conference (USENIX ATC'17)
Quoc, D. L., Beck, M. S., Bhatotia, P., Chen, R., Fetzer, C. W., & Strufe, T. (2017) · Cited by 3,091
Evaluating Large Language Models Trained on Code
Chen, M., Tworek, J., Jun, H., Yuan, Q., Pinto, H. P. D. O., Kaplan, J., Edwards, H., Burda, Y., Joseph, N., Brockman, G., et al. (2021) · arXiv · doi:10.48550/arxiv.2107.03374 · Cited by 1,436 · cited 8×
“These include OpenAI’s Codex models [1], AI21’s Jurassic-1 models [8], [25], and the ‘polycoder’ model [26].”
BackgroundMethodInfluentialGenProg: A Generic Method for Automatic Software Repair
Le Goues, C., Nguyen, T., Forrest, S., & Weimer, W. (2012) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2011.104 · Cited by 1,085 · cited 3×
“NMT-based approaches steer clear of problems due to “overfitting” test suites [41], a pitfall of generate-and-validate approaches for patch generation (e.g., the seminal GenProg [42]).”
BackgroundInfluentialSimplifying and isolating failure-inducing input
Zeller, A., & Hildebrandt, R. (2002) · IEEE Transactions on Software Engineering · doi:10.1109/32.988498 · Cited by 1,079
Evaluating large language models trained on code
Chen, M. (2024) · TIB Data Manager · doi:10.57702/wbv3e61b · Cited by 737
AddressSanitizer: a fast address sanity checker
Serebryany, K., Bruening, D. L., Potapenko, A., & Vyukov, D. (2012) · USENIX Annual Technical Conference · Cited by 724
A new algorithm for data compression
Gage, P. (1994) · C/C++ users journal · doi:10.5555/177910.177914 · Cited by 700
A systematic evaluation of large language models of code
Xu, F. F., Alon, U., Neubig, G., & Hellendoorn, V. J. (2022) · Proceedings of the 6th ACM SIGPLAN International Symposium on Machine Programming · doi:10.1145/3520312.3534862 · Cited by 540
Research works printed but not linked: 7
- GitHub Copilot • Your AI pair programmer. Github,
- Discover Use Cases for AI21 Studio and Jurassic-1. AI21.
- Completion -OpenAI API. Openai,
- Jurassic-1: Technical Details and Evaluation. O Lieber, O Sharir, B Lentz, Y Shoham, I21
- Source Code Analysis Tools. OWASP.
- Examples -OpenAI API. Openai,
- What would other programmers do: suggesting solutions to error messages. B Hartmann, D Macdougall, J Brandt, S R Klemmer, Proceedings of the 28th international conference on Human factors in computing systems -CHI '10. the 28th international conference on Human factors in computing systems -CHI '10Atlanta, Georgia, USAACM Press20101019
Cited by
A survey on large language model (LLM) security and privacy: The Good, The Bad, and The Ugly
Yao, Y., Duan, J., Xu, K., Cai, Y., Sun, Z., & Zhang, Y. (2024) · High-Confidence Computing · doi:10.1016/j.hcc.2024.100211 · Cited by 1,083
Large Language Models for Software Engineering: A Systematic Literature Review
Hou, X., Zhao, Y., Liu, Y., Yang, Z., Wang, K., Li, L., Luo, X., Lo, D., Grundy, J., & Wang, H. (2024) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/3695988 · Cited by 1,029
Large language models for software engineering: survey and open problems
Fan, A., Gokkaya, B., Harman, M., Lyubarskiy, M., Sengupta, S., Yoo, S., & Zhang, J. M. (2023) · 2023 IEEE/ACM International Conference on Software Engineering: Future of Software Engineering (ICSE-FoSE) · doi:10.1109/icse-fose59343.2023.00008 · Cited by 650
“[148] reported repair results from five commercial LLMs on security bugs, Charalambous et al.”
BackgroundSoftware Testing With Large Language Models: Survey, Landscape, and Vision
Wang, J., Huang, Y., Chen, C., Liu, Z., Wang, S., & Wang, Q. (2024) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2024.3368208 · Cited by 573
“1 Unit test generation Unit Test Case Generation with Transformers and Focal Context 2021 [24] 2 Unit test generation CodeT: Code Generation with Generated Tests 2022 [25] 3 Unit test generation Interactive Code Generation via Test Driven User Intent Formalization 2022 [26] 4 Unit test generation A3Test: Assertion Aug…”
When LLMs meet cybersecurity: a systematic literature review
Zhang, J., Bu, H., Wen, H., Liu, Y., Fei, H., Xi, R., Li, L., Yang, Y., Zhu, H., & Meng, D. (2025) · Cybersecurity · doi:10.1186/s42400-025-00361-w · Cited by 383
Enhancing Static Analysis for Practical Bug Detection: An LLM-Integrated Approach
Li, H.-N., Hao, Y., Zhai, Y.-Z., & Qian, Z.-Y. (2024) · Proc. ACM Program. Lang. · doi:10.1145/3649828 · Cited by 291
Jada, I., & Mayayise, T. O. (2023) · Data and Information Management · doi:10.1016/j.dim.2023.100063 · Cited by 299
ChatGPT and Software Testing Education: Promises & Perils
Jalil, S., Rafi, S., LaToza, T. D., Moran, K., & Lam, W. (2023) · 2023 IEEE International Conference on Software Testing, Verification and Validation Workshops (ICSTW) · doi:10.1109/icstw58534.2023.00078 · Cited by 270
“One study found that, on tasks to fix security defects after the defect has already been localized and where additional information is provided through the prompt, LLMs can successfully generate fixes [19].”
BackgroundAutoAttacker: A Large Language Model Guided System to Implement Automatic Cyber-attacks
Xu, J., Stokes, J. W., McDonald, G., Bai, X., Marshall, D., Wang, S., Swaminathan, A., & Li, Z. (2024) · arXiv · doi:10.48550/arxiv.2403.01038
A Survey of Large Language Models for Code: Evolution, Benchmarking, and Future TrendsPreprint
Zheng, Z., Ning, K., Wang, Y., Zhang, J., Zheng, D., Ye, M., & Chen, J. (2023) · arXiv · doi:10.48550/arxiv.2311.10372 · Cited by 257
Chip-Chat: Challenges and Opportunities in Conversational Hardware Design
Blocklove, J., Garg, S., Karri, R., & Pearce, H. (2023) · 2023 ACM/IEEE 5th Workshop on Machine Learning for CAD (MLCAD) · doi:10.1109/mlcad58807.2023.10299874 · Cited by 216
Self-citationLLM4Vuln: A Unified Evaluation Framework for Decoupling and Enhancing LLMs' Vulnerability ReasoningPreprint
Sun, Y., Wu, D., Xue, Y., Liu, H., Ma, W., Zhang, L., Liu, Y., & Li, Y. (2024) · arXiv (Cornell University) · doi:10.48550/arxiv.2401.16185 · Cited by 216
“With the release of ChatGPT and GPT-4, more LLM-focused benchmark studies were conducted, including for smart contracts [19, 24] and for traditional C/C++/Java vulnerabilities [31, 37, 62], as well as for vulnerability repair [50].”
Breaking the Silence: the Threats of Using LLMs in Software Engineering
Sallou, J., Durieux, T., & Panichella, A. (2024) · IEEE/ACM International Conference on Software Engineering: New Ideas and Emerging Results (ICSE-NIER) · doi:10.1145/3639476.3639764 · Cited by 219
AutoCodeRover: Autonomous Program Improvement
Zhang, Y., Ruan, H., Fan, Z., & Roychoudhury, A. (2024) · Proceedings of the 33rd ACM SIGSOFT International Symposium on Software Testing and Analysis · doi:10.1145/3650212.3680384 · Cited by 202
NYU CTF Bench: A Scalable Open-Source Benchmark Dataset for Evaluating LLMs in Offensive Security
Shao, M., Jancheska, S., Udeshi, M., Dolan-Gavitt, B., Xi, H., Milner, K., Chen, B., Yin, M., Garg, S., Krishnamurthy, P., et al. (2024) · neural information processing systems · doi:10.52202/079017-1832 · Cited by 202
Self-citationAn Empirical Study on Fine-Tuning Large Language Models of Code for Automated Program Repair
Huang, K., Meng, X.-X., Zhang, J., Liu, Y., Wang, W., Li, S.-H., & Zhang, Y. (2023) · International Conference on Automated Software Engineering · doi:10.1109/ase56229.2023.00181 · Cited by 101
“…can improve the reliability of code produced by LLMCs (Codex) and provide suggestions for enhancing APR with the help of LLMCs. Xia et al. [16] and Pearce et al. [23] comprehensively explored the performance of LLMCs in bug and vulnerability repair tasks using the zero/few-shot learning paradigm.”
BackgroundMethodA Systematic Literature Review on Large Language Models for Automated Program Repair
Zhang, Q., Fang, C., Xie, Y., Ma, Y., Sun, W., Yang, Y. J., & Chen, Z. (2026) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/3799693 · Cited by 196
Large Language Models for Cyber Security: A Systematic Literature Review
Xu, H., Wang, S., Li, N., Wang, K., Zhao, Y., Chen, K., Yu, T., Liu, Y., & Wang, H. (2025) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/3769676 · Cited by 189
“The dominance of decoder-only LLMs in cybersecurity research aligns with the broader trends in the LLM community.”
Liu, Y., Xue, Y., Wu, D., Sun, Y., Li, Y., Shi, M., & Liu, Y. (2025) · Network and Distributed System Security Symposium · doi:10.14722/ndss.2025.241357 · Cited by 182
“Additionally, the pre-trained LLMs have exercised its potential to revolutionize the traditional software tasks, e.g., code generation [8], repairing [41], [63], vulnerability detection [50].”
Prompting Is All You Need: Automated Android Bug Replay with Large Language Models
Feng, S., & Chen, C. (2024) · Proceedings of the IEEE/ACM 46th International Conference on Software Engineering · doi:10.1145/3597503.3608137 · Cited by 176
“Additionally, some studies have examined the impact of LLMs on software development [38, 55], developer productivity [21, 69, 84], and security vulnerabilities [36, 59, 60].”
BackgroundHassanin, M., & Moustafa, N. (2024) · arXiv (Cornell University) · doi:10.48550/arxiv.2405.14487 · Cited by 163
Huang, X., Ruan, W., Huang, W., Jin, G., Dong, Y., Wu, C., Bensalem, S., Mu, R., Qi, Y., Zhao, X., et al. (2024) · Artificial Intelligence Review · doi:10.1007/s10462-024-10824-0 · Cited by 158
Fakih, M., Dharmaji, R., Moghaddas, Y., Quirós, G., Ogundare, O., & Faruque, M. A. A. (2024) · IEEE/ACM International Conference on Software Engineering: Software Engineering in Practice (ICSE-SEIP) · doi:10.1145/3639477.3639743 · Cited by 160
Large Language Models and Simple, Stupid Bugs
Jesse, K., Ahmed, T., Dévanbu, P., & Morgan, E. (2023) · International Conference on Mining Software Repositories (MSR) · doi:10.1109/msr59073.2023.00082 · Cited by 150
“Previous studies [1], [2] show Codex reproduces vulnerabilities seen in training.”
BackgroundResultLarge Language Models Are Zero-Shot Text ClassifiersPreprint
Wang, Z., Pang, Y., & Lin, Y. (2023) · arXiv · doi:10.48550/arxiv.2312.01044 · Cited by 154
“The capability of LLMs was investigated in [32] for zero-shot vulnerability repair in coding, like OpenAI’s Codex and AI21’s Jurassic J-1.”
MethodLarge Language Models for Code: Security Hardening and Adversarial Testing
He, J., & Vechev, M. (2023) · Proceedings of the 2023 ACM SIGSAC Conference on Computer and Communications Security · doi:10.1145/3576915.3623175 · Cited by 138
“After detection, program repair techniques can be used to fix detected vulnerabilities [25, 33, 34, 57].”
Graphologue: Exploring Large Language Model Responses with Interactive Diagrams
Jiang, P., Rayan, J., Dow, S. P., & Xia, H. (2023) · Proceedings of the 36th Annual ACM Symposium on User Interface Software and Technology · doi:10.1145/3586183.3606737 · Cited by 135
“mains such as programming [21, 67, 82], writing support [25, 35, 92], learning [7, 50, 56], and many others [11, 18, 30, 74], and further promoting the notion of natural language interfaces the HCI com-”
BackgroundHow secure is AI-generated code: a large-scale comparison of large language models
Tihanyi, N., Bisztray, T., Ferrag, M. A., Jain, R., & Cordeiro, L. C. (2025) · Empirical Software Engineering · doi:10.1007/s10664-024-10590-1 · Cited by 133
Large Language Model for Vulnerability Detection and Repair: Literature Review and the Road Ahead
Zhou, X., Cao, S., Sun, X., & Lo, D. (2025) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/3708522 · Cited by 132
“By nurturing trust and synergy, LLM-based solutions have the potential to evolve into intelligent allies, offering enhanced support to developers.”
Is GitHub’s Copilot as bad as humans at introducing vulnerabilities in code?
Asare, O., Nagappan, M., & Asokan, N. (2023) · Empirical Software Engineering · doi:10.1007/s10664-023-10380-1 · Cited by 128
“Recent research has shown that CGTs based on language models possess some ability for zero-shot vulnerability fixing (Pearce et al. 2023; Prenner et al. 2022; Zhang et al. 2022; Jiang et al. 2021).”
BackgroundWhen Software Security Meets Large Language Models: A Survey
Zhu, X., Zhou, W., Han, Q., Ma, W., Wen, S., & Xiang, Y. (2025) · IEEE/CAA Journal of Automatica Sinica · doi:10.1109/jas.2024.124971 · Cited by 128
No Need to Lift a Finger Anymore? Assessing the Quality of Code Generation by ChatGPT
Liu, Z., Tang, Y., Luo, X., Zhou, Y., & Zhang, L. F. (2024) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2024.3392499 · Cited by 128
“LLMs like ChatGPT have a non-deterministic nature [12] typically due to the sampling methods such as top-k sampling [65], which means they can produce various responses to the same input [23], [66].”
BackgroundUllah, S., Han, M., Pujar, S., Pearce, H., Coskun, A., & Stringhini, G. (2024) · 2024 IEEE Symposium on Security and Privacy (SP) · doi:10.1109/sp54263.2024.00210 · Cited by 126
Self-citationLiu, Z., Chen, C., Wang, J., Chen, M., Wu, B., Che, X., Wang, D., & Wang, Q. (2024) · Proceedings of the IEEE/ACM 46th International Conference on Software Engineering · doi:10.1145/3597503.3639180 · Cited by 125
A survey on large language models for software engineering
Zhang, Q., Fang, C., Xie, Y., Zhang, Y., Yu, S., Sun, W., Yang, Y., & Chen, Z. (2026) · Science China Information Sciences · doi:10.1007/s11432-025-4670-0 · Cited by 124
Nong, Y., Aldeen, M. S., Cheng, L., Hu, H., Chen, F., & Cai, H. (2024) · arXiv (Cornell University) · doi:10.48550/arxiv.2402.17230 · Cited by 119
“Because most LLMs have limitations on the number of tokens processed, it is not possible to directly input the whole project into LLMs [65].”
BackgroundMethodResultInfluentialThe Prompt Report: A Systematic Survey of Prompt Engineering Techniques
Schulhoff, S., Ilie, M., Balepur, N., Kahadze, K., Liu, A., Si, C., Li, Y., Gupta, A., Han, H., Schulhoff, S., et al. (2024) · arXiv · doi:10.48550/arxiv.2406.06608 · Cited by 118
CORE: Resolving Code Quality Issues using LLMs
Wadhwa, N., Pradhan, J., Sonwane, A., Sahu, S. P., Natarajan, N., Kanade, A., Parthasarathy, S., & Rajamani, S. K. (2024) · Proceedings of the ACM on software engineering. · doi:10.1145/3643762 · Cited by 118
Towards an understanding of large language models in software engineering tasks
Zheng, Z., Ning, K., Zhong, Q., Chen, J., Chen, W., Guo, L., Wang, W., & Wang, Y. (2025) · Empirical Software Engineering · doi:10.1007/s10664-024-10602-0 · Cited by 116
Large Language Models for Software Engineering: A Systematic Literature Review
Hou, X., Zhao, Y., Liu, Y., Yang, Z., Wang, K., Li, L., Luo, X., Lo, D., Grundy, J., & Wang, H. (2023) · arXiv · doi:10.48550/arxiv.2308.10620 · Cited by 114
Automatically Inspecting Thousands of Static Bug Warnings with Large Language Model: How Far Are We?
Wen, C., Cai, Y., Zhang, B., Su, J., Xu, Z., Liu, D., Qin, S., Ming, Z., & Tian, C. (2024) · ACM Transactions on Knowledge Discovery from Data · doi:10.1145/3653718 · Cited by 116
AI for DevSecOps: A Landscape and Future Opportunities
Fu, M. C., Pasuksmit, J., & Tantithamthavorn, C. K. (2025) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/3712190 · Cited by 113
Evolving Paradigms in Automated Program Repair: Taxonomy, Challenges, and Opportunities
Huang, K., Xu, Z., Yang, S., Sun, H., Li, X., Yan, Z., & Zhang, Y. (2024) · ACM Computing Surveys · doi:10.1145/3696450 · Cited by 111
A systematic literature review on the impact of AI models on the security of code generation
Negri-Ribalta, C., Géraud, R., Sergeeva, A., & Lenzini, G. (2024) · Frontiers in Big Data · doi:10.3389/fdata.2024.1386720 · Cited by 113
Asai, A., Wu, Z., Wang, Y., Sil, A., & Hajishirzi, H. (2023) · arXiv (Cornell University) · doi:10.48550/arxiv.2310.11511 · Cited by 101
How Effective Are Neural Networks for Fixing Security Vulnerabilities
Wu, Y., Jiang, N., Pham, H. V., Lutellier, T., Davis, J., Tan, L., Babkin, P., & Shah, S. (2023) · Proceedings of the 32nd ACM SIGSOFT International Symposium on Software Testing and Analysis · doi:10.1145/3597926.3598135 · Cited by 100
“Most vulnerabilities in Vul4J and VJBench cannot be detected by state-of-the-art Java security analysis tools, so we cannot incorporate error messages in the input prompts as [58] did.”
BackgroundMethodResultInfluentialA Survey of Vibe Coding with Large Language ModelsPreprint
Ge, Y., Mei, L., Duan, Z., Li, T., Zheng, Y., Wang, Y., Wang, L., Yao, J., Liu, T., Cai, Y., et al. (2025) · arXiv · doi:10.48550/arxiv.2510.12399 · Cited by 98
ChatGPT for Vulnerability Detection, Classification, and Repair: How Far Are We?
Fu, M., Tantithamthavorn, C. K., Nguyen, V., & Le, T. (2023) · 2023 30th Asia-Pacific Software Engineering Conference (APSEC) · doi:10.1109/apsec60848.2023.00085 · Cited by 97
“In particular, Pearce et al. [17] assessed large language models’ performance for the program repair, however, the most advanced two versions of ChatGPT were not included in their experiments.”
BackgroundOn Hardware Security Bug Code Fixes by Prompting Large Language Models
Ahmad, B., Thakur, S., Tan, B., Karri, R., & Pearce, H. (2024) · IEEE Transactions on Information Forensics and Security · doi:10.1109/tifs.2024.3374558 · Cited by 96
“Pearce et al. [15] use this approach to repair two scenarios of security weaknesses in Verilog code.”
MethodSelf-citation(Security) Assertions by Large Language Models
Kande, R., Pearce, H., Tan, B., Dolan-Gavitt, B., Thakur, S., Karri, R., & Rajendran, J. (2024) · IEEE Transactions on Information Forensics and Security · doi:10.1109/tifs.2024.3372809 · Cited by 96
Self-citationNazzal, M., Khalil, I. M., Khreishah, A. A., & Phan, N. (2024) · ACM SIGSAC Conference on Computer and Communications Security (CCS) · doi:10.1145/3658644.3690298 · Cited by 97
LLM for SoC Security: A Paradigm Shift
Saha, D., Tarek, S., Yahyaei, K., Saha, S. K., Zhou, J., Tehranipoor, M., & Farahmandi, F. (2024) · IEEE Access · doi:10.1109/access.2024.3427369 · Cited by 93
“b) Repairment of Software Vulnerabilities: Authors in [47] presented a study focused on the application of LLMs in repairing software vulnerabilities in zero-shot settings.”
BackgroundLarge Language Models in Cybersecurity: State-of-the-Art
Motlagh, F. N., Hajizadeh, M., Majd, M., Najafi, P., Cheng, F., & Meinel, C. (2024) · arXiv · doi:10.48550/arxiv.2402.00891 · Cited by 92
CodePlan: Repository-Level Coding using LLMs and Planning
Bairi, R., Sonwane, A., Kanade, A., C., V. D., Iyer, A., Parthasarathy, S., Rajamani, S., Ashok, B., & Shet, S. (2024) · Proceedings of the ACM on Software Engineering · doi:10.1145/3643757 · Cited by 92
“A few examples of their use include program synthesis [50, 56], program repair [11, 43, 79], vulnerability patching [60], inferring program invariants [62], test generation [69] and multi-task evaluation [72].”
Large Language Models in Cybersecurity: State-of-the-Art
Motlagh, F., Hajizadeh, M., Majd, M., Najafi, P., Cheng, F., & Meinel, C. (2025) · Proceedings of the 11th International Conference on Information Systems Security and Privacy · doi:10.5220/0013377600003899 · Cited by 92
Application of Large Language Models in Cybersecurity: A Systematic Literature Review
Hasanov, I., Virtanen, S., Hakkala, A., & Isoaho, J. (2024) · IEEE Access · doi:10.1109/access.2024.3505983 · Cited by 89
Chen, Y., Arunasalam, A., & Celik, Z. B. (2023) · Asia-Pacific Computer Systems Architecture Conference · doi:10.1145/3627106.3627196 · Cited by 77
“Broadly, these works explore LLMs’ ability to generate bug-free code or to detect S&P issues in vulnerable code [34, 43, 46, 47, 63].”
BackgroundLi, Z., Christoph, G., Inglin, Y., Steck, N., Streli, P., & Holz, C. (2024) · ACM Symposium on User Interface Software and Technology (UIST) · doi:10.1145/3654777.3676470 · Cited by 82
Wang, J., Cao, L., Luo, X., Cao, Y., Li, Z., Xiao, Y., Zhao, M., Jatowt, A., & Cai, Y. (2026) · Proceedings of the ACM on software engineering. · doi:10.1145/3832159 · Cited by 80
International Scientific Report on the Safety of Advanced AI (Interim Report)Preprint
Bengio, Y., Mindermann, S., Privitera, D., Besiroglu, T., Bommasani, R., Casper, S., Choi, Y., Goldfarb, D. A., Heidari, H., Khalatbari, L., et al. (2024) · arXiv · doi:10.48550/arxiv.2412.05282 · Cited by 90
Llama-3.1-FoundationAI-SecurityLLM-Base-8B Technical ReportPreprint
Kassianik, P., Saglam, B., Chen, A., Nelson, B., Vellore, A., Aufiero, M., Burch, F., Kedia, D., Zohary, A., Weerawardhena, S., et al. (2025) · arXiv.org · doi:10.48550/arxiv.2504.21039 · Cited by 56
“While much research has focused on secure code generation [45, 54, 74], our model is not designed or optimized for coding tasks.”
Hamer, S., d’Amorim, M., & Williams, L. A. (2024) · IEEE Security and Privacy Workshops (SPW) · doi:10.1109/spw63631.2024.00014 · Cited by 79
Mohsin, A., Janicke, H., Wood, A., Sarker, I. H., Maglaras, L. A., & Janjua, N. K. (2024) · arXiv · doi:10.48550/arxiv.2406.12513 · Cited by 73
“Fine-tuning techniques are used to improve their learning behaviors in specific aspects of coding, such as functional code generation, program synthesis, vulnerability analysis, and code repair [24].”
BackgroundMethodWIPI: A New Web Threat for LLM-Driven Web AgentsPreprint
Wu, F., Wu, S., Cao, Y.-L., & Xiao, C.-W. (2024) · arXiv.org · doi:10.48550/arxiv.2402.16965 · Cited by 65
“LLMs have drawn significant attention due to their remarkable capabilities and adapt-ability across a wide range of tasks, as evident in recent studies [4,24,34,35,43,44].”
BackgroundGenerative Artificial Intelligence for Software Engineering - a Research Agenda
NguyenDuc, A., Cabrero-Daniel, B., Arora, C., Przybylek, A., Khanna, D., Herda, T., Rafiq, U., Melegati, J., Guerra, E., Kemell, K.-K., et al. (2023) · doi:10.2139/ssrn.4622517 · Cited by 71
RMCBench: Benchmarking Large Language Models' Resistance to Malicious Code
Chen, J., Zhong, Q., Wang, Y., Ning, K., Liu, Y., Xu, Z., Zhao, Z., Chen, T., & Zheng, Z. (2024) · IEEE/ACM International Conference on Automated Software Engineering (ASE) · doi:10.1145/3691620.3695480 · Cited by 70
Jaffal, N. O., Alkhanafseh, M., & Mohaisen, D. (2025) · AI · doi:10.3390/ai6090216 · Cited by 69
Wen, C., Cao, J., Su, J., Xu, Z., Qin, S., He, M., Li, H., Cheung, S.-C., & Tian, C. (2024) · Lecture Notes in Computer Science · doi:10.1007/978-3-031-65630-9_16 · Cited by 69
The Evolution of Large Language Model: Models, Applications and Challenges
B., S., P, P., B., S. M., & S, K. (2024) · 2024 International Conference on Current Trends in Advanced Computing (ICCTAC) · doi:10.1109/icctac61556.2024.10581180 · Cited by 48
DeceptPrompt: Exploiting LLM-driven Code Generation via Adversarial Natural Language InstructionsPreprint
Wu, F., Liu, X., & Xiao, C. (2023) · arXiv · doi:10.48550/arxiv.2312.04730 · Cited by 71
Constrained Decoding for Secure Code GenerationPreprint
Fu, Y., Baker, E., Ding, Y., & Chen, Y. (2024) · arXiv · doi:10.48550/arxiv.2405.00218 · Cited by 73
Refactoring Programs Using Large Language Models with Few-Shot Examples
Shirafuji, A., Oda, Y., Suzuki, J., Morishita, M., & Watanobe, Y. (2023) · 2023 30th Asia-Pacific Software Engineering Conference (APSEC) · doi:10.1109/apsec60848.2023.00025 · Cited by 67
Debug like a Human: A Large Language Model Debugger via Verifying Runtime Execution Step by Step
Zhong, L., Wang, Z., & Shang, J. (2024) · Findings of the Association for Computational Linguistics ACL 2024 · doi:10.18653/v1/2024.findings-acl.49 · Cited by 67
From Vulnerabilities to Remediation: A Systematic Literature Review of LLMs in Code Security
Basic, E., & Giaretta, A. (2024) · arXiv · doi:10.48550/arxiv.2412.15004 · Cited by 72
A Survey of LLM-based Software Repair: Taxonomies, Design Paradigms, and Applications
Yang, B.-Y., Cai, Z.-J., Liu, F.-L., Le, B., Zhang, L.-M., Bissyandé, T., Liu, Y., & Tian, H.-Y. (2026) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/3845995 · Cited by 1
Vision Transformer Inspired Automated Vulnerability Repair
Fu, M. C., Nguyen, V., Tantithamthavorn, C. K., Phung, D., & Le, T. (2024) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/3632746 · Cited by 63
LLMSecEval: A Dataset of Natural Language Prompts for Security Evaluations
Tony, C., Mutas, M., Ferreyra, N. E. D., & Scandariato, R. (2023) · 2023 IEEE/ACM 20th International Conference on Mining Software Repositories (MSR) · doi:10.1109/msr59073.2023.00084 · Cited by 61
“The same code scenarios were used as a base in another work [13] to explore the ability of LLMs to fix bugs in vulnerable code.”
The FormAI Dataset: Generative AI in Software Security through the Lens of Formal Verification
Tihanyi, N., Bisztray, T., Jain, R., Ferrag, M. A., Cordeiro, L. C., & Mavroeidis, V. (2023) · Proceedings of the 19th International Conference on Predictive Models and Data Analytics in Software Engineering · doi:10.1145/3617555.3617874 · Cited by 61
“Research related to the application of verification tools in analyzing code specifically generated by LLMs remains rather limited.”
BackgroundInfluentialCoPrompt: Supporting Prompt Sharing and Referring in Collaborative Natural Language Programming
Feng, L., Yen, R., You, Y., Fan, M., Zhao, J., & Lu, Z. (2024) · CHI Conference on Human Factors in Computing Systems · doi:10.1145/3613904.3642212 · Cited by 61
“As our research aims to address the challenges of collaborative prompt engineering in collaborative NL programming, we review prior work on natural language programming and LLMs, as well as collaborative programming groupware.”
Generative Artificial Intelligence for Software Engineering—A Research Agenda
Nguyen‐Duc, A., Cabrero‐Daniel, B., Przybylek, A., Arora, C., Khanna, D., Herda, T., Rafiq, U., Melegati, J., Guerra, E., Kemell, K., et al. (2025) · Software: Practice and Experience · doi:10.1002/spe.70005 · Cited by 60
Robustifying Safety-Aligned Large Language Models through Clean Data Curation
Liu, X., Liang, J., Ye, M., & Xi, Z. (2024) · arXiv · doi:10.48550/arxiv.2405.19358 · Cited by 1
“…e r p l ex it y Figure 4: Perplexity variation with changes in temperature and top-p, measured on a randomly selected (query, response) pair using Llama-3-8B. decision-making process of LLMs, impacting their word generation capabilities and their ability to tackle more intricate tasks [37, 59, 11].”
BackgroundMethodA Survey of Circuit Foundation Model: Foundation AI Models for VLSI Circuit Design and EDA
Fang, W., Wang, J., Lu, Y., Liu, S., Wu, Y., Ma, Y., & Xie, Z. (2026) · ACM Transactions on Design Automation of Electronic Systems · doi:10.1145/3827602 · Cited by 60
ARVO: Atlas of Reproducible Vulnerabilities for Open-Source Software
Mei, X., Castillo, J. D., Singaria, P. S., Xi, H., Benchikh, Bao, T., Wang, R., Shoshitaishvili, Y., Doupé, A., Pearce, H. A., et al. (2026) · IEEE European Symposium on Security and Privacy · doi:10.1109/eurosp68448.2026.00060 · Cited by 60
Self-citationWu, Y., Xie, X., Peng, C., Liu, D., Wu, H., Fan, M. Y., Liu, T., & Wang, H. (2024) · IEEE/ACM International Conference on Automated Software Engineering (ASE) · doi:10.1145/3691620.3695482 · Cited by 59
Pre-Trained Model-Based Automated Software Vulnerability Repair: How Far are We?
Zhang, Q., Fang, C., Yu, B., Sun, W., Zhang, T., & Chen, Z. (2024) · IEEE Transactions on Dependable and Secure Computing · doi:10.1109/tdsc.2023.3308897 · Cited by 58
“Pearce et al. [63] employ black-box pre-trained models to produce security fixes in a zero-shot scenario, while our work focuses on open-source pre-trained models with additional fine-tuning, leading to two orthogonal dimensions.”
MethodComprehensive Fine-Tuning Large Language Models of Code for Automated Program Repair
Huang, K., Zhang, J., Bao, X., Wang, X., & Liu, Y. (2025) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2025.3532759 · Cited by 59
DevGPT: Studying Developer-ChatGPT Conversations
Xiao, T., Treude, C., Hata, H., & Matsumoto, K. (2024) · Proceedings of the 21st International Conference on Mining Software Repositories · doi:10.1145/3643991.3648400 · Cited by 56
DecLLM: LLM-Augmented Recompilable Decompilation for Enabling Programmatic Use of Decompiled Code
Wong, W.-K., Wu, D.-Y., Wang, H.-J., Li, Z.-J., Liu, Z., Wang, S., Tang, Q., Nie, S., & Wu, S. (2025) · Proc. ACM Softw. Eng. · doi:10.1145/3728958 · Cited by 60
Template-Guided Program Repair in the Era of Large Language Models
Huang, K., Zhang, J., Meng, X., & Liu, Y. (2025) · ACM/IEEE International Conference on Software Engineering: Companion Proceedings (ICSE-Companion) · doi:10.1109/icse55347.2025.00030 · Cited by 54
“Inspired by this, researchers have started to explore the capabilities of LLMs for APR [5]– [13].”
Fine Tuning Large Language Model for Secure Code Generation
Li, J., Sangalay, A., Cheng, C., Tian, Y., & Yang, J. (2024) · IEEE/ACM International Conference on AI Foundation Models and Software Engineering (FORGE) · doi:10.1145/3650105.3652299 · Cited by 59
Lost at C: A User Study on the Security Implications of Large Language Model Code Assistants
Sandoval, G., Pearce, H., Nys, T., Karri, R., Garg, S., & Dolan-Gavitt, B. (2022) · arXiv · doi:10.48550/arxiv.2208.09727 · Cited by 52
“That said, LLMs may also generate secure code as a replacement for insecure code [27] (i.”
BackgroundSelf-citationLarge Language Models for Cybersecurity: New Opportunities
Divakaran, D. M., & Peddinti, S. T. (2024) · IEEE Security & Privacy · doi:10.1109/msec.2024.3504512 · Cited by 52
A Survey on Failure Analysis and Fault Injection in AI Systems
Yu, G., Tan, G., Huang, H., Zhang, Z., Chen, P., Natella, R., Zheng, Z., & Lyu, M. R.-T. (2025) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/3732777 · Cited by 52
Sclar, M., Choi, Y., Tsvetkov, Y., & Suhr, A. (2023) · arXiv · doi:10.48550/arxiv.2310.11324 · Cited by 52
Far, S. M. T., & Feyzi, F. (2025) · International Journal of Information Security · doi:10.1007/s10207-025-00992-7 · Cited by 53
Mahbub, T., Dghaym, D., Shankarnarayanan, A., Syed, T., Shapsough, S., & Zualkernan, I. A. (2024) · IEEE Access · doi:10.1109/access.2024.3464242 · Cited by 54
“Consequently, zero-shot learning often serves as a valuable benchmark for studies involving LLMs [46], [47].”
Do LLMs consider security? an empirical study on responses to programming questions
Sajadi, A., Le, B., Nguyen, A., Damevski, K., & Chatterjee, P. (2025) · Empirical Software Engineering · doi:10.1007/s10664-025-10658-6 · Cited by 43
Automated C/C++ Program Repair for High-Level Synthesis via Large Language Models
Xu, K., Zhang, G. L., Yin, X., Zhuo, C., Schlichtmann, U., & Li, B. (2024) · ACM/IEEE Workshop on Machine Learning for CAD (MLCAD) · doi:10.1145/3670474.3685953 · Cited by 50
“To automate program repair, recent studies have reported promising results of directly applying LLMs [21]–[24] to repair C/C++ programs.”
MethodDefectHunter: A Novel LLM-Driven Boosted-Conformer-based Code Vulnerability Detection MechanismPreprint
Wang, J., Huang, Z., Liu, H., Yang, N., & Xiao, Y. (2023) · arXiv (Cornell University) · doi:10.48550/arxiv.2309.15324 · Cited by 50
LLMs and the Future of Chip Design: Unveiling Security Risks and Building Trust
Zeng, W., Alrahis, L., Mankali, L., Knechtel, J., & Sinanoglu, O. (2024) · IEEE Computer Society Annual Symposium on VLSI · doi:10.1109/isvlsi61997.2024.00076 · Cited by 50
“We further summarize the key details of the discussed works in Table I.”
Background
Metadata
- Authors
- Pearce, H., Tan, B., Ahmad, B., Karri, R., & Dolan-Gavitt, B.
- Affiliations
- New York University
- University of Calgary (CA)
- New York University (US)
- Venue
- 2023 IEEE Symposium on Security and Privacy (SP)
- Publisher
- IEEE
- Published
- 2023-05
- Pages
- 2339-2356
- ISSN
- 1081-6011 (ISSN-L)
- OpenAlex
- W4385187279
- Semantic Scholar
- a5731122200fbb8b37f048010a1e1ca4474aa606
- Cited by
- 131
- References
- 40
- Citations by year
- 2026: 52 · 2025: 32 · 2024: 40 · 2023: 7
- FWCI
- 33.67
- Type
- conference paper
- Language
- en
- Open access
- closed
- Locations
- IEEE Symposium on Security and Privacy (S&P) (publishedVersion)
- Topics
- Physical Sciences › Computer Science › Information Systems › Software Engineering Research
- Physical Sciences › Computer Science › Software › Software Testing and Debugging Techniques
- Physical Sciences › Computer Science › Information Systems › Web Application Security Vulnerabilities
- Keywords
- large language models, code completion, prompt engineering, secure code generation, codices
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.