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 201–300 of 663
Disassembling Obfuscated Executables with LLMPreprint
Rong, H., Duan, Y., Hang, Z., Wang, X., Chen, H., Duan, S., & Wang, S. (2024) · arXiv (Cornell University) · doi:10.48550/arxiv.2407.08924 · Cited by 20
“Recent advancement of the large language model has contributed significantly to the field of program analysis, including fuzzing [50], [29], [14], [74], static bug detection [23], [47], [64], [65], [72] and code repair [75], [40], [30], [55], [39].”
BackgroundA Systematic Literature Review of Parameter-Efficient Fine-Tuning for Large Code Models
Afrin, S., Haque, M. Z., & Mastropaolo, A. (2025) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/3796522 · Cited by 17
How Well Do Large Language Models Serve as End-to-End Secure Code Agents for Python?
Gong, J., Duan, N., Tao, Z., Gong, Z., Yuan, Y., & Huang, M. (2025) · International Conference on Evaluation and Assessment in Software Engineering (EASE) · doi:10.1145/3756681.3756984 · Cited by 19
Large language model based mutations in genetic improvement
Brownlee, A. E. I., Callan, J., Even-Mendoza, K., Geiger, A., Hanna, C., Petke, J., Sarro, F., & Sobania, D. (2025) · Automated Software Engineering · doi:10.1007/s10515-024-00473-6 · Cited by 19
“Fixing such patches is unlikely to result in valid functional code that passes the unit tests (Pearce et al. 2022).”
Codexity: Secure AI-assisted Code GenerationPreprint
Kim, S. Y., Fan, Z., Noller, Y., & Roychoudhury, A. (2024) · arXiv · doi:10.48550/arxiv.2405.03927 · Cited by 18
“Other research includes works by Olausson et al. [21], Pearce et al. [23], and Charalambous et al. [7], each exploring LLMs efficacy in fixing code vulnerabilities.”
MethodNavigating SoC Security Landscape on LLM-Guided Paths
Paria, S., Dasgupta, A., & Bhunia, S. (2024) · ACM Great Lakes Symposium on VLSI (GLSVLSI) · doi:10.1145/3649476.3660393 · Cited by 19
“Pearce et al. [22] evaluated the potential of LLMs in generating security fixes without prior examples, testing the influence of context in prompt-based code suggestions.”
BackgroundMethodUtilizing Precise and Complete Code Context to Guide LLM in Automatic False Positive MitigationPreprint
Chen, J., Xiang, H., Zhao, Z., Li, L., Zhang, Y., Ding, B., Li, Q., & Xiong, S. (2024) · arXiv (Cornell University) · doi:10.48550/arxiv.2411.03079 · Cited by 19
“Other works highlight LLM proficiency in areas such as function-level fault localization [21], precisely locating buggy code lines and vulnerabilities [22], fixing synthetic bugs [23], identifying complex use-before-initialization bugs [24], and enhancing code review and understanding [57].”
Zhao, H., Zhang, L., Lian, K., Sun, F., Chen, B., Liu, Y., Wu, Z., Zhang, Y., & Yang, M. (2025) · IEEE/ACM International Conference on Automated Software Engineering (ASE) · doi:10.1109/ase63991.2025.00082 · Cited by 18
“For example, in code-related tasks, researchers have explored LLMs’ effectiveness in vulnerability detection [7], [8], code understanding [40], [35], [42], code generation [43], [44], code repair [45], [46], and program state inference [47].”
Generative AI and digital resilience: a research agenda
Große, C., & Sundberg, L. (2025) · Journal of Risk Research · doi:10.1080/13669877.2025.2539105 · Cited by 18
Qu, Y., Huang, S., & Nie, P. (2025) · Information and Software Technology · doi:10.1016/j.infsof.2025.107707 · Cited by 18
AI-Enhanced Ethical Hacking: A Linux-Focused ExperimentPreprint
Al-Sinani, H. S., & Mitchell, C. J. (2024) · arXiv (Cornell University) · doi:10.48550/arxiv.2410.05105 · Cited by 18
SoK: Automated Vulnerability Repair: Methods, Tools, and AssessmentsPreprint
Hu, Y., Li, Z., Shu, K., Guan, S., Zou, D., Xu, S., Yuan, B., & Jin, H. B. (2025) · arXiv · doi:10.48550/arxiv.2506.11697 · Cited by 24
“Third, there are many empirical studies, such as: [8,94,128] analyze the effectiveness of APR tools; [145] analyzes the effectiveness of pre-trained models for vulnerability repair; and [64, 93] analyze the effectiveness of Large Language Model (LLM) for vulnerability repair.”
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) · arXiv · doi:10.48550/arxiv.2406.05590 · Cited by 18
Self-citationOut of the Cage: How Stochastic Parrots Win in Cyber Security Environments
Rigaki, M., Lukáš, O., Catania, C., & Garcia, S. (2024) · Proceedings of the 16th International Conference on Agents and Artificial Intelligence · doi:10.5220/0012391800003636 · Cited by 17
“This offers the potential to analyze software code and system configurations for vulnerabilities and prioritize fixes based on severity [25, 33].”
BackgroundVulnerabilities Introduced by LLMs Through Code Suggestions
Panichella, S. (2024) · Springer eBooks · doi:10.1007/978-3-031-54827-7_9 · Cited by 17
Ghimire, S., Lin, Y.-Z., Mamun, M., Chowdhury, M. A., Alemi, F., Cai, S., Guo, J., Zhu, M., Li, H., Latibari, B. S., et al. (2025) · ACM Transactions on Design Automation of Electronic Systems · doi:10.1145/3737459 · Cited by 17
“Pearce et al. [38] investigated the utilization of LLMs for zero-shot vulnerability repair with Codex and Jurassic J-1.”
CTFAgent: An LLM-powered Agent for CTF Challenge Solving
Zou, Y., Liu, J., & Fan, W. (2026) · Journal of Information Security and Applications · doi:10.1016/j.jisa.2025.104305 · Cited by 4
Repairing Infrastructure-as-Code using Large Language Models
Low, E., Cheh, C., & Chen, B. (2024) · IEEE Secure Development Conference (SecDev) · doi:10.1109/secdev61143.2024.00008 · Cited by 17
“Thus, in this paper, we learn from Pearce’s [13] and Jin’s [14] approach to design our prompt to the LLM for the purposes of repairing IaC code.”
BackgroundMethodSPELL: An End-to-End Tool Flow for LLM-Guided Secure SoC Design for Embedded Systems
Paria, S., Dasgupta, A., & Bhunia, S. (2024) · IEEE Embedded Systems Letters · doi:10.1109/les.2024.3447691 · Cited by 17
“Latest works on using LLMs for verification include generating security properties [6], SystemVerilog Assertions (SVAs) [7], [8] for formal verification, while bug fixing [9], [10] involves static analysis and security-related feedback [11].”
LASSO: LLM-Aided Security Property Generation for Assertion-based SoC Verification
Ankireddy, D. R., Paria, S., Dasgupta, A., Ray, S., & Bhunia, S. (2025) · ACM/IEEE Workshop on Machine Learning for CAD (MLCAD) · doi:10.1109/mlcad65511.2025.11189178 · Cited by 17
“LLM-based bug fixing [13], [14] aims to generate repairs for fixing security vulnerabilities involving static analysis and security-related feedback or policy-based enforcement [15].”
Agent That Debugs: Dynamic State-Guided Vulnerability RepairPreprint
Liu, Z., Ma, Y., Xu, J., Ai, J., Gao, X., Sun, H., & Roychoudhury, A. (2025) · arXiv · doi:10.48550/arxiv.2504.07634 · Cited by 17
Ma, M., Han, L., & Zhou, C. (2024) · arXiv (Cornell University) · doi:10.48550/arxiv.2405.00066 · Cited by 17
“…applied to several subfields of code security, including vulnerability exploit code generation [80, 81], automated penetration testing development [82], vulnerability description mapping [83], program repair [84, 85, 86], bug reproduction [87], vulnerability detection [88] and LLM fuzz tuning [89].”
BackgroundIslam, N. T., Khoury, J., Seong, A., Bou‐Harb, E., & Najafirad, P. (2024) · arXiv · doi:10.48550/arxiv.2409.00571 · Cited by 18
“Pearce [23] examines LLMs’ zero-shot vulnerability repairing capabilities and the bugs’ challenges.”
BackgroundInfluentialEaTVul: ChatGPT-based Evasion Attack Against Software Vulnerability DetectionPreprint
Liu, S., Cao, D., Kim, J., Abraham, T., Montague, P., Camtepe, S. A., Zhang, J., & Xiang, Y. (2024) · arXiv (Cornell University) · doi:10.48550/arxiv.2407.19216 · Cited by 17
“For example, the defense against the scenario of adversarial attacks has not been considered in almost all machine/deep learning-based software vulnerability detection systems [2,13,21,27,31,33,39].”
BackgroundLLM-assisted Bug Identification and Correction for Verilog HDL
Qayyum, K., Jha, C. K., Ahmadi-Pour, S., Hassan, M., & Drechsler, R. (2025) · ACM Transactions on Design Automation of Electronic Systems · doi:10.1145/3733237 · Cited by 17
SPVR: syntax-to-prompt vulnerability repair based on large language models
Wang, R., Li, Z., Gao, C., Wang, C., Yang, X. H., & Wang, X. (2025) · Automated Software Engineering · doi:10.1007/s10515-025-00579-5 · Cited by 16
“These approaches leverage the capacity of deep learning models to automatically identify and suggest fixes for potential security risks in codebases, streamlining the process of maintaining software security.”
Seo, J., Zhang, N., & Rong, C. (2023) · IEEE International Conference on Cloud Computing Technology and Science · doi:10.1109/cloudcom59040.2023.00062 · Cited by 17
TIGER: A Generating-Then-Ranking Framework for Practical Python Type Inference
Wang, C., Zhang, J., Lou, Y., Liu, M., Sun, W., Liu, Y., & Peng, X. (2025) · ACM/IEEE International Conference on Software Engineering: Companion Proceedings (ICSE-Companion) · doi:10.1109/icse55347.2025.00019 · Cited by 19
“This challenge manifests as a limitation in their coverage, hindering their ability to provide comprehensive type inference scenarios.”
Lorandi, M., & Belz, A. (2024) · Findings of the Association for Computational Linguistics: EACL · doi:10.18653/v1/2024.findings-eacl.98 · Cited by 16
LASA: Enhancing SoC Security Verification with LLM-Aided Property GenerationPreprint
Ankireddy, D. R., Paria, S., Dasgupta, A., Ray, S., & Bhunia, S. (2025) · arXiv (Cornell University) · doi:10.48550/arxiv.2506.17865 · Cited by 16
“LLM-based bug fixing [12], [13] aims to generate repairs for fixing security vulnerabilities involving static analysis and security-related feedback or policy-based enforcement [14].”
Hu, X., Niu, F., Chen, J., Zhou, X., Zhang, J., He, J., Xia, X., & Lo, D. (2025) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/3786771 · Cited by 11
Serafini, R., Yardım, A., & Naiakshina, A. (2025) · CHI Conference on Human Factors in Computing Systems · doi:10.1145/3706598.3713989 · Cited by 15
Leveraging Large Language Models for Challenge Solving in Capture-the-Flag
Zou, Y., Hong, Y., Xu, J., Liu, L., & Fan, W. (2024) · IEEE International Conference on Trust, Security and Privacy in Computing and Communications (TrustCom) · doi:10.1109/trustcom63139.2024.00213 · Cited by 15
“Recently, LLMs have achieved impressive advancements and found applications in cybersecurity [8], such as code analysis [9] and vulnerability remediation [10].”
Program Repair with Minimal Edits Using CodeT5
Shirafuji, A., Rahman, M. M., Amin, M. F. I., & Watanobe, Y. (2023) · International Conference on Awareness Science and Technology (iCAST) · doi:10.1109/icast57874.2023.10359288 · Cited by 15
Exploring ChatGPT's Capabilities on Vulnerability ManagementPreprint
Liu, P., Liu, J., Fu, L., Lu, K., Xia, Y., Zhang, X., Chen, W., Weng, H., Ji, S., & Wang, W. (2023) · arXiv (Cornell University) · doi:10.48550/arxiv.2311.06530 · Cited by 15
“The baseline is the SOTA approach Ex-tactFix [24] and six LLMs (named LLMset) evaluated by Pearce et al. [37], including OpenAI’s Codex models [5] and AI21’s Jurassic-1 models [9].”
BackgroundMethodInfluentialA Generalize Hardware Debugging Approach for Large Language Models Semi-Synthetic, Datasets
Fu, W.-M., Li, S., Zhao, Y., Yang, K.-C., Zhang, X., Jin, Y.-E., & Guo, X.-L. (2025) · IEEE Transactions on Circuits and Systems Part 1: Regular Papers · doi:10.1109/tcsi.2024.3487486 · Cited by 14
“R ELATED W ORK Typical prompt-based approaches [89], [90] implicitly include efforts to reduce the dependency on general-purpose LLMs for hardware expertise.”
LLMs for Hardware Security: Boon or Bane?
Kande, R., Gohil, V., DeLorenzo, M. C., Chen, C., & Rajendran, J. (2024) · IEEE VLSI Test Symposium (VTS) · doi:10.1109/vts60656.2024.10538871 · Cited by 15
“Restrictions apply. fixed version [30].”
BackgroundThe Impact of Fine-Tuning Large Language Models on Automated Program Repair
Machacek, R., Grishina, A., Hort, M., & Moonen, L. (2025) · IEEE International Conference on Software Maintenance (ICSM) · doi:10.1109/icsme64153.2025.00042 · Cited by 15
Evaluating few-shot and contrastive learning methods for code clone detection
Khajezade, M., Fard, F. H., & Shehata, M. (2024) · Empirical Software Engineering · doi:10.1007/s10664-024-10441-z · Cited by 15
“…languages, the models are trained and tested on a combined set of programming languages [3, 23], meaning that if we intend to use the same model to detect the clones in a different programming language, other than the ones the model was trained on, the process of building the dataset for…”
Inferring Recovery Steps from Cyber Threat Intelligence Reports
Kucsván, Z. L., Caselli, M., Peter, A., & Continella, A. (2024) · Lecture notes in computer science · doi:10.1007/978-3-031-64171-8_17 · Cited by 14
CVE-LLM : Automatic vulnerability evaluation in medical device industry using large language modelsPreprint
Ghosh, R., Farri, O., von Stockhausen, H., Schmitt, M., & Marica, V. G. (2024) · arXiv · doi:10.48550/arxiv.2407.14640 · Cited by 14
Optimizing AI-Assisted Code GenerationPreprint
Torka, S., & Albayrak, Ş. (2024) · arXiv · doi:10.48550/arxiv.2412.10953 · Cited by 14
“The performance of AI code generators depends on factors such as prompt, programming language, application domain, and type of vulnerability [68, 69] 9 .”
Large Language Model vs. Stack Overflow in Addressing Android Permission Related Challenges
Oishwee, S. J., Stakhanova, N., & Codabux, Z. (2024) · International Conference on Mining Software Repositories (MSR) · doi:10.1145/3643991.3644933 · Cited by 14
Munson, A., Gómez, J., & Cárdenas, Á. A. (2025) · International Workshop on Large Language Models for Code (LLM4Code) · doi:10.1109/llm4code66737.2025.00008 · Cited by 14
“Pearce et al. [16] explore the use of LLMs for zero-shot vulnerability repair, highlighting both the potential and challenges in generating functionally correct code while addressing security bugs.”
CS-Eval: A Comprehensive Large Language Model Benchmark for CyberSecurityPreprint
Yu, Z., Zeng, J., Chen, S., Xu, W., Xu, D., Liu, X., Ying, Z., Wang, N., Zhang, Y., & Yang, M. (2024) · arXiv (Cornell University) · doi:10.48550/arxiv.2411.16239 · Cited by 14
A 2030 Roadmap for Software Engineering
Pezzè, M., Abrahão, S., Penzenstadler, B., Poshyvanyk, D., Roychoudhury, A., & Yue, T. (2025) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/3731559 · Cited by 13
Su, Y., Xing, Z., Wang, C., Chen, C., Xu, X., Lu, Q., & Zhu, L. (2025) · Proceedings of the ACM on software engineering. · doi:10.1145/3715752 · Cited by 13
Wang, X., Tian, Y., Huang, K., & Liang, B. (2024) · Computers & Security · doi:10.1016/j.cose.2024.104113 · Cited by 14
Code Vulnerability Repair with Large Language Model Using Context-Aware Prompt Tuning
Khan, A., Liu, G., & Gao, X. (2025) · IEEE Security and Privacy Workshops (SPW) · doi:10.1109/spw67851.2025.00040 · Cited by 13
“A more practical solution for general developers is prompt tuning [4], [5], [6], [7], with the primary goal of preventing LLMs from diverging into inconsequential directions during vulnerability detection and repair [21].”
Lin, Y.-Z., Mamun, M., Chowdhury, M. A., Cai, S., Zhu, M., Latibari, B. S., Gubbi, K. I., Bavarsad, N. N., Caputo, A. M., Sasan, A., et al. (2023) · arXiv (Cornell University) · doi:10.48550/arxiv.2312.13530 · Cited by 13
“Pearce et al. [38] investigated the utilization of LLMs for zero-shot vulnerability repair with Codex and Jurassic J-1.”
A Blueprint for AI-Driven Software Quality: Integrating LLMs with Established StandardsPreprint
Patil, A. (2025) · arXiv (Cornell University) · doi:10.48550/arxiv.2505.13766 · Cited by 13
Prompt to Pwn: Automated Exploit Generation for Smart Contracts
Xiao, Z., Wang, Q., Li, Y., & Chen, S. (2026) · Lecture notes in computer science · doi:10.1007/978-981-92-3012-9_19 · Cited by 13
QuArch: A Question-Answering Dataset for AI Agents in Computer Architecture
Prakash, S., Cheng, A., Yik, J., Tschand, A., Ghosal, R., Uchendu, I., Quaye, J. A., Ma, J., Grampurohit, S., Giannuzzi, S., et al. (2025) · IEEE Computer Architecture Letters · doi:10.1109/lca.2025.3541961 · Cited by 12
“While electronic design automation (EDA) has seen recent progress with datasets for tasks such as register-transfer level (RTL) generation [3], securityanalysis[4],andverification[5],computerarchitectureremains underrepresented.”
CigaR: Cost-efficient Program Repair with LLMs
Hidvégi, D., Etemadi, K., Bobadilla, S., & Monperrus, M. (2024) · arXiv · doi:10.48550/arxiv.2402.06598 · Cited by 12
“We review the previous work in three areas of research: automatic program repair with LLMs, LLM cost management, and effective repair space exploration.”
MethodAkhoundali, J., Hamidi, H., Rietveld, K. F. D., & Gadyatskaya, O. (2025) · ACM Asia Conference on Computer and Communications Security (ASIA CCS) · doi:10.1145/3708821.3736220 · Cited by 12
Vulnerability Handling of AI-Generated Code - Existing Solutions and Open Challenges
Kaniewski, S., Holstein, D., Schmidt, F., & Heer, T. (2024) · Conference on AI, Science, Engineering, and Technology (AIxSET) · doi:10.1109/aixset62544.2024.00026 · Cited by 12
“Pearce et al. [33] and Nong et al. [17] evaluate several LLMs with enhanced prompt designs.”
A dual perspective review on large language models and code verification
Dolcetti, G., & Iotti, E. (2025) · Frontiers in Computer Science · doi:10.3389/fcomp.2025.1655469 · Cited by 14
Boundaries and Future Trends of ChatGPT Based on AI and Security Perspectives
Alsumayt, A., Alfawaer, Z. M., El-Haggar, N., Alshammari, M., Alghamedy, F. H., Aljameel, S. S., Alabbad, D. A., & Aldossary, M. (2024) · HighTech and Innovation Journal · doi:10.28991/hij-2024-05-01-010 · Cited by 10
“These papers encompass a range of perspectives, including those that emphasize the positive impact of LLMs on security, explore potential risks to security, and delve into discussions on security vulnerabilities inherent in LLMs [19].”
BackgroundFan, F., Xia, Y., & Kuang, L. (2025) · International Joint Conference on Artificial Intelligence · doi:10.24963/ijcai.2025/895 · Cited by 12
“Some studies have explored manual template reviews [Pearce et al. , 2023] and AST-based scanner [Ahmad et al. , 2022] to identify vulnerabilities in Verilog code.”
Unknown web attack threat detection based on large language model
Xu, Y., Zhang, Q., Deng, H., Liu, Z., Yang, C. Z., & Fang, Y. (2025) · Applied Soft Computing · doi:10.1016/j.asoc.2025.112905 · Cited by 12
Kong, L., Luo, S., Pan, L., Wu, Z., & Li, X. (2024) · Computers & Security · doi:10.1016/j.cose.2024.103787 · Cited by 12
Automated Exploit and Security Test Generation: A Systematic Literature Review
Bui, Q.-C., Iannone, E., Camporese, M., Hinrichs, T., Tony, C., Tóth, L., Palomba, F., Hegedűs, P., Massacci, F., & Scandariato, R. (2025) · arXiv (Cornell University) · doi:10.48550/arxiv.2502.04953 · Cited by 12
Insecure by design? A human-centric security perspective on AI-assisted software development
Glas, M., Nirschl, C., Lanyado, B., & van Niekerk, J. (2026) · Computers & Security · doi:10.1016/j.cose.2026.104842 · Cited by 11
“AI models tend to perform significantly better on short, localized tasks than on broad, context-heavy ones (Pearce et al., 2023).”
Challenges to Using Large Language Models in Code Generation and Repair
Pasquale, L., Sabetta, A., d’Amorim, M., Hegedűs, P., Mirakhorli, M. T., Okhravi, H., Payer, M., Rashid, A., Santos, J. C. S., Spring, J., et al. (2025) · IEEE Security & Privacy · doi:10.1109/msec.2025.3530488 · Cited by 11
CrossCodeBench: Benchmarking Cross-Task Generalization of Source Code Models
Niu, C., Li, C., Ng, V., & Luo, B. (2023) · 2023 IEEE/ACM 45th International Conference on Software Engineering (ICSE) · doi:10.1109/icse48619.2023.00055 · Cited by 11
“, GitHub Copilot, Codex [29] and AlphaCode [30]), there is also a lot of work exploring the few/zero-shot performance of these models on specific tasks and domains, such as program repair [31]–[33], software security [34], [35] and program synthesis [36].”
BackgroundFixing Security Vulnerabilities with Agentic AI in OSS-Fuzz
Zhang, Y., Wang, J., Berzin, D., Мирчев, М., & Roychoudhury, A. (2026) · IEEE/ACM International Conference on Software Engineering: Software Engineering in Practice (ICSE-SEIP) · doi:10.1145/3786583.3786880 · Cited by 11
MetaAID 2.5: A Secure Framework for Developing Metaverse Applications via Large Language ModelsPreprint
Zhu, H. (2023) · arXiv.org · doi:10.48550/arxiv.2312.14480 · Cited by 7
“They analyze the positive impacts, potential risks, and inherent vulnerabilities [23] of LLMs in this context.”
BackgroundOffensive Robot CybersecurityPreprint
Mayoral-Vilches, V. (2025) · arXiv · doi:10.48550/arxiv.2506.15343 · Cited by 11
K-ASTRO: Structure-Aware Adaptation of LLMs for Code Vulnerability DetectionPreprint
Zhang, Y., Sandborn, M., Larson, S., Huang, Y., & Leach, K. (2022) · arXiv (Cornell University) · doi:10.48550/arxiv.2208.08067 · Cited by 11
Patch Validation in Automated Vulnerability RepairPreprint
Yu, Z., Shi, W., Sun, X., Feng, Z., Xu, M., & Xing, X. (2026) · arXiv (Cornell University) · doi:10.48550/arxiv.2603.06858 · Cited by 11
Al-Sinani, H. S., & Mitchell, C. J. (2024) · arXiv (Cornell University) · doi:10.48550/arxiv.2411.17539 · Cited by 11
The Midas Touch: Triggering the Capability of LLMs for RM-API Misuse Detection
Yang, Y. X., Liu, J., Chen, K., & Lin, M. (2025) · Network and Distributed System Security Symposium · doi:10.14722/ndss.2025.230816 · Cited by 11
Automating Function-Level TARA for Automotive Full-Lifecycle Security
Yang, Y., Zhang, Y., Liu, W., Li, J., Shi, P., Zhong, D., Yang, J., Chen, T., Cao, S. Q., Ren, Y., et al. (2026) · Network and Distributed System Security Symposium · doi:10.14722/ndss.2026.231408 · Cited by 11
Fu, A., Xu, P., Li, J., Kuang, B., & Gao, Y. (2025) · IEEE Transactions on Information Forensics and Security · doi:10.1109/tifs.2025.3618407 · Cited by 10
“Yet, current prompt-based APRs underutilize these bug-fix data, either referring to only a few samples or operating in a zero-shot setting [19], [24], not harnessing rich knowledge provided by these available high-quality bug-fix datasets.”
Towards higher quality software vulnerability data using LLM-based patch filtering
Dil, C., Chen, H., & Damevski, K. (2025) · Journal of Systems and Software · doi:10.1016/j.jss.2025.112581 · Cited by 10
LineBreaker: Finding Token-Inconsistency Bugs with Large Language Models
Chen, H., Zhang, Y., Han, X., Mao, T., Rong, H., Zhang, Y., Wang, X., Xing, L., Chen, X., & Zhang, H. (2025) · IEEE/ACM International Conference on Automated Software Engineering (ASE) · doi:10.1109/ase63991.2025.00079 · Cited by 10
“Additionally, LLMs sometimes fall short when dealing with corner cases, especially when the correct code appears counterintuitive.”
Metamorphic Testing of Deep Code Models: A Systematic Literature Review
Asgari, A., de Koning, M., Derakhshanfar, P., & Panichella, A. (2026) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/3766552 · Cited by 10
Data to Defense: The Role of Curation in Aligning Large Language Models Against Safety Compromise
Liu, X., Liang, J., Tang, L., Ye, M., Ma, W., & Xi, Z. (2025) · Conference on Empirical Methods in Natural Language Processing (EMNLP) · doi:10.18653/v1/2025.emnlp-main.647 · Cited by 11
Location is Key: Leveraging LLM for Functional Bug Localization in Verilog Design
Yao, B., Wang, N., Zhou, J., Wang, X., Gao, H., Jiang, Z., & Guan, N. (2025) · ACM/IEEE Design Automation Conference (DAC) · doi:10.1109/dac63849.2025.11133280 · Cited by 10
GUARD-D-LLM: An LLM-Based Risk Assessment Engine for the Downstream uses of LLMsPreprint
Narayanan, S., & Vishwakarma, S. (2024) · arXiv (Cornell University) · doi:10.48550/arxiv.2406.11851 · Cited by 10
Sniping at web applications to discover input-handling vulnerabilities
Brandi, C., Perrone, G., & Romano, S. P. (2024) · Journal of Computer Virology and Hacking Techniques · doi:10.1007/s11416-024-00518-0 · Cited by 10
Evaluating Zero-Shot Chatgpt Performance on Predicting CVE Data From Vulnerability Descriptions
Costin, A., Turtiainen, H., Yousefnezhad, N., Bogulean, V., & Hämäläinen, T. (2024) · European Conference on Cyber Warfare and Security · doi:10.34190/eccws.23.1.2285 · Cited by 10
“Pearce et al. (2023) investigate the performance of five commonly used "off-the-shelf" LLMs in real-world security bug scenarios.”
BackgroundkAgent: An execution-guided crash resolution agent for the Linux kernelPreprint
Mathai, A., Huang, C., Sulaiman, M. A., Kim, J., Mitchell, H., Nogikh, A., Maniatis, P., Ivančić, F., Yang, J., & Ray, B. (2025) · arXiv (Cornell University) · doi:10.48550/arxiv.2504.20412 · Cited by 10
“…et al., 2023a; Wu et al., 2023), incorporating interpreter outputs and explanations (Chen et al., 2018; 2023b; Hu et al., 2024), refining outputs via trained models (Pearce et al., 2023; Gupta et al., 2023), or using the base model directly (Le et al., 2022; Shinn et al., 2023; Zhong et al., 2024).”
Automated Update of Android Deprecated API Usages With Large Language Models
Mahmud, T., Duan, B., Che, M., Yasmin, A., Ngu, A. H. H., & Yang, G. (2025) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2025.3627897 · Cited by 9
“Other studies are looking at how LLMs change the way we make software [34], [49], help developers work faster [19], [78], and find security problems [57].”
On the Evaluation of Large Language Models in Multilingual Vulnerability Repair
Wang, D., Yu, J., Shu, H., Fu, M. C., Tantithamthavorn, C. K., Kamei, Y., & Chen, J. (2026) · ACM Transactions on Software Engineering and Methodology · doi:10.1145/3771930 · Cited by 9
“• GPT2-CSRC [56] is a pre-trained decoder-only model based on GPT-2, equipped with a BPE tokenizer and specifically developed for C/C++ code analysis, having been trained on a substantial dataset of approximately 17 GB of C/C++ code.”
Security and Privacy of Large Language Models: Threat Taxonomy, Ethical Implications, and Governance
Pribisalic, M., & Martinčić-Ipšić, S. (2026) · Applied Informatics · doi:10.3390/ai7050152 · Cited by 7
When AI Agrees Too Much: Manipulating Automated Code Review via Bias InjectionPreprint
Alexopoulos, G., Αλεξόπουλος, Ν., Spinellis, D. D., & Mitropoulos, D. (2026) · arXiv (Cornell University) · doi:10.48550/arxiv.2603.18740 · Cited by 9
“Bias affecting code security can also be introduced after the model is deployed through prompting [29,51].”
Contextualized AI for Cyber Defense: An Automated Survey Using LLMs
Haryanto, C. Y., Elvira, A. M., Nguyen, T. D., Vu, M. H., Hartanto, Y., Lomempow, E., & Arakala, A. (2024) · International Conference on Security of Information and Networks (SIN) · doi:10.1109/sin63213.2024.10871242 · Cited by 9
Automated Vulnerability Discovery Generative AI in Offensive Security
Alauthman, M., Almomani, A., Aoudi, S., Al–Qerem, A., & Aldweesh, A. Y. (2025) · Advances in computational intelligence and robotics book series · doi:10.4018/979-8-3373-0832-6.ch013 · Cited by 9
Enhanced Large Language Models
Jeny, J. R. V., Babu, G. B., Reddy, S. J., Muthukumaran, N., & Abhiram, K. (2024) · International Conference on Inventive Computation Technologies (ICICT) · doi:10.1109/icict60155.2024.10544411 · Cited by 9
“Empirical research has shown that entity references and text-based context have a considerable influence on Relation Extraction models [4].”
BackgroundQuantifying Memorization Advantage in Code LLMs
Djiré, A. E., Kaboré, A. K., Samhi, J., Barr, E. T., Klein, J., & Bissyandé, T. F. (2026) · ACM/IEEE International Conference on Software Engineering: Companion Proceedings (ICSE-Companion) · doi:10.1145/3744916.3764554 · Cited by 9
ZeroLeak: Using LLMs for Scalable and Cost Effective Side-Channel PatchingPreprint
Tol, M. C., & Sunar, B. (2023) · arXiv (Cornell University) · doi:10.13140/rg.2.2.12964.45447 · Cited by 9
Leveraging Static Analysis for Feedback-Driven Security Patching in LLM-Generated Code
Alrashedy, K., Aljasser, A., Tambwekar, P., & Gombolay, M. (2025) · Journal of Cybersecurity and Privacy · doi:10.3390/jcp5040110 · Cited by 9
ChatDSE: A Zero-Shot Microarchitecture Design Space Explorer Powered by GPT4.0
Tang, M., Chen, W., Wu, L., Huang, L., & Zeng, K. (2025) · ACM Transactions on Design Automation of Electronic Systems · doi:10.1145/3735640 · Cited by 10
Helping LLMs improve code generation using feedback from testing and static analysis
Dolcetti, G., Arceri, V., Iotti, E., Maffeis, S., Cortesi, A., & Zaffanella, E. (2026) · Discover Artificial Intelligence · doi:10.1007/s44163-026-01009-5 · Cited by 8
“Despite this, our results align with the conclusion of [17], [22]–[25], [29], finding significant limitations in the usage of LLMs to detect vulnerabilities, and realizing that state-of-the-art models are not yet adequate to perform zero-shot code repair in an automated framework.”
Helping LLMs Improve Code Generation Using Feedback from Testing and Static Analysis
Dolcetti, G., Arceri, V., Iotti, E., Maffeis, S., Cortesi, A., & Zaffanella, E. (2024) · arXiv · doi:10.48550/arxiv.2412.14841 · Cited by 8
“Despite this, our results align with the conclusion of [17], [22]–[25], [29], finding significant limitations in the usage of LLMs to detect vulnerabilities, and realizing that state-of-the-art models are not yet adequate to perform zero-shot code repair in an automated framework.”
Exploring the Dual Role of LLMs in Cybersecurity: Threats and Defenses
Bryce, C., Kalousis, A., Leroux, I., Madinier, H., Pasche, T., & Ruch, P. (2024) · Springer eBooks · doi:10.1007/978-3-031-54827-7_26 · Cited by 8
del-Hoyo-Gabaldon, J.-A., Moreno-Cediel, A., García‐López, E., García‐Cabot, A., & de-Fitero-Dominguez, D. (2024) · SoftwareX · doi:10.1016/j.softx.2024.101664 · Cited by 8
GenieWizard: Multimodal App Feature Discovery with Large Language Models
Yang, J., Shi, Y., Gu, C., Zheng, Z., Jain, A., Li, T., Lam, M. S., & Landay, J. A. (2025) · CHI Conference on Human Factors in Computing Systems · doi:10.1145/3706598.3714327 · Cited by 8
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.