The invention belongs to the technical field of
computer network security, and particularly discloses a code detection method and device based on a multi-dimensional model, equipment and a storage medium. According to the method, the target program slice is generated according to the
vulnerability concern; model input parameters are generated according to the target program slices, and new function codes are generated based on the multiple code large models; calculating text similarity according to a plurality of text similarity algorithms, and calculating
structural similarity according to a plurality of
structural similarity algorithms; and performing
vulnerability detection on the to-be-detected code based on the target
machine learning model. Through the above mode, the advantages of
deep mining of inherent semantic and structural information of codes by the code large models and efficient identification and classification of the
machine learning model are fully utilized, the new function codes are generated based on the multiple code large models, and then
vulnerability detection is performed based on the target
machine learning model. Therefore, the code detection efficiency and accuracy can be effectively improved, and the method is suitable for scenes of various
programming languages and vulnerability types.