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
Items 101–200 of 663
LADAC: Large Language Model-driven Auto-Designer for Analog CircuitsPreprint
Liu, C., Liu, Y., Du, Y., & Du, L. (2024) · TechRxiv · doi:10.36227/techrxiv.170473941.10097233/v1 · Cited by 52
Franc: A Lightweight Framework for High-Quality Code Generation
Siddiq, M. L., Casey, B., & Santos, J. C. S. (2024) · IEEE International Working Conference on Source Code Analysis and Manipulation (SCAM) · doi:10.1109/scam63643.2024.00020 · Cited by 48
“The key insight of this phase is that code repair can be treated as a code generation task [49], [50], but with a prompt that explicitly instructs the model to fix a quality problem in a given location.”
HoneyGPT: Breaking the trilemma in honeypots with large language models
Wang, Z., You, J., Wang, H., Yuan, T., Lv, S., Wang, Y., & Sun, L. (2026) · Computer Networks · doi:10.1016/j.comnet.2026.112223 · Cited by 48
Koutcheme, C., Dainese, N., Sarsa, S., Hellas, A., Leinonen, J., & Denny, P. (2024) · Proceedings of the 2024 on Innovation and Technology in Computer Science Education V. 1 · doi:10.1145/3649217.3653612 · Cited by 47
Nashaat, M., & Miller, J. (2024) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2024.3428324 · Cited by 48
“The evolution of large language models continues, with ongoing research focusing on improving their ef fi ciency [30], [31], fi ne-tuning for speci fi c tasks [32], [33], and addressing concerns related to bias and safety in these AI systems [34].”
BackgroundChatAssert: LLM-Based Test Oracle Generation With External Tools Assistance
Hayet, I., Scott, A., & d’Amorim, M. (2024) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2024.3519159 · Cited by 47
“Code summaries add contextual and explanatory data to the prompts, which has shown to benefit LLM’s performance [18], [34], [35], [36].”
FlakyFix: Using Large Language Models for Predicting Flaky Test Fix Categories and Test Code Repair
Fatima, S., Hemmati, H., & Briand, L. (2024) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2024.3472476 · Cited by 46
“Large Language Models (LLMs) such as GPT have been successfully applied to many automated software engineering tasks in the past [52, 53], including automated program repair [54–56] and [57].”
MethodWang, J., Cao, L., Luo, X., Zhou, Z., Xie, J., Jatowt, A., & Cai, Y. (2023) · arXiv · doi:10.48550/arxiv.2310.16263 · Cited by 50
How Effective Are They? Exploring Large Language Model Based Fuzz Driver Generation
Zhang, C., Zheng, Y., Bai, M., Li, Y., Ma, W., Xie, X., Li, Y., Sun, L., & Liu, Y. (2024) · Proceedings of the 33rd ACM SIGSOFT International Symposium on Software Testing and Analysis · doi:10.1145/3650212.3680355 · Cited by 45
Exploring the Robustness of Large Language Models for Solving Programming ProblemsPreprint
Shirafuji, A., Watanobe, Y., Ito, T., Morishita, M., Nakamura, Y., Oda, Y., & Suzuki, J. (2023) · arXiv · doi:10.48550/arxiv.2306.14583 · Cited by 46
“Codex has been used not only for solving programming problems but also in other various tasks, such as solving mathematical problems [44–46], fixing bugs [23, 24], and generating programming exercises [47].”
MethodRethinking the Evaluation of Secure Code Generation
Dai, S.-C., Xu, J. L., & Tao, G. (2026) · ACM/IEEE International Conference on Software Engineering: Companion Proceedings (ICSE-Companion) · doi:10.1145/3744916.3773217 · Cited by 49
Enhancing language learning through generative AI feedback on picture-cued writing tasks
Zhuang, Y., Zhao, R., Xie, Z., & Yu, P. L. H. (2025) · Computers and Education Artificial Intelligence · doi:10.1016/j.caeai.2025.100450 · Cited by 46
The potential of LLMs in hardware design
Alsaqer, S., Alajmi, S., Ahmad, I., & Alfailakawi, M. G. (2024) · Journal of Engineering Research · doi:10.1016/j.jer.2024.08.001 · Cited by 45
IRCopilot: Automated Incident Response with Large Language ModelsPreprint
Lin, X., Zhang, J., Deng, G., Liu, T., Zhang, T., Guo, Q., & Chen, R. (2025) · arXiv · doi:10.48550/arxiv.2505.20945 · Cited by 46
From CVE Entries to Verifiable Exploits: An Automated Multi-Agent Framework for Reproducing CVEsPreprint
Ullah, S., Balasubramanian, P., Guo, W., Burnett, A., Pearce, H. A., Kruegel, C., Vigna, G., & Stringhini, G. (2025) · arXiv (Cornell University) · doi:10.48550/arxiv.2509.01835 · Cited by 44
“Recent work also shows their utility in security tasks, e.g., bug detection and repair [24,46,57] and writing fuzzer test harnesses [12].”
Self-citationFixing Rust Compilation Errors using LLMsPreprint
Deligiannis, P., Lal, A., Mehrotra, N., & Rastogi, A. (2023) · arXiv (Cornell University) · doi:10.48550/arxiv.2308.05177 · Cited by 43
“[44] performs a large scale study to explore the potential of LLMs in automatically repairing cybersecurity bugs.”
BackgroundCan LLMs Patch Security Issues?Preprint
Alrashedy, K., Aljasser, A., Tambwekar, P., & Gombolay, M. (2023) · arXiv (Cornell University) · doi:10.48550/arxiv.2312.00024 · Cited by 43
Evaluating Large Language Models for Line-Level Vulnerability Localization
Zhang, J., Wang, C., Li, A., Sun, W., Zhang, C., Ma, W., & Liu, Y. (2025) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2025.3649250 · Cited by 42
“Notably, studies by Fan et al. [53], Xia et al. [54], and Pearce et al. [55] delve into the capabilities of Codex and other models in augmenting Automated Program Repair (APR) techniques, employing paradigms such as zero/few-shot learning for bug and vulnerability mitigation.”
Navigating the security landscape of large language models in enterprise information systems
Gupta, B. B., Gaurav, A., & Arya, V. (2024) · Enterprise Information Systems · doi:10.1080/17517575.2024.2310846 · Cited by 42
Towards Giving Timely Formative Feedback and Hints to Novice Programmers
Jeuring, J., Keuning, H., Marwan, S., Bouvier, D., Izu, C., Kiesler, N., Lehtinen, T., Lohr, D., Peterson, A., & Sarsa, S. (2022) · Proceedings of the 2022 Working Group Reports on Innovation and Technology in Computer Science Education · doi:10.1145/3571785.3574124 · Cited by 40
Hajipour, H., Hassler, K., Holz, T., Schönherr, L., & Fritz, M. (2024) · 2024 IEEE Conference on Secure and Trustworthy Machine Learning (SaTML) · doi:10.1109/satml59370.2024.00040 · Cited by 40
“While the model is trained, it also learns the training data’s coding styles and—even more critical—the bugs that can lead to security vulnerabilities [15], [16].”
MethodTihanyi, N., Charalambous, Y., Jain, R., Ferrag, M. A., & Cordeiro, L. C. (2025) · 2025 IEEE/ACM International Conference on Automation of Software Test (AST) · doi:10.1109/ast66626.2025.00020 · Cited by 40
“This is evident in the example where the model correctly calculates 456 , 533 × 456 , 533 = 208 , 598 , 234 , 889 but incorrectly claims that this value can be represented by a 32 -bit int variable, overlooking the maximum value a 32-bit integer can fit, i.e., 2 32 = 4 , 294 , 967 , 296 .”
Systematic Literature Review of Prompt Engineering Patterns in Software Engineering
Sasaki, Y., Washizaki, H., Li, J., Sander, D., Yoshioka, N., & Fukazawa, Y. (2024) · IEEE Annual International Computer Software and Applications Conference (COMPSAC) · doi:10.1109/compsac61105.2024.00096 · Cited by 41
“• PA. Learning Approach: Seven papers address the pattern to provide the context necessary for their purpose to LLMs [9]- [15].”
BackgroundPitfalls in Language Models for Code Intelligence: A Taxonomy and Survey
She, X., Liu, Y., Zhao, Y., He, Y., Li, L., Tantithamthavorn, C. K., Qin, Z., & Wang, H. (2026) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/3748647 · Cited by 40
“They are now extensively researched and employed for source code understanding and generation, such as code completion [114, 114, 125], code summarization [39], code generation [83, 128], code search [138], program repair [30, 165], and test case generation [180].”
Measuring and Augmenting Large Language Models for Solving Capture-the-Flag Challenges
Ji, Z., Wu, D., Jiang, W., Ma, P., Li, Z., & Wang, S. (2025) · Proceedings of the 2025 ACM SIGSAC Conference on Computer and Communications Security · doi:10.1145/3719027.3744855 · Cited by 5
Enhancing Exploratory Testing by Large Language Model and Knowledge Graph
Su, Y., Liao, D., Xing, Z., Huang, Q. Y., Xie, M., Lu, Q., & Xu, X. (2024) · ACM/IEEE International Conference on Software Engineering: Companion Proceedings (ICSE-Companion) · doi:10.1145/3597503.3639157 · Cited by 39
A Study of Vulnerability Repair in JavaScript Programs with Large Language Models
Le, T. K., Alimadadi, S., & Ko, S. Y. (2024) · International World Wide Web Conference (WWW) · doi:10.1145/3589335.3651463 · Cited by 40
Harnessing the Power of General-Purpose LLMs in Hardware Trojan Design
Kokolakis, G., Moschos, A., & Keromytis, A. D. (2024) · Lecture notes in computer science · doi:10.1007/978-3-031-61486-6_11 · Cited by 39
“In software engineering, LLMs are mainly employed as tools that assist in the generation of code [1, 18, 26, 31, 35–37, 39, 41, 42, 50, 53, 61, 65], the identification of vulnerabilities and bugs [19, 20, 29, 32, 60] and recently bug correction [25, 47, 62].”
MethodYadav, V., Tang, Z. S., & Srinivasan, V. (2024) · International ACM SIGIR Conference on Research and Development in Information Retrieval (SIGIR) · doi:10.1145/3626772.3657959 · Cited by 39
Methodology for Code Synthesis Evaluation of LLMs Presented by a Case Study of ChatGPT and Copilot
Ságodi, Z., Siket, I., & Ferenć, R. (2024) · IEEE Access · doi:10.1109/access.2024.3403858 · Cited by 38
“LLMs are also used to fix vulnerabilities in source code [25], which might suggest that these models are free from vulnerabilities, however, there are multiple works that show Copilot being prone to generate vulnerable code [26], [27], [28].”
BackgroundVulAdvisor: Natural Language Suggestion Generation for Software Vulnerability Repair
Zhang, J., Wang, C., Li, A., Wang, W., Li, T., & Liu, Y. (2024) · IEEE/ACM International Conference on Automated Software Engineering (ASE) · doi:10.1145/3691620.3695555 · Cited by 38
OCR-APT: Reconstructing APT Stories from Audit Logs using Subgraph Anomaly Detection and LLMs
Aly, A., Mansour, E., & Youssef, A. (2025) · ACM SIGSAC Conference on Computer and Communications Security (CCS) · doi:10.1145/3719027.3765219 · Cited by 40
SecCoder: Towards Generalizable and Robust Secure Code Generation
Zhang, B., Du, T., Tong, J., Zhang, X., Chow, K., Sheng, C., Wang, X., & Yin, J. (2024) · Conference on Empirical Methods in Natural Language Processing (EMNLP) · doi:10.18653/v1/2024.emnlp-main.806 · Cited by 39
PATCHEVAL: A New Benchmark for Evaluating LLMs on Patching Real-World VulnerabilitiesPreprint
Wei, Z., Zeng, J., Wen, M., Yu, Z., Cheng, K., Zhu, Y., Guo, J., Zhou, S., Yin, L., Su, X., et al. (2025) · arXiv (Cornell University) · doi:10.48550/arxiv.2511.11019 · Cited by 38
PentestGPT: An LLM-empowered Automatic Penetration Testing Tool
Deng, G., Liu, Y., Mayoral-Vilches, V., Liu, P., Li, Y., Xu, Y., Zhang, T., Liu, Y., Pinzger, M., & Rass, S. (2023) · arXiv · doi:10.48550/arxiv.2308.06782 · Cited by 37
“In a typical penetration test, security professionals, known as penetration testers, analyze the target system, often leveraging automated tools.”
BackgroundLarge Language Models for Automated Web-Form-Test Generation: An Empirical Study
Li, T., Cui, C., Huang, R., Towey, D., & Ma, L. (2026) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/3735553 · Cited by 36
Tang, Y., da Costa, A. A. B., Zhang, X., Irvine, P., Khastgir, S., & Jennings, P. (2023) · IEEE International Conference on Intelligent Transportation Systems (ITSC) · doi:10.1109/itsc57777.2023.10422308 · Cited by 37
“As discussed in [5], [6], with more specific context information and good examples come improved semantic accuracy and more focused responses.”
BackgroundFoundations of Large Language Models in Software Vulnerability Detection
Zangana, H. M., & Mohammed, D. (2024) · Advances in information security, privacy, and ethics book series · doi:10.4018/979-8-3693-9311-6.ch002 · Cited by 37
Are We Ready to Embrace Generative AI for Software Q&A?
Xu, B., Nguyen, T.-D., Le-Cong, T., Hoang, T., Liu, J., Kim, K., Gong, C., Niu, C., Wang, C., Le, B., et al. (2023) · IEEE/ACM International Conference on Automated Software Engineering (ASE) · doi:10.1109/ase56229.2023.00023 · Cited by 36
“Many works have demonstrated that generative AI has a big potential for software tasks, such as program repair [20–22].”
BackgroundChatGPT Incorrectness Detection in Software Reviews
Tanzil, M. H., Khan, J. Y., & Uddin, G. (2024) · ACM/IEEE International Conference on Software Engineering: Companion Proceedings (ICSE-Companion) · doi:10.1145/3597503.3639194 · Cited by 35
LLM4CVE: Enabling Iterative Automated Vulnerability Repair with Large Language Models
Fakih, M., Dharmaji, R., Bouzidi, H., Araya, G. Q., Ogundare, O., Siddika, M., & Faruque, M. A. A. (2025) · Euromicro Conference on Digital System Design (DSD) · doi:10.1109/dsd67783.2025.00087 · Cited by 35
Nong, Y., Yang, H., Cheng, L., Hu, H., & Cai, H. (2024) · arXiv (Cornell University) · doi:10.48550/arxiv.2408.13597 · Cited by 35
“Another, SOTA method is zero-shot code completion [43], which removes the vulnerable code and lets LLMs complete the vulnerable parts.”
InfluentialKulsum, U., Zhu, H., Xu, B., & d'Amorim, M. (2024) · Proceedings of the 1st ACM International Conference on AI-Powered Software · doi:10.1145/3664646.3664770 · Cited by 34
HoneyLLM: Enabling Shell Honeypots with Large Language Models
Guan, C., Cao, G., & Zhu, S. (2024) · IEEE Conference on Communications and Network Security · doi:10.1109/cns62487.2024.10735663 · Cited by 34
Exploring LLM-based Automated Repairing of Ansible Script in Edge-Cloud Infrastructures
Kwon, S., Lee, S., Kim, T., Ryu, D., & Baik, J. (2023) · Journal of Web Engineering · doi:10.13052/jwe1540-9589.2263 · Cited by 18
“APR seeks to automatically furnish potential code patches when confronted with buggy code, offering developers a means to reduce both effort and time spent on bug fixes significantly, consequently curtailing software development costs [18, 24, 25].”
BackgroundMethodInfluentialZangana, H. M., & Omar, M. (2024) · Advances in information security, privacy, and ethics book series · doi:10.4018/979-8-3693-9311-6.ch001 · Cited by 34
REEF: A Framework for Collecting Real-World Vulnerabilities and Fixes
Wang, C.-Z., Li, Z.-J., Peña, Y., Gao, S.-Z., Chen, S., Wang, S., Gao, C., & Lyu, M. R. (2023) · International Conference on Automated Software Engineering · doi:10.1109/ase56229.2023.00199 · Cited by 31
“To account for uneven commit message quality and potential bias, we leverage the ability of large language models [72] to generate vulnerability explanations for each commit.”
MethodExploring the Limits of ChatGPT in Software Security ApplicationsPreprint
Wu, F., Zhang, Q., Bajaj, A. P., Bao, T., Zhang, N., Wang, R., & Xiao, C. (2023) · arXiv · doi:10.48550/arxiv.2312.05275 · Cited by 33
Tu, H., Lee, S., Li, Y., Chen, P., Jiang, L., & Böhme, M. (2026) · IEEE Symposium on Security and Privacy (S&P) · doi:10.1109/sp63933.2026.00110 · Cited by 32
(2024) · doi:10.1145/3613904.3642939 · Cited by 31
Feasibility Study for Supporting Static Malware Analysis Using LLM
Fujii, S., & Yamagishi, R. (2025) · Lecture notes in computer science · doi:10.1007/978-3-031-82362-6_1 · Cited by 31
Hou, S., Zhao, A., Liang, J., Shen, Z., & Wu, H. (2025) · Knowledge-Based Systems · doi:10.1016/j.knosys.2025.113624 · Cited by 30
Learning to Detect and Localize Multilingual Bugs
Yang, H., Nong, Y., Zhang, T., Luo, X., & Cai, H. (2024) · Proceedings of the ACM on software engineering. · doi:10.1145/3660804 · Cited by 31
On Benchmarking Code LLMs for Android Malware Analysis
He, Y., She, H., Qian, X., Zheng, X., Chen, Z., Qin, Z., & Cavallaro, L. (2025) · ACM SIGSOFT International Symposium on Software Testing and Analysis (ISSTA) · doi:10.1145/3713081.3731745 · Cited by 31
CoLadder: Supporting Programmers with Hierarchical Code Generation in Multi-Level AbstractionPreprint
Yen, R., Zhu, J., Suh, S., Xia, H., & Zhao, J. (2023) · arXiv (Cornell University) · doi:10.48550/arxiv.2310.08699 · Cited by 31
“2 G)—the disparity between the human intention behind the prompt and the code generated by LLMs [52, 71].”
BackgroundInfluentialYan, Y., Zhang, Y., & Huang, K. (2024) · arXiv (Cornell University) · doi:10.48550/arxiv.2403.17674 · Cited by 31
“For example, some researches [ Deng et al. , 2023; Pearce et al. , 2023 ] utilized these capabilities in specific security tasks to enhance effectiveness, while McIntosh et al. [ McIntosh et al. , 2023 ] take a further step to compared GPT-generated Governance, Risk, and Compliance (GRC) policies…”
ResultLiu, X., Liang, J., Yan, Q., Jang, J., Mao, S., Ye, M., Jia, J., & Xi, Z. (2025) · arXiv · doi:10.48550/arxiv.2502.20791 · Cited by 32
“Hence, LLMs emerge as a promising solution for assisting humans in specialized fields such as bug fixing [72,94] and fuzz testing [24,38,104].”
Exploiting Privacy Vulnerabilities in Open Source LLMs Using Maliciously Crafted PromptsPreprint
Choquet, G., Aizier, A., & Bernollin, G. (2024) · Research Square · doi:10.21203/rs.3.rs-4584723/v1 · Cited by 30
Guiding AI to Fix Its Own Flaws: An Empirical Study on LLM-Driven Secure Code Generation
Yan, H., Vaidya, S. S., Zhang, X., & Yao, Z. (2026) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/3848030 · Cited by 32
How Does Code Pretraining Affect Language Model Task Performance?
Petty, J., van Steenkiste, S., & Linzen, T. (2024) · Trans. Mach. Learn. Res. · doi:10.48550/arxiv.2409.04556 · Cited by 39
“…programming languages (Lachaux et al., 2020), decompilation of machine code into back into human-readable source code (Hosseini & Dolan-Gavitt, 2022), repairing vulnerabilities in existing code (Pearce et al., 2022), and even acting as programming agents when paired with tools (Yang et al., 2024a).”
BackgroundGenerative AI for Pull Request Descriptions: Adoption, Impact, and Developer Interventions
Xiao, T., Hata, H., Treude, C., & Matsumoto, K. (2024) · Proceedings of the ACM on Software Engineering · doi:10.1145/3643773 · Cited by 29
HLSRewriter: Efficient Refactoring and Optimization of C/C++ Code with LLMs for High-Level Synthesis
Xu, K., Zhang, G. L., Yin, X., Zhuo, C., Schlichtmann, U., & Li, B. (2026) · ACM Transactions on Design Automation of Electronic Systems · doi:10.1145/3749986 · Cited by 28
Statically Contextualizing Large Language Models with Typed Holes
Blinn, A., Li, X., Kim, J. H., & Omar, C. (2024) · Proceedings of the ACM on Programming Languages · doi:10.1145/3689728 · Cited by 29
Black, G., Rimal, B. P., & Vaidyan, V. M. (2024) · IEEE Transactions on Emerging Topics in Computational Intelligence · doi:10.1109/tetci.2024.3446695 · Cited by 28
“Automatedprogramrepairisinvestigatedin[27]and[28],where variouspromptsareemployedtodetectandaddresssoftware flawsintheprovidedcode.”
Chasing Shadows: Pitfalls in LLM Security Research
Evertz, J., Risse, N., Neuer, N., Müller, A., Normann, P., Sapia, G., Gupta, S., Pape, D., Shaw, S., Srivastav, D., et al. (2026) · Network and Distributed System Security Symposium · doi:10.14722/ndss.2026.241749 · Cited by 27
“Their capacity for easy adaptation and deployment makes LLMs powerful instruments for security-critical applications, including vulnerability detection [1]–[4], code analysis [5]– [8], and automated code repair [9]–[12].”
Assessing and Enhancing the Robustness of LLM-Based Multi-Agent Systems Through Chaos Engineering
Owotogbe, J. (2025) · IEEE/ACM International Conference on AI Engineering – Software Engineering for AI (CAIN) · doi:10.1109/cain66642.2025.00039 · Cited by 29
“They have been used in tasks such as text generation, summarization, translation, and answering questions, driving advancements in fields such as content creation [6], software engineering [7], and multilingual communication [8].”
Mirtaheri, S. L., Movahedkor, N., Shahbazian, R., Pascucci, V., & Pugliese, A. (2025) · Future Generation Computer Systems · doi:10.1016/j.future.2025.108107 · Cited by 29
Low-Cost and Comprehensive Non-textual Input Fuzzing with LLM-Synthesized Input GeneratorsPreprint
Zhang, K., Li, Z., Wu, D., Wang, S., & Xia, X. (2025) · arXiv (Cornell University) · doi:10.48550/arxiv.2501.19282 · Cited by 27
“This extensive pre-training enables LLMs to excel in various open-ended, structured data generation tasks, such as code completion and generation [3,11,11,20,31,40,42,50,54,58], text to image translation [4, 18, 24, 34, 43], and QA tasks for customer support [26,45,46].”
Exploring the Role of Large Language Models in Cybersecurity: A Systematic SurveyPreprint
Tian, S., Zhāng, T., Liu, J., Wang, J., Wu, X., Zhu, X., Zhang, R., Zhang, W., Yuan, Z., Mao, S., et al. (2025) · arXiv · doi:10.48550/arxiv.2504.15622 · Cited by 28
Your Fix Is My Exploit: Enabling Comprehensive DL Library API Fuzzing with Large Language Models
Zhang, K., Wang, S., Han, J., Zhu, X., Li, X., Wang, S., & Wen, S. (2025) · ACM/IEEE International Conference on Software Engineering: Companion Proceedings (ICSE-Companion) · doi:10.1109/icse55347.2025.00041 · Cited by 26
Towards Secure Code Generation With LLMs: A Study on Common Weakness Enumeration
Zhao, J., Sun, Y., Huang, C., Liu, C., Guan, Y., Zeng, Y., & Liu, Y. (2025) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2025.3619281 · Cited by 26
“Some research has leveraged LLMs to attempt to repair the unsafe code [15], [16], [28], [29], [30], [31], [32], [33].”
Large Language Models for Hardware Security (Invited, Short Paper)
Pearce, H. A., & Tan, B. (2024) · IEEE International Conference on Trust, Privacy and Security in Intelligent Systems and Applications (TPS-ISA) · doi:10.1109/tps-isa62245.2024.00055 · Cited by 25
Self-citationAutomatically Generating Rules of Malicious Software Packages via Large Language Model
Zhang, X., Du, X., Chen, H., He, Y., Niu, W., & Li, Y. (2025) · International Conference on Dependable Systems & Networks/Proceedings · doi:10.1109/dsn64029.2025.00072 · Cited by 25
“Nowadays, the LLM offers an innovative approach to enhance security detection and analysis capabilities, including vulnerability identification [8] and repair [9, 10], static analysis [11, 12], and reverse engineering [13].”
Large Language Models for Energy-Efficient Code: Emerging Results and Future DirectionsPreprint
Peng, H., Gupte, A., Eliopoulos, N., Ho, C. C., Mantri, R., Deng, L., Jiang, W., Lu, Y.-H., Läufer, K., Thiruvathukal, G. K., et al. (2024) · arXiv · doi:10.48550/arxiv.2410.09241 · Cited by 25
“Recent experiments show LLMs assisting with error message interpretation [26], cybersecurity defect repair [27], cloud incident mitigation [28], and requirements elicitation [29].”
BackgroundAssessing the Promise and Pitfalls of ChatGPT for Automated Code GenerationPreprint
Khan, M. F. A., Ramsdell, M., Falor, E., & Karimi, H. R. (2023) · arXiv · doi:10.48550/arxiv.2311.02640 · Cited by 25
Le, T. H. M., Babar, M. A., & Thai, T. H. (2024) · International Conference on Evaluation and Assessment in Software Engineering (EASE) · doi:10.1145/3661167.3661281 · Cited by 25
HoneyLLM: A Large Language Model-Powered Medium-Interaction Honeypot
Fan, W., Yang, Z., Liu, Y., Qin, L., & Liu, J. (2025) · Lecture Notes in Computer Science · doi:10.1007/978-981-97-8801-9_13 · Cited by 24
Harnessing the power of language models in cybersecurity: A comprehensive review
Kaur, R., Klobučar, T., & Gabrijelčič, D. (2024) · International Journal of Information Management Data Insights · doi:10.1016/j.jjimei.2024.100315 · Cited by 25
Bridging the Gap: A Study of AI-based Vulnerability Management between Industry and Academia
Wan, S., Saxe, J., Gomes, C., Chennabasappa, S., Rath, A., Sun, K., & Wang, X. (2024) · IEEE/IFIP International Conference on Dependable Systems and Networks - Supplemental Volume (DSN-S) · doi:10.1109/dsn-s60304.2024.00032 · Cited by 24
“The key reason of introducing security flaws during software development is a lack of awareness [30].”
Yang, C., Kang, H. J., Shi, J., & Lo, D. (2024) · arXiv (Cornell University) · doi:10.48550/arxiv.2412.17264 · Cited by 24
Xia, Y., Xie, Z., Liu, P., Lu, K., Liu, Y., Wang, W., & Ji, S. (2025) · Proceedings of the ACM on software engineering. · doi:10.1145/3728875 · Cited by 24
PenTest++: Elevating Ethical Hacking with AI and AutomationPreprint
Al-Sinani, H. S., & Mitchell, C. J. (2025) · arXiv (Cornell University) · doi:10.48550/arxiv.2502.09484 · Cited by 24
A New Era in LLM Security: Exploring Security Concerns in Real-World LLM-based Systems
Wu, F., Zhang, N., Jha, S., McDaniel, P., & Xiao, C. (2024) · arXiv · doi:10.48550/arxiv.2402.18649 · Cited by 23
“Recent year, Large Language Models (LLMs) [8,14,39], have drawn significant attention due to their remarkable capabilities and applicability to a wide range of tasks [4, 17, 19, 27, 28, 34,35,45].”
BackgroundReality Check: Assessing GPT-4 in Fixing Real-World Software Vulnerabilities
Ságodi, Z., Antal, G., Bogenfürst, B., Isztin, M., Hegedűs, P., & Ferenć, R. (2024) · International Conference on Evaluation and Assessment in Software Engineering (EASE) · doi:10.1145/3661167.3661207 · Cited by 23
FLAG: Finding Line Anomalies (in code) with Generative AIPreprint
Ahmad, B., Tan, B., Karri, R., & Pearce, H. A. (2023) · arXiv · doi:10.48550/arxiv.2306.12643 · Cited by 23
“C1 contains security vulnerabilities curated by the authors of [26, 27].”
BackgroundMethodInfluentialSelf-citationReality Bites: Assessing the Realism of Driving Scenarios with Large Language Models
Wu, J., Lu, C., Arrieta, A., Yue, T., & Ali, S. (2024) · IEEE/ACM International Conference on AI Foundation Models and Software Engineering (FORGE) · doi:10.1145/3650105.3652296 · Cited by 26
“Advances in LLMs provide possibilities to use them for solving diverse software engineering (SE) problems [26, 27, 28], e.g., code generation, completion, and repair [29, 30, 31, 32], requirement completion and classification [33, 34], and software testing [35, 36, 37].”
BackgroundZhang, Y., Zhou, X., Wen, H., Niu, W., Liu, J., Wang, H., & Li, Q. (2024) · arXiv (Cornell University) · doi:10.48550/arxiv.2407.08532 · Cited by 23
“There are many prior works using LLMs to resolve specific tasks in the security domain [51, 11, 20, 70, 34, 52].”
MethodLLM Assistance for Memory Safety
Mohammed, N., Lal, A., Rastogi, A., Sharma, R., & Roy, S. (2025) · ACM/IEEE International Conference on Software Engineering: Companion Proceedings (ICSE-Companion) · doi:10.1109/icse55347.2025.00023 · Cited by 21
“In the direction of software security, Pearce et al. [30] train their own GPT2 model to evaluate the efficacy of LLMs at generating and repairing software vulnerabilities.”
RustAssistant: Using LLMs to Fix Compilation Errors in Rust Code
Deligiannis, P., Lal, A., Mehrotra, N., Poddar, R. K., & Rastogi, A. (2025) · International Conference on Software Engineering · doi:10.1109/icse55347.2025.00022 · Cited by 24
“[6]”
InfluentialVulBinLLM: LLM-powered Vulnerability Detection for Stripped BinariesPreprint
Hussain, N., Chen, H., Tran, C., Huang, P., Li, Z. R., Chugh, P., Chen, W., Kundu, A., & Tian, Y. (2025) · arXiv (Cornell University) · doi:10.48550/arxiv.2505.22010 · Cited by 22
A Language Model of Java Methods with Train/Test Deduplication
Su, C., Bansal, A., Jain, V., Ghanavati, S., & McMillan, C. (2023) · ACM Joint European Software Engineering Conference and Symposium on the Foundations of Software Engineering (ESEC/FSE) · doi:10.1145/3611643.3613090 · Cited by 21
“Within Software Engineering (SE), they now form the basis for many approaches to code completion [30], automatic documentation generation [1], automatic bug repair [21], and dialogue systems about code [32].”
BackgroundCan GPT-O1 Kill All Bugs? An Evaluation of GPT-Family LLMs on QuixBugs
Hu, H., Shang, Y., Xu, G., He, C., & Zhang, Q. (2025) · IEEE/ACM International Workshop on Automated Program Repair (APR) · doi:10.1109/apr66717.2025.00007 · Cited by 21
“● Include this counter as the second element in the heap tuple, ensuring that all tuples are unique and comparable.”
Logic Meets Magic: LLMs Cracking Smart Contract Vulnerabilities
Xiao, Z., Wang, Q., Pearce, H. A., & Chen, S. (2025) · IEEE International Conference on Blockchain and Cryptocurrency (ICBC) · doi:10.1109/icbc64466.2025.11114526 · Cited by 21
“Numerous works have contributed to evaluating the performance of LLM in coding related challenges: vulnerable code generation [15], code repair [13], detecting vulnerabilities in the coding [14], and a detailed evaluating framework [47].”
Self-citationAutomated 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.1109/mlcad62225.2024.10740262 · Cited by 21
Location is Key: Leveraging Large Language Model for Functional Bug Localization in VerilogPreprint
Yao, B., Wang, N., Zhou, J., Wang, X., Gao, H., Jiang, Z., & Guan, N. (2024) · arXiv (Cornell University) · doi:10.48550/arxiv.2409.15186 · Cited by 21
“In recent years, Large Lauguage Models (LLMs) have demonstrated their powerful coding capabilities and many LLMs tailored for programming tasks have been proposed [20, 29].”
BackgroundSoK: Towards Effective Automated Vulnerability RepairPreprint
Li, Y., Shezan, F. H., wei, B., Wang, G., & Tian, Y. (2025) · arXiv (Cornell University) · doi:10.48550/arxiv.2501.18820 · Cited by 21
“Improving SPG requires analyzing complex program dependencies and their security implications ((e.g., [15, 110, 111, 117])).”
Liu, Z., Tang, Y., Li, M., Jin, X., Long, Y., Zhang, L. F., & Luo, X. (2026) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/3736406 · Cited by 20
Enhancing LLM Code Generation with Ensembles: A Similarity-Based Selection Approach
Mahmud, T., Duan, B., Păsăreanu, C. S., & Yang, G. (2026) · ACM/IEEE International Conference on Software Engineering: Companion Proceedings (ICSE-Companion) · doi:10.1145/3744916.3773143 · Cited by 21
H$^{4}$4: A Software-Defined Deception Defense System in Safeguard Defense Mode
Wang, R., Liu, Y., Sun, Y., Su, S., Fang, B., & Tian, Z. (2025) · IEEE Transactions on Dependable and Secure Computing · doi:10.1109/tdsc.2025.3607846 · Cited by 20
“In the field of cybersecurity, researchers are applying LLMs-driven AIGC for vulnerability detection and remediation [31], [32], penetration testing [33], privacy protection [34], [35], [36], and so on.”
Scenario-Guided LLM-Based Mobile App GUI Testing
Yu, S., Ling, Y., Fang, C., Zhou, Q., Zhao, Y., Chen, C., Zhu, S., & Chen, Z. (2026) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/3816025 · Cited by 20
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.