/Vulnerability Fixing Code Detection Method And Related Device
Abstract

A vulnerability fixing code detection meth includes that obtaining commit information of open-source software, where the commit information includes a code snippet in a commit and text information associated with the code snippet; inputting the commit information into a first language model for identification, to obtain function change information and test case information; inputting the function change information into a vulnerability fixing identification model to obtain a vulnerability fixing code snippet for a target vulnerability, and inputting the test case information into a vulnerability test case identification model to obtain a test case code snippet for the target vulnerability; and then inputting the vulnerability fixing code snippet for the target vulnerability and the test case code snippet for the target vulnerability into a second language model for integration and identification, to obtain an identification result.

Full Text

What is claimed is:

A vulnerability fixing code detection meth includes that obtaining commit information of open-source software, where the commit information includes a code snippet in a commit and text information associated with the code snippet; inputting the commit information into a first language model for identification, to obtain function change information and test case information; inputting the function change information into a vulnerability fixing identification model to obtain a vulnerability fixing code snippet for a target vulnerability, and inputting the test case information into a vulnerability test case identification model to obtain a test case code snippet for the target vulnerability; and then inputting the vulnerability fixing code snippet for the target vulnerability and the test case code snippet for the target vulnerability into a second language model for integration and identification, to obtain an identification result.
Timeline
Filed
04/17/2026
Published
08/13/2026
Granted
Not Available
IPC Codes(2)
G06F 21/57:Certifying or maintaining trusted computer platforms, e.g. secure boots or power-downs, version controls, system software checks, secure updates or assessing vulnerabilities
G06F 11/3668:Testing of software