Using AI to fix security vulnerabilities found by OSS-FuzzFixing Security Vulnerabilities with AI in OSS-Fuzz
The researchers customized the AutoCodeRover agent to automatically fix open-source software security vulnerabilities found by OSS-Fuzz using large language models. OSS-Fuzz has identified more than 10,000 vulnerabilities across more than 1,000 software projects, but vulnerability fixing in practice often relies on manual work. The method does not start from issue descriptions to do code search, but instead extracts fix-relevant code elements by executing tests with vulnerability exploit inputs. The authors' experience on OSS-Fuzz vulnerability data shows that the autonomy of LLM agents is more conducive to successfully generating security patches than Agentless-style methods with fixed control flow; patch quality also cannot be measured by similarity to reference code (such as CodeBLEU used by VulMaster), since patches with high CodeBLEU scores may still fail tests with the given vulnerability inputs, and security patch correctness needs to consider dynamic properties such as test execution.