Threat intelligence information processing method and device, electronic equipment and storage medium

By using adversarial example-trained neural network models and transfer learning methods, the problem of automated processing of network threat intelligence information has been solved, improving the efficiency and accuracy of intelligence information extraction and enabling automated analysis and database enrichment of network threat intelligence.

CN116886420BActive Publication Date: 2026-11-20陈镜冰 +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311014807.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-08-11
Publication Date
2026-11-20
Estimated Expiration
2043-08-11

AI Technical Summary

Technical Problem

Existing technologies cannot effectively understand and share semi-structured or unstructured cyber threat intelligence information, resulting in manual analysis that consumes a lot of manpower and time and is difficult to adapt to the rapidly changing threat environment.

Method used

We train a neural network model using adversarial example data, combine transfer learning and graph attention networks, identify triple information in network threat intelligence through preprocessing and threat intelligence information extraction models, and use long short-term memory networks for data augmentation to improve the robustness and generalization ability of the model.

Benefits of technology

It improves the efficiency and accuracy of threat intelligence information extraction, realizes automated analysis of network threat intelligence, reduces manual annotation costs, and enriches the intelligence database.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116886420B_ABST
    Figure CN116886420B_ABST
Patent Text Reader

Abstract

Embodiments of the present application provide a threat intelligence information processing method and device, electronic equipment and storage medium, the method comprising: obtaining network threat intelligence information; preprocessing the network threat intelligence information to obtain processed network threat intelligence information; determining the triple information of the network threat intelligence information according to the processed network threat intelligence information and a pre-trained threat intelligence information extraction model, wherein the triple information of the network threat intelligence information at least includes head entity data, tail entity data, and the relationship between entity data; the threat intelligence information extraction model is obtained by training a neural network model using adversarial sample data; and threat intelligence analysis is performed according to the triple information of the network threat intelligence information, thereby improving the efficiency of threat intelligence information extraction.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of cybersecurity technology, and more specifically, to a method, apparatus, electronic device, and storage medium for processing threat intelligence information. Background Technology

[0002] With the rapid development of internet technology, cyberattacks occur frequently, seriously threatening the information security of individuals, businesses, and nations. Cyber ​​threat intelligence, as a form of information security big data, aggregates and analyzes information on existing or potential threats, adjusts the weaknesses of defense systems, and promotes a shift in cyber defense from traditional reactive defense to proactive defense.

[0003] Currently, the internet contains a vast amount of security-related text, such as security reports released by security vendors and blogs by security researchers. These texts generally contain threat intelligence information, including various Indicators of Compromise (IOCs), attack tools, targets, and methods. However, this semi-structured or unstructured text cannot be understood by machines and is not convenient for intelligence sharing. If security researchers were to manually extract and analyze this information, it would require significant manpower and time, and would be difficult to adapt to the rapidly changing threat environment. Therefore, how to accurately and quickly obtain cyber threat intelligence information is an urgent problem to be solved. Summary of the Invention

[0004] The purpose of some embodiments of this application is to provide a method, apparatus, electronic device, and storage medium for processing threat intelligence information. Through the technical solutions of the embodiments of this application, network threat intelligence information is acquired; the network threat intelligence information is preprocessed to obtain processed network threat intelligence information; based on the processed network threat intelligence information and a pre-trained threat intelligence information extraction model, the triple information of the network threat intelligence information is determined, wherein the triple information of the network threat intelligence information includes at least head entity data, tail entity data, and the relationship between the entity data; the threat intelligence information extraction model is obtained by training a neural network model using adversarial example data; and threat intelligence analysis is performed based on the triple information of the network threat intelligence information. The embodiments of this application improve the robustness and generalization of the network threat intelligence information extraction model by introducing adversarial example data and transfer learning methods. Simultaneously, by using the threat intelligence information extraction model to identify the triple information in the network threat intelligence information and performing threat intelligence analysis based on the triple information in the network threat intelligence information, the efficiency of threat intelligence information extraction is improved.

[0005] Firstly, some embodiments of this application provide a method for processing threat intelligence information, including:

[0006] Obtain cyber threat intelligence;

[0007] The network threat intelligence information is preprocessed to obtain processed network threat intelligence information;

[0008] Based on the processed network threat intelligence information and the pre-trained threat intelligence information extraction model, the triple information of the network threat intelligence information is determined, wherein the triple information of the network threat intelligence information includes at least head entity data, tail entity data, and the relationship between entity data; the threat intelligence information extraction model is obtained by training a neural network model using adversarial example data.

[0009] Threat intelligence analysis is performed based on the triplet information of the network threat intelligence information.

[0010] Some embodiments of this application improve the robustness and generalization of the network threat intelligence information extraction model by introducing adversarial sample data and transfer learning methods. At the same time, the threat intelligence information extraction model is used to identify triple information in network threat intelligence information and to perform threat intelligence analysis based on the triple information in the network threat intelligence information, thereby improving the efficiency of threat intelligence information extraction.

[0011] Optionally, the threat intelligence information extraction model includes at least: a pre-trained language sub-model, a feature extraction network sub-model, a score calculation sub-model, and a decoding sub-model. The pre-trained language sub-model is used to extract feature vectors. The feature extraction network sub-model is obtained by training a neural network using adversarial example data. The score calculation sub-model is obtained by training an iteratively dilated convolutional neural network model with added graph attention network. The decoding sub-model is used to decode the feature vector containing attention scores to obtain the probability of the entity corresponding to the label.

[0012] Some embodiments of this application address the local instability of the entity relationship extraction model by adding adversarial examples to the initial vectors after processing the training language sub-model, thereby improving the robustness of the threat intelligence information extraction model.

[0013] Optionally, determining the triplet information related to the network threat intelligence information based on the processed network threat intelligence information and the pre-trained threat intelligence information extraction model includes:

[0014] Based on the processed network threat intelligence information and the pre-trained language sub-model, a first feature vector corresponding to the processed network threat intelligence information is determined.

[0015] Based on the first feature vector and the feature extraction network sub-model, determine the context semantic feature vector corresponding to the first feature vector;

[0016] The expanded feature vector is determined based on the contextual semantic feature vector, the attention score provided by the graph attention network, and the pre-trained score calculation model;

[0017] The expanded feature vector is decoded using a decoding model to obtain the maximum probability label sequence corresponding to the network threat intelligence information, and the network threat intelligence triplet information corresponding to the network threat intelligence information.

[0018] Some embodiments of this application utilize a language generation model based on Long Short-Term Memory (LSTM) networks for data augmentation; establish a Bert-BiLSTM-IDCNN-CRF network threat intelligence information extraction model that combines graph attention networks; improve the robustness and generalization of the model using adversarial training methods; and extract network threat intelligence triples through the model.

[0019] Optionally, determining the expanded feature vector based on the contextual semantic feature vector, the attention score provided by the graph attention network, and the pre-trained score calculation model includes:

[0020] The attention score of each tag in the processed network threat intelligence information is determined using a graph attention network model.

[0021] By iteratively expanding the convolutional neural network model, the receptive field of view is increased, and the extraction range of the contextual semantic feature vector is expanded. Based on the attention score and the extraction range of the contextual semantic feature vector, the expanded feature vector is determined.

[0022] In some embodiments of this application, a graph attention network is established to determine the attention score of each tag in the processed network threat intelligence information. By iteratively expanding the convolutional neural network model, the receptive field is increased, and the extraction range of the contextual semantic feature vector is expanded. Based on the attention score and the extraction range of the contextual semantic feature vector, the expanded feature vector is determined to obtain a larger feature extraction range and higher accuracy. By using a network threat intelligence information extraction model that combines graph attention networks, efficient identification of nested entities and overlapping relationships in network threat intelligence is achieved.

[0023] Optionally, the step of using a decoding model to decode the expanded feature vector to obtain the maximum probability label sequence corresponding to the network threat intelligence information and the network threat intelligence triplet information corresponding to the network threat intelligence information includes:

[0024] Based on the expanded contextual semantic feature vector, calculate the score of the label sequence corresponding to the expanded contextual semantic feature vector;

[0025] The scores of the label sequences are sorted to obtain the label sequences with the highest probability.

[0026] Based on the maximum probability label sequence, determine the network threat intelligence triplet information corresponding to the network threat intelligence information.

[0027] Some embodiments of this application establish a decoding model to decode the expanded contextual semantic feature vector containing attention scores, obtain the scores of the label sequences corresponding to each expanded contextual semantic feature vector, sort the scores of the label sequences to obtain the highest probability label sequence, and determine the network threat intelligence triplet information corresponding to the network threat intelligence information based on the highest probability label sequence, thereby improving the accuracy of network threat intelligence identification.

[0028] Optionally, the preprocessing of the network threat intelligence information to obtain processed network threat intelligence information includes:

[0029] The network threat intelligence information is stored in a database;

[0030] The network threat intelligence information in the database is cleaned by performing keyword density, regular expression, outlier analysis, and mean imputation to obtain cleaned network threat intelligence information.

[0031] The cleaned network threat intelligence information is subjected to dimension reduction processing to obtain reduced cleaned network threat intelligence information.

[0032] The reduced and cleaned network threat intelligence information is subjected to voice conversion, pronoun parsing, synonym processing, and subject omission parsing to obtain the processed network threat intelligence information.

[0033] Some embodiments of this application preprocess the acquired network threat intelligence information to obtain vectors that meet the input requirements of the threat intelligence information extraction model, and use data augmentation methods to solve the problem of extremely unbalanced label distribution in network threat intelligence samples, saving the cost of manually labeling a large amount of data.

[0034] Optionally, obtaining network threat intelligence information includes:

[0035] Create a seed URL queue, wherein the seed URL queue includes at least a number of URLs from different sources;

[0036] Perform domain name resolution on each URL in the seed URL queue to obtain the page information corresponding to the URL;

[0037] The page information is identified as the network threat intelligence information.

[0038] Some embodiments of this application enrich the network threat intelligence database by obtaining network threat intelligence information from multiple different data sources, thereby obtaining more accurate triple information and conducting more comprehensive and accurate threat intelligence analysis.

[0039] Secondly, some embodiments of this application provide a threat intelligence information processing apparatus, including:

[0040] The acquisition module is used to acquire network threat intelligence information;

[0041] The processing module is used to preprocess the network threat intelligence information to obtain processed network threat intelligence information;

[0042] The determination module is used to determine the triple information of the network threat intelligence information based on the processed network threat intelligence information and the pre-trained threat intelligence information extraction model. The triple information of the network threat intelligence information includes at least head entity data, tail entity data, and the relationship between the entity data. The threat intelligence information extraction model is obtained by training a neural network model using adversarial example data.

[0043] The analysis module is used to perform threat intelligence analysis based on the triplet information of the network threat intelligence information.

[0044] Some embodiments of this application improve the robustness and generalization of the network threat intelligence information extraction model by introducing adversarial sample data and transfer learning methods. At the same time, the threat intelligence information extraction model is used to identify triple information in network threat intelligence information and to perform threat intelligence analysis based on the triple information in the network threat intelligence information, thereby improving the efficiency of threat intelligence information extraction.

[0045] Optionally, the threat intelligence information extraction model includes at least: a pre-trained language sub-model, a feature extraction network sub-model, a score calculation sub-model, and a decoding sub-model. The pre-trained language sub-model is used to extract feature vectors. The feature extraction network sub-model is obtained by training a neural network using adversarial example data. The score calculation sub-model is obtained by training an iteratively dilated convolutional neural network model with added graph attention network. The decoding sub-model is used to decode the feature vector containing attention scores to obtain the probability of the entity corresponding to the label.

[0046] Some embodiments of this application address the local instability of the entity relationship extraction model by adding adversarial examples to the initial vectors after processing the training language sub-model, thereby improving the robustness of the threat intelligence information extraction model.

[0047] Optionally, the determining module is used to:

[0048] Based on the processed network threat intelligence information and the pre-trained language sub-model, a first feature vector corresponding to the processed network threat intelligence information is determined.

[0049] Based on the first feature vector and the feature extraction network sub-model, determine the context semantic feature vector corresponding to the first feature vector;

[0050] The expanded feature vector is determined based on the contextual semantic feature vector, the attention score provided by the graph attention network, and the pre-trained score calculation model;

[0051] The expanded feature vector is decoded using a decoding model to obtain the maximum probability label sequence corresponding to the network threat intelligence information, and the network threat intelligence triplet information corresponding to the network threat intelligence information.

[0052] Some embodiments of this application utilize a language generation model based on Long Short-Term Memory (LSTM) networks for data augmentation; establish a Bert-BiLSTM-IDCNN-CRF network threat intelligence information extraction model that combines graph attention networks; improve the robustness and generalization of the model using adversarial training methods; and extract network threat intelligence triples through the model.

[0053] Optionally, the determining module is used to:

[0054] The attention score of each tag in the processed network threat intelligence information is determined using a graph attention network model.

[0055] By iteratively expanding the convolutional neural network model, the receptive field of view is increased, and the extraction range of the contextual semantic feature vector is expanded. Based on the attention score and the extraction range of the contextual semantic feature vector, the expanded feature vector is determined.

[0056] In some embodiments of this application, a graph attention network is established to determine the attention score of each tag in the processed network threat intelligence information. By iteratively expanding the convolutional neural network model, the receptive field is increased, and the extraction range of the contextual semantic feature vector is expanded. Based on the attention score and the extraction range of the contextual semantic feature vector, the expanded feature vector is determined to obtain a larger feature extraction range and higher accuracy. By using a network threat intelligence information extraction model that combines graph attention networks, efficient identification of nested entities and overlapping relationships in network threat intelligence is achieved.

[0057] Optionally, the determining module is used to:

[0058] Based on the expanded contextual semantic feature vector, calculate the score of the label sequence corresponding to the expanded contextual semantic feature vector;

[0059] The scores of the label sequences are sorted to obtain the label sequences with the highest probability.

[0060] Based on the maximum probability label sequence, determine the network threat intelligence triplet information corresponding to the network threat intelligence information.

[0061] Some embodiments of this application establish a decoding model to decode the expanded contextual semantic feature vector containing attention scores, obtain the scores of the label sequences corresponding to each expanded contextual semantic feature vector, sort the scores of the label sequences to obtain the highest probability label sequence, and determine the network threat intelligence triplet information corresponding to the network threat intelligence information based on the highest probability label sequence, thereby improving the accuracy of network threat intelligence identification.

[0062] Optionally, the processing module is used to:

[0063] The network threat intelligence information is stored in a database;

[0064] The network threat intelligence information in the database is cleaned by performing keyword density, regular expression, outlier analysis, and mean imputation to obtain cleaned network threat intelligence information.

[0065] The cleaned network threat intelligence information is subjected to dimension reduction processing to obtain reduced cleaned network threat intelligence information.

[0066] The reduced and cleaned network threat intelligence information is subjected to voice conversion, pronoun parsing, synonym processing, and subject omission parsing to obtain the processed network threat intelligence information.

[0067] Some embodiments of this application preprocess the acquired network threat intelligence information to obtain vectors that meet the input requirements of the threat intelligence information extraction model, and use data augmentation methods to solve the problem of extremely unbalanced label distribution in network threat intelligence samples, saving the cost of manually labeling a large amount of data.

[0068] Optionally, the acquisition module is used for:

[0069] Create a seed URL queue, wherein the seed URL queue includes at least a plurality of URLs from different sources;

[0070] Perform domain name resolution on each URL in the seed URL queue to obtain the page information corresponding to the URL;

[0071] The page information is identified as the network threat intelligence information.

[0072] Some embodiments of this application enrich the network threat intelligence database by obtaining network threat intelligence information from multiple different data sources, thereby obtaining more accurate triple information and conducting more comprehensive and accurate threat intelligence analysis.

[0073] Thirdly, some embodiments of this application provide an electronic device including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor, when executing the program, can implement the threat intelligence information processing method as described in any embodiment of the first aspect.

[0074] Fourthly, some embodiments of this application provide a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, can implement the threat intelligence information processing method as described in any embodiment of the first aspect.

[0075] Fifthly, some embodiments of this application provide a computer program product, the computer program product including a computer program, wherein when the computer program is executed by a processor, it can implement the threat intelligence information processing method as described in any embodiment of the first aspect. Attached Figure Description

[0076] To more clearly illustrate the technical solutions of some embodiments of this application, the accompanying drawings used in some embodiments of this application will be briefly described below. It should be understood that the following drawings only show some embodiments of this application and should not be regarded as a limitation of the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.

[0077] Figure 1A flowchart illustrating a method for processing threat intelligence information provided in an embodiment of this application;

[0078] Figure 2 A flowchart illustrating another method for processing threat intelligence information provided in this application embodiment;

[0079] Figure 3 This is a schematic diagram of the process for obtaining network threat intelligence information provided in an embodiment of this application;

[0080] Figure 4 This is a schematic diagram illustrating the process of preprocessing network threat intelligence information provided in an embodiment of this application;

[0081] Figure 5 This is a schematic diagram of the structure of the threat intelligence information extraction model provided in the embodiments of this application;

[0082] Figure 6 This is a schematic diagram of dilated convolution provided in an embodiment of this application;

[0083] Figure 7 A flowchart illustrating the threat intelligence information extraction model provided in this application embodiment;

[0084] Figure 8 A schematic diagram of a threat intelligence information processing device provided in this application embodiment;

[0085] Figure 9 This is a schematic diagram of an electronic device provided in an embodiment of this application. Detailed Implementation

[0086] The technical solutions of some embodiments of this application will now be described with reference to the accompanying drawings.

[0087] It should be noted that similar reference numerals and letters in the following figures indicate similar items; therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures. Furthermore, in the description of this application, terms such as "first," "second," etc., are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.

[0088] With the rapid development of internet technology, cyberattacks occur frequently, seriously threatening the information security of individuals, businesses, and nations. Cyber ​​threat intelligence, as a form of information security big data, aggregates and analyzes information on existing or potential threats, adjusts the weaknesses of defense systems, and promotes a shift in cyber defense from traditional reactive defense to proactive defense.

[0089] Currently, the internet contains a vast amount of security-related text, such as security reports from security vendors and blogs by security researchers. These texts generally contain threat intelligence information, including various Indicators of Compromise (IOCs), attack tools, targets, and methods. However, this semi-structured or unstructured text cannot be understood by machines and is not convenient for intelligence sharing. If security researchers were to manually extract and analyze this information, it would require a significant amount of manpower and time, and would be difficult to adapt to the rapidly changing threat environment.

[0090] In view of this, some embodiments of this application provide a method for processing threat intelligence information. This method involves: acquiring network threat intelligence information; preprocessing the network threat intelligence information to obtain processed network threat intelligence information; determining the triple information of the network threat intelligence information based on the processed network threat intelligence information and a pre-trained threat intelligence information extraction model, wherein the triple information of the network threat intelligence information includes at least head entity data, tail entity data, and the relationship between the entity data; the threat intelligence information extraction model is obtained by training a neural network model using adversarial example data; and performing threat intelligence analysis based on the triple information of the network threat intelligence information. This application embodiment improves the robustness and generalization of the network threat intelligence information extraction model by introducing adversarial example data and transfer learning methods. Simultaneously, by using the threat intelligence information extraction model to identify the triple information in the network threat intelligence information and performing threat intelligence analysis based on the triple information in the network threat intelligence information, the efficiency of threat intelligence information extraction is improved.

[0091] like Figure 1 As shown, embodiments of this application provide a method for processing threat intelligence information, the method comprising:

[0092] S101. Obtain network threat intelligence information;

[0093] Specifically, terminal devices can use web crawler technology to obtain raw data of network threat intelligence, i.e., network threat intelligence information, from eight major threat intelligence sources;

[0094] S102. Preprocess the network threat intelligence information to obtain processed network threat intelligence information;

[0095] Specifically, the terminal device integrates the raw data of acquired network threat intelligence to form a large-scale, non-redundant, and numerically clear network threat intelligence database. For the data in the database, data cleaning is performed using methods such as keyword density, regular expressions, outlier analysis, and mean imputation. The cleaned data is then reduced in dimensionality. The reduced data is then subjected to grammatical transformation, pronoun parsing, synonym processing, and subject omission parsing to obtain the processed network threat intelligence information.

[0096] S103. Based on the processed network threat intelligence information and the pre-trained threat intelligence information extraction model, determine the triple information of the network threat intelligence information. The triple information of the network threat intelligence information includes at least head entity data, tail entity data, and the relationship between entity data. The threat intelligence information extraction model is obtained by training a neural network model using adversarial sample data.

[0097] Specifically, a threat intelligence extraction model is pre-trained on the terminal device. This model includes multiple sub-models, such as a pre-trained language sub-model, a feature extraction network sub-model, a score calculation sub-model, and a decoding sub-model. The pre-trained language sub-model is used to extract feature vectors. The feature extraction network sub-model is trained on a neural network using adversarial example data. The score calculation sub-model is trained on an iteratively dilated convolutional neural network model with added graph attention network. The decoding sub-model is used to decode the attention score and feature vectors, obtaining the probability of the entity corresponding to the label. The terminal device inputs the processed network threat intelligence information into the pre-trained threat intelligence extraction model to obtain triple information of the network threat intelligence information. The triple information of the network threat intelligence information includes at least head entity data, tail entity data, and the relationship between the entity data.

[0098] In this embodiment, a language generation model based on Long Short-Term Memory (LSTM) is used for data augmentation; a Bert-BiLSTM-IDCNN-CRF network threat intelligence information extraction model combining graph attention network is established; adversarial training is used to improve the robustness and generalization of the model; and network threat intelligence triple information is extracted through the model.

[0099] S104. Perform threat intelligence analysis based on the triplet information of network threat intelligence.

[0100] Some embodiments of this application improve the robustness and generalization of the network threat intelligence information extraction model by introducing adversarial example data and transfer learning methods. Simultaneously, by employing the threat intelligence information extraction model to identify triple information in network threat intelligence information and performing threat intelligence analysis based on this triple information, the efficiency of threat intelligence information extraction is improved. Another embodiment of this application further supplements the threat intelligence information processing method provided in the above embodiments.

[0101] Figure 2 This is a flowchart illustrating another method for processing threat intelligence information provided in an embodiment of this application. The method for processing threat intelligence information includes:

[0102] Step 1: Use web crawling technology to obtain raw network threat intelligence data from 8 major threat intelligence sources;

[0103] Specifically, acquiring cyber threat intelligence includes:

[0104] Create a seed URL queue, wherein the seed URL queue includes URLs from at least multiple different sources;

[0105] Perform domain name resolution on each URL in the seed URL queue to obtain the page information corresponding to the URL;

[0106] The page information was identified as cyber threat intelligence.

[0107] The flowchart of the threat intelligence acquisition module is as follows: Figure 3 As shown, the threat intelligence acquisition module primarily utilizes web crawling technology to obtain threat intelligence from target websites.

[0108] For example, such as Figure 3 As shown, obtaining cyber threat intelligence information includes the following steps:

[0109] Step 1: Create a seed URL queue. The seed URL queue contains URLs of domestic and international cybersecurity threat intelligence platforms. The main seed URLs are shown in Table 1.

[0110] Table 1

[0111]

[0112] Step 2: Create and generate a queue of URLs to be crawled from the seed URL queue;

[0113] Step 3: Read URLs from the queue of URLs to be crawled;

[0114] Step 4: Perform DNS resolution on the URL, access the corresponding webpage, download the webpage, add the downloaded page to the downloaded webpage library, and add the URL of the downloaded webpage to the crawled URL queue.

[0115] Step 5: Based on the already crawled URL queue, crawl a new URL queue and add it to the URL queue to be crawled. Repeat steps 3 to 5 until a sufficient number of web page contents have been downloaded.

[0116] Some embodiments of this application enrich the network threat intelligence database by obtaining network threat intelligence information from multiple different data sources, thereby obtaining more accurate triple information and conducting more comprehensive and accurate threat intelligence analysis.

[0117] Step 2: Preprocess the network threat intelligence information to obtain processed network threat intelligence information, including:

[0118] Store cyber threat intelligence information in a database;

[0119] Data cleaning of network threat intelligence information in the database is performed by keyword density analysis, regular expression analysis, outlier analysis, and mean imputation to obtain cleaned network threat intelligence information.

[0120] The cleaned network threat intelligence information is reduced to obtain the reduced cleaned network threat intelligence information.

[0121] The reduced and cleaned network threat intelligence information is processed by voice conversion, pronoun parsing, synonym processing, and subject omission parsing to obtain the processed network threat intelligence information.

[0122] Specifically, the aforementioned cyber threat intelligence information is integrated to form a large-scale, non-redundant, and numerically clear cyber threat intelligence database. The data in the database is cleaned using methods such as keyword density, regular expressions, outlier analysis, and mean imputation. The cleaned data is then reduced in dimensionality. Finally, the reduced data undergoes voice transformation, pronoun parsing, synonym processing, and subject omission parsing.

[0123] In this embodiment, a threat intelligence database is obtained. However, since the webpage content is not screened or filtered when downloading the webpage, the database may contain irrelevant content or garbled characters. Therefore, the raw data in the threat intelligence database is used as the input of the threat intelligence preprocessing module, and preprocessing operations including data integration, data cleaning, and data reduction are performed on it.

[0124] The threat intelligence preprocessing step primarily utilizes several data preprocessing methods to preprocess the raw corpus acquired by the threat intelligence acquisition module, resulting in clean, standard, clear, and reliable corpus suitable for model training. The preprocessing methods used include data integration, data cleaning, data reduction, voice transformation, and pronoun parsing, among others. Figure 4 As shown, it specifically includes:

[0125] Step 1: Data integration of raw threat intelligence corpus, and structured processing of multi-source heterogeneous data;

[0126] Step 2: Use TF-IDF and word frequency statistics to process the keyword density of threat intelligence articles and remove irrelevant text with low keyword density;

[0127] Step 3: Use regular expressions to remove irrelevant characters; the details are as follows:

[0128] (1) Replace the URLs in the original corpus with the regular expression number 1 in Table 2. The regular expression matches strings that start with http: / / , https: / / , or ftp: / / . At the same time, the regular expression can also match the end of the URL, that is, it can match sub-URLs.

[0129] (2) Use the regular expression number 2 in Table 2 to quickly locate code blocks in the original corpus, thereby realizing batch replacement of code blocks;

[0130] (3) Use the regular expression number 3 in Table 2 to match the IP addresses in the original corpus, thereby cleaning the IP addresses in the original corpus.

[0131] (4) Use the regular expression number 4 in Table 2 to match the file paths in the original corpus, thereby cleaning the file paths in the original corpus.

[0132] (5) Use the regular expression number 5 in Table 2 to match Chinese and English characters in the original corpus, thereby eliminating other language characters, emoticons, garbled characters, etc. in the original corpus;

[0133] Table 2 Regular expressions used for data cleaning

[0134]

[0135] Step 4: For sentence paragraphs with abnormal lengths, impute them using the mean of similar samples;

[0136] Step 5: Divide the sentence into clauses, ensuring that each clause is less than 512 characters (words);

[0137] Step 6: Filter out sentences that describe the attacking organization, attack methods, etc.;

[0138] Step 7: Complete pronoun parsing, subject omission parsing, and voice conversion through coreference resolution and role semantic annotation.

[0139] Step 8: Output the text in JSON format.

[0140] After threat intelligence preprocessing, a threat intelligence corpus of suitable length can be obtained as input to the threat intelligence information extraction module model.

[0141] Some embodiments of this application preprocess the acquired network threat intelligence information to obtain vectors that meet the input requirements of the threat intelligence information extraction model, and use data augmentation methods to solve the problem of extremely unbalanced label distribution in network threat intelligence samples, saving the cost of manually labeling a large amount of data.

[0142] Step 3: Perform data augmentation using a language generation model based on Long Short-Term Memory (LSTM) networks; establish a network threat intelligence extraction model combining graph attention networks (Bert-BiLSTM-IDCNN-CRF); improve the robustness and generalization of the model using adversarial training; and extract network threat intelligence triples through the model.

[0143] Optionally, the threat intelligence information extraction model includes at least: a pre-trained language sub-model, a feature extraction network sub-model, a score calculation sub-model, and a decoding sub-model. The pre-trained language sub-model is used to extract feature vectors. The feature extraction network sub-model is obtained by training a neural network using adversarial example data. The score calculation sub-model is obtained by training an iteratively dilated convolutional neural network model with added graph attention network. The decoding sub-model is used to decode the feature vector containing attention scores to obtain the probability of the entity corresponding to the label.

[0144] Some embodiments of this application address the local instability of the entity relation extraction model by adding adversarial examples to the initial vectors after processing the trained language sub-model, thereby improving the robustness of the threat intelligence information extraction model. Optionally, based on the processed network threat intelligence information and the pre-trained threat intelligence information extraction model, the triplet information related to the network threat intelligence information is determined, including:

[0145] Based on the processed network threat intelligence information and the pre-trained language sub-model, determine the first feature vector corresponding to the processed network threat intelligence information;

[0146] Based on the first feature vector and the feature extraction network sub-model, determine the contextual semantic feature vector corresponding to the first feature vector;

[0147] The expanded feature vector is determined based on the contextual semantic feature vector, the attention score provided by the graph attention network, and the pre-trained score calculation model;

[0148] A decoding model is used to decode the expanded feature vector to obtain the maximum probability label sequence corresponding to the network threat intelligence information, as well as the network threat intelligence triplet information corresponding to the network threat intelligence information.

[0149] Specifically, the model structure diagram of the threat intelligence information extraction model is as follows: Figure 5 As shown, the threat intelligence information extraction model consists of four parts, or four sub-models: a pre-trained language sub-model, a feature extraction network sub-model, a score calculation sub-model, and a decoding sub-model.

[0150] Part 1: BERT Embedding Layer (Transformer-based Bidirectional Encoder Representation Technology), i.e., Pre-trained Language Sub-model. The BERT pre-trained language model obtains a vector representation of the input information. BERT adds two markers to the text sequence upon input, denoted as "CLS" and "SEP". "CLS" is added at the beginning of the sentence and represents the feature vector of the entire sentence in the BERT-encoded output vector; "SEP" is added at the end of the sentence to distinguish different sentences. For each word in the input text sequence, the BERT model's word vector is composed of three parts: word embedding, segment embedding, and position embedding. The word embedding is the feature vector representation of the word; the segment embedding indicates whether the sentences are consecutive, and the segment embeddings of the same sentence are shared to learn information about different segments; the position embedding is used to learn the order information of the input sequence, expanding the model's global perspective. An improved BERT-Based model is used, which consists of 12 stacked Transformer encoding units, a multi-head attention mechanism with 12 heads, a 768-dimensional word embedding vector, and 110M parameters. During training, to accurately obtain the word vector representations of entities, the input text sequence is processed. For each sentence to be input, the marker "CLS" is inserted at the beginning of the sentence as the first marker. Since entity relation extraction tasks typically do not involve multiple sentences, "SEP" is not used for segmentation. Furthermore, "$" and "#" symbols are added to locate two entities in the text sequence to ensure accurate subsequent extraction of their word vectors. After feature extraction from the input sequence using the BERT model, a feature vector sequence B = (B0, B1, ..., B...) is obtained for each character based on its context. n )∈R^ (n+1)×d .

[0151] Part Two: The Bidirectional Long Short-Term Memory (LSTM) network layer, specifically the feature extraction network sub-model, incorporates adversarial training. Building upon the BERT pre-trained language model, a BiLSTM model is used to extract contextual semantic features from the input sequence. Adversarial training is achieved by adding minor perturbations to the training data. Adversarial examples are added to the initial vectors processed by the BERT pre-trained language model to address the local instability of the entity relation extraction model and improve its robustness.

[0152] The adversarial training method (FGM) will be applied to the entity relation extraction task, where the direction of the adversarial perturbation is defined as the gradient ascent direction of the loss function relative to the original input. The initial vector obtained after preprocessing by the BERT model will be represented as B = (b1, b2, ..., b...). n The added perturbation is denoted as η. adv Therefore, the loss function is corrected to:

[0153] L adv (B;Θ)=L(B+η adv ;Θ)

[0154] Among them, disturbance η adv The calculation formula is:

[0155]

[0156] Here, Θ^ represents a copy of the current Θ. Due to computational complexity, Goodfellow et al. proposed using L_adv(B; Θ) to calculate linear similarity in the vicinity of B, as follows:

[0157]

[0158]

[0159] Where Θ is the model parameter, and φ is the resistance to perturbation, defined in this chapter. α is the perturbation coefficient, d is the character vector dimension, and ||g||² is the gradient normalization term for all words across all inputs. Based on this, the adversarial example is defined as B. adv The specific calculations are as follows:

[0160] After generating adversarial examples, the original vector B and the adversarial example B are combined. adv They are fed into the BiLSTM encoding layer for training.

[0161] Bidirectional Long Short-Term Memory (BiLSTM) networks are divided into forward LSTM and backward LSTM to avoid the problem that unidirectional structures can only learn past information, thus enabling the model to better capture contextual information. The outputs of the bidirectional LSTMs are concatenated and then input into the CRF decoding layer. As introduced in the previous chapter, let the output of the hidden layer at the previous time step be h_(t-1). For the input vector x_t at the current time step, the semantic features at the current time step can be represented as:

[0162] h i =BiLSTM(x t h t-1 Based on this, the feature encoding H = (h_1, h_2, ..., h_n) of the BiLSTM layer for the input text sequence can be obtained. Considering that in actual annotation tasks, the label of the current word is related to the labels of the preceding and following text, a Conditional Random Field (CRF) decoding layer is added above the BiLSTM encoding layer to obtain the globally optimal label sequence. During the CRF decoding process, for the input sequence H = (h_1, h_2, ..., h_n) n The corresponding label sequence H = (h1, h2, ..., h) n The total scores are shown below:

[0163]

[0164] Among them, score(y i ) is the current tag y i The score, T is the transition matrix, representing the transition scores between labels, T i,j This represents the probability of moving from label i to label j from the current position.

[0165] Part Three: The iterative dilation of convolutional neural network layers in conjunction with the graph attention network, i.e., the score calculation sub-model. In the graph attention network, the attention of each attention layer node to (i, j) is calculated as follows:

[0166]

[0167] Where, α ij N is the attention coefficient from node i to j. i Let h represent the neighboring nodes of node i. The node input features are h = {h1, h2, ..., h...} n}, h i ∈R F , where N and F represent the number of nodes and the feature dimension, respectively. The output of the node features is:

[0168] h′ i ={h′1,h′2,…,h′ n}, h′ i ∈R F′W∈R F′×F It is the linear transformation weight matrix applied at each node, a∈R 2F′ This is a weight vector that maps the input to R. Finally, softmax is used for normalization, and LeakyReLU is added to provide non-linearity (where the slope of the negative input is 0.2). The final feature output of the node is obtained by the following equation:

[0169]

[0170] In classic convolutional neural networks, the convolutional kernel slides across a continuous region. Dilated convolution adds a dilation width on top of the classic convolution. During the convolution operation, data within the dilation width is skipped, while the kernel size remains unchanged. This allows a kernel of the same size to capture a wider input matrix, increasing its receptive field. For recurrent neural networks, IDCNN can accelerate GPU parallelism and reduce training time. See the diagram for a diagram of dilated convolution. Figure 6 These three figures represent three layers of convolution operations. Figure (a) shows a normal convolution operation with a kernel size of 3×3. Figure (b) shows a convolution with a dilation width of 2, which, when placed above the convolution in (a), increases the receptive field of view to 7×7. Figure (c) shows a convolution with a dilation width of 4, which, when placed above the convolution in (b), effectively expands the receptive field of view to 15×15.

[0171] Part Four: CRF Decoding Layer, or Decoding Sub-model. In the CRF decoding process, for the input sequence H = (h1, h2, ..., h...) n The corresponding label sequence y = (y1, y2, ..., y) n The total scores are shown below:

[0172]

[0173] Among them, score(y i ) is the current tag y i The score, T is the transition matrix, representing the transition scores between labels, T i,j This represents the probability of moving from label i to label j from the current position.

[0174] Some embodiments of this application utilize a language generation model based on Long Short-Term Memory (LSTM) networks for data augmentation; establish a Bert-BiLSTM-IDCNN-CRF network threat intelligence information extraction model that combines graph attention networks; improve the robustness and generalization of the model using adversarial training methods; and extract network threat intelligence triples through the model.

[0175] Optionally, the expanded feature vector is determined based on the contextual semantic feature vector, the attention score provided by the graph attention network, and the pre-trained score calculation model, including:

[0176] The attention score of each tag in the processed network threat intelligence information is determined by using a graph attention network model.

[0177] By iteratively expanding the convolutional neural network model, the receptive field of view is increased, and the extraction range of contextual semantic feature vectors is broadened. Based on the attention score and the extraction range of contextual semantic feature vectors, the expanded feature vector is determined.

[0178] In some embodiments of this application, a graph attention network is established to determine the attention score of each tag in the processed network threat intelligence information. By iteratively expanding the convolutional neural network model, the receptive field is increased, and the extraction range of contextual semantic feature vectors is expanded. Based on the attention score and the extraction range of contextual semantic feature vectors, the expanded feature vector is determined to obtain a larger feature extraction range and higher accuracy. Through the network threat intelligence information extraction model combining graph attention networks, efficient identification of nested entities and overlapping relationships in network threat intelligence is achieved.

[0179] Optionally, a decoding model is used to decode the expanded feature vector to obtain the maximum probability label sequence corresponding to the network threat intelligence information, and the network threat intelligence triplet information corresponding to the network threat intelligence information, including:

[0180] Calculate the score of the label sequence corresponding to the expanded contextual semantic feature vector based on the expanded contextual semantic feature vector;

[0181] Sort the scores of the label sequences to obtain the label sequence with the highest probability;

[0182] Based on the highest probability label sequence, determine the network threat intelligence triplet information corresponding to the network threat intelligence information.

[0183] Some embodiments of this application establish a decoding model to decode the expanded contextual semantic feature vector containing attention scores, obtain the scores of the label sequences corresponding to each expanded contextual semantic feature vector, sort the scores of the label sequences to obtain the highest probability label sequence, and determine the network threat intelligence triplet information corresponding to the network threat intelligence information based on the highest probability label sequence, thereby improving the accuracy of network threat intelligence identification.

[0184] The flowchart of the threat intelligence information extraction model module is as follows: Figure 7 As shown, the extraction training process consists of the following seven steps.

[0185] Step 1: Data Augmentation. Data augmentation is performed on the corpus processed by the threat intelligence preprocessing module. Label linearization, or BIO (Block Identification and Integration), is used: the original sequence label tags are mixed with sentence tokens to form a label-word format. Label O is not mixed with the sentence. After label linearization, a sentence is generated. Based on this sentence, a language model can be trained to generate new data, resulting in a data-augmented corpus.

[0186] Step 2: Vectorize the input text sequence using a BERT pre-trained language model;

[0187] Step 3: Add adversarial examples;

[0188] Step 4: Extract contextual semantic features from the input sequence using the BiLSTM model;

[0189] Step 5: Increase the receptive field of view and expand the range of contextual semantic feature extraction by iteratively expanding the convolutional neural network;

[0190] Step 6: Calculate the attention score using a graph attention network;

[0191] Step 7: Decode the CRF layer to obtain the highest probability label sequence and relationship prediction.

[0192] Step 8: Transfer learning. Evaluate the trained model on the source threat intelligence corpus and fine-tune the model. During fine-tuning, some layers or parameters can be frozen and only some layers or parameters can be fine-tuned to avoid overfitting.

[0193] After the threat intelligence information extraction module, the entities in each sentence of the text can be obtained, as well as the network threat intelligence triples composed of the head entity, the tail entity and their relationships, that is, such as Figure 5 The head entity is a sea lotus, the tail entity is Vietnam, and the relationship is from.

[0194] For example, step 1: Use web crawling technology to obtain raw network threat intelligence data from 8 major threat intelligence sources; step 1 can be further divided into 5 steps:

[0195] Step 1-1: Create a seed URL queue, which contains URLs of domestic and international cybersecurity threat intelligence platforms.

[0196] Steps 1-2: Create and generate a queue of URLs to be crawled from the seed URL queue;

[0197] Steps 1-3: Read URLs from the queue of URLs to be crawled;

[0198] Steps 1-4: Perform DNS resolution on the URL, access the corresponding webpage, download the webpage, add the downloaded page to the downloaded webpage library, and add the URL of the downloaded webpage to the crawled URL queue.

[0199] Steps 1-5: Based on the already crawled URL queue, crawl a new URL queue, add it to the URL queue to be crawled, and repeat steps 3 to 5 until a sufficient number of web page contents have been downloaded.

[0200] Step 2: For the raw data obtained in Step 1, integrate the data to form a large-scale, non-redundant, and numerically clear network threat intelligence database; for the data in the database, perform data cleaning using methods such as keyword density, regular expressions, outlier analysis, and mean imputation; reduce the cleaned data to a specific dimension; and perform grammatical transformation, pronoun parsing, synonym processing, and subject omission parsing on the reduced data.

[0201] Step 2 can be further divided into 8 steps:

[0202] Step 2-1 involves data integration of the raw threat intelligence corpus, and structuring the multi-source heterogeneous data.

[0203] Step 2-2: Use TF-IDF and word frequency statistics to process the keyword density of threat intelligence articles and remove irrelevant text with low keyword density.

[0204] Steps 2-3: Use regular expressions to remove irrelevant characters;

[0205] Steps 2-4: For sentence paragraphs with abnormal lengths, imput them using the mean of similar samples;

[0206] Steps 2-5: Segment the sentence to ensure that its length is less than 512 characters / words;

[0207] Steps 2-6: Filter out sentences that describe the attacking organization, attack methods, etc.;

[0208] Steps 2-7: Complete pronoun parsing, subject omission parsing, and voice conversion through coreference resolution and role semantic annotation.

[0209] Steps 2-8: Output the text in JSON format.

[0210] Step 3: Perform data augmentation using an LSTM-based language generation model; establish a Bert-BiLSTM-IDCNN-CRF network threat intelligence extraction model that combines graph attention networks; improve the robustness and generalization of the model using adversarial training; extract network threat intelligence triples through the model.

[0211] Step 3 can be further divided into 7 steps:

[0212] Step 3-1: Data Augmentation. Data augmentation is performed on the corpus obtained in Steps 2-8 using label linearization: the original sequence labeling is mixed with sentence tokens (each word in the sentence) to form a label-word format. Label O is not mixed with the sentence. After label linearization, a sentence is generated. Based on this sentence, a language model can be trained to generate new data, resulting in a data-augmented corpus.

[0213] Step 3-2: Vectorize the input text sequence using a BERT pre-trained language model;

[0214] Step 3-3: Add adversarial examples;

[0215] Steps 3-4: Extract contextual semantic features from the input sequence using the BiLSTM model;

[0216] Steps 3-5: Increase the receptive field of view and expand the scope of contextual semantic feature extraction by iteratively expanding the convolutional neural network;

[0217] Steps 3-6: Calculate attention scores using a graph attention network;

[0218] Steps 3-7: Decode the CRF layer to obtain the highest probability label sequence and relation prediction triplet.

[0219] Step 4: Construct a network threat attack attribution map from the threat intelligence triples obtained in Steps 3-7, and conduct threat intelligence analysis.

[0220] In this embodiment, adversarial training and transfer learning methods are introduced to improve the robustness and generalization of the network threat intelligence information extraction model; by using data augmentation methods, the problem of extremely imbalanced label distribution in network threat intelligence samples is solved, saving the cost of manually labeling a large amount of data; and by combining the network threat intelligence information extraction model with graph attention networks, efficient identification of nested entities and overlapping relationships in network threat intelligence is achieved.

[0221] This application addresses the insufficient robustness and generalization of existing models for network threat intelligence. It adds adversarial examples to the initial vectors of the BERT pre-trained language model to improve robustness and introduces transfer learning to enhance generalization performance. Specifically, the trained model is evaluated on the source threat intelligence corpus, and fine-tuned. During fine-tuning, some layers or parameters can be frozen, and only those layers or parameters are fine-tuned to avoid overfitting. To address the sample loss problem caused by the highly imbalanced label distribution in network threat intelligence samples in existing solutions, a combination of label linearization and a language generation model is used to augment the data in the corpus processed by the threat intelligence preprocessing module. Furthermore, to address the inability of existing solutions to effectively identify nested entities and overlapping relationships in network threat intelligence, a Bert-BiLSTM-IDCNN-CRF network threat intelligence information extraction model combining graph attention networks is proposed.

[0222] It should be noted that each of the implementable methods in this embodiment can be implemented individually or in any combination without conflict. This application does not limit this.

[0223] Another embodiment of this application provides a threat intelligence information processing apparatus for executing the threat intelligence information processing method provided in the above embodiments.

[0224] like Figure 8 The diagram shown is a structural schematic of a threat intelligence information processing device provided in an embodiment of this application. The threat intelligence information processing device includes an acquisition module 801, a processing module 802, a determination module 803, and an analysis module 804, wherein:

[0225] Module 801 is used to acquire network threat intelligence information;

[0226] Processing module 802 is used to preprocess network threat intelligence information to obtain processed network threat intelligence information;

[0227] The determination module 803 is used to determine the triple information of the network threat intelligence information based on the processed network threat intelligence information and the pre-trained threat intelligence information extraction model. The triple information of the network threat intelligence information includes at least head entity data, tail entity data, and the relationship between the entity data. The threat intelligence information extraction model is obtained by training a neural network model using adversarial example data.

[0228] Analysis module 804 is used to perform threat intelligence analysis based on the triplet information of network threat intelligence information.

[0229] Regarding the apparatus in this embodiment, the specific manner in which each module performs its operations has been described in detail in the embodiments related to the method, and will not be elaborated upon here.

[0230] Some embodiments of this application improve the robustness and generalization of the network threat intelligence information extraction model by introducing adversarial sample data and transfer learning methods. At the same time, the threat intelligence information extraction model is used to identify triple information in network threat intelligence information and to perform threat intelligence analysis based on the triple information in the network threat intelligence information, thereby improving the efficiency of threat intelligence information extraction.

[0231] Another embodiment of this application further supplements the description of the threat intelligence information processing apparatus provided in the above embodiments.

[0232] Optionally, the threat intelligence information extraction model includes at least: a pre-trained language sub-model, a feature extraction network sub-model, a score calculation sub-model, and a decoding sub-model. The pre-trained language sub-model is used to extract feature vectors. The feature extraction network sub-model is obtained by training a neural network using adversarial example data. The score calculation sub-model is obtained by training an iteratively dilated convolutional neural network model with added graph attention network. The decoding sub-model is used to decode the feature vector containing attention scores to obtain the probability of the entity corresponding to the label.

[0233] Some embodiments of this application address the local instability of the entity relationship extraction model by adding adversarial examples to the initial vectors after processing the training language sub-model, thereby improving the robustness of the threat intelligence information extraction model.

[0234] Optionally, the determination module is used for:

[0235] Based on the processed network threat intelligence information and the pre-trained language sub-model, determine the first feature vector corresponding to the processed network threat intelligence information;

[0236] Based on the first feature vector and the feature extraction network sub-model, determine the contextual semantic feature vector corresponding to the first feature vector;

[0237] The expanded feature vector is determined based on the contextual semantic feature vector, the attention score provided by the graph attention network, and the pre-trained score calculation model;

[0238] A decoding model is used to decode the expanded feature vector to obtain the maximum probability label sequence corresponding to the network threat intelligence information, as well as the network threat intelligence triplet information corresponding to the network threat intelligence information.

[0239] Some embodiments of this application utilize a language generation model based on Long Short-Term Memory (LSTM) networks for data augmentation; establish a Bert-BiLSTM-IDCNN-CRF network threat intelligence information extraction model that combines graph attention networks; improve the robustness and generalization of the model using adversarial training methods; and extract network threat intelligence triples through the model.

[0240] Optionally, the determination module is used for:

[0241] The attention score of each tag in the processed network threat intelligence information is determined by using a graph attention network model.

[0242] By iteratively expanding the convolutional neural network model, the receptive field of view is increased, and the extraction range of contextual semantic feature vectors is broadened. Based on the attention score and the extraction range of contextual semantic feature vectors, the expanded feature vector is determined.

[0243] In some embodiments of this application, a graph attention network is established to determine the attention score of each tag in the processed network threat intelligence information. By iteratively expanding the convolutional neural network model, the receptive field is increased, and the extraction range of contextual semantic feature vectors is expanded. Based on the attention score and the extraction range of contextual semantic feature vectors, the expanded feature vector is determined to obtain a larger feature extraction range and higher accuracy. Through the network threat intelligence information extraction model combining graph attention networks, efficient identification of nested entities and overlapping relationships in network threat intelligence is achieved.

[0244] Optionally, the determination module is used for:

[0245] Calculate the score of the label sequence corresponding to the expanded contextual semantic feature vector based on the expanded contextual semantic feature vector;

[0246] Sort the scores of the label sequences to obtain the label sequence with the highest probability;

[0247] Based on the highest probability label sequence, determine the network threat intelligence triplet information corresponding to the network threat intelligence information.

[0248] Some embodiments of this application establish a decoding model to decode the expanded contextual semantic feature vector containing attention scores, obtain the scores of the label sequences corresponding to each expanded contextual semantic feature vector, sort the scores of the label sequences to obtain the highest probability label sequence, and determine the network threat intelligence triplet information corresponding to the network threat intelligence information based on the highest probability label sequence, thereby improving the accuracy of network threat intelligence identification.

[0249] Optionally, the processing module is used for:

[0250] Store cyber threat intelligence information in a database;

[0251] Data cleaning of network threat intelligence information in the database is performed by keyword density analysis, regular expression analysis, outlier analysis, and mean imputation to obtain cleaned network threat intelligence information.

[0252] The cleaned network threat intelligence information is reduced to obtain the reduced cleaned network threat intelligence information.

[0253] The reduced and cleaned network threat intelligence information is processed by voice conversion, pronoun parsing, synonym processing, and subject omission parsing to obtain the processed network threat intelligence information.

[0254] Some embodiments of this application preprocess the acquired network threat intelligence information to obtain vectors that meet the input requirements of the threat intelligence information extraction model, and use data augmentation methods to solve the problem of extremely unbalanced label distribution in network threat intelligence samples, saving the cost of manually labeling a large amount of data.

[0255] Optionally, the acquisition module is used for:

[0256] Create a seed URL queue, wherein the seed URL queue includes URLs from at least multiple different sources;

[0257] Perform domain name resolution on each URL in the seed URL queue to obtain the page information corresponding to the URL;

[0258] The page information was identified as cyber threat intelligence.

[0259] Some embodiments of this application enrich the network threat intelligence database by acquiring network threat intelligence information from multiple different data sources, thereby obtaining more accurate triplet information and enabling more comprehensive and accurate threat intelligence analysis. Regarding the apparatus in this embodiment, the specific methods by which each module performs its operations have been described in detail in the embodiments related to the method, and will not be elaborated upon here.

[0260] It should be noted that each of the implementable methods in this embodiment can be implemented individually or in any combination without conflict. This application does not limit this.

[0261] This application also provides a computer-readable storage medium storing a computer program thereon. When the program is executed by a processor, it can implement the operation of any of the methods corresponding to the methods in the threat intelligence information processing methods provided in the above embodiments.

[0262] This application also provides a computer program product, which includes a computer program. When the computer program is executed by a processor, it can implement the operation of any of the methods corresponding to the methods in the threat intelligence information processing methods provided in the above embodiments.

[0263] like Figure 9 As shown, some embodiments of this application provide an electronic device 900, which includes: a memory 910, a processor 920, and a computer program stored in the memory 910 and executable on the processor 920. When the processor 920 reads the program from the memory 910 via a bus 930 and executes the program, it can implement any of the methods included in the above-described threat intelligence information processing method.

[0264] Processor 920 can process digital signals and can include various computing architectures. For example, it can be a complex instruction set computer architecture, a reduced instruction set computer architecture, or an architecture that implements multiple instruction set combinations. In some examples, processor 920 can be a microprocessor.

[0265] The memory 910 can be used to store instructions executed by the processor 920 or data related to the execution of instructions. These instructions and / or data may include code for implementing some or all of the functions of one or more modules described in the embodiments of this application. The processor 920 of this disclosure embodiment can be used to execute the instructions in the memory 910 to implement the methods shown above. The memory 910 includes dynamic random access memory, static random access memory, flash memory, optical memory, or other memories well known to those skilled in the art.

[0266] The above are merely embodiments of this application and are not intended to limit the scope of protection of this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of protection of this application. It should be noted that similar reference numerals and letters in the following figures indicate similar items; therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures.

[0267] The above are merely specific embodiments of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

[0268] 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 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 one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

Claims

1. A method for processing threat intelligence information, characterized in that, The method includes: Obtain cyber threat intelligence; The network threat intelligence information is preprocessed to obtain processed network threat intelligence information; Based on the processed network threat intelligence information and the pre-trained threat intelligence information extraction model, the triple information of the network threat intelligence information is determined, wherein the triple information of the network threat intelligence information includes at least head entity data, tail entity data, and the relationship between entity data; the threat intelligence information extraction model is obtained by training a neural network model using adversarial example data. Threat intelligence analysis is performed based on the triplet information of the aforementioned network threat intelligence information; The threat intelligence information extraction model includes at least a pre-trained language sub-model, a feature extraction network sub-model, a score calculation sub-model, and a decoding sub-model. The pre-trained language sub-model is used to extract feature vectors, and the feature extraction network sub-model is a bidirectional long short-term memory network layer used for adversarial training. Based on the BERT pre-trained language model, a BiLSTM model is used to extract contextual semantic features of the input sequence, and adversarial training of the model is achieved by adding small perturbations to the training data. The feature extraction network sub-model is obtained by training the neural network with adversarial example data. The score calculation sub-model is obtained by training an iteratively dilated convolutional neural network model with added graph attention network. The decoding sub-model is used to decode the feature vector containing attention scores to obtain the probability of the entity corresponding to the label. The step of determining the triplet information related to the network threat intelligence information based on the processed network threat intelligence information and the pre-trained threat intelligence information extraction model includes: Based on the processed network threat intelligence information and the pre-trained language sub-model, a first feature vector corresponding to the processed network threat intelligence information is determined. Based on the first feature vector and the feature extraction network sub-model, determine the context semantic feature vector corresponding to the first feature vector; The expanded feature vector is determined by calculating the sub-model based on the contextual semantic feature vector, the attention score provided by the graph attention network, and the pre-trained score; The expanded feature vector is decoded using a decoding sub-model to obtain the maximum probability label sequence corresponding to the network threat intelligence information, and the network threat intelligence triplet information corresponding to the network threat intelligence information; in: The step of calculating the sub-model based on the contextual semantic feature vector, the attention score provided by the graph attention network, and the pre-trained score, and determining the expanded feature vector, includes: The attention score of each tag in the processed network threat intelligence information is determined using a graph attention network model. By iteratively expanding the convolutional neural network model, the receptive field of view is increased, and the extraction range of the contextual semantic feature vector is expanded. Based on the attention score and the extraction range of the contextual semantic feature vector, the expanded feature vector is determined.

2. The method for processing threat intelligence information according to claim 1, characterized in that, The process of decoding the expanded feature vector using a decoding sub-model to obtain the maximum probability label sequence corresponding to the network threat intelligence information, and the network threat intelligence triplet information corresponding to the network threat intelligence information, includes: Based on the expanded contextual semantic feature vector, calculate the score of the label sequence corresponding to the expanded contextual semantic feature vector; The scores of the label sequences are sorted to obtain the label sequences with the highest probability. Based on the maximum probability label sequence, determine the network threat intelligence triplet information corresponding to the network threat intelligence information.

3. The method for processing threat intelligence information according to claim 1, characterized in that, The preprocessing of the network threat intelligence information to obtain processed network threat intelligence information includes: The network threat intelligence information is stored in a database; The network threat intelligence information in the database is cleaned by performing keyword density, regular expression, outlier analysis, and mean imputation to obtain cleaned network threat intelligence information. The cleaned network threat intelligence information is subjected to dimension reduction processing to obtain reduced cleaned network threat intelligence information. The reduced and cleaned network threat intelligence information is subjected to voice conversion, pronoun parsing, synonym processing, and subject omission parsing to obtain the processed network threat intelligence information.

4. The method for processing threat intelligence information according to claim 1, characterized in that, The acquisition of network threat intelligence information includes: Create a seed URL queue, wherein the seed URL queue includes at least a number of URLs from different sources; Perform domain name resolution on each URL in the seed URL queue to obtain the page information corresponding to the URL; The page information is identified as the network threat intelligence information.

5. A threat intelligence information processing device, characterized in that, The device includes: The acquisition module is used to acquire network threat intelligence information; The processing module is used to preprocess the network threat intelligence information to obtain processed network threat intelligence information; The determination module is used to determine the triple information of the network threat intelligence information based on the processed network threat intelligence information and the pre-trained threat intelligence information extraction model. The triple information of the network threat intelligence information includes at least head entity data, tail entity data, and the relationship between the entity data. The threat intelligence information extraction model is obtained by training a neural network model using adversarial example data. The analysis module is used to perform threat intelligence analysis based on the triplet information of the network threat intelligence information; The threat intelligence information extraction model includes at least a pre-trained language sub-model, a feature extraction network sub-model, a score calculation sub-model, and a decoding sub-model. The pre-trained language sub-model is used to extract feature vectors, and the feature extraction network sub-model is a bidirectional long short-term memory network layer used for adversarial training. Based on the BERT pre-trained language model, a BiLSTM model is used to extract contextual semantic features of the input sequence, and adversarial training of the model is achieved by adding small perturbations to the training data. The feature extraction network sub-model is obtained by training the neural network with adversarial example data. The score calculation sub-model is obtained by training an iteratively dilated convolutional neural network model with added graph attention network. The decoding sub-model is used to decode the feature vector containing attention scores to obtain the probability of the entity corresponding to the label. The step of determining the triplet information related to the network threat intelligence information based on the processed network threat intelligence information and the pre-trained threat intelligence information extraction model includes: Based on the processed network threat intelligence information and the pre-trained language sub-model, a first feature vector corresponding to the processed network threat intelligence information is determined. Based on the first feature vector and the feature extraction network sub-model, determine the context semantic feature vector corresponding to the first feature vector; The expanded feature vector is determined by calculating the sub-model based on the contextual semantic feature vector, the attention score provided by the graph attention network, and the pre-trained score; The expanded feature vector is decoded using a decoding sub-model to obtain the maximum probability label sequence corresponding to the network threat intelligence information, and the network threat intelligence triplet information corresponding to the network threat intelligence information. in: The analysis module is used for: The attention score of each tag in the processed network threat intelligence information is determined using a graph attention network model. By iteratively expanding the convolutional neural network model, the receptive field of view is increased, and the extraction range of the contextual semantic feature vector is expanded. Based on the attention score and the extraction range of the contextual semantic feature vector, the expanded feature vector is determined.

6. An electronic device, characterized in that, The system includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor, when executing the program, can implement the method for processing threat intelligence information as described in any one of claims 1-4.

7. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, can implement the method for processing threat intelligence information as described in any one of claims 1-4.

Citation Information

Patent Citations

  • Threat intelligence information extraction method based on deep learning

    CN114330322A

  • Defense method for adversarial training based on part-of-speech fusion in Chinese text

    CN114861654A