Vulnerability label classification mapping method and device, electronic equipment and storage medium
By combining persistent caching and semantic classification models, the cross-tool aggregation problem caused by heterogeneous external scanner tags is solved, achieving low-cost, high-efficiency vulnerability tag classification and automated task tracking.
Patent Information
- Application Number
- CN202611364792.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-03
- Publication Date
- 2026-11-27
AI Technical Summary
In existing technologies, the heterogeneous vulnerability label naming system of external vulnerability scanners makes it difficult to aggregate vulnerability results across tools. Static manual mapping schemes are costly to maintain and have incomplete coverage, and cannot effectively handle synonym variants and new labels.
A three-layer incremental classification process is adopted, which consists of persistent classification caching, fuzzy matching of vulnerability keyword sets, and semantic classification model. Known tags are intercepted through persistent caching, synonym variants are handled by keyword sets, and the semantic classification model is triggered only when necessary to automatically update the unified vulnerability classification system.
It achieves efficient and low-cost vulnerability tag classification, ensures high coverage and automated tag aggregation, avoids repeated calls to the high-cost semantic model, and establishes an automated link from vulnerability tags to downstream task tracing.
Smart Images

Figure CN123179074A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of network security and automated vulnerability management technology, specifically to a vulnerability tag classification and mapping method, device, electronic device, and storage medium. Background Technology
[0002] In modern automated security testing systems, it is often necessary to integrate multiple external vulnerability scanners (such as Nuclei, Nmap, ZAP, etc.) to discover potential security threats. These scanners each have their own independent vulnerability tagging systems, resulting in different tagging expressions for the same type of vulnerability (e.g., SQL injection) across different tools (e.g., sqli, sql-injection, etc.). To achieve cross-tool vulnerability result aggregation, knowledge graph construction, and penetration testing task coverage tracking, it is necessary to map these heterogeneous vulnerability tags into a unified vulnerability classification system.
[0003] Existing technical solutions primarily rely on static, manually generated mapping tables (such as YAML / JSON files) to establish the correspondence between tags and categories. However, this approach has significant technical drawbacks: First, it is costly to maintain, as adding or changing tags requires manual updates to the mapping file, making it unsuitable for scenarios with rapidly changing vulnerability tags. Second, it suffers from incomplete coverage, failing to effectively categorize synonymous variant tags not included in the mapping table (such as blind-sqli, sql-injection-blind, etc.) and being helpless against new tags from other scanners, resulting in the silent discarding of some vulnerability information and impacting the completeness of security assessments. Summary of the Invention
[0004] In view of the aforementioned problems, this application is proposed to provide a vulnerability label classification mapping method, apparatus, electronic device, and storage medium that overcomes or at least partially solves the aforementioned problems, comprising: A vulnerability label classification mapping method, comprising: Obtain the vulnerability tags to be classified from the output of an external scanner; The vulnerability tag to be classified is queried in the persistent classification cache. If the query does not find a match, the vulnerability tag to be classified is fuzzy matched based on the preset vulnerability class keyword set to determine whether the match is successful. If no match is found, the vulnerability label to be classified is input into the semantic classification model for classification, and the target classification result corresponding to the vulnerability label to be classified is determined based on the output of the semantic classification model. Write the target classification result back to the persistent classification cache; The downstream task tracking nodes of the preset unified vulnerability classification system are updated based on the target classification results.
[0005] Furthermore, the vulnerability category keyword set includes distinguishing keywords corresponding to each vulnerability category. The step of performing fuzzy matching on the vulnerability tags to be classified based on the preset vulnerability category keyword set to determine whether a match is successful includes: Based on the vulnerability tags to be classified, perform substring inclusion tests on each of the distinguishing keywords; When the vulnerability label to be classified contains at least one of the distinguishing keywords, the vulnerability class containing the distinguishing keyword will be used as the candidate class. If there are at least two candidate classes, then the match is successful; If there is only one candidate class or no candidate class, then the match is considered unsuccessful.
[0006] Furthermore, after performing fuzzy matching on the vulnerability tags to be classified based on a preset set of vulnerability category keywords to determine whether a match is successful, the process further includes: If a match is successful, the candidate class containing the most distinguishing keywords will be used as the matching item for the vulnerability tag to be classified. Based on the matching items, the target classification result corresponding to the vulnerability label to be classified is determined.
[0007] Further, the step of inputting the vulnerability labels to be classified into a semantic classification model for classification includes: Accumulate the vulnerability tags to be classified into a batch processing window and calculate the waiting time; When the cumulative number in the batch processing window reaches a preset threshold or the waiting time reaches a preset timeout, the accumulated vulnerability tags to be classified in the batch processing window are constructed into structured prompt words and input into the semantic classification model in batches.
[0008] Furthermore, after querying the vulnerability tag to be classified in the persistent classification cache, the method further includes: If the query is successful, the target classification result corresponding to the vulnerability tag to be classified is determined based on the query result.
[0009] Furthermore, the downstream task tracking node that updates the preset unified vulnerability classification system based on the target classification result includes: Determine whether the target vulnerability class corresponding to the target classification result already exists in the unified vulnerability classification system; If it does not exist, the new vulnerability class registration process is triggered, the metadata of the target vulnerability class is generated, and the metadata is injected into the penetration testing task graph dynamic coverage tracking system in the unified vulnerability classification system to generate a new task tracking node.
[0010] Furthermore, the generation of metadata for the target vulnerability class includes: Extract human-readable tags and hypothesis descriptions corresponding to the target vulnerability class from a pre-defined new class tag mapping table; If the target vulnerability class is not included in the new class tag mapping table, then the human-readable tag and general hypothesis description are automatically generated based on the vulnerability class identifier of the target vulnerability class.
[0011] A vulnerability label classification and mapping device, comprising: The acquisition module is used to acquire the vulnerability tags to be classified output by external scanners; The matching module is used to query the vulnerability tags to be classified in the persistent classification cache. If the query does not find a match, the vulnerability tags to be classified are fuzzy matched based on a preset set of vulnerability class keywords to determine whether the match is successful. The input module is used to input the vulnerability label to be classified into the semantic classification model for classification if no match is found, and to determine the target classification result corresponding to the vulnerability label to be classified based on the output of the semantic classification model. The write-back module is used to write back the target classification result to the persistent classification cache; The update module is used to update the downstream task tracking nodes of the preset unified vulnerability classification system based on the target classification results.
[0012] A computer electronic device includes a processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein the computer program, when executed by the processor, implements the steps of the vulnerability label classification mapping method as described above.
[0013] A computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps of the vulnerability label classification mapping method as described above.
[0014] This application has the following advantages: In the embodiments of this application, addressing the problem of "incomplete coverage and high maintenance costs of static manual mapping schemes" in the prior art, this application provides a solution, specifically: "Obtain the vulnerability tags to be classified output by the external scanner; query the vulnerability tags to be classified in the persistent classification cache; if the query does not find a match, perform fuzzy matching on the vulnerability tags to be classified based on a preset vulnerability class keyword set to determine whether a match is successful; if no match is found, input the vulnerability tags to be classified into a semantic classification model for classification, determine the target classification result corresponding to the vulnerability tags to be classified based on the output of the semantic classification model; write the target classification result back to the persistent classification cache; update the downstream task tracking node of the preset unified vulnerability classification system based on the target classification result." This application, by designing a three-layer incremental classification process consisting of a persistent classification cache, fuzzy matching of vulnerability class keyword sets, and a semantic classification model, can automatically process various tags output by the external scanner. For tags that are already identified or have common variations, fast classification is prioritized using caching or keyword fuzzy matching to avoid repeatedly calling the costly semantic model. For truly novel tags, a one-time batch semantic classification is triggered, and the results are persisted so that subsequent identical or similar tags can be quickly identified. Simultaneously, the classification results are automatically updated to a unified vulnerability classification system, and newly discovered vulnerability classes are automatically registered to the downstream task tracking system. Therefore, this application solves the problem of incomplete coverage of new tags and synonym variant tags in existing static mapping schemes, achieving high efficiency, high coverage, and low-cost maintenance of tag classification, and establishing an automated link from vulnerability tag classification to downstream task tracking. Attached Figure Description
[0015] To more clearly illustrate the technical solution of this application, the drawings used in the description of this application will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0016] Figure 1 This is a flowchart illustrating the steps of a vulnerability tag classification and mapping method provided in one embodiment of this application; Figure 2 This is a structural block diagram of a vulnerability label classification and mapping device provided in an embodiment of this application; Figure 3 This is a schematic diagram of the structure of a computer electronic device provided in an embodiment of the present invention; 1. A computer electronic device; 2. An external device; 3. A processing unit; 4. A bus; 5. A network adapter; 6. An I / O interface; 7. A display; 8. Memory; 9. Random access memory; 10. A cache memory; 11. A storage system; 12. A program / utility; 13. A program module. Detailed Implementation
[0017] To make the objectives, features, and advantages of this application more apparent and understandable, the application will be further described in detail below with reference to the accompanying drawings and specific embodiments. Obviously, the described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application without inventive effort are within the scope of protection of this application.
[0018] The embodiments of this application can be applied to operating environments such as automated security testing systems, vulnerability management platforms, or penetration testing orchestration environments, and are especially suitable for scenarios that require the integration of multiple external vulnerability scanners and the unified aggregation and tracking of heterogeneous vulnerability data.
[0019] It should be noted that, for ease of understanding of the technical solution of this application, the following explanations are provided for the key terms involved in the embodiments of this application: Vulnerability tags: Vulnerability identifiers output by external vulnerability scanners, usually lowercase English keywords or keyword combinations separated by hyphens, used to characterize specific security flaws discovered by the scanner.
[0020] Unified vulnerability classification system: A standardized vulnerability classification architecture used internally by the system. Each vulnerability class has a unique identifier and does not rely on external scanners for tag naming. It is used for cross-tool result aggregation and tracking.
[0021] Persistent classification cache: A persistent storage structure used to store the mapping relationship between known vulnerability tags and classification results. It supports fast query and data write-back to accelerate the classification process of subsequent tags with the same information.
[0022] Semantic classification model: A machine learning model or large language model based on natural language processing technology that can understand the semantics of text and classify it.
[0023] Penetration Testing Task Graph Dynamic Coverage Tracking System: A task orchestration and tracking system used to manage penetration testing task nodes, track vulnerability testing coverage, and support dynamic expansion.
[0024] Reference Figure 1 This illustration shows a vulnerability label classification mapping method provided in an embodiment of this application, specifically including: S101. Obtain the vulnerability tags to be classified from the output of the external scanner; S102. Query the vulnerability tag to be classified in the persistent classification cache. If the query does not find a match, perform fuzzy matching on the vulnerability tag to be classified based on the preset vulnerability class keyword set to determine whether the match is successful. S103. If no match is found, the vulnerability label to be classified is input into the semantic classification model for classification, and the target classification result corresponding to the vulnerability label to be classified is determined based on the output of the semantic classification model. S104. Write the target classification result back to the persistent classification cache; S105. Update the downstream task tracking node of the preset unified vulnerability classification system based on the target classification result.
[0025] In this embodiment, the above steps work together to construct a three-layer incremental classification architecture. First, known tags are intercepted at extremely low cost through a persistent classification cache (Layer 0) in step S102. For tags that are not matched, fuzzy matching using vulnerability keyword sets is performed (Layer 1) to quickly handle synonym variants. Only for truly novel tags that cannot be processed by the first two layers is the semantic classification model (Layer 2) in step S103 triggered for deep semantic classification. The classification results are automatically written back to the cache in step S104, ensuring that each new tag only requires one high-cost classification. Finally, the results are synchronized to the downstream system in step S105. This incremental cost processing logic completely solves the problems of high maintenance costs and silent discarding of unknown tags in traditional static manual mapping, achieving high efficiency and high coverage in tag classification.
[0026] Taking a specific application scenario as an example, suppose an external scanner (such as Nuclei) scans a financial SaaS platform and outputs 103 vulnerability tags to be classified. After the system executes step S101 to obtain these 103 tags, step S102 queries the persistent classification cache. 100 common tags (such as sqli and xss) directly hit the cache, returning the first classification result with zero latency. The remaining 3 mismatched tags enter fuzzy matching. apache-struts2-rce, containing the keyword rce, is successfully matched as a command injection class. The last 2 new tags (such as cve-2024-38856 and subdomain-takeover) are input into the semantic classification model in step S103 and accurately identified as infrastructure CVE and subdomain takeover, respectively. Step S104 writes these 3 new classification results back to the cache, and step S105 automatically registers the new vulnerability class, subdomain takeover, into the downstream task tracking node, enabling it to immediately participate in subsequent automated penetration testing task orchestration.
[0027] This application's embodiments employ a three-layer incremental classification process comprised of persistent classification caching, fuzzy matching of vulnerability keyword sets, and a semantic classification model. This process automates the handling of various tags output by external scanners. For tags already identified or common variants, fast classification is prioritized through caching or fuzzy keyword matching, avoiding repeated calls to the costly semantic model. For truly novel tags, a one-time batch semantic classification is triggered, and the results are persisted, enabling rapid identification of subsequent identical or similar tags. Simultaneously, the classification results are automatically updated to a unified vulnerability classification system, and newly discovered vulnerability classes are automatically registered to the downstream task tracking system. Thus, this application solves the problem of incomplete coverage of new tags and synonym variant tags in existing static mapping schemes, achieving high efficiency, high coverage, and low-cost maintenance of tag classification, and establishing an automated link from vulnerability tag classification to downstream task tracking.
[0028] The vulnerability label classification mapping method in this exemplary embodiment will be further described below.
[0029] In one embodiment of the present invention, the vulnerability category keyword set includes distinguishing keywords corresponding to each vulnerability category. The specific process of step S102, "performing fuzzy matching of the vulnerability tags to be classified based on the preset vulnerability category keyword set to determine whether the match is successful," can be further explained in conjunction with the following description.
[0030] As described in the following steps, a substring inclusion test is performed on each distinguishing keyword based on the vulnerability label to be classified; when the vulnerability label to be classified contains at least one distinguishing keyword, the vulnerability class corresponding to the contained distinguishing keyword is taken as a candidate class; if there are at least two candidate classes, the match is determined to be successful; if there is only one candidate class or no candidate class, the match is determined to be unsuccessful.
[0031] In this embodiment, by using substring inclusion testing rather than exact matching, various spelling variations can be loosely covered. If at least two candidate classes exist, it indicates the tag has multiple features, and the system determines it as a successful match for subsequent disambiguation. If only one candidate class exists or no candidate class exists, it indicates a single or no feature, and the system determines it as a failed match for processing by a higher-level model. This approach effectively avoids mismatches caused by single keywords, improving classification accuracy. As a specific implementation, the system maintains a distinguishing keyword mapping table, maintaining multiple distinguishing keywords for each vulnerability class. For example, for the SQL injection class, its keywords include "sql" and "injection." When the label output by the external scanner is "blind-sql-injection," because it contains the substrings "sql" and "injection," multiple relevant candidate classes can be activated simultaneously, ensuring a successful match and proceeding to the next step of exact disambiguation.
[0032] In one embodiment of the present invention, the specific process of the "vulnerability tag classification mapping method" after the step "perform fuzzy matching of the vulnerability tags to be classified based on a preset vulnerability class keyword set to determine whether the match is successful" can be further described in conjunction with the following description.
[0033] As described in the following steps, if a match is successful, the candidate class containing the most distinguishing keywords will be used as the matching item for the vulnerability tag to be classified; based on the matching item, the target classification result corresponding to the vulnerability tag to be classified will be determined.
[0034] In this embodiment, when multiple candidate classes are activated, multi-class disambiguation is performed by counting the number of distinguishing keywords contained within them. A higher number indicates a greater semantic overlap between the tag and the candidate class. This method accurately identifies the most matching vulnerability class, effectively solving the ambiguity problem that may arise from fuzzy matching and improving the confidence of the classification results. As a specific implementation, if the tag exposed-grafana simultaneously matches one keyword from the information leakage class and two keywords from the management panel class, the system will select the management panel class with the highest number of matches as the final match, thus accurately classifying it as a management panel exposure vulnerability.
[0035] In one embodiment of the present invention, the specific process of "inputting the vulnerability label to be classified into the semantic classification model for classification" in step S103 can be further explained in conjunction with the following description.
[0036] As described in the following steps, the vulnerability tags to be classified are accumulated in the batch processing window and the waiting time is counted; when the accumulated number in the batch processing window reaches a preset threshold or the waiting time reaches a preset timeout, the vulnerability tags to be classified accumulated in the batch processing window are constructed into structured prompt words and input into the semantic classification model in batches.
[0037] In this embodiment, scattered unknown labels are accumulated into a batch processing window and processed in batches when a quantity threshold or timeout condition is met, avoiding the need to initiate a separate model call for each label. Furthermore, this approach significantly reduces the number of model API calls, lowers network latency and token consumption costs, while ensuring timely processing of unknown labels. As a specific implementation, the preset threshold for the batch processing window can be set to 8 labels, the preset timeout time can be set to 30 seconds, and a single batch processing operation consumes only about 300 tokens, thus achieving extremely high resource utilization while maintaining classification accuracy.
[0038] It should be noted that the semantic classification model mentioned above is a large language model. The structured prompts contain all the vulnerability tags to be classified in the batch processing window, as well as a list of known vulnerability classes in the unified vulnerability classification system. In this embodiment, the powerful zero-shot or few-shot semantic understanding capabilities of the large language model are utilized, combined with the list of known vulnerability classes provided in the structured prompts as classification boundaries, to guide the model to output accurate classification results within the established system. Furthermore, this approach effectively prevents the model from generating illusions or outputting invalid classifications outside the system, ensuring that the classification results are strictly aligned with the unified vulnerability classification system. In one example, the large language model can be a commercial or open-source large model, and the format of the structured prompts can be designed as "Classify: [tag list]. Known classes: [known class list]", with the model returning the mapping relationship between tags and vulnerability classes in JSON format.
[0039] In one embodiment of the present invention, the specific process of the "vulnerability tag classification mapping method" after the step "querying the vulnerability tag to be classified in the persistent classification cache" can be further described in conjunction with the following description.
[0040] As described in the following steps, if the query is successful, the target classification result corresponding to the vulnerability label to be classified is determined based on the query result.
[0041] It should be noted that the persistent classification cache combines static baselines with dynamic historical data. The static baseline mapping data ensures that the system has the ability to cover common vulnerability labels during initialization, while the historical classification result data records the mapping relationships newly discovered through fuzzy matching and semantic models during system operation.
[0042] In this embodiment, for tags already recorded in historical scans or static baselines, the system directly intercepts and returns the results through caching, eliminating the need for subsequent keyword matching or model inference. This approach enables the processing of the vast majority of regular tags with extremely low computational cost, significantly improving the throughput and response speed of the overall mapping process. As a specific implementation, this persistent classification cache is a local or shared JSON file (such as auto_tag_map.json), which stores static baseline mappings and historical large language model classification results. When a query hits, the system directly returns a result containing vulnerability class identifiers and high confidence levels, achieving sub-millisecond zero-latency classification.
[0043] In one embodiment of the present invention, the specific process of "updating the downstream task tracking node of the preset unified vulnerability classification system based on the target classification result" in step S105 can be further described in conjunction with the following description.
[0044] As described in the following steps, determine whether the target vulnerability class corresponding to the target classification result already exists in the unified vulnerability classification system; if it does not exist, trigger the new vulnerability class registration process, generate the metadata of the target vulnerability class, and inject the metadata into the penetration testing task graph dynamic coverage tracking system in the unified vulnerability classification system to generate a new task tracking node.
[0045] In this embodiment, after completing tag classification, the system actively verifies the existence of target vulnerability classes in the unified system. For new vulnerability classes that do not exist, the system automatically triggers a registration process and generates metadata, which is then injected into the penetration testing task graph dynamic coverage tracking system. Furthermore, this approach connects the entire chain of "tag classification - system registration - task tracking," enabling new vulnerabilities discovered by external scanners to be automatically integrated into downstream penetration testing task orchestration and coverage statistics, avoiding the problem of new vulnerability classes being silently discarded. As a specific implementation, the registration interface injects the new class into the PTT (penetration testing task graph), assigns it a unique node ID, and initializes a coverage counter, allowing it to participate in the priority ranking and knowledge graph learning of subsequent test tasks.
[0046] In one embodiment of the present invention, the specific process of "generating metadata of the target vulnerability class" described above can be further explained in conjunction with the following description.
[0047] As described in the following steps, extract the human-readable tags and hypothesis descriptions corresponding to the target vulnerability class from the preset new class tag mapping table; if the target vulnerability class is not included in the new class tag mapping table, automatically generate the human-readable tags and general hypothesis descriptions based on the vulnerability class identifier of the target vulnerability class.
[0048] In this embodiment, standardized metadata is obtained by querying a pre-defined new class tag mapping table to ensure that newly registered nodes have standardized display names and test hypotheses. When the mapping table does not contain the data, the system has a fallback mechanism that automatically generates a general description based on the identifier. Furthermore, this approach ensures the integrity and standardization of metadata, improving the readability and automation of the downstream task orchestration system. As a specific implementation, the new class tag mapping table (such as _NEW_CLASS_LABELS) can be pre-configured with metadata for 13 common new vulnerability classes. For example, for subdomain_takeover, the human-readable tag "Subdomain Takeover" and the hypothesis description "DNS CNAME / NS recordspointing to unclaimed services" can be extracted. For completely unknown class names (such as new_class), the system automatically converts them to "New Class" and generates a general hypothesis description.
[0049] As can be seen from the above embodiments, this application achieves excellent results with "zero cost for regular tags, low cost for variant tags, and one-time cost for entirely new tags" through a three-layer incremental classification architecture. In actual testing scenarios, for 103 vulnerability tags output by an external scanner, 100 tags achieved zero-latency hits in Layer 0 (persistent classification cache), 2 synonym variant tags were hit with sub-millisecond latency in Layer 1 (fuzzy keyword matching), and only one LLM batch processed the remaining 2 entirely new tags (consuming approximately 300 tokens). Compared to traditional pure LLM real-time classification schemes, this application not only eliminates hundreds of seconds of accumulated latency but also completely solves the problem of missed detections caused by static manual mapping, ensuring efficient, automated, and comprehensive mapping of heterogeneous vulnerability tags to a unified classification system.
[0050] As the device embodiment is basically similar to the method embodiment, the description is relatively simple, and relevant parts can be found in the description of the method embodiment.
[0051] Reference Figure 2 This illustration shows a vulnerability label classification and mapping device 200 provided in an embodiment of this application, used to implement the vulnerability label classification and mapping method provided in the embodiments of this application. The device specifically includes: The acquisition module 201 is used to acquire the vulnerability tags to be classified output by the external scanner; The matching module 202 is used to query the vulnerability tag to be classified in the persistent classification cache. If the query does not match, the vulnerability tag to be classified is fuzzy matched based on the preset vulnerability class keyword set to determine whether the match is successful. The input module 203 is used to input the vulnerability label to be classified into the semantic classification model for classification if no match is found, and to determine the target classification result corresponding to the vulnerability label to be classified based on the output of the semantic classification model. The write-back module 204 is used to write back the target classification result to the persistent classification cache; The update module 205 is used to update the downstream task tracking node of the preset unified vulnerability classification system based on the target classification result.
[0052] In one embodiment of the present invention, the vulnerability keyword set includes distinguishing keywords corresponding to each vulnerability class, and the matching module 202 is further configured to: Based on the vulnerability tags to be classified, perform substring inclusion tests on each of the distinguishing keywords; When the vulnerability label to be classified contains at least one of the distinguishing keywords, the vulnerability class containing the distinguishing keyword will be used as the candidate class. If there are at least two candidate classes, then the match is successful; If there is only one candidate class or no candidate class, then the match is considered unsuccessful.
[0053] In one embodiment of the present invention, the vulnerability label classification mapping device 200 is further configured to: If a match is successful, the candidate class containing the most distinguishing keywords will be used as the matching item for the vulnerability tag to be classified. Based on the matching items, the target classification result corresponding to the vulnerability label to be classified is determined.
[0054] In one embodiment of the present invention, the input module 203 is further configured to: Accumulate the vulnerability tags to be classified into a batch processing window and calculate the waiting time; When the cumulative number in the batch processing window reaches a preset threshold or the waiting time reaches a preset timeout, the accumulated vulnerability tags to be classified in the batch processing window are constructed into structured prompt words and input into the semantic classification model in batches.
[0055] In one embodiment of the present invention, the vulnerability label classification mapping device 200 is further configured to: If the query is successful, the target classification result corresponding to the vulnerability tag to be classified is determined based on the query result.
[0056] In one embodiment of the present invention, the updating module 205 is further configured to: Determine whether the target vulnerability class corresponding to the target classification result already exists in the unified vulnerability classification system; If it does not exist, the new vulnerability class registration process is triggered, the metadata of the target vulnerability class is generated, and the metadata is injected into the penetration testing task graph dynamic coverage tracking system in the unified vulnerability classification system to generate a new task tracking node.
[0057] In one embodiment of the present invention, the updating module 205 is further configured to: Extract human-readable tags and hypothesis descriptions corresponding to the target vulnerability class from a pre-defined new class tag mapping table; If the target vulnerability class is not included in the new class tag mapping table, then the human-readable tag and general hypothesis description are automatically generated based on the vulnerability class identifier of the target vulnerability class.
[0058] Reference Figure 3 The illustration shows a computer electronic device 1 for implementing the vulnerability label classification mapping method of the present invention, which may specifically include: The computer electronic device 1 is manifested in the form of a general computing device, including: one or more processors or processing units 3, memory 8, and a bus 4 connecting different system components (including memory 8 and processing unit 3).
[0059] Bus 4 represents one or more of several bus architectures, including memory buses or memory controllers, peripheral buses, graphics acceleration ports, processors, or local buses using any of the various bus architectures. For example, these architectures include, but are not limited to, the Industry Standard Architecture (ISA) bus, the Micro Channel Architecture (MAC) bus, the Enhanced ISA bus, the Audio / Video Electronics Standards Association (VESA) local bus, and the Peripheral Component Interconnect (PCI) bus.
[0060] Computer electronic device 1 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by computer electronic device 1, including volatile and non-volatile media, removable and non-removable media.
[0061] Memory 8 may include computer system readable media in the form of volatile memory, such as random access memory 9 and / or cache memory 10. A computer electronic device 1 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, storage system 11 may be used to read and write non-removable, non-volatile magnetic media (commonly referred to as a "hard disk drive"). Although Figure 3As not shown, a disk drive for reading and writing to a removable non-volatile disk (such as a "floppy disk") and an optical disk drive for reading and writing to a removable non-volatile optical disk (such as a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 4 via one or more data media interfaces. The memory may include at least one program product having a set (e.g., at least one) of program modules 13 configured to perform the functions of the embodiments of this application.
[0062] A program / utility 12 having a set (at least one) of program modules 13 may be stored, for example, in memory. Such program modules 13 include—but are not limited to—an operating system, one or more application programs, other program modules 13, and program data. Each or some combination of these examples may include an implementation of a network environment. Program modules 13 typically perform the functions and / or methods described in the embodiments of this application.
[0063] The computer electronic device 1 can also communicate with one or more external devices 2 (e.g., keyboard, pointing device, display 7, camera, etc.), and with one or more devices that enable an operator to interact with the computer electronic device 1, and / or with any device that enables the computer electronic device 1 to communicate with one or more other computing devices (e.g., network card, modem, etc.). This communication can be performed through the I / O interface 6. Furthermore, the computer electronic device 1 can also communicate with one or more networks (e.g., local area network (LAN)), wide area network (WAN), and / or public networks (e.g., the Internet) through the network adapter 5. Figure 3 As shown, network adapter 5 communicates with other modules of computer electronic device 1 via bus 4. It should be understood that, although... Figure 3 Not shown, it may be combined with other hardware and / or software modules, including but not limited to: microcode, device drivers, redundant processing unit 3, external disk drive array, RAID system, tape drive and data backup storage system 11, etc.
[0064] The processing unit 3 executes various functional applications and data processing by running programs stored in memory 8, such as implementing the vulnerability label classification and mapping method provided in the embodiments of this application.
[0065] That is, when the above-mentioned processing unit 3 executes the above program, it performs the following: obtaining the vulnerability tags to be classified output by the external scanner; querying the vulnerability tags to be classified in the persistent classification cache; if the query does not find a match, performing fuzzy matching on the vulnerability tags to be classified based on a preset vulnerability class keyword set to determine whether the match is successful; if the match is unsuccessful, inputting the vulnerability tags to be classified into a semantic classification model for classification, determining the target classification result corresponding to the vulnerability tags to be classified based on the output of the semantic classification model; writing the target classification result back to the persistent classification cache; and updating the downstream task tracking node of the preset unified vulnerability classification system based on the target classification result.
[0066] In this application embodiment, this application also provides a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the vulnerability label classification mapping method as provided in all embodiments of this application.
[0067] That is, when the program is executed by the processor, it performs the following: obtains the vulnerability tags to be classified output by the external scanner; queries the vulnerability tags to be classified in the persistent classification cache; if the query does not find a match, it performs fuzzy matching on the vulnerability tags to be classified based on a preset vulnerability class keyword set to determine whether a match is successful; if no match is found, it inputs the vulnerability tags to be classified into a semantic classification model for classification, and determines the target classification result corresponding to the vulnerability tags to be classified based on the output of the semantic classification model; writes the target classification result back to the persistent classification cache; and updates the downstream task tracking nodes of the preset unified vulnerability classification system based on the target classification result.
[0068] Any combination of one or more computer-readable media may be used. A computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. A computer-readable storage medium can be, for example—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples (a non-exhaustive list) of computer-readable storage media include: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof. In this document, a computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in connection with an instruction execution system, apparatus, or device.
[0069] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals may take various forms, including—but not limited to—electromagnetic signals, optical signals, or any suitable combination thereof. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, capable of transmitting, propagating, or transmitting programs for use by or in connection with an instruction execution system, apparatus, or device.
[0070] Computer program code for performing the operations of this application can be written in one or more programming languages or a combination thereof. These programming languages include object-oriented programming languages such as Java, Smalltalk, and C++, as well as conventional procedural programming languages such as C or similar languages. The program code can be executed entirely on the operator's computer, partially on the operator's computer, as a standalone software package, partially on the operator's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the operator's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider). The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably.
[0071] Although preferred embodiments of the present application have been described, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments as well as all changes and modifications falling within the scope of the embodiments of the present application.
[0072] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only 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 terminal device 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 terminal device. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or terminal device that includes said element.
[0073] The vulnerability tag classification mapping method, apparatus, electronic device, and storage medium provided in this application have been described in detail above. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the above embodiments are only for the purpose of helping to understand the method and core ideas of this application. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.
Claims
1. A vulnerability tag classification and mapping method, characterized in that, include: Obtain the vulnerability tags to be classified from the output of an external scanner; The vulnerability tag to be classified is queried in the persistent classification cache. If the query does not find a match, the vulnerability tag to be classified is fuzzy matched based on the preset vulnerability class keyword set to determine whether the match is successful. If no match is found, the vulnerability label to be classified is input into the semantic classification model for classification, and the target classification result corresponding to the vulnerability label to be classified is determined based on the output of the semantic classification model. Write the target classification result back to the persistent classification cache; The downstream task tracking nodes of the preset unified vulnerability classification system are updated based on the target classification results.
2. The method according to claim 1, characterized in that, The vulnerability category keyword set includes distinguishing keywords corresponding to each vulnerability category. The step of performing fuzzy matching on the vulnerability tags to be classified based on the preset vulnerability category keyword set to determine whether a match is successful includes: Based on the vulnerability tags to be classified, perform substring inclusion tests on each of the distinguishing keywords; When the vulnerability label to be classified contains at least one of the distinguishing keywords, the vulnerability class containing the distinguishing keyword will be used as the candidate class. If there are at least two candidate classes, then the match is successful; If there is only one candidate class or no candidate class, then the match is considered unsuccessful.
3. The method according to claim 2, characterized in that, After performing fuzzy matching on the vulnerability tags to be classified based on a preset set of vulnerability category keywords to determine whether a match is successful, the process further includes: If a match is successful, the candidate class containing the most distinguishing keywords will be used as the matching item for the vulnerability tag to be classified. Based on the matching items, the target classification result corresponding to the vulnerability label to be classified is determined.
4. The method according to claim 1, characterized in that, The step of inputting the vulnerability labels to be classified into a semantic classification model for classification includes: Accumulate the vulnerability tags to be classified into a batch processing window and calculate the waiting time; When the cumulative number in the batch processing window reaches a preset threshold or the waiting time reaches a preset timeout, the accumulated vulnerability tags to be classified in the batch processing window are constructed into structured prompt words and input into the semantic classification model in batches.
5. The method according to claim 1, characterized in that, After querying the vulnerability tag to be classified in the persistent classification cache, the method further includes: If the query is successful, the target classification result corresponding to the vulnerability tag to be classified is determined based on the query result.
6. The method according to any one of claims 1 to 5, characterized in that, The downstream task tracking node that updates the preset unified vulnerability classification system based on the target classification result includes: Determine whether the target vulnerability class corresponding to the target classification result already exists in the unified vulnerability classification system; If it does not exist, the new vulnerability class registration process is triggered, the metadata of the target vulnerability class is generated, and the metadata is injected into the penetration testing task graph dynamic coverage tracking system in the unified vulnerability classification system to generate a new task tracking node.
7. The method according to claim 6, characterized in that, The metadata for generating the target vulnerability class includes: Extract human-readable tags and hypothesis descriptions corresponding to the target vulnerability class from a pre-defined new class tag mapping table; If the target vulnerability class is not included in the new class tag mapping table, then the human-readable tag and general hypothesis description are automatically generated based on the vulnerability class identifier of the target vulnerability class.
8. A vulnerability label classification and mapping device, characterized in that, include: The acquisition module is used to acquire the vulnerability tags to be classified output by external scanners; The matching module is used to query the vulnerability tags to be classified in the persistent classification cache. If the query does not find a match, the vulnerability tags to be classified are fuzzy matched based on a preset set of vulnerability class keywords to determine whether the match is successful. The input module is used to input the vulnerability label to be classified into the semantic classification model for classification if no match is found, and to determine the target classification result corresponding to the vulnerability label to be classified based on the output of the semantic classification model. The write-back module is used to write back the target classification result to the persistent classification cache; The update module is used to update the downstream task tracking nodes of the preset unified vulnerability classification system based on the target classification results.
9. A computer electronic device, characterized in that, It includes a processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein the computer program, when executed by the processor, implements the steps of the vulnerability label classification mapping method as described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that, A computer program is stored on the computer-readable storage medium, which, when executed by a processor, implements the steps of the vulnerability label classification mapping method as described in any one of claims 1 to 7.
