Binary program vulnerability detection method
Using the twin neural network model and deep learning technology to perform feature extraction and similarity calculation on binary programs, it solves the problem of vulnerability detection in cross-architecture code reuse, achieves efficient vulnerability location and accurate detection of binary programs, and improves the Internet of Vehicles system. security.
Patent Information
- Application Number
- CN202411225148.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-03
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2044-09-03
AI Technical Summary
In the field of Internet of Vehicles, cross-architecture code reuse results in potential security vulnerabilities that are repaired in one architecture but do not receive enough attention in another architecture, increasing security risks, especially since most software codes are not made public. Vulnerability detection in binary programs becomes more difficult.
Use the twin neural network model to extract features and vectorize the binary program code, build a binary program code similarity calculation model, locate potential vulnerabilities through similarity calculation, and use the skip-thoughts model and graph autoencoder to extract the context of instructions and functions Semantic features, combined with the window progressive comparison method, calculate the degree of code overlap and determine whether there are vulnerabilities in the binary program code.
It improves the accuracy of binary program code similarity calculation and vulnerability detection, reduces computational overhead, can effectively locate vulnerabilities in binary programs, and ensures system security and stability.
Smart Images

Figure CN118760610A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of vulnerability detection, and in particular to a binary program vulnerability detection method. Background Art
[0002] In order to improve development efficiency and shorten the cycle, developers often adopt the strategy of code reuse, that is, using existing code bases to quickly implement module functions. However, while this reuse method brings convenience, it also invisibly spreads potential security vulnerabilities to more programs, increasing security risks. Especially in the field of Internet of Vehicles, with the popularization of devices, the number of Internet of Vehicles programs based on MIPS or ARM architecture is increasing. In the process of cross-architecture code reuse, even if a vulnerability has been fixed under a certain architecture (such as Intel x86), the version of the same source code under another architecture (such as ARM) may not receive enough attention, leaving security risks. However, most of the current commercial software codes are not public, and some free closed-source software and firmware programs are often released in binary form. These binary programs may also contain vulnerabilities due to code reuse. Therefore, it is particularly important to detect vulnerabilities in them to ensure the security and stability of the system.
[0003] Based on this, this paper proposes a method for binary program vulnerability detection. Summary of the invention
[0004] In view of the above problems, the present invention proposes a binary program vulnerability detection method, which specifically includes the following steps: S1. Constructing the first training sample set; S2. Extract features from each sample in the first training sample set, and vectorize each feature to form a second training sample set; S3. Using the second training sample set to train the twin neural network model to form a binary program code similarity calculation model; S4. Obtain the binary program code corresponding to the newly added vulnerability program code, extract features from the binary program code, and vectorize each feature; S5. Locate similarity comparison binary program code fragments in the binary program code to be detected; S6. Calculate the similarity between the binary code corresponding to the newly added vulnerability program and the similarity comparison binary program code fragment using a binary program code similarity calculation model; S7. Determine whether the binary program code to be detected has a vulnerability based on the result of the similarity calculation.
[0005] Furthermore, the step S1 specifically includes the following steps: S11. Obtain multiple program codes from the open source program code library ,… , …, }, Get multiple program codes from the CVE vulnerability program code library { … , …, }; in, is the i-th program code obtained from the open source program code library; m is the total number of program codes obtained from the open source program code library; is the jth program code obtained from the CVE vulnerability program code library; n is the total number of program codes obtained from the CVE vulnerability program code library; S12. For { … , …, Each program code in} ,exist{ ,… , …, } to find the Same program code , respectively, the program code and The same compilation method is used for binary encoding to form two binary program codes, and the two binary program codes are combined as positive samples; the program codes are respectively and Use different compilation methods to perform binary encoding to form program code Corresponding multiple binary program codes, and program codes Corresponding to multiple binary program codes, the program codes are Corresponding multiple binary program codes and program codes The corresponding multiple binary program codes are combined in pairs to form multiple positive samples; S13. For { … , …, Each program code in} ,exist{ ,… , …, } to find the Same program code , respectively, the program code and The same compilation method is used for binary encoding to form two binary program codes, which are combined as negative samples; the program codes are respectively and Use different compilation methods to perform binary encoding to form program code Corresponding multiple binary program codes, and program codes Corresponding to multiple binary program codes, the program codes are Corresponding multiple binary program codes and program codes The corresponding multiple binary program codes are combined in pairs to form multiple negative samples; in ; S14. The multiple positive samples formed in step S12 and the multiple negative samples formed in step S14 are combined into a first training sample set.
[0006] Furthermore, the step S2 specifically includes the following steps: S21. For each sample in the first training sample set, obtain two binary program codes in the sample, disassemble the two binary program codes to form two disassembled program codes; S22. Extract instructions and functions from two disassembled program codes respectively; S23. For each instruction in the disassembled program code, input the instruction into the skip-thoughts model to obtain contextual semantic features for the instruction; For each function in the disassembled program code, the function is input into the graph autoencoder to obtain the global semantic structure feature of the function; Combining the contextual semantic features corresponding to all instructions and the global semantic structural features corresponding to all functions in each disassembled program code to form features corresponding to the disassembled program code; S24. Vectorizing the features corresponding to each disassembled program code as the feature vector corresponding to the disassembled program code; S25. For each sample in the first training sample set, execute steps S21 to S24 to obtain the feature vector corresponding to each binary program code in each sample to form a second training sample set.
[0007] Furthermore, the step S4 specifically includes the following steps: S41 obtains the newly added vulnerability program code, compiles the newly added vulnerability program code to form a binary program code; disassembles the binary program code to form a disassembled program code; S42 extracts instructions and functions from the program code disassembled in step S41; S43. For the instruction in the program code after decompilation in step S42, the instruction is input into the skip-thoughts model to obtain the contextual semantic features for the instruction; For the function in the program code disassembled in step S42, the function is input into the graph autoencoder to obtain the global semantic structure feature for the function; Combining contextual semantic features corresponding to all instructions in the disassembled program code and global semantic structural features corresponding to all functions to form features corresponding to the disassembled program code; S44. Vectorize the features corresponding to the program code after disassembly in step S43 to serve as the feature vector corresponding to the program code after disassembly.
[0008] Furthermore, the step S5 specifically includes the following steps: S501. Disassemble the binary program code to be detected to form a disassembled program code; S502. Obtain the code length of the binary program code formed after compiling the newly added vulnerability program code ; S503. Initialize the window length to be equal to the code length , from the location of the binary program code to be detected To location A binary program code snippet for obtaining the window length; in, The initial value of is the starting position of the binary program code to be detected; To location The code length of the binary program code is L; S504. Obtain the location of the binary program code to be detected To location Corresponding to the disassembled program code fragment, extracting instructions and functions in the disassembled program code fragment; S505. Determine whether the function extracted in step S504 contains the function extracted in step S42. If so, execute step S506; if not, execute step S507; S506. Obtain the number A of the same instructions between the instructions extracted in step S504 and the instructions extracted in step S42, obtain the number B of the same functions between the functions extracted in step S04 and the functions extracted in step S42, and calculate the code overlap R based on the number A and the number B; in, ; in, , are the first weight value and the second weight value respectively; and, ; R is the position To location The code overlap between the binary program code of the newly created vulnerability program code and the binary program code compiled after the newly created vulnerability program code is compiled; Execute step S507; S507. Set location To location The code overlap R between the binary program code and the binary program code compiled with the newly added vulnerability program code is 0; Also, set , ; Determine the location Is it greater than the end position of the binary program code to be detected? If not, return to step S503; if greater, execute step S508; S508. Obtaining the code overlap corresponding to each binary program code fragment , { }; Wherein, d is the number of binary program code fragments into which the binary program code to be detected is divided according to the length L; is the code overlap degree corresponding to the d-th binary program code fragment; Get The maximum value of the code overlap degree in the binary program code is obtained, and the binary program code fragment corresponding to the maximum value is obtained as the similarity comparison binary program code fragment located in the binary program code to be detected.
[0009] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented in accordance with the contents of the specification. In order to make the above description and other purposes, features and advantages of the present invention more obvious and easy to understand, the preferred embodiments are specifically cited and described in detail as follows. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings: Figure 1 The figure is a flowchart of a binary program vulnerability detection method. DETAILED DESCRIPTION
[0011] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.
[0012] In the description of the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", "fixed" and the like should be understood in a broad sense, for example, it can be connected, detachably connected, or integrated; it can be mechanically connected or electrically connected; it can be directly connected or indirectly connected through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0013] The present invention proposes a binary program vulnerability detection method, which specifically comprises the following steps: S1. Constructing the first training sample set; S2. Extract features from each sample in the first training sample set, and vectorize each feature to form a second training sample set; S3. Using the second training sample set to train the twin neural network model to form a binary program code similarity calculation model; S4. Obtain the binary program code corresponding to the newly added vulnerability program code, extract features from the binary program code, and vectorize each feature; S5. Locate similarity comparison binary program code fragments in the binary program code to be detected; S6. Calculate the similarity between the binary code corresponding to the newly added vulnerability program and the similarity comparison binary program code fragment using a binary program code similarity calculation model; S7. Determine whether the binary program code to be detected has a vulnerability based on the result of the similarity calculation.
[0014] Furthermore, the step S1 specifically includes the following steps: S11. Obtain multiple program codes from the open source program code library ,… , …, }, Get multiple program codes from the CVE vulnerability program code library { … , …, }; in, is the i-th program code obtained from the open source program code library; m is the total number of program codes obtained from the open source program code library; is the jth program code obtained from the CVE vulnerability program code library; n is the total number of program codes obtained from the CVE vulnerability program code library; Where 1≤i≤m; 1≤j≤n; S12. For { … , …, Each program code in} ,exist{ ,… , …, } to find the Same program code , respectively, the program code and The same compilation method is used for binary encoding to form two binary program codes, and the two binary program codes are combined as positive samples; the program codes are respectively and Use different compilation methods to perform binary encoding to form program code Corresponding multiple binary program codes, and program codes Corresponding to multiple binary program codes, the program codes are Corresponding multiple binary program codes and program codes The corresponding multiple binary program codes are combined in pairs to form multiple positive samples; S13. For { … , …, Each program code in} ,exist{ ,… , …, } to find the Same program code , respectively, the program code and The same compilation method is used for binary encoding to form two binary program codes, which are combined as negative samples; the program codes are respectively and Use different compilation methods to perform binary encoding to form program code Corresponding multiple binary program codes, and program codes Corresponding to multiple binary program codes, the program codes are Corresponding multiple binary program codes and program codes The corresponding multiple binary program codes are combined in pairs to form multiple negative samples; in ; S14. The multiple positive samples formed in step S12 and the multiple negative samples formed in step S14 are combined into a first training sample set.
[0015] Furthermore, the step S2 specifically includes the following steps: S21. For each sample in the first training sample set, obtain two binary program codes in the sample, disassemble the two binary program codes to form two disassembled program codes; S22. Extract instructions and functions from two disassembled program codes respectively; S23. For each instruction in the disassembled program code, input the instruction into the skip-thoughts model to obtain contextual semantic features for the instruction; For each function in the disassembled program code, the function is input into the graph autoencoder to obtain the global semantic structure feature of the function; Combining contextual semantic features corresponding to all instructions and global semantic structural features corresponding to all functions in each disassembled program code to form features corresponding to the disassembled program code; S24. Vectorizing the features corresponding to each disassembled program code as the feature vector corresponding to the disassembled program code; S25. For each sample in the first training sample set, execute steps S21 to S24 to obtain the feature vector corresponding to each binary program code in each sample to form a second training sample set.
[0016] Furthermore, the step S4 specifically includes the following steps: S41 obtains the newly added vulnerability program code, compiles the newly added vulnerability program code to form a binary program code; disassembles the binary program code to form a disassembled program code; The compilation method for compiling the newly added vulnerability program code may be a randomly selected compilation method.
[0017] S42 extracts instructions and functions from the program code disassembled in step S41; S43. For the instruction in the program code after decompilation in step S42, the instruction is input into the skip-thoughts model to obtain the contextual semantic features for the instruction; For the function in the program code disassembled in step S42, the function is input into the graph autoencoder to obtain the global semantic structure feature for the function; Among them, the graph autoencoder is Graph Autoencoder. Combining contextual semantic features corresponding to all instructions in the disassembled program code and global semantic structural features corresponding to all functions to form features corresponding to the disassembled program code; S44. Vectorize the features corresponding to the program code after disassembly in step S43 to serve as the feature vector corresponding to the program code after disassembly.
[0018] Furthermore, the step S5 specifically includes the following steps: S501. Disassemble the binary program code to be detected to form a disassembled program code; S502. Obtain the code length of the binary program code formed after compiling the newly added vulnerability program code ; S503. Initialize the window length to be equal to the code length , from the location of the binary program code to be detected To location A binary program code snippet for obtaining the window length; in, The initial value of is the starting position of the binary program code to be detected; To location The code length of the binary program code is L; S504. Obtain the location of the binary program code to be detected To location Corresponding to the disassembled program code fragment, extracting instructions and functions in the disassembled program code fragment; S505. Determine whether the function extracted in step S504 contains the function extracted in step S42. If so, execute step S506; if not, execute step S507; S506. Obtain the number A of the same instructions between the instructions extracted in step S504 and the instructions extracted in step S42, obtain the number B of the same functions between the functions extracted in step S04 and the functions extracted in step S42, and calculate the code overlap R based on the number A and the number B; in, ; in, , are the first weight value and the second weight value respectively; and, ; R is the position To location The code overlap between the binary program code of the newly created vulnerability program code and the binary program code compiled after the newly created vulnerability program code is compiled; Execute step S507; S507. Set location To location The code overlap R between the binary program code of the newly added vulnerability program code and the compiled binary program code is 0; and, set , ; Determine the location Is it greater than the end position of the binary program code to be detected? If not, return to step S503; if greater, execute step S508; S508. Obtaining the code overlap corresponding to each binary program code fragment , { }; where d is the number of binary program code fragments into which the binary program code to be detected is divided according to the length L; is the code overlap degree corresponding to the d-th binary program code fragment; Get The maximum value of the code overlap degree in the binary program code is obtained, and the binary program code fragment corresponding to the maximum value is obtained as the similarity comparison binary program code fragment located in the binary program code to be detected.
[0019] Furthermore, the step S6 specifically includes the following steps: S61. Disassemble the similarity comparison binary program code fragment located in the binary program code to be detected to form a disassembled program code; S62. Extracting instructions and functions from the program code disassembled in step S61; S63. For the instruction in the program code after decompilation in step S62, the instruction is input into the skip-thoughts model to obtain the contextual semantic features for the instruction; For the function in the program code disassembled in step S62, the function is input into the graph autoencoder to obtain the global semantic structure feature for the function; Combining the contextual semantic features corresponding to all instructions and the global semantic structural features corresponding to all functions in the program code disassembled in step S63 to form features corresponding to the program code disassembled; S64. Vectorizing the features corresponding to the program code after disassembly in step S63 as the feature vector corresponding to the program code after disassembly; S65. Input the feature vector corresponding to the disassembled program code of the newly added vulnerability program code obtained in step S44 and the feature vector corresponding to the disassembled program code obtained in step S64 into the binary program code similarity calculation model to obtain a similarity value.
[0020] Furthermore, the step S7 specifically includes the following steps: When the similarity value calculated in step S65 is greater than the preset value and greater than the preset threshold F, it is determined that the binary program code to be detected has a vulnerability; otherwise, the binary program code does not have a vulnerability; The preset threshold F is 60%, 80% or 90%.
[0021] The beneficial effects of the invention are as follows: 1. The present invention uses instruction granularity and function structure to express the characteristics of binary program code, thereby improving the accuracy of binary program code similarity calculation; 2. In the present invention, when selecting the first training sample, binary programs generated by different compilation methods are used to form positive samples and negative samples, thereby improving the accuracy of training the binary program code similarity calculation model; 3. The present invention locates the code fragment most relevant to the newly added vulnerability program code in the binary program code to be detected, thereby avoiding the inaccuracy of the similarity value caused by the similarity calculation of the entire binary program code to be detected, and reducing the calculation overhead caused by the similarity calculation of each fragment after the binary program code to be detected is segmented; 4. The present invention adopts a window progressive comparison method and an instruction and function overlap calculation method to locate the code fragment most relevant to the newly added vulnerability program code in the binary program code to be detected, thereby improving the accuracy of positioning and reducing the overall computational overhead of the method.
[0022] The above is only a preferred specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed by the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.
Claims
1. A binary program vulnerability detection method, characterized in that: The method specifically comprises the following steps: S1. Constructing the first training sample set; S2. Extract features from each sample in the first training sample set, and vectorize each feature to form a second training sample set; S3. Using the second training sample set to train the twin neural network model to form a binary program code similarity calculation model; S4. Obtain the binary program code corresponding to the newly added vulnerability program code, extract features from the binary program code, and vectorize each feature; S5. Locate similarity comparison binary program code fragments in the binary program code to be detected; S6. Calculate the similarity between the binary code corresponding to the newly added vulnerability program and the similarity comparison binary program code fragment using a binary program code similarity calculation model; S7. Determine whether the binary program code to be detected has a vulnerability based on the result of the similarity calculation.
2. A binary program vulnerability detection method according to claim 1, characterized in that: The step S1 specifically includes the following steps: S11. Obtain multiple program codes from the open source program code library ,… , …, }, Get multiple program codes from the CVE vulnerability program code library { … , …, }; in, is the i-th program code obtained from the open source program code library; m is the total number of program codes obtained from the open source program code library; is the jth program code obtained from the CVE vulnerability program code library; n is the total number of program codes obtained from the CVE vulnerability program code library; S12. For { … , …, Each program code in} ,exist{ ,… , …, } to find the Same program code , respectively, the program code and The same compilation method is used for binary encoding to form two binary program codes, and the two binary program codes are combined as positive samples; the program codes are respectively and Use different compilation methods to perform binary encoding to form program code Corresponding multiple binary program codes, and program codes Corresponding to multiple binary program codes, the program codes are Corresponding multiple binary program codes and program codes The corresponding multiple binary program codes are combined in pairs to form multiple positive samples; S13. For { … , …, Each program code in} ,exist{ ,… , …, } to find the Same program code , respectively, the program code and The same compilation method is used for binary encoding to form two binary program codes, which are combined as negative samples; the program codes are respectively and Use different compilation methods to perform binary encoding to form program code Corresponding multiple binary program codes, and program codes Corresponding to multiple binary program codes, the program codes are Corresponding multiple binary program codes and program codes The corresponding multiple binary program codes are combined in pairs to form multiple negative samples; in ; S14. The multiple positive samples formed in step S12 and the multiple negative samples formed in step S14 are combined into a first training sample set.
3. A binary program vulnerability detection method according to claim 2, characterized in that: The step S2 specifically includes the following steps: S21. For each sample in the first training sample set, obtain two binary program codes in the sample, disassemble the two binary program codes to form two disassembled program codes; S22. Extract instructions and functions from two disassembled program codes respectively; S23. For each instruction in the disassembled program code, input the instruction into the skip-thoughts model to obtain contextual semantic features for the instruction; For each function in the disassembled program code, the function is input into the graph autoencoder to obtain the global semantic structure feature of the function; Combining the contextual semantic features corresponding to all instructions and the global semantic structural features corresponding to all functions in each disassembled program code to form features corresponding to the disassembled program code; S24. Vectorizing the features corresponding to each disassembled program code as the feature vector corresponding to the disassembled program code; S25. For each sample in the first training sample set, execute steps S21 to S24 to obtain the feature vector corresponding to each binary program code in each sample to form a second training sample set.
4. A binary program vulnerability detection method according to claim 3, characterized in that: The step S4 specifically includes the following steps: S41 obtains the newly added vulnerability program code, compiles the newly added vulnerability program code to form a binary program code; disassembles the binary program code to form a disassembled program code; S42 extracts instructions and functions from the program code disassembled in step S41; S43. For the instruction in the program code after decompilation in step S42, the instruction is input into the skip-thoughts model to obtain the contextual semantic features for the instruction; For the function in the program code disassembled in step S42, the function is input into the graph autoencoder to obtain the global semantic structure feature for the function; Combining contextual semantic features corresponding to all instructions in the disassembled program code and global semantic structural features corresponding to all functions to form features corresponding to the disassembled program code; S44. Vectorize the features corresponding to the program code after disassembly in step S43 to serve as the feature vector corresponding to the program code after disassembly.
5. A binary program vulnerability detection method according to claim 4, characterized in that: The step S5 specifically includes the following steps: S501. Disassemble the binary program code to be detected to form a disassembled program code; S502. Obtain the code length of the binary program code formed after compiling the newly added vulnerability program code ; S503. Initialize the window length to be equal to the code length , from the location of the binary program code to be detected To location A binary program code snippet for obtaining the window length; in, The initial value of is the starting position of the binary program code to be detected; To location The code length of the binary program code is L; S504. Obtain the location of the binary program code to be detected To location Corresponding to the disassembled program code fragment, extracting instructions and functions in the disassembled program code fragment; S505. Determine whether the function extracted in step S504 contains the function extracted in step S42. If so, execute step S506; if not, execute step S507; S506. Obtain the number A of the same instructions between the instructions extracted in step S504 and the instructions extracted in step S42, obtain the number B of the same functions between the functions extracted in step S504 and the functions extracted in step S42, and calculate the code overlap R based on the number A and the number B; in, ; in, , are the first weight value and the second weight value respectively; and, ; R is the position To location The code overlap between the binary program code of the newly created vulnerability program code and the binary program code compiled after the newly created vulnerability program code is compiled; Execute step S507; S507. Set location To location The code overlap R between the binary program code and the binary program code compiled with the newly added vulnerability program code is 0; And, set , ; Determine the location Is it greater than the end position of the binary program code to be detected? If not, return to step S503; if greater, execute step S508; S508. Obtaining the code overlap corresponding to each binary program code fragment , { }; Wherein, d is the number of binary program code fragments into which the binary program code to be detected is divided according to the length L; is the code overlap degree corresponding to the d-th binary program code fragment; Get The maximum value of the code overlap degree in the binary program code is obtained, and the binary program code fragment corresponding to the maximum value is obtained as the similarity comparison binary program code fragment located in the binary program code to be detected.
6. A binary program vulnerability detection method according to claim 5, characterized in that: The step S6 specifically includes the following steps: S61. Disassemble the similarity comparison binary program code fragment located in the binary program code to be detected to form a disassembled program code; S62. Extracting instructions and functions from the program code disassembled in step S61; S63. For the instruction in the program code after decompilation in step S62, the instruction is input into the skip-thoughts model to obtain the contextual semantic features for the instruction; For the function in the program code disassembled in step S62, the function is input into the graph autoencoder to obtain the global semantic structure feature for the function; Combining the contextual semantic features corresponding to all instructions and the global semantic structural features corresponding to all functions in the program code disassembled in step S63 to form features corresponding to the program code disassembled; S64. Vectorizing the features corresponding to the program code after disassembly in step S63 as the feature vector corresponding to the program code after disassembly; S65. Input the feature vector corresponding to the disassembled program code of the newly added vulnerability program code obtained in step S44 and the feature vector corresponding to the disassembled program code obtained in step S64 into the binary program code similarity calculation model to obtain a similarity value.
7. A binary program vulnerability detection method according to claim 6, characterized in that: The step S7 specifically includes the following steps: When the similarity value calculated in step S65 is greater than the preset value and greater than the preset threshold F, it is determined that the binary program code to be detected has a vulnerability; otherwise, the binary program code does not have a vulnerability; The preset threshold F is 60%, 80% or 90%.
Citation Information
Patent Citations
Vulnerability detection method and device based on neural network
CN111639344A
Vulnerability detection method and device, equipment and storage medium
CN113297584A
Binary program supply chain security detection method and device
CN115033895A
Binary code similarity detection method and Internet of Things firmware vulnerability detection method
CN115168856A
Firmware program vulnerability detection method and system
CN115795474A
