mlsanityData to 14 Oct 2026

PatUntrack: Automated Generating Patch Examples for Issue Reports without Tracked Insecure Code

arXiv 2408.08619 ↗First posted 16 Aug 2024cs.CR cs.AI cs.SEcited by 1

Not on the map. Why?

Abstract (arXiv)

Security patches are essential for enhancing the stability and robustness of projects in the software community. While vulnerabilities are officially expected to be patched before being disclosed, patching vulnerabilities is complicated and remains a struggle for many organizations. To patch vulnerabilities, security practitioners typically track vulnerable issue reports (IRs), and analyze their relevant insecure code to generate potential patches. However, the relevant insecure code may not be explicitly specified and practitioners cannot track the insecure code in the repositories, thus limiting their ability to generate patches. In such cases, providing examples of insecure code and the corresponding patches would benefit the security developers to better locate and fix the insecure code. In this paper, we propose PatUntrack to automatically generating patch examples from IRs without tracked insecure code. It auto-prompts Large Language Models (LLMs) to make them applicable to analyze the vulnerabilities. It first generates the completed description of the Vulnerability-Triggering Path (VTP) from vulnerable IRs. Then, it corrects hallucinations in the VTP description with external golden knowledge. Finally, it generates Top-K pairs of Insecure Code and Patch Example based on the corrected VTP description. To evaluate the performance, we conducted experiments on 5,465 vulnerable IRs. The experimental results show that PatUntrack can obtain the highest performance and improve the traditional LLM baselines by +14.6% (Fix@10) on average in patch example generation. Furthermore, PatUntrack was applied to generate patch examples for 76 newly disclosed vulnerable IRs. 27 out of 37 replies from the authors of these IRs confirmed the usefulness of the patch examples generated by PatUntrack, indicating that they can benefit from these examples for patching the vulnerabilities.

Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 22 of its 90 references that are in the map. First posted on arXiv 16 Aug 2024.

Builds on

22 of 90 references.

References · 22

  1. 2022Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?cited by 1,434
  2. 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,310
  3. 2022InCoder: A Generative Model for Code Infilling and Synthesiscited by 498
  4. 2020AutoPrompt: Eliciting Knowledge from Language Models with Automatically Generated Promptscited by 249
  5. 2021GPT3Mix: Leveraging Large-scale Language Models for Text Augmentationcited by 187
  6. 2024LLM Agents can Autonomously Exploit One-day Vulnerabilitiescited by 128
  7. 2023Keep the Conversation Going: Fixing 162 out of 337 bugs for 0.42 each using ChatGPTcited by 125
  8. 2018Automated Vulnerability Detection in Source Code Using Deep Representation Learningcited by 114
  9. 2023DiverseVul: A New Vulnerable Source Code Dataset for Deep Learning Based Vulnerability Detectioncited by 102
  10. 2021CURE: Code-Aware Neural Machine Translation for Automatic Program Repaircited by 86
  11. 2019TBar: Revisiting Template-based Automated Program Repaircited by 65
  12. 2021A Syntax-Guided Edit Decoder for Neural Program Repaircited by 57
10 more
  1. 2021Neural Program Repair with Execution-based Backpropagationcited by 50
  2. 2021D2A: A Dataset Built for AI-Based Vulnerability Detection Methods Using Differential Analysiscited by 49
  3. 2018Practical Program Repair via Bytecode Mutationcited by 19
  4. 2023DefectHunter: A Novel LLM-Driven Boosted-Conformer-based Code Vulnerability Detection Mechanismcited by 14
  5. 2020A Large-scale Study of Security Vulnerability Support on Developer Q&A Websitescited by 12
  6. 2024PyTy: Repairing Static Type Errors in Pythoncited by 10
  7. 2023EALink: An Efficient and Accurate Pre-trained Framework for Issue-Commit Link Recoverycited by 9
  8. 2020Systematic Literature Reviews in Software Engineering -- Enhancement of the Study Selection Process using Cohen's Kappa Statisticcited by 7
  9. 2018The Coming Era of AlphaHacking? A Survey of Automatic Software Vulnerability Detection, Exploitation and Patching Techniquescited by 5
  10. 2021ISPY: Automatic Issue-Solution Pair Extraction from Community Live Chatscited by 3

Built on by

Cited by year

Citing papers per year: 2025: 1.

1 paper.