2024 · 19 citations · 7 references
ComputingComputer ScienceComputer SecurityProgramming LanguagesSoftware EngineeringSoftware Security EngineeringSoftware Vulnerability DiscoveryWeb Application SecurityWeb Application VulnerabilitiesAutomated Program RepairCode Vulnerability AnalysisJavascriptJavascript SecurityLarge Language ModelsProgram RepairSecure Javascript DevelopmentVulnerability
In recent years, JavaScript has become the most widely used programming language, especially in web development. However, writing secure JavaScript code is not trivial, and programmers often make mistakes that lead to security vulnerabilities in web applications. Large Language Models (LLMs) have demonstrated substantial advancements across multiple domains, and their evolving capabilities indicate their potential for automatic code generation based on a required specification, including automatic bug fixing. In this study, we explore the accuracy of LLMs, namely ChatGPT and Bard, in finding and fixing security vulnerabilities in JavaScript programs. We also investigate the impact of context in a prompt on directing LLMs to produce a correct patch of vulnerable JavaScript code. Our experiments on real-world software vulnerabilities show that while LLMs are promising in automatic program repair of JavaScript code, achieving a correct bug fix often requires an appropriate amount of context in the prompt.
7
PaLM: Scaling Language Modeling with Pathways
Aakanksha Chowdhery, Sharan Narang, Jacob Devlin et al. · arXiv (Cornell University) · 2022 · 2.1K citations · Full text
A systematic evaluation of large language models of code
Frank F. Xu, Uri Alon, Graham Neubig et al. · 2022 · 498 citations · Full text
Examining Zero-Shot Vulnerability Repair with Large Language Models
Hammond Pearce, Benjamin Tan, Baleegh Ahmad et al. · 2023 · 178 citations