Vulnerability detection method and device, electronic equipment, storage medium and program product

The invention provides a vulnerability detection method and device, electronic equipment, a storage medium and a program product, and the method comprises the steps: obtaining a to-be-detected code snippet, carrying out the preprocessing of the to-be-detected code snippet, and determining an instruc...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: LIU SHUCEN, XU GUO'AI, WANG CHENYU, XU GUOSHENG
Format: Patent
Sprache:chi ; eng
Schlagworte:
Online-Zugang:Volltext bestellen
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
Beschreibung
Zusammenfassung:The invention provides a vulnerability detection method and device, electronic equipment, a storage medium and a program product, and the method comprises the steps: obtaining a to-be-detected code snippet, carrying out the preprocessing of the to-be-detected code snippet, and determining an instruction sequence and a control flow diagram; according to the instruction sequence, feature extraction is carried out through a pre-constructed natural language processing model, and function sequence features are determined; according to the control flow graph, feature extraction is carried out through a pre-constructed graph embedding neural network, and structural features of a function graph are determined; inputting the function sequence features and the function graph structure features into a pre-constructed multi-layer perceptron for feature fusion, and determining a plurality of function feature vectors; and determining the similarity of the adjacent function feature vectors, and performing vulnerability dete