Skip to content

Examining zero-shot vulnerability repair with large language modelsExamining Zero-Shot Vulnerability Repair with Large Language Models

arXiv· arXiv:2112.02125· S&P 2023· Hammond Pearce, Benjamin Tan, Baleegh Ahmad, Ramesh Karri, Brendan Dolan-Gavitt·Indexed by this site · 27 days ago· Originally publishedDefenses
AI summary

The researchers examined the methods and effectiveness of zero-shot vulnerability repair of insecure code using large language models; the test subjects include five commercial black-box models such as OpenAI Codex and AI21 Jurassic J-1, as well as one open-source model and one self-trained model. Because key information has multiple semantic and syntactic expressions in natural language, how to design prompts to guide models to generate repaired code is the main challenge. The experiments cover synthetic, manually constructed, and real-world security vulnerability scenarios; the models collectively can repair all synthetic and manually constructed scenarios, but qualitative evaluation on historical real-world vulnerability samples shows that generating functionally correct code still faces challenges.

Read originalS&P 2023