Vulnerability research and judgment method and device, equipment, storage medium and program product

By decomposing a large language model and calling the target execution model to perform vulnerability assessment tasks, the problem of low efficiency and accuracy in existing technologies is solved, and efficient and accurate vulnerability identification is achieved.

CN123157356APending Publication Date: 2026-11-24CHINA UNIONPAY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611222932.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-12
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

Existing vulnerability assessment technologies are inefficient and inaccurate, making it difficult to quickly identify high-risk vulnerabilities in multi-source heterogeneous data.

Method used

The vulnerability assessment task is broken down using a large language model, a task execution plan is generated, and multiple sub-tasks are executed by calling the target execution model that matches the sub-tasks. The execution results are then reviewed using the large language model to generate vulnerability assessment results.

Benefits of technology

It improved the efficiency and accuracy of vulnerability assessment, shortened the overall assessment time through collaborative division of labor, and ensured that the execution of each sub-task met the expected goals.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123157356A_ABST
    Figure CN123157356A_ABST
Patent Text Reader

Abstract

The application discloses a vulnerability research and judgment method and device, equipment, a storage medium and a program product. The method comprises the following steps: obtaining a vulnerability research and judgment task; decomposing the vulnerability research and judgment task by using a large language model to generate a task execution plan comprising a plurality of subtasks, a dependency relationship between the subtasks, a task type of each subtask, input information, expected output information and acceptance conditions; calling a target execution model corresponding to each subtask to execute each subtask to obtain output information, wherein the output information comprises an execution result, a confidence level, evidence reference information and a model version; reviewing the execution result by using the large language model based on the actual input information, the output information and the task execution plan of the target execution model; and if the review result of each subtask is passed, generating a vulnerability research and judgment result based on the execution result, the confidence level and the evidence reference information of each subtask. According to the embodiment of the application, the efficiency and accuracy of vulnerability research and judgment can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of vulnerability assessment technology, and in particular relates to a vulnerability assessment method, device, equipment, storage medium and program product. Background Technology

[0002] As the volume of network assets continues to expand, the usage of open-source software supply chains continues to increase, and the requirements for vulnerability supervision and reporting are gradually being implemented, the channels for obtaining vulnerability information are becoming increasingly rich and diverse. The data used in current vulnerability assessment work has expanded from single Common Vulnerabilities and Exposures (CVE) announcements to multiple sources, including the U.S. National Vulnerability Database (NVD), the China National Vulnerability Database of Information Security (CNNVD), vendor vulnerability patches, vulnerability intelligence issued by higher-level units, technical community discussions, proof of concept (PoC) repositories, honeypot logs, Domain Name System (DNS) data, port service scan results, internal Software Bill of Materials (SBOM), and asset databases.

[0003] Current vulnerability assessments generally employ a working model that combines static matching rules, manual assessment, and offline statistics, resulting in low assessment efficiency and accuracy. Summary of the Invention

[0004] This application provides a vulnerability assessment method, apparatus, electronic device, computer-readable storage medium, and computer program product, which can improve the efficiency and accuracy of vulnerability assessment.

[0005] Firstly, embodiments of this application provide a vulnerability assessment method, which includes: Obtain vulnerability assessment tasks; The vulnerability assessment task is broken down using a large language model to generate a task execution plan. The task execution plan includes multiple sub-tasks and their dependencies, as well as the task type, input information, expected output information, and acceptance conditions for each sub-task. The target execution model matched with the sub-tasks is invoked to execute the sub-tasks respectively, and output information is obtained, including execution results, confidence scores, evidence citation information and model version; Using the large language model, the execution result is reviewed based on the actual input information of the target execution model, the output information, and the task execution plan to obtain the review result; If the verification results for all the sub-tasks are passed, a vulnerability assessment result is generated based on the execution results, confidence levels, and evidence citation information for each of the sub-tasks.

[0006] Secondly, embodiments of this application provide a vulnerability assessment device, which includes: The first acquisition module is used to acquire vulnerability assessment tasks; The decomposition module is used to decompose the vulnerability assessment task through a large language model and generate a task execution plan. The task execution plan includes multiple sub-tasks and their dependencies, as well as the task type, input information, expected output information and acceptance conditions of each sub-task. The execution module is used to call the target execution model that is matched with the multiple sub-tasks respectively to execute the multiple sub-tasks and obtain output information, including execution results, confidence scores, evidence citation information and model versions. The review module is used to review the execution result based on the actual input information of the target execution model, the output information, and the task execution plan using the large language model, and to obtain the review result. The first generation module is used to generate a vulnerability assessment result based on the execution results, confidence level, and evidence citation information corresponding to the multiple sub-tasks, provided that all the review results for the multiple sub-tasks are passed.

[0007] Thirdly, embodiments of this application provide an electronic device, which includes: a processor and a memory storing computer program instructions; When the processor executes the computer program instructions, it implements any of the possible implementations of the first aspect described above.

[0008] Fourthly, embodiments of this application provide a computer-readable storage medium storing computer program instructions, which, when executed by a processor, implement the method in any of the possible implementations of the first aspect described above.

[0009] Fifthly, embodiments of this application provide a computer program product in which instructions, when executed by a processor of an electronic device, cause the electronic device to perform a method as described in any of the possible implementations of the first aspect above.

[0010] This application embodiment utilizes a large language model to decompose the vulnerability assessment task, generating a task execution plan containing multiple sub-tasks and their dependencies. It also calls target execution models matched to each sub-task to execute them. This fully leverages the advantages of the large language model in semantic understanding, task planning, and logical reasoning, as well as the high efficiency and low cost of the target execution model in high-frequency, specialized sub-tasks. The collaborative division of labor between the two effectively shortens the overall assessment time and improves vulnerability assessment efficiency. Furthermore, by utilizing the large language model, and based on the actual input and output information of the target execution model (including execution results, confidence levels, evidence citations, and model version) and the task execution plan (including the task type, input information, expected output information, and acceptance conditions for each sub-task), the execution results are reviewed to ensure that the execution of each sub-task meets the expected goals. Thus, by generating vulnerability assessment results based on the execution results, confidence levels, and evidence citations of each sub-task, assuming all review results for multiple sub-tasks pass, the accuracy of the assessment is improved while maintaining efficiency. Attached Figure Description

[0011] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the embodiments of this application will be briefly introduced below. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0012] Figure 1 This is a flowchart illustrating a vulnerability assessment method provided in one embodiment of this application; Figure 2 This is a flowchart illustrating a vulnerability assessment method provided in another embodiment of this application; Figure 3 This is a schematic diagram of the structure of a vulnerability assessment device provided in one embodiment of this application; Figure 4 This is a schematic diagram of the structure of an electronic device provided in one embodiment of this application. Detailed Implementation

[0013] The features and exemplary embodiments of various aspects of this application will be described in detail below. To make the objectives, technical solutions, and advantages of this application clearer, the application will be further described in detail below with reference to the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain this application and not to limit it. For those skilled in the art, this application can be implemented without some of these specific details. The following description of the embodiments is merely to provide a better understanding of this application by illustrating examples.

[0014] It should be noted that, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising..." does not exclude the presence of additional identical elements in the process, method, article, or apparatus that includes said element.

[0015] It should be noted that in the embodiments of this application, certain software, components, models and other existing solutions in the industry may be mentioned. These should be regarded as exemplary and are only intended to illustrate the feasibility of implementing the technical solution of this application. However, it does not mean that the applicant has used or necessarily used the solution.

[0016] Furthermore, the acquisition, storage, use, and processing of data in this application's technical solution all comply with relevant national laws and regulations.

[0017] As described in the background section, existing vulnerability assessments generally employ a working mode that combines static matching rules, manual assessment, and offline statistics. This approach results in low assessment efficiency and accuracy, making it difficult to quickly identify high-risk vulnerabilities that truly impact internal assets from multi-source heterogeneous data.

[0018] To address related technical issues, embodiments of this application provide a vulnerability assessment method, apparatus, electronic device, computer-readable storage medium, and computer program product. The vulnerability assessment method can be implemented in an enterprise intranet security operation environment and executed by a vulnerability assessment system. This system can be centered on a vulnerability intelligence database, externally accessing controlled intelligence sources such as the National Vulnerability Database (NVD) Application Programming Interface (API) 2.0, vendor announcements, superior unit notifications, public proof of concept (PoC) repositories, community discussions, and CNNVD; internally accessing software bill of materials (SBOM) component libraries, application asset libraries, business system importance lists, superior unit vulnerability reporting systems, protection equipment, and work order systems, achieving unified collection and fusion of multi-source heterogeneous data.

[0019] In one embodiment, the system backend employs the Flask lightweight web framework, supporting object-relational database management systems (PostgreSQL, PgSQL) or lightweight relational database management systems (SQLite). Data objects are managed using Python's SQL toolkit and object-relational mapper (SQLAlchemy). Periodic tasks are managed using the Advanced Python Scheduler (APScheduler), and asynchronous AI analysis, SBOM import, and ClickHouse (a columnar database management system for clickstream data warehouses) query and report generation tasks are executed using a thread pool. AI services can be configured to switch to various model provider interfaces or locally deployed models. Each execution model can be deployed independently according to task type and accessed through Hypertext Transfer Protocol (HTTP) or gRPC Remote Procedure Calls (gRPC) interfaces, enabling flexible expansion and dynamic scheduling.

[0020] The vulnerability assessment method provided in the embodiments of this application is described below.

[0021] Figure 1 A flowchart illustrating a vulnerability assessment method provided in one embodiment of this application is shown. Figure 1 As shown, the vulnerability assessment method provided in this application includes the following steps: S110, Obtain vulnerability assessment tasks; S120. The vulnerability assessment task is decomposed through a large language model to generate a task execution plan. The task execution plan includes multiple sub-tasks and their dependencies, as well as the task type, input information, expected output information and acceptance conditions of each sub-task. S130. Call the target execution model that matches the multiple subtasks respectively to execute the multiple subtasks and obtain the output information, which includes the execution result, confidence score, evidence citation information and model version; S140. Using the large language model, based on the actual input and output information of the target execution model and the task execution plan, the execution results are reviewed to obtain the review results. S150. If the verification results for multiple sub-tasks are all passed, generate a vulnerability assessment result based on the execution results, confidence levels, and evidence citation information for each of the multiple sub-tasks.

[0022] This application embodiment utilizes a large language model to decompose the vulnerability assessment task, generating a task execution plan containing multiple sub-tasks and their dependencies. It also calls target execution models matched to each sub-task to execute them. This fully leverages the advantages of the large language model in semantic understanding, task planning, and logical reasoning, as well as the high efficiency and low cost of the target execution model in high-frequency, specialized sub-tasks. The collaborative division of labor between the two effectively shortens the overall assessment time and improves vulnerability assessment efficiency. Furthermore, by utilizing the large language model, and based on the actual input and output information of the target execution model (including execution results, confidence levels, evidence citations, and model version) and the task execution plan (including the task type, input information, expected output information, and acceptance conditions for each sub-task), the execution results are reviewed to ensure that the execution of each sub-task meets the expected goals. Thus, by generating vulnerability assessment results based on the execution results, confidence levels, and evidence citations of each sub-task, assuming all review results for multiple sub-tasks pass, the accuracy of the assessment is improved while maintaining efficiency.

[0023] The specific implementation methods for each of the above steps are described below.

[0024] In some embodiments, in S110, the vulnerability assessment task refers to the workflow of systematically analyzing discovered vulnerabilities to clarify their actual harm and scope of impact, providing a basis for subsequent handling decisions. The vulnerability assessment task can be generated under certain vulnerability assessment conditions. These conditions may include at least one of the following: a vulnerability assessment task event is detected; a user-triggered assessment task is received; the Common Vulnerability Scoring System (CVSS) score of the detected vulnerability is greater than or equal to a preset scoring threshold; or the Proof of Concept (POC) status of the detected vulnerability is available. The preset scoring threshold may be, for example, 7.0.

[0025] In some embodiments, in S120, the large language model is a natural language processing model based on deep neural networks, capable of understanding, generating, and reasoning about natural language text, exhibiting significant advantages in semantic understanding, task planning, and logical reasoning. In this application embodiment, it serves as a scheduling and review hub, responsible for task decomposition, model scheduling, result review, and conflict resolution. Furthermore, the execution model is a lightweight, low-latency model designed for training or rule-based encapsulation of specific vulnerability assessment tasks, including but not limited to entity extraction models, component matching models, attack verification and analysis models, attack chain generation models, patch extraction models, and report generation models, offering advantages such as high execution efficiency and low cost. In this application embodiment, the execution model is used to efficiently execute various specific sub-tasks.

[0026] In this embodiment, after obtaining a vulnerability assessment task, the large language model or a specific execution model is not immediately used to execute the task. Instead, the advantages of the large language model in semantic understanding, task planning, and logical reasoning are first utilized to decompose the vulnerability assessment task and generate a task execution plan. Then, leveraging the high efficiency and low cost of execution models in high-frequency specialized sub-tasks, target execution models matched to each sub-task are invoked to execute those sub-tasks. Through the collaborative division of labor between the large language model and the specific execution model, the overall assessment time is effectively shortened, and the efficiency of vulnerability assessment is improved.

[0027] Furthermore, the task execution plan can be in the form of a Directed Acyclic Graph (DAG). The task execution plan can include the assessment objective, multiple subtasks and their dependencies, and information such as the task type, input information, expected output information, and acceptance criteria for each subtask. These subtasks may include component matching subtasks, attack verification and analysis subtasks, attack chain generation subtasks, patch extraction subtasks, and report generation subtasks. Additionally, each task type can correspond to an execution model type. This execution model type can handle its corresponding task type. Acceptance criteria, for example, could be that the confidence level of the execution result corresponding to the subtask is greater than or equal to a confidence threshold.

[0028] Therefore, in order to improve the accuracy of task breakdown and thus the accuracy of vulnerability assessment, in some embodiments, the above-mentioned S120 may specifically include: Obtain information about the primary vulnerability and related auxiliary assessment information; Using a large language model, based on the primary vulnerability information and its associated auxiliary assessment information, the vulnerability assessment task is broken down and a task execution plan is generated.

[0029] Here, the first vulnerability information can be vulnerability information collected from multi-source intelligence and then structured. The first vulnerability information may include the vulnerability's unique identifier, source channel, timestamp, intelligence type, entity list, affected products, CVSS score vector, POC status, original text, parsed structured fields, vector index keys, and evidence citation chains, etc.

[0030] The auxiliary assessment information associated with the primary vulnerability information can be supplementary information used in vulnerability assessment tasks. This auxiliary assessment information may include at least one of the following: historical vulnerability records belonging to the same product as the current vulnerability and their handling status; known vulnerability information existing in adjacent versions of the version affected by the current vulnerability; the hit results and dependencies of the components affected by the current vulnerability in the internal Software Bill of Materials (SBOM); handling methods and effect feedback of similar or same-product vulnerabilities in previous assessments; vulnerability reporting material format templates for different regulatory agencies; and regulatory fields and filling specifications required when reporting vulnerabilities.

[0031] After obtaining the primary vulnerability information and its associated auxiliary assessment information, the two can be concatenated to obtain contextual information for task decomposition and to provide task decomposition prompts. These prompts can instruct the large language model to decompose the assessment target into multiple dependent sub-tasks, specifying the task type, input information, expected output information, and acceptance criteria for each sub-task.

[0032] As an example, after obtaining the context information and task decomposition prompts for task breakdown, these can be input into a large language model. The large language model can then use this context information and prompts to break down the vulnerability assessment task. If the task execution plan is a DAG (Directed Acyclic Graph) execution plan, DAG generation rules can be added to the context information. Furthermore, to enable the large language model to generate task types that match the types of callable execution models, a model capability registry can be added to the context. This model capability registry records the basic information and performance metrics of all callable execution models. Performance metrics can include capability tags, which characterize the execution model type, i.e., the types of tasks the execution model can handle.

[0033] This application embodiment obtains first vulnerability information and its associated auxiliary assessment information, and inputs the first vulnerability information and its associated auxiliary assessment information into a large language model, which can provide rich background knowledge and contextual information for task decomposition, thereby improving the accuracy and rationality of task decomposition, and thus improving the accuracy of vulnerability assessment.

[0034] If the background knowledge and contextual information used for task decomposition are insufficient, this application embodiment can first perform supplementary verification, and then continue task decomposition when the contextual information is sufficient.

[0035] Based on this, in order to further improve the accuracy and rationality of task breakdown, in some embodiments, the acquisition of the first vulnerability information and its associated auxiliary analysis information may specifically include: Obtain information about the first vulnerability; Retrieve auxiliary assessment information associated with the first vulnerability information in the security information knowledge graph. The security information knowledge graph includes multiple security information entities and the entity relationships between them. Security information entities include vulnerability entities and asset entities. Vulnerability entities include at least one of vulnerability entities, product entities, patch entities, attack verification entities, and threat indication entities.

[0036] Here, the security information knowledge graph is a knowledge model obtained by semantically modeling multi-source heterogeneous security information related to vulnerabilities using a graph structure. The security information knowledge graph includes multiple security information entities and the relationships between them. These security information entities include vulnerability-type entities and asset entities. The vulnerability-type entities can be obtained by extracting entities from collected vulnerability information. Vulnerability-type entities include at least one of the following: vulnerability entities, product entities, patch entities, attack verification entities, and threat indication entities. The vulnerability entity is used to characterize security vulnerabilities, and may include Common Vulnerabilities and Exposures (CVE) numbers and their corresponding vulnerability information; the product entity is used to characterize products affected by vulnerabilities, and may include product names and their corresponding version ranges, vendor names, CPE identifiers, and other attribute information; the patch entity is used to characterize objects that fix vulnerabilities, and may include patch programs used to fix the corresponding vulnerabilities, release dates, patch versions, and other attribute information; the attack verification entity is used to characterize objects that verify the exploitability of vulnerabilities, and may include POC code and attack examples used to verify the exploitability of vulnerabilities; the threat indicator entity is used to characterize objects that identify threat activities, and may include Indicator of Compromise (IOC) attributes such as malicious Internet Protocol (IP) addresses, domain names, and file hash values.

[0037] Furthermore, this asset entity can be generated based on an internal enterprise asset repository. The asset repository is a database or system used to store and manage internal asset information, recording basic asset information (such as server IP, application system name, component deployment path), business attributes (such as department affiliation, business importance level, and whether it is a production environment), and exposure information (such as whether it is exposed to the internet and protective measures). The asset entity represents the asset object in the business environment and can include attribute information such as servers, application systems, and components.

[0038] Building upon this, multiple entity relationships can include the impact relationship between a vulnerability entity and a product entity, the remediation relationship between a vulnerability entity and a patch entity, the attack verification relationship between a vulnerability entity and an attack verification entity, the hit relationship between a vulnerability entity and an asset entity, and the indication relationship between a vulnerability entity and a threat indication entity. Among these, the hit relationship characterizes which internal assets are affected by the vulnerability; the indication relationship characterizes the threat detection metrics related to the vulnerability.

[0039] In addition, the security information knowledge graph can also include information such as historical handling records, reporting templates, and regulatory field requirements. Among them, historical handling records are used to represent the handling methods and results of historical vulnerabilities, reporting templates are used to represent the format of vulnerability reporting materials for different regulatory agencies, and regulatory field requirements are used to represent the regulatory fields that need to be filled in when reporting vulnerabilities and the filling specifications.

[0040] Thus, the auxiliary assessment information associated with the first vulnerability information may include, but is not limited to: historical vulnerability information belonging to the same product as the first vulnerability information, vulnerability information existing in versions adjacent to the product version of the first vulnerability information, the hit status of components affected by the first vulnerability information based on internal SBOM matching, historical handling records of the corresponding product and vulnerability, and at least one of the reporting template and regulatory field requirements.

[0041] This application embodiment, by pre-constructing a security information knowledge graph and retrieving auxiliary judgment information associated with the first vulnerability information from the security information knowledge graph, can comprehensively and efficiently obtain the background knowledge and context information required for vulnerability judgment, thereby providing more sufficient information support for the task decomposition of the large language model and further improving the accuracy and rationality of task decomposition.

[0042] Furthermore, to improve the accuracy and reliability of vulnerability assessment, in some embodiments, obtaining the first vulnerability information may specifically include: Collect raw vulnerability information; Entity extraction is performed on the original vulnerability information to obtain vulnerability-class entities; The vulnerability-related entities are processed in a structured manner to obtain the second vulnerability information; The credibility of the second vulnerability information is determined based on the entity integrity of the vulnerability-type entity, the reliability of the source of the second vulnerability information, and the historical false alarm rate. If the credibility meets the preset credibility conditions, the second vulnerability information will be identified as the first vulnerability information.

[0043] Here, raw vulnerability information can be automatically collected through multiple channels, with collection triggering methods including both proactive triggering and timed polling. Proactive triggering can include scheduled tasks via the NVD Application Programming Interface (API), intelligence pushes from higher-level security interfaces, Really Simple Syndication (RSS) aggregations of vendor vulnerability announcements or webpage content updates, manual import of vulnerability intelligence, and honeypot monitoring to capture attack events. In the absence of incremental vulnerability intelligence updates, the system defaults to performing a global polling collection once every preset interval (e.g., every 30 minutes) to ensure the real-time and completeness of raw vulnerability information collection.

[0044] As an example, this application embodiment can access multiple data channels through a controlled agent, including NVD API 2.0, official vendor vulnerability announcements, security intelligence issued by the internal security operations center, the CNNVD vulnerability database, open-source platforms and technical forum POC links, and internal honeypot logs. The standardized collection and parsing of raw vulnerability information is completed strictly according to the preset trust weights, collection frequencies, and field parsing templates of each data source. The raw vulnerability information may include multiple pieces of raw vulnerability intelligence.

[0045] For each piece of raw vulnerability intelligence collected, a unique identifier (i.e., vulnerability identifier) ​​can be generated for each piece of raw vulnerability intelligence based on preset identifier generation rules, and the raw vulnerability intelligence can be cached to avoid duplicate collection. The vulnerability identifier can be determined based on the source of the vulnerability intelligence, the time of collection of the vulnerability intelligence, and the hash value of the vulnerability intelligence.

[0046] In addition to collecting original vulnerability information, this application embodiment will also simultaneously collect status logs, collection failure retry records, and original evidence files classified and stored according to data sources, so as to provide standardized and non-repeating original vulnerability information for subsequent entity extraction, knowledge graph construction, and vulnerability assessment.

[0047] After obtaining the original vulnerability information, tools such as the CVE parser, CVSS parser, Common Platform Enumeration (CPE) parser, Common Weakness Enumeration (CWE) parser, IOC regular expression extractor, and lightweight entity extraction model can be invoked to extract key fields such as CVE number, product name, version range, CPE identifier, POC link, attack vector, patch version, vendor information, and disclosure time from the text content and JSON structure of the original vulnerability intelligence. Based on these key fields, vulnerability-related entities can be determined. For example, the vulnerability entity can be determined based on the CVE number and attack vector; the product entity can be determined based on the product name, version range, CPE identifier, and vendor information; the patch entity can be determined based on the patch version; the attack verification entity can be determined based on the POC link; and the threat indication entity can be determined based on the IOC regular expression extraction results.

[0048] For original vulnerability intelligence of web page type, the core text content can be extracted using text extraction and noise removal algorithms, and evidence fragments supporting the conclusions of key field extraction and their position information in the original text can be retained to ensure the interpretability of subsequent review and tracing.

[0049] For each original vulnerability intelligence report, after extracting the vulnerability-type entity, a parsing quality score can be determined based on the completeness of the entity. If the parsing quality score is greater than or equal to a quality score threshold (e.g., 0.6), the vulnerability-type entity is considered high-quality data and can proceed to subsequent structured processing. If the parsing quality score is less than the quality score threshold, the vulnerability-type entity is considered low-quality data and will be entered into the manual review queue.

[0050] The structured processing of vulnerability entities can be specifically achieved by mapping vulnerability entities from different sources to a unified UTR object according to the Unified Threat Representation (UTR), thus obtaining secondary vulnerability information. This UTR object can include fields such as vulnerability identifier, intelligence source, timestamp, intelligence type, entity list, affected products, CVSS score vector, POC status, original text, parsed structured fields, vector index key, and evidence citation chain. The vector index key is a unique index identifier generated in a vector library after vectorizing the original intelligence text, used for quickly locating and recalling the intelligence record when retrieving relevant context in subsequent large-scale model searches. The evidence citation chain refers to the traceability link of original evidence fragments and their source location information that support the conclusions extracted from each key field and entity throughout the entire process from collection to analysis, ensuring the interpretability and auditability of the analysis results.

[0051] After identifying the second vulnerability information, its credibility can be assessed based on the entity integrity of the vulnerability-type entity, the source reliability of the second vulnerability information, and the historical false positive rate. The historical false positive rate represents the proportion of times the vulnerability intelligence from a particular source or type has historically been flagged as a false positive. Source reliability can be determined based on source credibility, cross-source consistency, and the normalized value of the number of pieces of evidence. Source credibility reflects the reliability of the intelligence source channel itself. Cross-source consistency reflects the degree of consistency of the same vulnerability intelligence across different sources. If multiple independent sources agree on the description, scope of impact, and rating of the vulnerability, the consistency is high, indicating high credibility of the intelligence; conversely, if there are contradictions or differences between sources, the consistency is low, indicating potential controversy or uncertainty regarding the intelligence. The normalized value of the number of pieces of evidence reflects the standardized score of the number of pieces of evidence supporting the vulnerability intelligence. It maps the collected evidence quantity to a normalized value between 0 and 1 according to certain rules; the more evidence, the higher the value.

[0052] As an example, the credibility of the second vulnerability information can be determined by the following formula (1). : (1) in, To ensure the credibility of the source, For entity integrity, For cross-source consistency, The normalized value for the number of pieces of evidence. This represents the historical false alarm rate. If the evidence is below the threshold, it will only be included in the candidate evidence queue.

[0053] If the credibility is greater than or equal to the first credibility threshold (e.g., 0.75), it can be determined that the credibility meets the preset credibility conditions, and the second vulnerability information is identified as the first vulnerability information. If the credibility is less than the first credibility threshold but not less than the second credibility threshold (e.g., 0.45), it can be determined that the credibility does not meet the preset credibility conditions, and the second vulnerability information is identified as candidate evidence and stored in the security information knowledge graph. If the credibility is less than the second credibility threshold, it can be determined that the credibility does not meet the preset credibility conditions, and cross-source correction is pending.

[0054] Based on this, in order to improve the accuracy of credibility, in some embodiments, the credibility of the second vulnerability information can be determined based on the above formula (1) and the credibility scoring model respectively, and the two can be weighted and summed, and the credibility after weighted summation can be used as the final credibility of the second vulnerability information.

[0055] This application embodiment extracts entities, performs structuring processing and credibility assessment on the collected raw vulnerability information, and identifies the second vulnerability information with higher credibility as the first vulnerability information. This allows for the selection of high-quality, highly credible vulnerability intelligence as input for subsequent analysis tasks, thereby improving the accuracy and reliability of vulnerability analysis.

[0056] In addition, after identifying the first vulnerability, the vulnerability class entity corresponding to the first vulnerability can be updated to the security information knowledge graph, and entity relationships between this vulnerability class entity and other entities can be established in the knowledge graph. After the knowledge graph update is completed, a vulnerability assessment task event can be generated and delivered to the message bus to trigger a vulnerability assessment task for the first vulnerability information.

[0057] In some embodiments, in S130, multiple subtasks may include a component matching subtask, an attack verification and analysis subtask, an attack chain generation subtask, a patch extraction subtask, and a report generation subtask. Specifically, the component matching subtask can be used to match the components affected by the vulnerability with components in internal assets to determine the scope of the impact; the attack verification and analysis subtask can be used to analyze the exploitability and attack conditions of the vulnerability; the attack chain generation subtask can be used to generate an attack chain; the patch extraction subtask can be used to extract the patch version and mitigation measures from the original text containing the patch; and the report generation subtask can be used to generate a vulnerability assessment report based on the execution results of the above subtasks.

[0058] Accordingly, the target execution models matched with multiple subtasks may include component matching models, attack verification and analysis models, attack chain generation models, patch extraction models, and report generation models. For each subtask, there may be one or more target execution models; this is not limited here.

[0059] For each subtask, the output of the target execution model can include not only the execution result, but also the confidence level of the execution result, the evidence citation information used to obtain the execution result, and the model version. This confidence level, evidence citation information, and model version can be used by a large language model to verify the execution result.

[0060] As an example, the actual input and output information of each target execution model can be stored in the evidence ledger for the large language model to trace the results and resolve conflicts during the review phase, and to provide verifiable data for manual auditing and subsequent model iterations.

[0061] If the subtask is a component matching subtask, then the target execution model is the component matching model, and the execution result is the component matching result. Based on this, to improve the efficiency and accuracy of component matching, in some embodiments, the above S130 may specifically include: When the component matches the model, perform the following operations: Obtain the first vulnerability information, software bill of materials, product family mapping table and alias mapping table. The first vulnerability information includes the target product name, version range and target manufacturer name corresponding to multiple target products. The software bill of materials includes multiple software components and their respective component names, version numbers and manufacturer names. The product family mapping table is used to record the correspondence between different product names belonging to the same product series. The alias mapping table is used to record the correspondence between different spellings of the same product name or the same manufacturer name. Based on the first vulnerability information, software bill of materials, product family mapping table, and alias mapping table, determine the name matching degree, version matching degree, and relationship matching degree between each software component and each target product; Based on name matching degree, version matching degree, and relationship matching degree, determine the component matching degree between each software component and each target product; The component matching result is determined based on multiple software components and their respective component matching degrees.

[0062] Here, the product mentioned in the initial vulnerability information and the software component / component in the software bill of materials refer to the same thing: the hardware and software units that constitute the business system. For example, Nginx is described as a product affected by the vulnerability in the vulnerability information, while it is recorded as a component in the software bill of materials.

[0063] In addition, name matching can include component name matching, vendor name matching, component alias matching, and vendor alias matching.

[0064] Based on this, the determination of name matching degree mentioned above can specifically include: For each software component and each target product, perform the following operations: The component name matching degree is determined based on the text similarity between the component name and the target product name; The matching degree of the manufacturer name is determined based on the text similarity between the manufacturer name and the target manufacturer name; Based on the alias mapping table, determine the first alias relationship between the component name and the target product name, and the second alias relationship between the manufacturer name and the target manufacturer name; Based on the first alias relationship, the component alias matching degree is determined, and based on the second alias relationship, the manufacturer alias matching degree is determined.

[0065] Here, the manufacturer names and / or product names collected from different data sources may differ. Therefore, to ensure the accuracy of component matching, we can first determine the first alias relationship between the component name and the target product name, and the second alias relationship between the manufacturer name and the target manufacturer name, based on the alias mapping table. Then, based on the first alias relationship, we determine the component alias matching degree, and based on the second alias relationship, we determine the manufacturer alias matching degree. Specifically, if the first alias relationship indicates that the component name and the target product name are different spellings of the same product name, the component alias matching degree is 1; otherwise, it is 0. Similarly, if the second alias relationship indicates that the manufacturer name and the target manufacturer name are different spellings of the same manufacturer name, the manufacturer alias matching degree is 1; otherwise, it is 0.

[0066] In addition, the determination of relationship matching degree mentioned above can specifically include: For each software component and each target product, perform the following operations: Based on the product family mapping table, determine the family relationship between the software component and the target product; Determine the degree of relationship matching based on the same clan.

[0067] Here, if the family relationship indicates that the software component and the target product corresponding to the target product name belong to the same product series, the relationship matching degree is 1; otherwise, it is 0.

[0068] In addition, for each software component, if the version number falls within the version range in the first vulnerability information, the version matching degree can be determined to be 1; otherwise, it is 0.

[0069] Based on this, the component matching degree M between the software component and the target product can be calculated using the following formula (2): (2) in, For manufacturer name matching degree, For component name matching degree, For version compatibility, For relationship matching degree, For component alias matching degree, Matching degree of manufacturer aliases.

[0070] If the component matching degree is greater than or equal to the first matching degree threshold (e.g., 0.75), the software component can be determined as a high-confidence target component. If the component matching degree is less than the first matching degree threshold but not less than the second matching degree threshold (e.g., 0.55), the software component can be determined as a low-confidence target component, and manual confirmation or secondary verification is required.

[0071] In addition to the component matching results, the component matching model can also output the confidence level of the component matching results, the evidence citation information used in the component matching results, and the model version of the component matching model.

[0072] This application embodiment calls a lightweight, low-latency component matching model to match the product information affected by the vulnerability with the component information in the software bill of materials, in order to determine whether the internal components are affected by the vulnerability and output the matching degree. This can achieve efficient automated impact range determination and improve the efficiency and accuracy of component matching.

[0073] Furthermore, if the subtask is an attack verification analysis subtask, then the target execution model is the attack verification analysis model, and the execution result is the attack verification analysis result. Based on this, to improve the efficiency and accuracy of attack verification analysis, in some embodiments, the above S130 may specifically include: Invoke the attack verification and analysis model and perform the following operations: Obtain the first vulnerability information, which includes attack verification information and attack vector. The attack verification information includes the attack verification link. Obtain the repository metadata corresponding to the attack verification link; When the attack verification information includes an attack verification code fragment, the attack verification code fragment is identified to determine at least one of the following attack characteristics: whether the attack verification code is an executable script, whether the use of the attack verification code fragment requires authentication, and whether the attack verification code fragment contains a remote command execution chain. Based on attack vectors, attack characteristics, and repository metadata, the exploit maturity of attack verification code snippets is determined; Based on attack characteristics and exploit maturity, the results of attack verification analysis are determined.

[0074] Here, attack verification information can include at least one of the following: attack verification link (i.e., POC link), attack verification code snippet, and verification description information. After obtaining the attack verification information, it can be parsed first to identify whether it includes an attack verification code snippet. If so, the attack verification code snippet can be further identified to determine whether it is an executable script, whether authentication is required for its use, and whether it contains a remote command execution chain, thus obtaining multiple attack characteristics. Additionally, the attack vector refers to the access path or attack channel used by the attacker when exploiting the vulnerability, describing where the vulnerability can be exploited by attackers. Attack vectors can include network, adjacency, local, and physical vectors. Furthermore, repository metadata refers to the relevant descriptive information of the code repository where the attack verification code snippet is located. Repository metadata can include code commit time, forking activity, bookmarking activity, and frequency of public exploitation discussions.

[0075] The specific method for determining the exploitability maturity of attack verification code snippets based on attack vectors, attack features, and repository metadata can be as follows: First, a basic score is calculated based on the attack vector (network / adjacency / local / physical); then, a feature score is calculated based on the attack features; next, a community activity score is obtained based on the repository metadata (the newer the submission time, the higher the activity of forging / collecting, and the higher the frequency of public exploitation and discussion); finally, the attack vector score, attack feature score, and repository metadata score are weighted and summed to obtain a comprehensive score, which is then mapped to an exploitability maturity level. The specific method for calculating the feature score based on attack characteristics is as follows: First, determine the first sub-feature score based on whether the attack verification information contains an attack verification code fragment. If it does, the first sub-feature score is 1; otherwise, it is 0. Next, determine the second sub-feature score based on whether the attack verification code is an executable script. If it is, the second sub-feature score is 1; otherwise, it is 0. Then, determine the third sub-feature score based on whether the use of the attack verification code requires authentication. If authentication is not required, the third sub-feature score is 1; otherwise, it is 0. Finally, determine the fourth sub-feature score based on whether the attack verification code contains a remote command execution link. If it does, the fourth sub-feature score is 1; otherwise, it is 0. Finally, the weighted sum of each sub-feature score yields the final feature score.

[0076] Once the attack characteristics and exploit maturity are obtained, the attack verification analysis results can be determined based on these characteristics and exploit maturity. The attack verification analysis results include both the attack characteristics and the exploit maturity.

[0077] In addition to the attack verification analysis results, the attack verification analysis model can also output the confidence level of the attack verification analysis results, the evidence citation information used in the attack verification analysis results, and the model version of the attack verification analysis model.

[0078] This application embodiment utilizes a lightweight, low-latency attack verification analysis model to automatically analyze the attack verification information in the first vulnerability information, identify attack characteristics, and comprehensively determine the exploitability maturity by combining attack vectors and repository metadata. This enables rapid and accurate automated assessment of vulnerability exploitability, improving the efficiency and accuracy of attack verification analysis.

[0079] Furthermore, if the subtask is an attack chain generation subtask, then the target execution model is the attack chain generation model, and the execution result is the target attack chain. Based on this, to improve the efficiency and accuracy of attack chain generation, in some embodiments, the above-mentioned S130 may specifically include: Call the attack chain generation model and perform the following operations: Obtain the first vulnerability information, attack chain generation template, and attack chain verification analysis results. The first vulnerability information includes attack vectors. Retrieve network connectivity relationships between target asset entities associated with the first vulnerability information from the security information knowledge graph; Obtain asset servicing exposure information of the target asset entity; An initial attack chain is generated based on the attack chain generation template, attack vectors, attack verification analysis results, network connectivity relationships between target asset entities, and asset service exposure information. The initial attack chain is verified, and the verification result is obtained. If the verification result is successful, the initial attack chain will be identified as the target attack chain.

[0080] Here, the attack chain generation template includes multiple attack stages and at least one attack method corresponding to each attack stage. These multiple attack stages may include, for example, reconnaissance, resource exploitation, initial access, execution, persistence, privilege escalation, defense evasion, credential access, discovery, lateral movement, collection, command and control, data leakage, and impact.

[0081] As an example, if the exploit maturity level in the attack analysis verification results is medium or higher, and if the component matching results show a high-confidence hit component, attack chain generation can be triggered immediately. Specifically, the attack chain generation model can be invoked immediately. Through the attack chain generation model, the attack chain generation template, attack vectors, attack verification analysis results, network connectivity relationships between target asset entities, and asset service exposure information are obtained. Based on these elements, an initial attack chain is generated. The attack chain generation template provides standardized attack phase divisions and corresponding attack methods for each phase, serving as the overall framework for attack chain generation. It constrains the structure and coverage of the attack chain, ensuring that the generated attack chain covers the complete attack path from initial access to final impact. The attack vector indicates the attacker's possible initial access path and determines the attack method selection for the initial stage of the attack chain. For example, when the attack vector is "network," the initial access stage prioritizes remote attacks exploiting vulnerabilities. Attack verification analysis results provide the exploitability maturity and specific attack characteristics of vulnerabilities, refining the technical details and attack steps of each attack stage in the attack chain. For example, based on the attack verification analysis results, specific attack methods that can be used in the execution stage can be determined. Network connectivity relationships between target asset entities provide network reachability information between internal assets, determining which assets an attacker can laterally move between after initial access, thus deducing attack paths for subsequent stages in the attack chain. Asset service exposure information provides information on the services, ports, and protective measures exposed by the target assets, determining which service entry points an attacker can use for attacks, and the defensive obstacles that may be encountered at each stage of the attack chain. For example, exposed World Wide Web (Web) service ports may become attack entry points in the initial access stage, while the presence of a Web Application Firewall (WAF) may affect the success rate of the attack.

[0082] Once the initial attack chain is obtained, it can be verified to obtain the verification result.

[0083] The initial attack chain is validated, and the validation results are obtained, which may include: Based on the asset service exposure information, verify whether the assets corresponding to each attack node in the initial attack chain have opened the service port corresponding to the first vulnerability information, whether they are running the service corresponding to the first vulnerability information, and whether the software version corresponding to the service falls within the version range, and obtain the first verification result. Based on the network connectivity between target asset entities, verify whether the network jumps between each attack node in the initial attack chain are reachable to obtain the second verification result; The third verification result is obtained by verifying whether a logically coherent chain of evidence can be formed between the attack nodes in the initial attack chain, and whether the timeline of each attack node is reasonable. The verification result is determined based on the first verification result, the second verification result, and the third verification result.

[0084] Here, if the assets corresponding to each attack node in the initial attack chain have the service port corresponding to the first vulnerability information open, are running the service corresponding to the first vulnerability information, and the software version corresponding to the service falls within the version range of the first vulnerability information, then it can be determined that the attack node has the basic conditions for successful exploitation, and the first verification result is verification passed. Conversely, if any of the conditions of port not being open, service not running, or version mismatch are not met, it means that the node cannot be exploited by the vulnerability, and the first verification result is verification failed.

[0085] Furthermore, if a network connection path exists between any two adjacent attacking nodes, it indicates that the attacker can move laterally between the nodes, and the second verification result is a pass. Conversely, if the network is not connected, it indicates that the attack path is not feasible in a real network environment, and the second verification result is a fail.

[0086] Furthermore, a logically coherent chain of evidence means that throughout the entire attack process, from the initial access to the final impact, the output of each attack stage can serve as the input for the next attack stage, with logical connections and no logical gaps. A reasonable timeline means that the chronological order of the attack nodes conforms to the actual attack logic, without any time inversions or unreasonable time intervals. If the initial attack chain is logically and temporally consistent and practically executable, the third verification result is a pass. Otherwise, it indicates that the initial attack chain contains logical contradictions or temporal anomalies, requiring regeneration or manual correction, and the third verification result is a failure.

[0087] Ultimately, if all three verification results pass, the verification result is considered successful, and the initial attack chain is identified as the target attack chain. Otherwise, if any of the three verification results fails, the verification result is considered unsuccessful, thus reducing the confidence level of the initial attack chain, marking it as requiring supplementary verification or regeneration of the attack chain, or transferring it to manual review.

[0088] In addition to the target attack chain, the attack chain generation model can also output the confidence level of the target attack chain, obtain the evidence citation information used by the target attack chain, and the model version of the attack chain generation model.

[0089] This application embodiment automatically generates attack chains by calling an attack chain generation model, combining attack chain generation templates, attack vectors, attack verification analysis results, asset network connectivity relationships, and asset service exposure information. The attack chain is then verified based on a rule engine, enabling automated deduction of attack paths and credibility assessment. This improves the efficiency and accuracy of attack chain generation and provides an interpretable attack path basis for subsequent vulnerability impact analysis and handling decisions.

[0090] In addition, if the subtask is a patch extraction subtask, then the target execution model can be the patch extraction model, and the execution result can be the patch extraction result.

[0091] Therefore, in order to improve the efficiency and accuracy of patch extraction, in some embodiments, the above-mentioned S130 may specifically include: Extract the model using patches and perform the following operations: Obtain the patch source text corresponding to the version sequence rules and the first vulnerability information. The first vulnerability information includes the target product, and the version sequence rules include the recommended level of each software version corresponding to the target product. Extract patch information from the patch source text; the patch information includes the patch version. Based on version sequence rules, determine the recommended version corresponding to the target product; If the patch version matches the recommended version, the patch information will be identified as the patch extraction result.

[0092] Here, the version sequence rule is a pre-defined version priority rule table used to describe the recommended level of each software version of a specific product. This rule can assign different recommended levels (e.g., recommended, not recommended) to each version based on version stability, security, and vendor support. Additionally, patch source text refers to the original text content containing patch information in vendor announcements, security bulletins, or vulnerability reports. Patch source text can originate from NVD reference links, vendor security bulletin pages, mailing list announcements, or patch notifications issued by higher-level organizations. Furthermore, patch information is structured data extracted from the patch source text by the patch extraction model, including at least the patch version (i.e., the software version number released by the vendor to fix the vulnerability) and patch content. In addition, patch information may include at least one of the following: patch dependencies (environmental or preconditions that must be met before installing the patch), temporary mitigation measures (temporary workarounds without installing the patch, such as configuring disabled items, access control rules, etc.), detection rules (rules used to detect whether the vulnerability has been exploited), protection rules (such as WAF rules used to protect against attack traffic targeting the vulnerability), patch rollback risks (compatibility issues or business impacts that may be introduced after installing the patch), and patch release date.

[0093] After extracting patch information, version sequence consistency verification can be performed to avoid using inapplicable versions as remediation suggestions. Specifically, using the target product in the first vulnerability information as an index, the corresponding software versions and their recommended levels are searched from the version sequence rules. Versions with a recommended level of "Recommended" or "Highest Priority" are identified as the recommended versions for the target product. Subsequently, the patch version in the patch information is compared with the recommended version determined in the version sequence rules. If the version numbers are the same or semantically equivalent, it is considered a match; otherwise, it is considered a mismatch. If the patch version matches the recommended version, it indicates that the patch version released by the vendor is consistent with the preset best recommended version, the patch solution is mature and reliable, and the patch information can be identified as the patch extraction result for subsequent handling suggestion generation; if they do not match, manual review or further analysis is triggered.

[0094] In addition to the patch extraction results, the patch extraction model can also output the confidence level of the patch extraction results, the evidence citation information used in the patch extraction results, and the model version of the patch extraction model.

[0095] This application embodiment automatically extracts patch information from the patch source text by calling the patch extraction model, and performs version sequence consistency verification on the patch information in combination with version sequence rules. If the consistency verification is successful, the patch extraction result is output. This can automatically complete the extraction and verification of patch information, improve the efficiency and accuracy of patch extraction, and provide a reliable patch basis for subsequent vulnerability handling and remediation decisions.

[0096] Furthermore, in order to improve the matching degree between the execution model of each target and each subtask, thereby improving the accuracy of each execution result, in some embodiments, before S130 above, the method may further include: Obtain performance metrics for multiple candidate execution models; Based on performance metrics, a target execution model that matches each subtask is selected from multiple candidate execution models.

[0097] Here, performance metrics may include at least one of the following: capability label, average execution latency, security domain label, execution cost, execution accuracy, and manual correction rate. These performance metrics can be obtained from the model capability registry. This registry records the basic information and performance metrics of all callable execution models (i.e., candidate execution models). Furthermore, there can be one or more target execution models matched with each subtask; this is not limited here.

[0098] In addition, the task execution plan may also include latency constraints and vulnerability level constraints for each subtask. Based on this, in some embodiments, the above-mentioned selection of a target execution model matching each subtask from multiple candidate execution models based on performance metrics may specifically include: For each subtask, perform the following operations: The ability matching degree is determined based on the matching degree between ability tags and task types; Determine the latency fit based on the matching degree between the average execution latency and the latency constraint; Based on the matching degree between security domain labels and vulnerability level constraints, the security domain fit is determined. Cost fit is determined based on execution cost, and cost fit is negatively correlated with execution cost; Based on capability matching degree, latency adaptability, security domain adaptability, cost adaptability, execution accuracy and manual correction rate, a basic score is determined for each candidate execution model; Based on the base scores in descending order, the top K candidate execution models are determined as K target execution models, where K is a positive integer.

[0099] Here, the basic score for each candidate execution model can be determined using the following formula (3). : (3) in, For capability matching, To achieve accuracy, For delay adaptation For security domain adaptation, For cost-effectiveness, This represents the rate of manual correction.

[0100] This application embodiment determines the basic score of each candidate execution model for each subtask based on capability matching degree, latency adaptability, security domain adaptability, cost adaptability, execution accuracy, and manual correction rate. Then, according to the basic score in descending order, the top K candidate execution models are determined as K target execution models. This enables large language models to prioritize the target execution model with high accuracy, low latency, less manual correction, and high domain adaptability under the same task, thereby improving the matching degree between each target execution model and each subtask, and thus improving the accuracy of each execution result.

[0101] Based on this, in order to further improve the matching degree between each target execution model and each subtask, and thus further improve the accuracy of each execution result, in some embodiments, the top K candidate execution models are determined as K target execution models according to the order of the basic scores from largest to smallest. Specifically, this may include: Obtain the model weights for each candidate execution model. The model weights are used to characterize the overall performance of the candidate execution model in historical tasks. Based on the base score and model weight, the final score of each candidate execution model is determined; Based on the final scores in descending order, the top K candidate execution models are determined as the K target execution models.

[0102] Here, the model capability registry can also record the model weights of all callable executable models. Therefore, the model weights of candidate executable models can be obtained from the model capability registry. These model weights can be determined based on the initial model weights, as well as the candidate executable model's human acceptance rate, false positive rate, and average execution latency. The model weights can be continuously updated based on the model's most recent overall performance (i.e., based on the model's most recent human acceptance rate, false positive rate, and average execution latency). Higher human acceptance rates, lower false positive rates, and lower average execution latency result in higher model weights.

[0103] Final score It can be determined by the following formula (4): (4) in, The pre-set feedback impact ratio, These are the model weights.

[0104] This application embodiment determines the model's final score based on the model's most recent comprehensive performance and the model's base score, which can improve the accuracy of model scoring, thereby further improving the matching degree between the target execution model and each sub-task, and further improving the accuracy of each execution result.

[0105] In addition to outputting at least one target execution model for each subtask, the large language model can also plan the execution order of multiple target execution models, outputting a model execution plan. The model execution plan describes which target execution models each subtask calls and how they are executed. Specifically, the model execution plan can include the execution modes of multiple target execution models. These execution modes include at least one of serial execution mode, parallel execution mode, and multi-model cross-validation mode. Serial execution mode is suitable for scenarios where the output of one subtask must be used as the input of the next subtask, indicating a dependency relationship. Parallel execution mode is suitable for scenarios where subtasks are independent and can be executed independently. Multi-model cross-validation mode is suitable for scenarios where subtasks are highly important, the conclusion of a single model may be uncertain, or the confidence level of the model output is low. In this mode, a subtask simultaneously calls two or more target execution models for processing, and then the outputs of each model are compared and synthesized to reduce the risk of misjudgment that may arise from a single model. The importance of a subtask can be determined by a combination of factors, including the severity of the first vulnerability information (such as CVSS score), whether there is already exploitable code (such as whether a Proof of Concept exists), whether it affects internal assets, the importance level of the assets, and the time limit for handling them.

[0106] When a subtask corresponds to one target execution model, the execution mode can be either serial or parallel, depending on the dependencies between the subtask and other subtasks. When a subtask corresponds to multiple target execution models, a multi-model cross-validation mode can be used, where multiple target execution models execute the same subtask respectively, and their respective outputs are cross-validated to obtain the final result of the subtask.

[0107] In some embodiments, in S140, the actual input and output information of each target execution model can be stored in an evidence ledger. The evidence ledger may specifically include information such as evidence identifier, evidence source citation, execution model name, execution model version, input information hash value, model output confidence level, manual confirmation marker, timestamp, and tracing identifier, to prevent model illusion and support audit traceability. The evidence ledger can be implemented using a relational database, log system, or object storage.

[0108] After the target execution model is completed, on the one hand, the large language model can read the task execution plan to determine what problem this sub-task needs to solve, what inputs are required, and what outputs should be made; on the other hand, it can read the evidence ledger to obtain the actual input and output information corresponding to the sub-task. Subsequently, the large language model can perform the following verification actions based on the task execution plan and the evidence ledger: 1) Check whether the output information of the target execution model includes the four fields of execution result, confidence level, evidence citation information, and model version; 2) Check whether the target execution model allows the execution of this sub-task and whether the input comes from the specified preceding task; 3) Check whether the execution result meets the verification conditions; 4) Check the evidence citation information one by one to determine whether the source is credible, whether the product, version, time, and other information in the evidence are consistent with the execution result, and whether all items that the execution result must prove are supported by evidence. Among them, when checking whether the evidence citation information is credible, it can be determined by the following formula (5): (5) in, For the confidence level of evidence, The confidence level of the execution result. For evidence coverage, For cross-source consistency, This is the normalization function.

[0109] Evidence coverage rate is used to characterize how many items requiring proof for the execution result are supported by evidence. For example, if three items need to be proven and two are supported by evidence, the coverage rate is 2 / 3. Cross-source consistency is used to characterize whether evidence from different sources refers to the same thing. For example, if both vendor announcements and vulnerability databases state that the same version of the same product is affected, the consistency is high; if the version ranges are different, the consistency is low. If the confidence level of the evidence is higher than the confidence level threshold, the check on the evidence citation information can be considered passed.

[0110] If all the above checks pass, the review result is deemed successful. If the evidence is insufficient, a supplementary evidence task can be generated, and a second review will be conducted after the supplementary evidence task is completed. If the evidence is unreliable, the model version is mismatched, or the execution result contradicts the evidence, the result is rejected or transferred to manual confirmation, and the review result is deemed unsuccessful.

[0111] Furthermore, as mentioned above, each subtask can correspond to at least one target execution model. If a subtask corresponds to multiple target execution models and their execution results, in order to ensure the accuracy and reliability of the final execution result, in some embodiments, the execution result corresponding to the subtask is reviewed using a large language model based on the actual input information, output information, and task execution plan of the target execution model, to obtain a review result. Specifically, this may include: Based on the actual input information, output information and task execution plan, multiple execution results are reviewed separately to obtain multiple sub-review results; The execution result that passes the sub-review is designated as the first execution result; In the case where there are multiple first execution results and the multiple first execution results conflict, the evidence coverage and evidence source credibility corresponding to the multiple first execution results are determined based on the evidence citation information. Based on evidence coverage and the credibility of evidence sources, a comprehensive score is determined for multiple first execution results; The first execution result with the highest overall score is determined as the target execution result.

[0112] Here, the credibility of the evidence source characterizes the reliability of the intelligence source or data source to which the evidence fragment supporting the execution result belongs.

[0113] This application's embodiments comprehensively score and select the best among the first execution results of the conflict by introducing evidence coverage and evidence source credibility. This can effectively solve the problem of inconsistent outputs from multiple models, improve the objectivity and interpretability of conflict resolution, avoid judgment bias caused by misjudgment of a single model, and ensure the accuracy and reliability of the final execution results.

[0114] In some embodiments, in S150, if the review results for multiple subtasks all pass, a vulnerability assessment result can be generated based on the execution results, confidence levels, and evidence citation information corresponding to each of the multiple subtasks. Specifically, the vulnerability assessment result may include a vulnerability identifier and its corresponding component matching results, attack verification analysis results, target attack chain, patch extraction results, evidence chain, and manually confirmed items. Furthermore, subsequent information such as the target asset, risk score, risk level, and remediation recommendations corresponding to the vulnerability identifier can also be added to the vulnerability assessment result.

[0115] Furthermore, in order to generate standardized and traceable vulnerability assessment reports, in some embodiments, after S150 above, the method may further include: If the verification results for multiple sub-tasks are all passed, the report generation model is invoked. Based on the report generation template and the vulnerability assessment results, a vulnerability assessment report is generated.

[0116] Here, the report generation template can include sections such as vulnerability title, vulnerability overview, scope of impact, exploitation conditions, remediation recommendations, detection methods, and reporting summary. The vulnerability assessment results can include the execution results, confidence levels, and evidence citation information for each subtask.

[0117] As an example, the report generation model can extract relevant fields from the vulnerability assessment results based on the report generation template, generating a vulnerability assessment report that includes at least one of the following: vulnerability title, vulnerability overview, scope of impact, exploitation conditions, remediation suggestions, detection methods, and reporting summary. The report also references evidence numbers from the evidence ledger to ensure that the report content is verifiable and that no conclusions are generated without supporting evidence. This vulnerability assessment report can be used for manual review and regulatory reporting.

[0118] This application embodiment automatically generates standardized vulnerability assessment reports by calling a report generation model based on a report generation template and vulnerability assessment results. This reduces the workload of manual report writing and improves the efficiency and standardization of report generation. At the same time, by forcibly referencing evidence numbers in the evidence ledger, it ensures that the source of the report content is traceable and the conclusions are verifiable, thereby improving the credibility and compliance of the vulnerability assessment results.

[0119] Based on this, once the vulnerability assessment results are obtained, the internal assets affected by the vulnerability can be dealt with accordingly.

[0120] Specifically, as described above, the vulnerability assessment results can include multiple software components from the software bill of materials and their respective component matching degrees. Additionally, the software bill of materials can include the dependencies between multiple software components.

[0121] Therefore, in order to provide a reliable list of target assets for subsequent disposal and improve the accuracy of disposal decisions, in some embodiments, such as Figure 2 As shown, after S150 above, the vulnerability assessment method may also include steps S210-S240.

[0122] S210, Software components with a matching degree greater than the matching degree threshold are identified as target components.

[0123] Here, the matching threshold may include a first matching threshold and a second matching threshold. Target components may include high-confidence hit components whose component matching degree is greater than or equal to the first matching threshold, and low-confidence hit components whose component matching degree is less than the first matching threshold but not less than the second matching threshold, and which have passed verification (manual confirmation or secondary verification).

[0124] S220, based on the dependencies between multiple software components, identifies the dependent components that have a dependency relationship with the target component.

[0125] Here, the dependencies between multiple software components can include direct dependencies, transitive dependencies, and development-only dependencies.

[0126] S230: Based on the component information of the target component and dependent components, query the asset library for target assets that match the target component and dependent components.

[0127] Here, component information can include component name, package path (the deployment path of the component in the business system), application system, server IP, image summary, etc. By querying one or more of the above component information, all target assets matching at least one of the target component and its dependent components can be located in the asset repository. In addition to the target asset, the query results can also include specific information such as the server, application system, deployment path, and image to which the target asset belongs. Subsequently, the query results are written to an asset snapshot, ensuring that even if the external asset repository changes subsequently, the asset status at the time of the assessment remains traceable, guaranteeing the auditability of the assessment conclusions.

[0128] S240, Generate disposal information for the target asset.

[0129] Once the target asset is identified, disposal information for the target asset can be generated to guide subsequent remediation or avoidance actions.

[0130] The embodiments of this application improve the accuracy and comprehensiveness of the impact range determination by filtering target components through the above-mentioned multi-level matching degree threshold, expanding the scope of influence based on dependency relationships, and accurately locating the affected target assets in the asset pool. This provides a reliable list of target assets for subsequent disposal and improves the accuracy of disposal decisions.

[0131] In some embodiments, the above-mentioned S240 may specifically include: Obtain the risk level and responsible department mapping relationship of the target asset, including the correspondence between the target asset and the responsible department; Based on the risk level, determine the timeframe for disposing of the target assets; Based on the mapping relationship between responsible departments, the responsible departments for the target assets are determined; Based on risk level, disposal time limit, and responsible department, disposal information for the target asset is generated.

[0132] Here, the responsibility department mapping relationship can be used to map target assets to their respective operation and maintenance or business responsibility departments. Additionally, risk levels can include severe, high-risk, medium-risk, and low-risk. Based on the risk level, the timeframe for handling the target asset can be determined as follows: if the risk level is severe, the timeframe is set to confirm within 24 hours and complete mitigation within 72 hours; if the risk level is high-risk, the timeframe is set to confirm within 3 business days and complete mitigation within 7 business days; if the risk level is medium-risk or low-risk, the timeframe is correspondingly relaxed or only monitoring and observation are required. Setting handling timeframes ensures that high-risk vulnerabilities receive priority and rapid response and handling.

[0133] The disposal information in this application embodiment can be generated from multiple perspectives such as vulnerabilities, assets, business systems, and responsible departments. Specifically, it may include a list of affected assets (including at least one target asset) and at least one of the following for each target asset in the list: vulnerability information, risk level, disposal time limit, disposal suggestions, responsible department, deployment location, and the business system to which it belongs.

[0134] Furthermore, as mentioned above, the vulnerability assessment results may also include the exploitability maturity of the attack verification code snippets. Based on this, to improve the accuracy of risk ranking and the rationality of resource allocation, thereby ensuring that high-risk vulnerabilities receive an effective response within the optimal timeframe, in some embodiments, the aforementioned acquisition of the risk level of the target asset may specifically include: The target asset is identified by multiple risk factors, including the vulnerability score (CVSS score) in the first vulnerability information, the exploitability maturity, the supply chain priority of the target component, regulatory timeliness information, the exposure surface score of the target asset, and business importance. Using a large language model, based on at least one of the following: availability maturity, exposure information of the target asset, supply chain attributes of the target component, and regulatory reporting timeliness, the bottleneck type is determined. The bottleneck type includes at least one of the following: attack verification activity bottleneck, internet exposure bottleneck, supply chain core component bottleneck, and regulatory reporting timeliness bottleneck. Based on the type of bottleneck to be addressed, dynamic weights are determined for each of the multiple risk factors. Based on the dynamic weights corresponding to multiple risk factors, the risk scores are obtained by weighted summation of the multiple risk factors. The risk level of the target asset is determined based on the risk score.

[0135] Here, obtaining the exposure score of the target asset can specifically include: Obtain the exposure attributes of the target asset, which include at least one of the following: whether the target asset is exposed to the Internet, whether the target asset is deployed in a production environment, the security level of the target asset, and whether the vulnerability port corresponding to the target asset is reachable; Based on the exposure surface attribute, determine the exposure surface score of the target asset.

[0136] Specifically, the exposure score of the target asset can be determined using the following formula (6). : (6) in, For internet exposure marking, For production environment labeling, Mark the vulnerability service / port as reachable. For safety protection.

[0137] Furthermore, the bottleneck in disposal can be understood as the core constraint with the greatest risk impact. In this embodiment, after obtaining multiple risk factors, instead of using fixed weights to weight these factors and determine the risk score of the target asset, it uses a large language model to first obtain the latest availability maturity, exposure information of the target asset, supply chain attributes of the target component, and regulatory reporting timeliness. Based on this information, it determines the current type of disposal bottleneck, then determines the dynamic weights corresponding to each of the multiple risk factors based on the bottleneck type, and finally, based on these dynamic weights, weights the multiple risk factors and sums them to obtain the risk score. Specifically, the bottleneck type can be determined based on at least one of the following: exploitability maturity, exposure information of the target asset, supply chain attributes of the target component, and regulatory reporting timeliness. Specifically, this can include: when the exploitability maturity of the first vulnerability information is high, it indicates a high probability of actual exploitation and an urgent attack window, requiring priority assessment and handling; therefore, the bottleneck type can be identified as an attack verification activity bottleneck. When the exposure information of the target asset indicates that the asset has opened the service port corresponding to the vulnerability and that port is accessible from the internet, it indicates that the vulnerability has the network conditions to be directly exploited by external attackers, and the internet exposure risk is prominent; therefore, the bottleneck type can be identified as an internet exposure bottleneck. When the supply chain attributes of the target component indicate that the component is a critical dependency of core business applications or is located upstream in the supply chain (such as basic libraries, middleware, etc.) and has a wide impact, it indicates that once the component is exploited, it will cause a large-scale impact, and the supply chain risk is prominent; therefore, the bottleneck type can be identified as a supply chain core component bottleneck. When the regulatory reporting timeliness indicates that the vulnerability must be reported to the regulatory agency within the specified time limit, it indicates that the pressure for compliance reporting is urgent, and overdue reporting may lead to compliance risks; therefore, the bottleneck type can be identified as a regulatory reporting timeliness bottleneck.

[0138] Furthermore, each risk factor can correspond to a base weight. After determining the bottleneck type, the base weight can be dynamically adjusted based on the bottleneck type to determine the latest dynamic weight. Specifically, the dynamic weight is obtained by increasing the base weight corresponding to the bottleneck type. In some embodiments, the adjustment range of the dynamic weight can be determined according to the severity of the bottleneck. The sum of the adjusted dynamic weights always equals 1 to ensure that the relative relationship between the risk factors is not imbalanced.

[0139] Specifically, the risk score of the target asset can be determined using the following formula (7). : (7) in, Rate the vulnerabilities To utilize maturity, To score the exposure area, Based on business importance, Prioritize the supply chain for the target components. To ensure timely monitoring of information, For dynamic weights.

[0140] This application embodiment uses a large language model to determine the type of bottleneck to be addressed based on at least one of the following: availability maturity, exposure information of the target asset, supply chain attributes of the target component, and regulatory reporting timeliness. Based on the type of bottleneck to be addressed, dynamic weights are determined for multiple risk factors. This allows risk prioritization to adaptively focus on the most pressing risk dimension, avoiding the underestimation of high-risk vulnerabilities or the over-prioritization of non-critical vulnerabilities due to fixed weights. This improves the accuracy of risk prioritization and the rationality of resource allocation, thereby ensuring that high-risk vulnerabilities are effectively responded to within the optimal timeframe.

[0141] Furthermore, as described above, the vulnerability assessment results may also include the attack characteristics of the attack verification code snippet and the target attack chain. Based on this, to improve the efficiency and accuracy of policy generation and enhance the effectiveness of the protection strategy, in some embodiments, after S240 above, the method may further include: Obtain the protection device template and policy generation constraints. The protection device template includes the policy format specification corresponding to each protection device, and the policy generation constraints include the restrictions on policy generation. Using a large language model, candidate protection strategies are generated based on handling information, target attack chain, attack characteristics, protection device templates, and policy generation constraints. The candidate protection strategies include at least one of the following: file detection strategy, traffic detection strategy, access interception strategy, log retrieval and investigation strategy, asset batch detection strategy, and temporary protection and mitigation strategy.

[0142] Here, the large language model, based on the target assets and risk levels, attack paths and stages in the target attack chain, and attack characteristics in the handling information, combined with the policy format specifications of each protection device defined in the protection device template, and the applicable scope and false positive constraints in the policy generation constraints, can automatically generate candidate protection policies that meet the requirements of each protection device. These candidate protection policies include at least one of the following: file detection policy, traffic detection policy, access interception policy, log retrieval and investigation policy, asset batch detection policy, and temporary protection and mitigation policy. File detection policies can be implemented using rules from the Yet Another Recursive Acronym (YARA) tool to detect malicious files. Traffic detection policies can be implemented using rules from a high-performance network intrusion detection and prevention engine to detect network attack traffic. Access interception policies, for example, can be implemented using WAF rules to block attack requests targeting vulnerabilities. Log retrieval and investigation policies can be implemented using dedicated log retrieval statements to search for vulnerability exploitation traces in logs. Asset batch detection policies, for example, can be implemented using customized scanner detection scripts to batch detect the presence of the vulnerability in assets. Temporary mitigation strategies can be used to temporarily avoid risks without installing patches.

[0143] In addition, candidate protection strategies can also include the scope of application (such as which assets or business systems they are applicable to), a description of potential sources of false alarms, and rollback recommendations (for quick rollback in case of anomalies after the strategy is released).

[0144] This application embodiment generates targeted strategies based on handling information through a large language model, combined with attack chains and attack characteristics. It automatically generates candidate protection strategies that meet the format requirements of protection devices, which can improve the efficiency and accuracy of strategy generation, as well as enhance the effectiveness of protection strategies.

[0145] Therefore, in order to improve the security and reliability of the deployment of protection strategies, in some embodiments, after generating candidate protection strategies as described above, the method may further include: Obtain normal business request samples and attack request samples; the attack request samples are generated based on attack characteristics. Deploy candidate protection strategies on test assets in an isolated environment, which is independent of the production environment; By testing the assets, normal business request samples and attack request samples were processed separately. The hit rate is determined by the ratio of the number of requests blocked by candidate protection policies in the attack request sample to the total number of requests in the attack request sample. The false positive rate is determined by the ratio of the number of requests that are falsely blocked by candidate protection policies in the normal business request sample to the total number of requests in the normal business request sample. Based on the performance changes before and after the deployment of candidate protection strategies, determine the performance degradation rate of the test assets. If the hit rate is not less than the hit rate threshold, the false alarm rate is not greater than the false alarm rate threshold, and the performance loss rate is not greater than the loss rate threshold, the candidate protection strategy will be determined as the target protection strategy.

[0146] Here, the target asset is deployed in the production environment, while the test asset is an asset with the same configuration as the target asset that is not in the isolated environment. The isolated environment can be implemented based on at least one of the following: sandbox, container, virtual machine, traffic replay platform, simulation service, or offline rule tester.

[0147] In this embodiment of the application, in an isolated environment independent of the production environment, test assets deployed with candidate protection strategies can be used to process normal business request samples and attack request samples respectively. The number of requests incorrectly blocked in the normal business request samples, the number of requests successfully blocked in the attack request samples, and the performance data of the test assets are recorded. Based on the recorded data, the hit rate of the candidate protection strategies in blocking attack request samples, the false positive rate in mistakenly blocking normal business request samples, and the performance degradation rate of the test assets can be calculated.

[0148] Additionally, the hit rate threshold and false alarm rate threshold are 0.85, and the false alarm rate threshold can be, for example, 0.05, and the performance loss rate threshold can be, for example, 0.10. In this embodiment of the application, when the hit rate is not less than the hit rate threshold, the false alarm rate is not greater than the false alarm rate threshold, and the performance loss rate is not greater than the performance loss rate threshold, the candidate protection strategy can be determined as the target protection strategy.

[0149] Otherwise, if any of the hit rate, false alarm rate, and performance loss rate does not meet its corresponding threshold condition, the process can be reversed to regenerate candidate protection strategies using the large language model, or the alternative protection strategy can be downgraded to an observation strategy.

[0150] Thus, through the embodiments of this application, it can be ensured that the protection strategy entering the production environment meets the preset standards in terms of attack detection capability, false alarm control capability, and performance impact, avoiding risks such as missed alarms, false alarms, or business interruptions due to substandard strategy performance, and improving the security and reliability of the protection strategy deployment.

[0151] Therefore, in order to improve the security and controllability of the deployment of protection strategies, in some embodiments, after determining the candidate protection strategy as the target protection strategy, the method may further include: Once the user approves the target protection policy, the target protection policy will be deployed to the first part of the target assets. Obtain the strategy execution status of the first part of the assets; If the strategy's operational status meets the operational conditions, the target protection strategy will be expanded and deployed to all target assets.

[0152] Here, after generating the target protection strategy, information such as the vulnerability evidence chain, asset impact information, strategy verification results, and recommended actions can be displayed to users (e.g., security analysts) to confirm whether the target protection strategy has passed verification. In response to the user's confirmation, at least one of the following can be generated: change order, mitigation order, observation order, or inapplicability confirmation order. The manual confirmation comments are then recorded in a structured manner for subsequent model weight updates.

[0153] Once the user approves the target protection policy, it can be deployed to the first portion of the target assets. This first portion of assets can be pilot assets or assets from a phased rollout. Subsequently, the policy's operational status is obtained for the first portion of assets. This status includes at least one of the following: the execution result of the target protection policy on the first portion of assets, the hit rate, and the rollback status. If the policy's operational status meets the policy's operational conditions, the target protection policy is expanded to all target assets. These operational conditions may include, for example, a target protection policy hit rate not less than a hit rate threshold, a false positive rate not greater than a false positive rate threshold, and a performance penalty rate not greater than a penalty rate threshold.

[0154] This application embodiment, by setting up a gray-scale deployment and policy operation status verification mechanism, verifies the target protection policy with a small-scale pilot asset before the policy is officially and fully launched. This can effectively reduce the risk of large-scale impact on the production environment caused by policy false alarms or performance issues, and improve the security and controllability of the protection policy deployment.

[0155] Furthermore, in some embodiments, after the target protection strategy is deployed to the target asset, at least one of the following can be transmitted back to the security information knowledge graph: deployment status, handling status, and device execution log, to achieve real-time tracking and end-to-end traceability of the handling status. Simultaneously, based on vulnerability assessment results and asset impact information, regulatory reporting materials can be automatically generated. These regulatory reporting materials may include Word reports in Security Operation Center Reporting System (PSOC) format and structured reporting data in CNNVD format. After the user confirms the approval of the aforementioned regulatory reporting materials, they can be submitted to the corresponding regulatory system, and a reporting receipt and audit log will be recorded.

[0156] In addition, in some embodiments, when a policy is issued, a work order is closed, a regulatory receipt is issued, or a false alarm is flagged, at least one of the following can be collected as a feedback event and written into the feedback event table: manual confirmation record, work order closure time, policy hit rate, rollback status, and regulatory receipt result. This feedback event is used to characterize the human evaluation results of the judgment conclusion, the handling effect, and the reported content.

[0157] Subsequently, based on the model, task type, and vulnerability category, at least one of the following can be statistically analyzed for each execution model: historical accuracy, false positive rate, average latency, manual correction rate, and evidence completeness. A model performance evaluation report can then be generated based on the statistical results. Based on this report, abnormal models can be identified, triggering dynamic updates to model weights. This allows for continuous optimization of the scheduling strategy for large language models and the priority selection of execution models, enabling the system to continuously improve itself during ongoing operation.

[0158] Based on this, in order to improve the overall efficiency and accuracy of the system's analysis, in some embodiments, the method may further include: Obtain the historical execution records of each candidate execution model. The historical execution records include the total number of executions, total execution delay, and historical execution results of the candidate execution models. The historical execution results include manual confirmation markers. The human acceptance rate of candidate execution models is determined by the ratio of the number of times manually confirmed as passed to the total number of executions. The false alarm rate of the candidate execution model is determined by the ratio of the number of times manually confirmed as a false alarm to the total number of executions. The first average execution latency of the candidate execution model is determined based on the ratio of total execution latency to total number of executions. The model weights of each candidate execution model are updated based on the human acceptance rate, false alarm rate, and first average execution latency.

[0159] Here, the model weights of each candidate execution model can be updated using the following equation (8): (8) in, For the updated model weights, The model weights before the update. For the rate of acceptance by human, For false alarm rate, This is a delay penalty. The `clip` function can be used to limit the range of weights, preventing the model from being overweighted or overweighted due to a single false positive or delay anomaly.

[0160] The updated model weights are written to the model capability registry and the version number is retained for dynamic selection of candidate execution models during subsequent large model scheduling. Simultaneously, the prompt word template can be updated based on the historical execution records of each candidate execution model, such as adding failure cases and counterexample constraints, thereby enabling the system to continuously optimize itself during ongoing operation.

[0161] This application embodiment dynamically updates the model weights based on the human acceptance rate, false alarm rate, and average execution latency of each candidate execution model. This enables the model scheduling to continuously adapt to actual operational performance, improves the selection priority of high-accuracy and low-latency models, and thus enhances the overall judgment efficiency and accuracy of the system.

[0162] In some embodiments, during or after the execution of the aforementioned steps, the entire vulnerability assessment data can be visualized and audited. Specifically, in response to user front-end access operations or real-time push notifications when high-risk vulnerabilities occur, a visual dashboard is provided. This dashboard may include at least one of the following: vulnerability trends, supply chain vendor popularity, asset impact distribution, model call chain, policy verification results, and reporting status. Furthermore, embodiments of this application support drilling down from risk lists to evidence fragments, model outputs, manual confirmation records, and device execution logs to meet audit traceability requirements.

[0163] Furthermore, upon task completion, reporting completion, or scheduled triggering, all data across the entire chain, including unified intelligence representation objects, task execution plans, model scheduling plans, execution results of each subtask, risk ranking lists, policy verification results, and feedback events, will be archived by vulnerability number, date, and task batch, generating an audit archive package. Hash checksums and traceability indexes will be recorded for subsequent retrospective analysis, model iteration, and compliance auditing. Through visual drill-down and full-chain audit archiving, the vulnerability assessment process becomes explainable, traceable, and auditable, providing comprehensive data support for security operation decisions and regulatory compliance.

[0164] To better understand the above solutions, some specific examples are given based on the above embodiments.

[0165] For example, the vulnerability assessment method provided in this application mainly includes the following steps: S100. Intelligence Gathering and Preprocessing: Gather multi-source vulnerability intelligence and internal asset data, extract entities and structure the collected raw vulnerability information, generate a unified intelligence representation object, and write it into the security information knowledge graph. S200, Task Decomposition and Model Scheduling: Based on the context information in the unified intelligence representation object and security information knowledge graph, the vulnerability assessment task is decomposed using the large language model, generating a task execution plan, and scheduling the target execution model corresponding to each sub-task in the task execution plan according to the capability information of each execution model in the model capability registry. S300, Subtask Execution and Evidence Recording: The corresponding subtasks are executed by the scheduled target execution models respectively. The subtasks may include at least one of the following: component matching subtask, attack verification and analysis subtask, attack chain generation subtask, patch extraction subtask, and report generation subtask. The actual input information, output information, and evidence reference information of each target execution model are written into the evidence ledger. S400, Result Verification and Conflict Resolution: The execution results of each sub-task are verified and conflicts are resolved through a large language model to form the final intelligence analysis result; S500, Asset Impact Matching and Risk Ranking: The final intelligence assessment results are linked with the software bill of materials, asset database and business importance data to identify the affected target assets, and dynamic risk scores are calculated based on the attribute information and vulnerability information of the target assets to generate a disposal list; S600, Strategy Generation, Verification and Disposal: Generate candidate protection strategies based on the disposal list, conduct sandbox verification of candidate protection strategies in an isolated environment, and release the verified target protection strategies to the target assets after manual confirmation, or generate regulatory reporting materials. S700, Feedback Learning and Continuous Optimization: Collect human feedback, handling results and reporting receipts, and update the model weights, prompt word templates and the security information knowledge graph of each execution model based on the collected feedback data to achieve continuous learning and optimization of the system.

[0166] The above steps can be performed by the following devices: intelligence gathering and preprocessing device, task decomposition and model scheduling device, sub-task execution and evidence recording device, asset impact matching and risk ranking device, strategy generation, verification and disposal device, and feedback learning and continuous optimization device. These devices share data through a message bus, security information knowledge graph, evidence ledger, and relational database to collaboratively complete the entire vulnerability assessment process.

[0167] Additionally, the following example illustrates an end-to-end data flow from vulnerability acquisition to handling in one embodiment of this application to facilitate understanding of the feasibility of the invention.

[0168] First, the Common Vulnerabilities and Exposures-X (CVE-X) is obtained synchronously through the NVD interface, and the CPE identifier, general CVSS score, reference link and English description of the vulnerability are parsed out.

[0169] Next, a unified intelligence representation object corresponding to the vulnerability is generated, written into the security information knowledge graph, and an intelligence analysis task event is triggered. The large language model responds to this task event by retrieving software bill of materials data and historical intelligence information from the security information knowledge graph, and generates a task execution plan. This task execution plan includes sub-tasks such as component matching, attack verification analysis, asset impact assessment, risk ranking, and report generation.

[0170] Subsequently, the target execution model executes each sub-task according to the task execution plan, outputting component matching results, attack verification analysis results, patch extraction results, and a draft report, and writes its respective input, output, and evidence citation information into the evidence ledger. The large language model reads the records in the evidence ledger, reviews the execution results of each sub-task, and resolves conflicts, confirming that a total of 12 internal applications are affected by the vulnerability, of which 4 applications are deployed on assets exposed to the Internet.

[0171] Next, the risk ranking device increases the weight of the asset exposure score based on the bottleneck type of "Internet exposure," dynamically calculates the risk score of each affected asset, and generates a risk ranking list. The strategy verification device generates a WAF protection strategy based on the risk ranking list and verifies it in an isolated sandbox environment. After confirming that the false alarm rate is below a preset threshold, it submits the strategy for manual confirmation.

[0172] Finally, after manual confirmation and approval by security analysts, the protection strategy is released to the target assets. Simultaneously, based on the vulnerability assessment results and asset impact information, a Word report in PSOC format and structured reporting data in CNNVD format are generated. The handling results, regulatory feedback, and manual correction records are sent back as feedback data to the model capability registry to update the model weights of the corresponding execution models, enabling continuous learning and optimization of the system.

[0173] In summary, the embodiments of this application construct a collaborative judgment architecture that drives the execution model with a large language model. The large language model serves as the overall control agent for task planning, scheduling, review, and conflict resolution. Multiple lightweight, low-latency execution models undertake specialized sub-tasks such as entity extraction, component matching, attack verification analysis, attack chain generation, patch extraction, and report generation. This approach balances semantic reasoning capabilities, execution efficiency, and result verifiability, effectively solving the problems of high cost, high latency, and uncontrollable output when using a large language model alone, as well as the lack of semantic understanding and task planning capabilities when using a small model or rule engine alone.

[0174] Meanwhile, this application embodiment records the input, output, evidence citation, and manual confirmation information of each execution model through an evidence ledger, ensuring that the judgment conclusions are verifiable and traceable, and avoiding the generation of illusory conclusions without any source by the model; by introducing a bottleneck identification and dynamic weight adjustment mechanism, the risk ranking weight is adaptively adjusted according to factors such as attack verification activity, asset internet exposure, impact of core supply chain components, and regulatory reporting timeliness, so that disposal resources can focus on the most pressing risks and improve the matching degree between risk ranking and actual security operation needs.

[0175] Furthermore, this application's embodiments construct a complete closed-loop process from intelligence gathering, task decomposition, sub-task execution, result verification, asset impact matching, risk ranking, strategy generation and verification, manual confirmation, disposal release and regulatory reporting, to feedback learning. Candidate protection strategies are fully verified in an isolated sandbox environment based on hit rate, false positive rate, and performance overhead before being deployed to the production environment, effectively reducing the impact of policy false positives or performance issues on business operations. Disposal results and manual feedback information are transmitted back to the model capability registry and prompt word templates in real time, driving the system to continuously optimize itself during ongoing operation.

[0176] This application embodiment also links unified intelligence representation objects with security information knowledge graphs to structurally associate multi-source heterogeneous information such as vulnerabilities, products, patches, attack verifications, threat indications, and assets. This enables data transmission between devices through standard data structures such as unified intelligence representation objects, task execution plans, model scheduling plans, and evidence ledgers, ensuring global semantic consistency and data traceability. This system can be applied to scenarios such as enterprise intranet security operations, cybersecurity vendor security operations centers, financial industry security monitoring, government cybersecurity supervision, and university research institutions. It can effectively improve vulnerability assessment efficiency, enhance the accuracy of impact determination, reduce repetitive manual labor, and provide complete data support for compliance audits and continuous improvement.

[0177] Based on the vulnerability assessment method provided in the above embodiments, this application also provides specific implementation methods of the vulnerability assessment device. Please refer to the following embodiments.

[0178] like Figure 3 As shown, a vulnerability assessment device 300 provided in one embodiment of this application includes the following modules: The first acquisition module 310 is used to acquire vulnerability assessment tasks; The decomposition module 320 is used to decompose the vulnerability assessment task through a large language model and generate a task execution plan. The task execution plan includes multiple sub-tasks and their dependencies, as well as the task type, input information, expected output information and acceptance conditions of each sub-task. The execution module 330 is used to call the target execution model that is matched with multiple subtasks to execute multiple subtasks and obtain output information, including execution results, confidence scores, evidence citation information and model versions. The review module 340 is used to review the execution results based on the actual input and output information of the target execution model and the task execution plan through the large language model, and obtain the review results. The first generation module 350 is used to generate vulnerability assessment results based on the execution results, confidence levels, and evidence citation information corresponding to the multiple sub-tasks, when the review results of the multiple sub-tasks are all passed.

[0179] The vulnerability assessment device 300 described above is explained in detail below: In some embodiments, the disassembly module 320 may specifically include: The first acquisition submodule is used to acquire the first vulnerability information and its associated auxiliary analysis information; The decomposition submodule is used to decompose the vulnerability assessment task based on the first vulnerability information and its associated auxiliary assessment information through a large language model, and generate a task execution plan.

[0180] In some embodiments, the first acquisition submodule may specifically include: The first acquisition unit is used to acquire the first vulnerability information; The retrieval unit is used to retrieve auxiliary assessment information associated with the first vulnerability information in the security information knowledge graph. The security information knowledge graph includes multiple security information entities and the entity relationships between them. The security information entities include vulnerability entities and asset entities. Vulnerability entities include at least one of vulnerability entities, product entities, patch entities, attack verification entities, and threat indication entities.

[0181] In some embodiments, the first acquisition unit may specifically include: The data collection subunit is used to collect raw vulnerability information. The extraction sub-unit is used to extract entities from the original vulnerability information to obtain vulnerability class entities. The processing subunit is used to perform structured processing on vulnerability-type entities to obtain second vulnerability information; The first determining subunit is used to determine the credibility of the second vulnerability information based on the entity integrity of the vulnerability-type entity, the source reliability of the second vulnerability information, and the historical false alarm rate. The second determining subunit is used to determine the second vulnerability information as the first vulnerability information when the credibility meets the preset credibility conditions.

[0182] In some embodiments, the vulnerability assessment device 300 may further include: The second acquisition module is used to acquire the performance metrics of multiple candidate execution models before calling the target execution model that matches the multiple subtasks to execute the multiple subtasks. The selection module is used to select the target execution model that matches each subtask from multiple candidate execution models based on performance metrics.

[0183] In some embodiments, performance metrics include at least one of capability labels, average execution latency, security domain labels, execution cost, execution accuracy, and manual correction rate. The task execution plan also includes latency constraints and vulnerability level constraints for each subtask. Based on this, the selection module may specifically include: The first execution submodule is used to perform the following operations for each subtask: The ability matching degree is determined based on the matching degree between ability tags and task types; Determine the latency fit based on the matching degree between the average execution latency and the latency constraint; Based on the matching degree between security domain labels and vulnerability level constraints, the security domain fit is determined. Cost fit is determined based on execution cost, and cost fit is negatively correlated with execution cost; Based on capability matching degree, latency adaptability, security domain adaptability, cost adaptability, execution accuracy and manual correction rate, a basic score is determined for each candidate execution model; Based on the base scores in descending order, the top K candidate execution models are determined as K target execution models, where K is a positive integer.

[0184] In some embodiments, the first execution submodule may specifically be used for: Obtain the model weights for each candidate execution model. The model weights are used to characterize the overall performance of the candidate execution model in historical tasks. Based on the base score and model weight, the final score of each candidate execution model is determined; Based on the final scores in descending order, the top K candidate execution models are determined as the K target execution models.

[0185] In some embodiments, the vulnerability assessment device 300 may further include: The third acquisition module is used to acquire the historical execution records of each candidate execution model. The historical execution records include the total number of executions, total execution delay, and historical execution results of the candidate execution models. The historical execution results include manual confirmation markers. The first determination module is used to determine the human acceptance rate of candidate execution models based on the ratio of the number of times manually confirmed as passed to the total number of executions. The second determination module is used to determine the false alarm rate of the candidate execution model based on the ratio of the number of times manually confirmed as false alarms to the total number of executions. The third determination module is used to determine the first average execution latency of the candidate execution model based on the ratio of total execution latency to total number of executions. The update module is used to update the model weights of each candidate execution model based on the human acceptance rate, false alarm rate, and first average execution latency of each candidate execution model.

[0186] In some embodiments, there are multiple target execution models and execution results corresponding to subtasks. Based on this, the review module 340 may specifically include: The review submodule is used to review multiple execution results based on actual input information, output information and task execution plan, and obtain multiple sub-review results; The first determination submodule is used to determine the execution result that passes the sub-review as the first execution result; The second determination submodule is used to determine the evidence coverage and evidence source credibility of each of the multiple first execution results based on the evidence citation information, when there are multiple first execution results and the multiple first execution results conflict. The third determination submodule is used to determine a comprehensive score for multiple first execution results based on evidence coverage and the credibility of evidence sources; The fourth determination submodule is used to determine the first execution result with the highest comprehensive score as the target execution result.

[0187] In some embodiments, the subtask includes a component matching subtask, the target execution model includes a component matching model, and the execution result includes the component matching result. Based on this, the execution module 330 may specifically include: The second execution submodule is used to call the component matching model and perform the following operations: Obtain the first vulnerability information, software bill of materials, product family mapping table and alias mapping table. The first vulnerability information includes the target product name, version range and target manufacturer name corresponding to multiple target products. The software bill of materials includes multiple software components and their corresponding component names, version numbers and manufacturer names. The product family mapping table is used to record the correspondence between different product names belonging to the same product series. The alias mapping table is used to record the correspondence between different spellings of the same product name or the same manufacturer name. Based on the first vulnerability information, software bill of materials, product family mapping table, and alias mapping table, determine the name matching degree, version matching degree, and relationship matching degree between each software component and each target product; Based on name matching degree, version matching degree, and relationship matching degree, determine the component matching degree between each software component and each target product; The component matching result is determined based on multiple software components and their respective component matching degrees.

[0188] In some embodiments, the name matching degree includes component name matching degree, vendor name matching degree, component alias matching degree, and vendor alias matching degree. Based on this, the second execution submodule can specifically be used for: For each software component and each target product, perform the following operations: The component name matching degree is determined based on the text similarity between the component name and the target product name; The matching degree of the manufacturer name is determined based on the text similarity between the manufacturer name and the target manufacturer name; Based on the alias mapping table, determine the first alias relationship between the component name and the target product name, and the second alias relationship between the manufacturer name and the target manufacturer name; Based on the first alias relationship, the component alias matching degree is determined, and based on the second alias relationship, the manufacturer alias matching degree is determined.

[0189] In some embodiments, the second execution submodule may specifically be used for: For each software component and each target product, perform the following operations: Based on the product family mapping table, determine the family relationship between the software component and the target product; Determine the degree of relationship matching based on the same clan.

[0190] In some embodiments, the subtask includes an attack verification analysis subtask, the target execution model includes an attack verification analysis model, and the execution result includes the attack verification analysis result. Based on this, the execution module 330 may specifically include: The third execution submodule is used to invoke the attack verification and analysis model and perform the following operations: Obtain the first vulnerability information, which includes attack verification information and attack vector. The attack verification information includes the attack verification link. Obtain the repository metadata corresponding to the attack verification link; When the attack verification information includes an attack verification code fragment, the attack verification code fragment is identified to determine at least one of the following attack characteristics: whether the attack verification code is an executable script, whether the use of the attack verification code fragment requires authentication, and whether the attack verification code fragment contains a remote command execution chain. Based on attack vectors, attack characteristics, and repository metadata, the exploit maturity of attack verification code snippets is determined; Based on attack characteristics and exploit maturity, the results of attack verification analysis are determined.

[0191] In some embodiments, the subtask includes an attack chain generation subtask, the target execution model includes an attack chain generation model, and the execution result includes the target attack chain. Based on this, the execution module 330 may specifically include: The fourth execution submodule is used to call the attack chain generation model and perform the following operations: Obtain the first vulnerability information, attack chain generation template, and attack chain verification analysis results. The first vulnerability information includes attack vectors. Retrieve network connectivity relationships between target asset entities associated with the first vulnerability information from the security information knowledge graph; Obtain asset servicing exposure information of the target asset entity; An initial attack chain is generated based on the attack chain generation template, attack vectors, attack verification analysis results, network connectivity relationships between target asset entities, and asset service exposure information. The initial attack chain is verified, and the verification result is obtained. If the verification result is successful, the initial attack chain will be identified as the target attack chain.

[0192] In some embodiments, the first vulnerability information also includes a version range. Based on this, the fourth execution submodule can specifically be used for: Based on the asset service exposure information, verify whether the assets corresponding to each attack node in the initial attack chain have opened the service port corresponding to the first vulnerability information, whether they are running the service corresponding to the first vulnerability information, and whether the software version corresponding to the service falls within the version range, and obtain the first verification result. Based on the network connectivity between target asset entities, verify whether the network jumps between each attack node in the initial attack chain are reachable to obtain the second verification result; The third verification result is obtained by verifying whether a logically coherent chain of evidence can be formed between the attack nodes in the initial attack chain, and whether the timeline of each attack node is reasonable. The verification result is determined based on the first verification result, the second verification result, and the third verification result.

[0193] In some embodiments, the subtask includes a patch extraction subtask, the target execution model includes a patch extraction model, and the execution result includes the patch extraction result. Based on this, the execution module 330 may specifically include: The fifth execution submodule is used to call the target execution model that matches each of the multiple subtasks to execute the multiple subtasks and obtain the output information, including: Extract the model using patches and perform the following operations: Obtain the patch source text corresponding to the version sequence rules and the first vulnerability information. The first vulnerability information includes the target product, and the version sequence rules include the recommended level of each software version corresponding to the target product. Extract patch information from the patch source text; the patch information includes the patch version. Based on version sequence rules, determine the recommended version corresponding to the target product; If the patch version matches the recommended version, the patch information will be identified as the patch extraction result.

[0194] In some embodiments, the vulnerability assessment device 300 may further include: The second generation module is used to call the report generation model after generating the vulnerability assessment results, and if the review results of multiple sub-tasks are all passed, to generate a vulnerability assessment report based on the report generation template and the vulnerability assessment results.

[0195] In some embodiments, the vulnerability assessment result includes multiple software components in the software bill of materials and their respective component matching degrees, and the software bill of materials includes the dependencies between the multiple software components. Based on this, the vulnerability assessment device 300 may further include: The fourth determination module is used to identify software components with a component matching degree greater than the matching degree threshold as target components after generating the vulnerability assessment results; The fifth determination module is used to determine the dependent components that have a dependency relationship with the target component based on the dependency relationships between multiple software components; The query module is used to query the asset library for target assets that match the target component and dependent components based on the component information of the target component and dependent components. The third generation module is used to generate disposal information for the target assets.

[0196] In some embodiments, the third generation module may specifically include: The second acquisition submodule is used to acquire the risk level and the mapping relationship between the responsible department of the target asset. The mapping relationship between the responsible department includes the correspondence between the target asset and the responsible department. The fifth submodule is used to determine the disposal timeframe for the target asset based on the risk level. The sixth submodule is used to determine the responsible department for the target asset based on the mapping relationship between responsible departments. The generation submodule is used to generate disposal information for target assets based on risk level, disposal time limit, and responsible department.

[0197] In some embodiments, the vulnerability assessment results also include the exploit maturity of the attack verification code snippet. Based on this, the second acquisition submodule may specifically include: The second acquisition unit is used to acquire multiple risk factors of the target asset. These risk factors include the vulnerability score, exploitability maturity, supply chain priority of the target component, regulatory timeliness information, exposure score of the target asset, and business importance from the first vulnerability information. The first determining unit is used to determine the bottleneck type by using a large language model based on at least one of the following: availability maturity, exposure information of the target asset, supply chain attributes of the target component, and regulatory reporting timeliness. The bottleneck type includes at least one of the following: attack verification activity bottleneck, Internet exposure bottleneck, supply chain core component bottleneck, and regulatory reporting timeliness bottleneck. The second determining unit is used to determine the dynamic weights of multiple risk factors based on the type of bottleneck to be addressed. The calculation unit is used to perform a weighted summation of multiple risk factors based on their respective dynamic weights to obtain a risk score. The third determining unit is used to determine the risk level of the target asset based on the risk score.

[0198] In some embodiments, the second acquisition unit may specifically include: The acquisition sub-unit is used to acquire the exposure surface attributes of the target asset. The exposure surface attributes include at least one of the following: whether the target asset is exposed to the Internet, whether the target asset is deployed in a production environment, the security protection level of the target asset, and whether the vulnerability port corresponding to the target asset is reachable. The third determining sub-unit is used to determine the exposure score of the target asset based on the exposure surface attribute.

[0199] In some embodiments, the vulnerability assessment results also include attack characteristics of the attack verification code snippet and the target attack chain. Based on this, the vulnerability assessment device 300 may further include: The fourth acquisition module is used to acquire the protection equipment template and strategy generation constraints after generating the disposal information of the target asset. The protection equipment template includes the strategy format specifications corresponding to each protection equipment, and the strategy generation constraints include the restrictions on strategy generation. The fourth generation module is used to generate candidate protection strategies based on the handling information, target attack chain, attack characteristics, protection device templates and policy generation constraints through a large language model. The candidate protection strategies include at least one of the following: file detection strategy, traffic detection strategy, access interception strategy, log retrieval and investigation strategy, asset batch detection strategy, and temporary protection and mitigation strategy.

[0200] In some embodiments, the target asset is deployed in a production environment. Based on this, the vulnerability assessment device 300 may further include: The fifth acquisition module is used to acquire normal business request samples and attack request samples after generating candidate protection strategies. The attack request samples are generated based on attack characteristics. The first deployment module is used to deploy candidate protection strategies on test assets in an isolated environment, which is independent of the production environment. The processing module is used to process normal business request samples and attack request samples separately using test assets; The sixth determination module is used to determine the hit rate based on the ratio of the number of requests blocked by the candidate protection strategy in the attack request sample to the total number of requests in the attack request sample. The seventh determination module is used to determine the false alarm rate based on the ratio of the number of requests that were mistakenly blocked by the candidate protection strategy in the normal business request sample to the total number of requests in the normal business request sample. The eighth determination module is used to determine the performance degradation rate of the test assets based on the performance changes before and after the deployment of candidate protection strategies. The ninth determination module is used to determine the candidate protection strategy as the target protection strategy when the hit rate is not less than the hit rate threshold, the false alarm rate is not greater than the false alarm rate threshold, and the performance loss rate is not greater than the loss rate threshold.

[0201] In some embodiments, the vulnerability assessment device 300 may further include: The second deployment module is used to deploy the target protection policy to the first part of the target assets after the candidate protection policy is determined as the target protection policy and the user confirms the target protection policy. The sixth acquisition module is used to acquire the strategy operation status of the first part of the assets; The third deployment module is used to expand the deployment of the target protection policy to all target assets when the policy operation status meets the policy operation conditions.

[0202] This application embodiment utilizes a large language model to decompose the vulnerability assessment task, generating a task execution plan containing multiple sub-tasks and their dependencies. It also calls target execution models matched to each sub-task to execute them. This fully leverages the advantages of the large language model in semantic understanding, task planning, and logical reasoning, as well as the high efficiency and low cost of the target execution model in high-frequency, specialized sub-tasks. The collaborative division of labor between the two effectively shortens the overall assessment time and improves vulnerability assessment efficiency. Furthermore, by utilizing the large language model, and based on the actual input and output information of the target execution model (including execution results, confidence levels, evidence citations, and model version) and the task execution plan (including the task type, input information, expected output information, and acceptance conditions for each sub-task), the execution results are reviewed to ensure that the execution of each sub-task meets the expected goals. Thus, by generating vulnerability assessment results based on the execution results, confidence levels, and evidence citations of each sub-task, assuming all review results for multiple sub-tasks pass, the accuracy of the assessment is improved while maintaining efficiency.

[0203] Based on the vulnerability assessment method provided in the above embodiments, this application also provides specific implementation methods for electronic devices. Figure 4 A schematic diagram of the structure of an electronic device provided in one embodiment of this application is shown.

[0204] like Figure 4 As shown, the electronic device 400 may include a processor 410 and a memory 420 storing computer program instructions.

[0205] Specifically, the processor 410 may include a central processing unit (CPU), an application specific integrated circuit (ASIC), or one or more integrated circuits that can be configured to implement the embodiments of this application.

[0206] Memory 420 may include mass storage for data or instructions. For example, and not limitingly, memory 420 may include a hard disk drive (HDD), floppy disk drive, flash memory, optical disk, magneto-optical disk, magnetic tape, or Universal Serial Bus (USB) drive, or a combination of two or more of these. Where suitable, memory 420 may include removable or non-removable (or fixed) media. Where suitable, memory 420 may be internal or external to electronic device 400. In a particular embodiment, memory 420 is a non-volatile solid-state memory.

[0207] In specific embodiments, the memory 420 may be implemented as a read-only memory (ROM), random access memory (RAM), static storage device, dynamic storage device, etc. The memory 420 may store the operating system and other applications. When the technical solutions provided in the embodiments of this specification are implemented through software or firmware, the relevant program code is stored in the memory 420 and executed by the processor 410. The processor 410 reads and executes the computer program instructions stored in the memory 420 to implement any of the vulnerability assessment methods in the above embodiments.

[0208] The processor 410 reads and executes computer program instructions stored in the memory 420 to implement any of the vulnerability assessment methods in the above embodiments.

[0209] In one example, the electronic device 400 may also include a communication interface 430 and a bus 440. For example, Figure 4 As shown, the processor 410, memory 420, and communication interface 430 are connected through bus 440 and complete communication with each other.

[0210] The communication interface 430 is mainly used to realize communication between various modules, devices, units and / or equipment in the embodiments of this application.

[0211] Bus 440 includes hardware, software, or both, that couples components of an electronic device together. For example, and not limitingly, the bus may include an Accelerated Graphics Port (AGP) or other graphics bus, an Enhanced Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a Hyper Transport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an Infinite Bandwidth Interconnect, a Low Pin Count (LPC) bus, a memory bus, a Micro Channel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-E) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association Local Bus (VLB) bus, or other suitable buses, or a combination of two or more of these. Where appropriate, bus 440 may include one or more buses. Although specific buses are described and illustrated in the embodiments of this application, this application considers any suitable bus or interconnection.

[0212] For example, the electronic device 400 can be a mobile phone, tablet computer, laptop computer, handheld computer, in-vehicle electronic device, ultra-mobile personal computer (UMPC), netbook, or personal digital assistant (PDA), etc.

[0213] The electronic device can execute the vulnerability assessment method in the embodiments of this application, thereby achieving a combination of Figures 1 to 2 The vulnerability assessment method described herein, and the beneficial effects of the corresponding method implementations, will not be elaborated further here.

[0214] Furthermore, in conjunction with the vulnerability assessment methods in the above embodiments, this application embodiment can provide a computer-readable storage medium for implementation. This computer-readable storage medium stores computer program instructions; when these computer program instructions are executed by a processor, they implement any of the vulnerability assessment methods in the above embodiments. Examples of such computer-readable storage media include non-transitory computer-readable storage media, such as read-only memory (ROM).

[0215] The computer program instructions stored in the storage medium of the above embodiments are used to cause the computer to execute the vulnerability assessment method as shown in any of the above embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.

[0216] Based on the vulnerability assessment methods described in the above embodiments, this application can provide a computer program product for implementation. When the instructions in this computer program product are executed by the processor of an electronic device, they implement any of the vulnerability assessment methods described in the above embodiments.

[0217] The computer program products of the above embodiments are used to implement the vulnerability assessment method shown in any of the above embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.

[0218] It should be clarified that this application is not limited to the specific configurations and processes described above and shown in the figures. For the sake of brevity, detailed descriptions of known methods are omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of this application is not limited to the specific steps described and shown. Those skilled in the art can make various changes, modifications, and additions, or change the order of steps, after understanding the spirit of this application.

[0219] The functional blocks shown in the above-described block diagram can be implemented as hardware, software, firmware, or a combination thereof. When implemented in hardware, they can be, for example, electronic circuits, application-specific integrated circuits (ASICs), appropriate firmware, plug-ins, function cards, etc. When implemented in software, the elements of this application are programs or code segments used to perform the required tasks. Programs or code segments can be stored on a machine-readable medium or transmitted over a transmission medium or communication link via data signals carried on a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, fiber optic media, radio frequency (RF) links, etc. Code segments can be downloaded via computer networks such as the Internet, intranets, etc.

[0220] It should also be noted that the exemplary embodiments mentioned in this application describe methods or systems based on a series of steps or apparatus. However, this application is not limited to the order of the above steps; that is, the steps can be performed in the order mentioned in the embodiments, or in a different order, or several steps can be performed simultaneously.

[0221] The aspects of this application have been described above with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It should be understood that each block in the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing apparatus to produce a machine such that these instructions, executable via the processor of the computer or other programmable data processing apparatus, enable the implementation of the functions / actions specified in one or more blocks of the flowchart illustrations and / or block diagrams. Such a processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor, or a field-programmable logic circuit. It is also understood that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can also be implemented by dedicated hardware performing the specified functions or actions, or can be implemented by a combination of dedicated hardware and computer instructions.

[0222] The above description is merely a specific implementation of this application. Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, modules, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here. It should be understood that the protection scope of this application is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in this application, and these modifications or substitutions should all be covered within the protection scope of this application.

Claims

1. A vulnerability assessment method, characterized in that, include: Obtain vulnerability assessment tasks; The vulnerability assessment task is broken down using a large language model to generate a task execution plan. The task execution plan includes multiple sub-tasks and their dependencies, as well as the task type, input information, expected output information, and acceptance conditions for each sub-task. The target execution model matched with the sub-tasks is invoked to execute the sub-tasks respectively, and output information is obtained, including execution results, confidence scores, evidence citation information and model version; Using the large language model, the execution result is reviewed based on the actual input information of the target execution model, the output information, and the task execution plan to obtain the review result; If the verification results for all the sub-tasks are passed, a vulnerability assessment result is generated based on the execution results, confidence levels, and evidence citation information for each of the sub-tasks.

2. The method according to claim 1, characterized in that, The step of breaking down the vulnerability assessment task using a large language model and generating a task execution plan includes: Obtain information about the primary vulnerability and related auxiliary assessment information; Using the large language model, based on the first vulnerability information and its associated auxiliary analysis information, the vulnerability analysis task is decomposed to generate the task execution plan.

3. The method according to claim 2, characterized in that, The acquisition of the first vulnerability information and its associated auxiliary analysis information includes: Obtain the information about the first vulnerability; Retrieve auxiliary analysis information associated with the first vulnerability information from the security information knowledge graph. The security information knowledge graph includes multiple security information entities and the entity relationships between them. The security information entities include vulnerability entities and asset entities. The vulnerability entities include at least one of vulnerability entities, product entities, patch entities, attack verification entities, and threat indication entities.

4. The method according to claim 3, characterized in that, Obtaining the first vulnerability information includes: Collect raw vulnerability information; Entity extraction is performed on the original vulnerability information to obtain the vulnerability class entity; The vulnerability-type entities are processed in a structured manner to obtain the second vulnerability information; The credibility of the second vulnerability information is determined based on the entity integrity of the vulnerability-type entity, the source reliability of the second vulnerability information, and the historical false alarm rate. If the credibility meets the preset credibility conditions, the second vulnerability information is determined as the first vulnerability information.

5. The method according to claim 1, characterized in that, Before invoking the target execution model that matches each of the multiple subtasks to execute the multiple subtasks, the method further includes: Obtain performance metrics for multiple candidate execution models; Based on the performance metrics, a target execution model matching each subtask is selected from the plurality of candidate execution models.

6. The method according to claim 5, characterized in that, The performance metrics include at least one of capability tags, average execution latency, security domain tags, execution cost, execution accuracy, and manual correction rate. The task execution plan also includes latency constraints and vulnerability level constraints for each subtask. The step of selecting a target execution model that matches each subtask from among the multiple candidate execution models based on the performance metrics includes: For each of the subtasks, perform the following operations: The ability matching degree is determined based on the matching degree between the ability tag and the task type; The latency fit is determined based on the matching degree between the average execution latency and the latency constraint; The security domain fit is determined based on the matching degree between the security domain label and the vulnerability level constraint; Cost fit is determined based on the execution cost, and the cost fit is negatively correlated with the execution cost; Based on the capability matching degree, the latency adaptability, the security domain adaptability, the cost adaptability, the execution accuracy, and the manual correction rate, a basic score is determined for each candidate execution model; Based on the basic scores in descending order, the top K candidate execution models are determined as K target execution models, where K is a positive integer.

7. The method according to claim 6, characterized in that, The process of determining the top K candidate execution models as K target execution models according to the descending order of the basic scores includes: Obtain the model weight for each candidate execution model, the model weight being used to characterize the overall performance of the candidate execution model in historical tasks; Based on the base score and the model weight, the final score of each candidate execution model is determined; Based on the final scores in descending order, the top K candidate execution models are determined as K target execution models.

8. The method according to claim 7, characterized in that, The method further includes: Obtain the historical execution records of each candidate execution model. The historical execution records include the total number of executions, total execution delay, and historical execution results of the candidate execution models. The historical execution results include a manual confirmation marker. The human acceptance rate of the candidate execution model is determined based on the ratio of the number of times the manual confirmation is marked as passed to the total number of executions. The false alarm rate of the candidate execution model is determined based on the ratio of the number of times manually confirmed as false alarms to the total number of executions. The first average execution latency of the candidate execution model is determined based on the ratio of the total execution latency to the total number of executions. The model weights of each candidate execution model are updated based on the human acceptance rate, the false alarm rate, and the first average execution latency of each candidate execution model.

9. The method according to claim 1, characterized in that, Each subtask corresponds to multiple target execution models and their execution results. The execution results are reviewed using the large language model, based on the actual input information of the target execution model, the output information, and the task execution plan, to obtain review results, including: Based on the actual input information, the output information, and the task execution plan, multiple execution results are reviewed to obtain multiple sub-review results; The execution result that passes the sub-review is determined as the first execution result; If there are multiple first execution results and the multiple first execution results conflict, the evidence coverage rate and evidence source credibility corresponding to the multiple first execution results are determined based on the evidence citation information. Based on the evidence coverage and the credibility of the evidence source, a comprehensive score is determined for multiple first execution results; The first execution result with the highest comprehensive score is determined as the target execution result.

10. The method according to claim 1, characterized in that, The subtasks include component matching subtasks, the target execution model includes a component matching model, and the execution result includes a component matching result; the step of calling the target execution model that matches the multiple subtasks respectively to execute the multiple subtasks and obtain output information includes: Invoke the component matching model and perform the following operations: Obtain first vulnerability information, software bill of materials, product family mapping table and alias mapping table. The first vulnerability information includes the target product name, version range and target manufacturer name corresponding to multiple target products. The software bill of materials includes multiple software components and their respective component names, version numbers and manufacturer names. The product family mapping table is used to record the correspondence between different product names belonging to the same product series. The alias mapping table is used to record the correspondence between different spellings of the same product name or the same manufacturer name. Based on the first vulnerability information, the software bill of materials, the product family mapping table, and the alias mapping table, determine the name matching degree, version matching degree, and relationship matching degree between each software component and each target product; Based on the name matching degree, the version matching degree, and the relationship matching degree, the component matching degree between each software component and each target product is determined; The component matching result is determined based on the multiple software components and their respective component matching degrees.

11. The method according to claim 10, characterized in that, The name matching degree includes component name matching degree, manufacturer name matching degree, component alias matching degree and manufacturer alias matching degree; Determining the name matching degree includes: For each of the software components and each of the target products, perform the following operations: The matching degree of the component name is determined based on the text similarity between the component name and the target product name; The matching degree of the manufacturer name is determined based on the text similarity between the manufacturer name and the target manufacturer name; Based on the alias mapping table, a first alias relationship between the component name and the target product name, and a second alias relationship between the manufacturer name and the target manufacturer name are determined; Based on the first alias relationship, the matching degree of the component alias is determined, and based on the second alias relationship, the matching degree of the manufacturer alias is determined.

12. The method according to claim 10, characterized in that, Determining the relationship matching degree includes: For each of the software components and each of the target products, perform the following operations: Based on the product family mapping table, the family relationship between the software component and the target product is determined; Based on the aforementioned family relationship, the relationship matching degree is determined.

13. The method according to claim 1, characterized in that, The subtask includes an attack verification and analysis subtask, the target execution model includes an attack verification and analysis model, and the execution result includes the attack verification and analysis result; The invocation of the target execution model that matches each of the multiple subtasks executes the multiple subtasks to obtain output information, including: Invoke the attack verification and analysis model and perform the following operations: Obtain first vulnerability information, which includes attack verification information and attack vector, wherein the attack verification information includes an attack verification link; Obtain the repository metadata corresponding to the attack verification link; If the attack verification information includes an attack verification code fragment, the attack verification code fragment is identified to determine at least one of the following attack characteristics: whether the attack verification code is an executable script, whether the use of the attack verification code fragment requires authentication, and whether the attack verification code fragment contains a remote command execution chain. Based on the attack vector, the attack characteristics, and the repository metadata, the exploit maturity of the attack verification code snippet is determined; Based on the attack characteristics and the exploitability maturity, the attack verification analysis results are determined.

14. The method according to claim 1, characterized in that, The subtask includes an attack chain generation subtask, the target execution model includes an attack chain generation model, and the execution result includes the target attack chain; The invocation of the target execution model that matches each of the multiple subtasks executes the multiple subtasks to obtain output information, including: Invoke the attack chain generation model and perform the following operations: Obtain first vulnerability information, attack chain generation template, and attack chain verification analysis results. The first vulnerability information includes attack vectors. Retrieve network connectivity relationships between target asset entities associated with the first vulnerability information from the security information knowledge graph; Obtain the asset service exposure information of the target asset entity; An initial attack chain is generated based on the attack chain generation template, the attack vector, the attack verification analysis results, the network connectivity relationships between the target asset entities, and the asset service exposure information. The initial attack chain is verified to obtain the verification result; If the verification result is successful, the initial attack chain is determined as the target attack chain.

15. The method according to claim 14, characterized in that, The first vulnerability information also includes a version range. The verification of the initial attack chain to obtain the verification result includes: Based on the asset service exposure information, verify whether the assets corresponding to each attack node in the initial attack chain have opened the service port corresponding to the first vulnerability information, run the service corresponding to the first vulnerability information, and whether the software version corresponding to the service falls within the version range, and obtain the first verification result. Based on the network connectivity between the target asset entities, the network jump between each attack node in the initial attack chain is verified to determine whether the network jump is reachable, and a second verification result is obtained. The third verification result is obtained by verifying whether a logically coherent chain of evidence can be formed between the attack nodes in the initial attack chain, and whether the timeline of each attack node is reasonable. The verification result is determined based on the first verification result, the second verification result, and the third verification result.

16. The method according to claim 1, characterized in that, The subtasks include a patch extraction subtask, the target execution model includes a patch extraction model, and the execution result includes a patch extraction result; the step of calling the target execution model that matches each of the subtasks to execute the multiple subtasks and obtaining output information includes: Extract the model using the patch and perform the following operations: Obtain the patch source text corresponding to the version sequence rules and the first vulnerability information, wherein the first vulnerability information includes the target product and the version sequence rules include the recommended level of each software version corresponding to the target product; Patch information is extracted from the patch source text, and the patch information includes the patch version. Based on the version sequence rules, the recommended version corresponding to the target product is determined; If the patch version matches the recommended version, the patch information is determined as the patch extraction result.

17. The method according to any one of claims 1-16, characterized in that, After generating the vulnerability assessment results, the method further includes: If the verification results for all the sub-tasks are passed, the report generation model is invoked to generate a vulnerability assessment report based on the report generation template and the vulnerability assessment results.

18. The method according to any one of claims 1-16, characterized in that, The vulnerability assessment results include multiple software components in the software bill of materials and their respective component matching degrees, and the software bill of materials includes the dependency relationships between the multiple software components; After generating the vulnerability assessment results, the method further includes: Software components whose component matching degree is greater than the matching degree threshold are identified as target components; Based on the dependencies between the multiple software components, determine the dependent components that have a dependency relationship with the target component; Based on the component information of the target component and the dependent components, query the asset library for target assets that match the target component and the dependent components; Generate disposal information for the target asset.

19. The method according to claim 18, characterized in that, The generation of disposal information for the target asset includes: Obtain the risk level and responsible department mapping relationship of the target asset, wherein the responsible department mapping relationship includes the correspondence between the target asset and the responsible department; Based on the risk level, the disposal timeframe for the target asset is determined; Based on the aforementioned departmental mapping relationship, the responsible department for the target asset is determined; Based on the risk level, the disposal time limit, and the responsible department, disposal information for the target asset is generated.

20. The method according to claim 19, characterized in that, The vulnerability assessment results also include the exploitability maturity of the attack verification code snippet; obtaining the risk level of the target asset includes: The target asset is acquired through multiple risk factors, including the vulnerability score in the first vulnerability information, the exploitability maturity, the supply chain priority of the target component, regulatory timeliness information, the exposure surface score of the target asset, and business importance. Using the large language model, based on at least one of the following: availability maturity, exposure information of the target asset, supply chain attributes of the target component, and regulatory reporting timeliness, the bottleneck type is determined. The bottleneck type includes at least one of the following: attack verification activity bottleneck, internet exposure bottleneck, supply chain core component bottleneck, and regulatory reporting timeliness bottleneck. Based on the aforementioned bottleneck types, determine the dynamic weights corresponding to the multiple risk factors respectively; Based on the dynamic weights corresponding to the multiple risk factors, the multiple risk factors are weighted and summed to obtain the risk score; Based on the risk score, the risk level of the target asset is determined.

21. The method according to claim 20, characterized in that, Obtain the exposure score of the target asset, including: Obtain the exposure surface attributes of the target asset, which include at least one of the following: whether the target asset is exposed to the Internet, whether the target asset is deployed in a production environment, the security protection level of the target asset, and whether the vulnerability port corresponding to the target asset is reachable; Based on the exposure surface attribute, the exposure surface score of the target asset is determined.

22. The method according to claim 18, characterized in that, The vulnerability assessment results also include attack characteristics of the attack verification code snippet and the target attack chain. After generating the disposal information of the target asset, the method further includes: Obtain protection device templates and policy generation constraints. The protection device templates include policy format specifications corresponding to each protection device, and the policy generation constraints include restrictions on policy generation. Based on the large language model, the handling information, the target attack chain, the attack characteristics, the protection device template, and the policy generation constraints, candidate protection policies are generated. The candidate protection policies include at least one of the following: file detection policy, traffic detection policy, access interception policy, log retrieval and investigation policy, asset batch detection policy, and temporary protection and mitigation policy.

23. The method according to claim 22, characterized in that, The target asset is deployed in a production environment. After generating candidate protection strategies, the method further includes: Obtain normal business request samples and attack request samples, wherein the attack request samples are generated based on the attack characteristics; The candidate protection strategy is deployed on test assets in an isolated environment, which is independent of the production environment. The normal business request sample and the attack request sample are processed using the test assets respectively; The hit rate is determined based on the ratio of the number of requests blocked by the candidate protection strategy in the attack request sample to the total number of requests in the attack request sample. The false alarm rate is determined by the ratio of the number of requests falsely blocked by the candidate protection policy in the normal business request sample to the total number of requests in the normal business request sample. Based on the performance changes before and after the deployment of the candidate protection strategies, the performance degradation rate of the test assets is determined. If the hit rate is not less than the hit rate threshold, the false alarm rate is not greater than the false alarm rate threshold, and the performance loss rate is not greater than the loss rate threshold, the candidate protection strategy is determined as the target protection strategy.

24. The method according to claim 23, characterized in that, After determining the candidate protection strategy as the target protection strategy, the method further includes: If the user approves the target protection policy, the target protection policy will be deployed to the first part of the target assets. Obtain the strategy operation status of the first part of the assets; If the policy operation status meets the policy operation conditions, the target protection policy will be expanded and deployed to all target assets.

25. A vulnerability assessment device, characterized in that, The device includes: The first acquisition module is used to acquire vulnerability assessment tasks; The decomposition module is used to decompose the vulnerability assessment task through a large language model and generate a task execution plan. The task execution plan includes multiple sub-tasks and their dependencies, as well as the task type, input information, expected output information and acceptance conditions of each sub-task. The execution module is used to call the target execution model that is matched with the multiple sub-tasks respectively to execute the multiple sub-tasks and obtain output information, including execution results, confidence scores, evidence citation information and model versions. The review module is used to review the execution result based on the actual input information of the target execution model, the output information, and the task execution plan using the large language model, and to obtain the review result. The first generation module is used to generate a vulnerability assessment result based on the execution results, confidence level, and evidence citation information corresponding to the multiple sub-tasks, provided that all the review results for the multiple sub-tasks are passed.

26. An electronic device, characterized in that, The electronic device includes: a processor and a memory storing computer program instructions; When the processor executes the computer program instructions, it implements the vulnerability assessment method as described in any one of claims 1-24.

27. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer program instructions, which, when executed by a processor, implement the vulnerability assessment method as described in any one of claims 1-24.

28. A computer program product, characterized in that, When the instructions in the computer program product are executed by the processor of the electronic device, the electronic device performs the vulnerability assessment method as described in any one of claims 1-24.