ZeroLeak: Using LLMs for Scalable and Cost Effective Side-Channel Patching
Not on the map. Why?
Abstract (arXiv)
Security critical software, e.g., OpenSSL, comes with numerous side-channel leakages left unpatched due to a lack of resources or experts. The situation will only worsen as the pace of code development accelerates, with developers relying on Large Language Models (LLMs) to automatically generate code. In this work, we explore the use of LLMs in generating patches for vulnerable code with microarchitectural side-channel leakages. For this, we investigate the generative abilities of powerful LLMs by carefully crafting prompts following a zero-shot learning approach. All generated code is dynamically analyzed by leakage detection tools, which are capable of pinpointing information leakage at the instruction level leaked either from secret dependent accesses or branches or vulnerable Spectre gadgets, respectively. Carefully crafted prompts are used to generate candidate replacements for vulnerable code, which are then analyzed for correctness and for leakage resilience. From a cost/performance perspective, the GPT4-based configuration costs in API calls a mere few cents per vulnerability fixed. Our results show that LLM-based patching is far more cost-effective and thus provides a scalable solution. Finally, the framework we propose will improve in time, especially as vulnerability detection tools and LLMs mature.
Key facts. Cited by 6 papers in the map (data through 14 Oct 2026). Builds on 27 of its 54 references that are in the map. First posted on arXiv 24 Aug 2023.
Builds on
27 of 54 references.
References · 27
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
- 2022The Stack: 3 TB of permissively licensed source codecited by 359
- 2021AI Chains: Transparent and Controllable Human-AI Interaction by Chaining Large Language Model Promptscited by 268
- 2022PromptChainer: Chaining Large Language Model Prompts through Visual Programmingcited by 134
- 2021Examining Zero-Shot Vulnerability Repair with Large Language Modelscited by 105
- 2021Break-It-Fix-It: Unsupervised Learning for Program Repaircited by 71
- 2023How Effective Are Neural Networks for Fixing Security Vulnerabilitiescited by 52
- 2018Spectre Attacks: Exploiting Speculative Executioncited by 47
15 more
- 2023A New Era in Software Security: Towards Self-Healing Software via Large Language Models and Formal Verificationcited by 42
- 2023(Security) Assertions by Large Language Modelscited by 32
- 2019Learning to Fix Build Errors with Graph2Diff Neural Networkscited by 26
- 2023Fixing Hardware Security Bugs with Large Language Modelscited by 24
- 2023RAPGen: An Approach for Fixing Code Inefficiencies in Zero-Shotcited by 14
- 2018oo7: Low-overhead Defense against Spectre Attacks via Program Analysiscited by 4
- 2018A Systematic Evaluation of Transient Execution Attacks and Defensescited by 4
- 2019ZombieLoad: Cross-Privilege-Boundary Data Samplingcited by 3
- 2019SpecFuzz: Bringing Spectre-type vulnerabilities to the surfacecited by 3
- 2018Eliminating Timing Side-Channel Leaks using Program Repaircited by 2
- 2018MicroWalk: A Framework for Finding Side Channels in Binariescited by 2
- 2018SPECTECTOR: Principled Detection of Speculative Information Flowscited by 2
- 2019Constant-Time Foundations for the New Spectre Eracited by 1
- 2021SoK: Practical Foundations for Software Spectre Defensescited by 1
- 2022Microwalk-CI: Practical Side-Channel Analysis for JavaScript Applicationscited by 1
Built on by
Citing papers per year: 2023: 1; 2024: 4; 2025: 1.
6 papers.
- 2024When LLMs Meet Cybersecurity: A Systematic Literature Reviewcited by 71
- 2024Large Language Models for Cyber Security: A Systematic Literature Reviewcited by 68
- 2024Securing Large Language Models: Threats, Vulnerabilities and Responsible Practicescited by 37
- 2023Can Large Language Models Provide Security & Privacy Advice? Measuring the Ability of LLMs to Refute Misconceptionscited by 20
- 2024A Study of Vulnerability Repair in JavaScript Programs with Large Language Modelscited by 7
- 2025Large Language Models in Cybersecurity: Applications, Vulnerabilities, and Defense Techniquescited by 0
- 2025Large Language Models in Cybersecurity: Applications, Vulnerabilities, and Defense Techniques18 Jul 2025
- 2024Large Language Models for Cyber Security: A Systematic Literature Review8 May 2024
- 2024When LLMs Meet Cybersecurity: A Systematic Literature Review6 May 2024
- 2024A Study of Vulnerability Repair in JavaScript Programs with Large Language Models19 Mar 2024
- 2024Securing Large Language Models: Threats, Vulnerabilities and Responsible Practices19 Mar 2024
- 2023Can Large Language Models Provide Security & Privacy Advice? Measuring the Ability of LLMs to Refute Misconceptions3 Oct 2023