Automatic software vulnerability assessment method and system based on deep learning

Through the deep learning technology of vulnerability element extraction and classification assessment model, it solves the problem of difficulty in identifying key information and format changes in automated software vulnerability assessment, achieves efficient and accurate vulnerability assessment, and improves the security and adaptability of software systems.

CN118734318APending Publication Date: 2024-10-01ZHEJIANG YUAN INFORMATION TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202410805690.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-21
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

Existing automated software vulnerability assessment methods are difficult to accurately identify key information when processing a large amount of irrelevant information and vulnerability descriptions with changing formats, resulting in low assessment efficiency and accuracy. They are also unable to effectively integrate artificial intelligence and deep learning technology, affecting software security. and risk management.

Method used

Using an automated software vulnerability assessment method based on vulnerability elements, the vulnerability element extraction model and the vulnerability element classification assessment model work together to automatically identify and extract key elements in the vulnerability description, and use deep learning technology for classification assessment to improve vulnerability understanding and assessment. accuracy and efficiency.

Benefits of technology

It achieves high-accuracy assessment of software vulnerabilities, reduces manual intervention, improves the scalability and adaptability of the system, can quickly identify the nature and severity of vulnerabilities, reduces potential risks, and improves the security and reliability of software systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure FT_1
    Figure FT_1
  • Figure FT_2
    Figure FT_2
Patent Text Reader

Abstract

The invention discloses an automatic software vulnerability assessment method and system based on deep learning, and aims to improve efficiency and accuracy in the technical field of network space security. The method comprises the following core technical steps: 1, extracting vulnerability elements: training a RoBERTa-MRC model, so that the system can automatically identify and extract key information from detailed vulnerability description, and ensuring that the key vulnerability elements can be accurately extracted even in the face of data with inconsistent formats and complicated contents; 2, vulnerability element evaluation: adopting a TextRNN model to perform deep learning classification on the extracted vulnerability elements, and evaluating the severity of the vulnerability elements according to a CVSS index; according to the process, the vulnerability evaluation efficiency is improved, and a detailed CVSS severity measure can be provided for each piece of vulnerability data. And 3, a comprehensive vulnerability evaluation process: the system analyzes the input vulnerability description through a vulnerability element extraction model, and finally outputs a comprehensive severity score and potential influence evaluation of the comprehensive severity score on services and data in combination with an evaluation result of a TextRNN model. According to the design of the method and the system, a security analyst can quickly and accurately evaluate vulnerabilities and optimize the arrangement of repair work, so that the software defense capability is enhanced, and risks caused by security vulnerabilities are reduced for enterprises and organizations.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of network security, and in particular relates to an automated software vulnerability assessment method and system. Background Art

[0002] As digitalization continues to deepen, software security issues are particularly prominent. As the complexity of software systems increases, the assessment of a large number of potential vulnerabilities, especially their impact on business and data, becomes more difficult but extremely important.

[0003] To address these challenges, automated software vulnerability assessment methods and systems have emerged. The goal of these methods and systems is to reduce reliance on manual operations while improving the efficiency and accuracy of vulnerability assessment. Initially, vulnerability assessment relied mainly on manual techniques, but over time, the introduction of static and dynamic analysis tools made automated assessment possible. In addition, the application of machine learning has further enhanced the ability of these systems to use detailed vulnerability descriptions in software repositories for assessment.

[0004] Despite the progress, existing automated assessment methods still face many challenges. For example, the large amount of irrelevant information contained in vulnerability descriptions increases the difficulty of identifying key information. In addition, these methods usually use a single vulnerability description to predict different evaluation metrics, resulting in a failure to focus on key points. In addition, the format of vulnerability descriptions has changed over the past decade, and directly using these descriptions may be affected by format changes.

[0005] With the continuous emergence of new technologies and programming practices, automated software vulnerability assessment methods and systems need to be improved. This includes improving the accuracy of vulnerability analysis, enhancing the scalability and adaptability of the system, and more effectively integrating artificial intelligence and deep learning technologies. These improvements will enable these systems to realize greater potential in improving software security and reducing vulnerability risks.

[0006] In view of this, a more accurate and efficient vulnerability assessment method is urgently needed. By extracting key vulnerability elements (such as attack targets, attack methods, versions, attackers, attack purposes, attack scenarios, and attack reasons), vulnerability assessment can be performed more intelligently. This will greatly enhance network security, reduce potential risks, reduce labor costs, and better protect information assets and system security. Summary of the invention

[0007] The present invention aims to solve key problems in the field of automated software vulnerability assessment:

[0008] 1. Automatically identify and extract key elements in vulnerability descriptions. This process includes identifying key information in vulnerability descriptions, such as attack type, impact range, attack vector, vulnerability cause, affected products and versions, etc. By accurately extracting these vulnerability elements, the overall understanding and accuracy of vulnerability assessments can be improved, especially when dealing with the ever-changing format and content of vulnerability descriptions.

[0009] 2. Classify the extracted vulnerability elements. The purpose of classification is to understand the vulnerability information more clearly and systematically, thereby improving the efficiency and accuracy of the assessment. The application of classifiers will help to identify the nature and severity of the vulnerability more quickly, making the vulnerability response more rapid and effective.

[0010] In order to solve these problems, this application provides an automated software vulnerability assessment method based on vulnerability elements, aiming to provide an excellent tool for software systems to analyze the impact of vulnerabilities and assess the severity of vulnerabilities. The system includes two major components, namely, establishing a vulnerability element extraction model and a vulnerability element classification assessment model, each of which has a key task and works together to comprehensively assess software vulnerabilities.

[0011] 1. Vulnerability element extraction model: Automatically identify and extract key elements in vulnerability descriptions, such as attack targets, attack methods, versions, attackers, attack purposes, attack scenarios, and attack reasons. The model uses advanced text analysis and machine learning techniques to accurately extract key information from vulnerability descriptions. By effectively extracting these key elements, the model will enhance the overall understanding of vulnerability characteristics, especially when dealing with vulnerability descriptions with constantly changing formats and content.

[0012] 2. Vulnerability element classification assessment model: Classify and evaluate the extracted vulnerability elements to understand the vulnerability information more clearly and systematically. The model uses a classification algorithm to organize and analyze the extracted data, making it easier to assess the severity and nature of the vulnerability. The application of the classification model will accelerate the identification of the nature and severity of the vulnerability, making the vulnerability response faster and more effective.

[0013] The system provided by the present invention integrates these two models into a unified framework, enabling them to work together to comprehensively evaluate software vulnerabilities. The design goal of this integrated system is to provide a powerful tool for analyzing the possible impact of vulnerabilities and assessing their severity. This system has the following features:

[0014] High degree of automation: Improve the efficiency and speed of assessment by reducing manual intervention.

[0015] Improved accuracy: Use advanced data processing and analysis techniques to improve the accuracy of vulnerability assessment.

[0016] Adaptable: Able to adapt to the ever-changing format and content of vulnerability descriptions.

[0017] In summary, this application provides an automated software vulnerability assessment method and system, which provides a comprehensive software vulnerability analysis through the collaborative work of a vulnerability element extraction model and a vulnerability element classification assessment model, and helps to improve the security and reliability of the software system. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 A schematic diagram of a framework of an automated software vulnerability assessment system based on deep learning provided by an embodiment of the present invention;

[0019] Figure 2 A schematic diagram of a vulnerability element assessment model provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0020] The core objective of this application is to provide a software vulnerability assessment method and system based on deep learning, so as to provide a comprehensive analysis and assessment of the vulnerabilities existing in the software system, so that operators can understand the impact of the vulnerabilities on the business and data, and assess the severity of the vulnerabilities. In order to better understand the technical solution of the present invention, we will describe the exemplary embodiments of the present invention in detail with reference to the accompanying drawings. It should be clear that the described embodiments and other embodiments obtained by ordinary technicians in this field without creative work belong to the scope of protection of the present invention.

[0021] In this application, we divide the modules according to the logical functions of the technical solutions, rather than according to the physical structure or implementation method. In practical applications, these modules can be combined, integrated, ignored or executed differently according to specific needs and conditions. In addition, the various technical features and solutions involved in this application are only possibilities provided for achieving the objectives of this application, and the possibility of other changes and modifications is not excluded.

[0022] refer to Figure 1 , which describes the system framework of an automated software vulnerability assessment system based on deep learning technology in this application. The system includes the following important steps: vulnerability element extraction model training, element classification assessment model training, and vulnerability assessment process. It is worth noting that, depending on specific needs and conditions, these steps can be combined, integrated, ignored, or executed in different ways to adapt to application needs in different scenarios.

[0023] 1. Vulnerability Element Extraction Model

[0024] Vulnerability element extraction model training is the first step of this system. Its task is to label vulnerability elements from vulnerability descriptions and build a labeled dataset. The labeled dataset is then used to train the model. Model training uses vulnerability description data, where the emergence of new terms and format changes may affect prediction performance, so an extraction evaluation of key elements is used to improve accuracy. The following steps are included:

[0025] 1. Data preprocessing and labeling:

[0026] Responsible for word segmentation of vulnerability descriptions and using the BIO tagging system (where B represents the beginning of an entity, I represents the inside of an entity, and O represents a non-entity) to annotate vulnerability elements in preparation for the training dataset.

[0027] For example: In CVE-2021-28136: The Bluetooth Classic implementation inEspressif ESP-IDF 4.4and earlier does not properly handle the reception of multiple LMP IO Capability Request packets during the pairing process, allowing attackers in radio range to trigger memory corruption(andconsequently a crash)in ESP32 via areplayed(duplicated)LMP packet.

[0028] Among them, "Bluetooth Classic" will be marked as I-attack target, "4.4" will be marked as I-version, "trigger" will be marked as B-attack purpose, and so on.

[0029] 2. Model training:

[0030] Use labeled datasets to train a deep learning model, usually using the RoBERTa-MRC (RoBERTa-based machine reading comprehension) architecture, which can identify and extract entities in text by answering predefined questions. RoBERTa (Robustly optimized BERT approach) is a pre-trained deep learning model that can understand the context of language. MRC (Machine Reading Comprehension) is a method of using RoBERTa for entity recognition, which mimics the process of reading comprehension, locating and classifying entities in text by asking questions and searching for answers.

[0031] 3. Extraction of vulnerability elements:

[0032] The trained model will be used to extract key vulnerability elements from the complete vulnerability description, such as attack target, attack method, version, attacker, attack purpose, attack scenario and attack reason.

[0033] For example, CVE-2021-28136 can be extracted as:

[0034] Target — “The Bluetooth Classic implementation”

[0035] Attackers - "attackers in radio range"

[0036] Cause of attack—“does not properly handle the reception of multiple LMP IOCapability Request packets”,

[0037] Attack scenario - "during the pairing process"

[0038] Version — “Espressif ESP-IDF 4.4and earlier”.

[0039] 2. Vulnerability Element Assessment Model

[0040] After the vulnerability element extraction model successfully marks and extracts key information, the role of the vulnerability element assessment model is to further process this information, analyze the impact of the vulnerability on the business and data, and assess the urgency of the vulnerabilities that need to be fixed, so that developers can fix the most destructive vulnerabilities as soon as possible.

[0041] 1. Data preprocessing:

[0042] First, we process the vulnerability description data through the vulnerability element extraction model and use the vulnerability element data as the original training data. And the six evaluation indicators of the vulnerability in CVSS are used to quantify the data. According to CVSS v2.7, the severity level has six evaluation indicators, including access vector, access complexity, authentication, confidentiality impact, integrity impact and availability impact.

[0043] The access vector describes the path of exploitation of the vulnerability, and its severity includes: network, adjacent network, local;

[0044] Access complexity measures the complexity of the conditions required to exploit a vulnerability, with severity levels ranging from low, medium, to high.

[0045] Authentication describes how many times an attacker needs to authenticate to exploit the vulnerability, with severity levels including: none, single, multiple;

[0046] Confidentiality impact assessment refers to the degree of damage to data confidentiality after a vulnerability is successfully exploited. The severity levels include: none, partial, and complete.

[0047] Integrity impact considers the damage that the accuracy and integrity of information may suffer after an attack, and its severity includes: none, partial, complete;

[0048] Availability Impact measures the impact of vulnerability exploitation on system availability, with severity levels including: None, Partial, and Complete.

[0049] 2.TextRNN model training:

[0050] TextRNN is a deep learning model specifically designed for text classification and sentiment analysis. It uses convolutional neural networks to extract text features for classification. This step is to identify and classify the information in the vulnerability description and calculate the severity score based on the CVSS evaluation index. Different elements in the vulnerability description, such as "attacker", "attack method", "attack scenario", "attack purpose", etc., are used to train different classifiers to evaluate different CVSS indicators. You can refer to Figure 2 .

[0051] For example: “Attacker” is used to train classifiers for access vectors and authentication, since all of them focus on the initiator of the attack;

[0052] “Attack methods” and “attack scenarios” are used to train the access complexity classifier because they both focus on the process of attack;

[0053] “Attack Purpose”, “Attack Scenario” and “Attack Reason” are used to train classifiers for confidentiality impact, integrity impact and availability impact, because they describe the consequences and conditions under which the vulnerability occurs.

[0054] 3. Vulnerability element assessment:

[0055] The severity scores calculated by the model are used to assign vulnerabilities to corresponding severity levels, usually by dividing the scores into different numerical ranges. These levels help developers and security experts prioritize the most damaging or urgent vulnerabilities.

[0056] Through the above process, the model can not only provide a detailed analysis of the impact of vulnerabilities, but also facilitate the security team to make precise decisions on vulnerability management. This systematic evaluation method improves the efficiency of responding to vulnerabilities and is crucial to maintaining system security.

[0057] 3. Overall Vulnerability Assessment Process

[0058] 1. Enter the vulnerability description:

[0059] Enter a vulnerability description that provides details about the security vulnerability in the software.

[0060] 2. Extraction of vulnerability elements:

[0061] The RoBERTa-MRC model is used to analyze the vulnerability description text and extract key vulnerability elements, such as attack target, attack method, version, attacker, attack purpose, attack scenario and attack cause.

[0062] 3. Vulnerability element assessment:

[0063] The extracted vulnerability elements are used as input and evaluated by one or more trained TextRNN models. Each TextRNN model corresponds to one or more indicators in the CVSS evaluation system, such as access vector, access complexity, authentication, confidentiality impact, integrity impact, and availability impact.

[0064] 4. Output evaluation results:

[0065] By organizing the vulnerability elements, we can output the impact of the vulnerability on the current business and data. At the same time, for the output of the TextRNN model, we assign a quantitative value based on the severity of each indicator in the CVSS evaluation system. These scores are combined to form a comprehensive severity, which allows software developers to clearly understand the risk level of this vulnerability.

[0066] The application of the present invention is not limited to the specific embodiments; technicians can make adjustments without departing from the principles and spirit of the invention, and these adjustments should be within the scope of protection of the claims attached hereto. Therefore, for those skilled in the art, according to the basic principles of the present invention, appropriate adjustments and changes can be made to the disclosed embodiments to meet different application requirements, but these adjustments and changes still fall within the scope of protection defined in the attached claims.

[0067] Through the above system and workflow, the present application provides a vulnerability assessment method and system based on deep learning, which helps to improve network security and reduce potential threats, and provides comprehensive vulnerability repair suggestions for software systems. The technical solution of the present invention uses a deep learning model to extract key elements from lengthy vulnerability descriptions and evaluate them, thereby providing a more accurate and intelligent analysis of the impact and severity of vulnerabilities on business and data.

Claims

1. A method and system for automated software vulnerability assessment based on deep learning, characterized in that: It includes a vulnerability element extraction module, which is configured with the RoBERTa-MRC model to automatically extract key information elements from the input vulnerability description; It includes a vulnerability element assessment module, which is configured with a TextRNN model and is used to correspond to the Common Vulnerability Scoring System (CVSS) evaluation indicators based on the extracted information elements and calculate the severity score of the vulnerability; Among them, the vulnerability element extraction module uses the BIO tagging system to process the input vulnerability description data to annotate vulnerability elements and train the RoBERTa-MRC model to identify and classify entities in the text; The vulnerability element assessment module further uses the extracted vulnerability element data and the corresponding CVSS indicator data to perform deep learning classification through the TextRNN model to achieve efficient assessment of the severity of each indicator; In addition, the system outputs a comprehensive score of the severity of each CVSS indicator and the corresponding business and data impact description by integrating the results of the vulnerability element extraction module and the vulnerability element assessment module.

2. The vulnerability assessment method and system according to claim 1, characterized in that: The vulnerability element extraction module further performs semantic analysis on the extracted key elements to identify and exclude redundant terms and unstructured data in the vulnerability description; The vulnerability element assessment module further applies a set of predefined rules to adjust the weights of each CVSS indicator to reflect the actual impact of the vulnerability in different network environments.

3. The vulnerability assessment method and system according to claim 1 or 2, characterized in that: The vulnerability element extraction module uses advanced text analysis and machine learning technology to accurately extract key information elements from the vulnerability description, including but not limited to attack targets, attack methods, versions, attackers, attack purposes, attack scenarios, and attack reasons; The vulnerability element assessment module classifies and evaluates the extracted vulnerability elements to understand the vulnerability information more clearly and systematically, and to facilitate the assessment of the severity and nature of the vulnerability; The system integrates the vulnerability element extraction module and the vulnerability element assessment module into a unified framework, which work together to comprehensively assess software vulnerabilities, provide analysis of the possible impact of the vulnerabilities, and assess their severity.

4. The vulnerability assessment method and system according to claim 1, 2, 3 or 4, characterized in that: The system further includes a data management module that is responsible for collecting, integrating and storing vulnerability description data and related CVSS evaluation indicator data to support continuous learning and model optimization of the system; The data management module enables the system to adapt to format changes and content updates of vulnerability descriptions, ensuring that the accuracy of the assessment model increases over time.

5. The vulnerability assessment method and system according to claim 1, 2 or 3, characterized in that: The system further includes a user interface module for displaying detailed assessment results of each vulnerability, including the vulnerability's CVSS indicator score, comprehensive severity score, and remediation recommendations; The user interface module provides customization capabilities, allowing users to adjust the weights of CVSS indicators according to specific security policies and save assessment result history to support long-term security management and review.

Citation Information

Patent Citations

  • Multi-dimensional software security risk assessment method based on CVSS

    CN114065223A

  • Software security vulnerability severity assessment method and system based on heterogeneous data

    CN115906091A

  • Vulnerability priority evaluation method and system for specific network

    CN117596026A