Dynamic threat graph generation method and system based on improved support vector machine

Through the improved support vector machine algorithm and particle swarm optimization technology, a dynamic threat map is constructed, which solves the problems of high false alarm rate and low detection efficiency in the existing technology, and achieves efficient identification of unknown threats and reduces the false alarm rate.

CN118631531AActive Publication Date: 2024-09-10SHANDONG LANGCHAO YUNTOU INFORMATION TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202410764680.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-14
Publication Date
2024-09-10
Estimated Expiration
2044-06-14

AI Technical Summary

Technical Problem

Existing threat map generation models rely on expert rules, resulting in high false alarm rates and low detection efficiency, making it difficult to effectively identify unknown threats in complex network attacks.

Method used

Using an improved support vector machine algorithm combined with particle swarm optimization, a dynamic threat graph is constructed by extracting key knowledge information from text and machine data to realize the automatic identification of unknown attacks in the threat graph system.

Benefits of technology

It reduces the false positive rate of rule detection, improves threat detection efficiency, enhances the stability of cloud center business, and reduces manual participation costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118631531A
    Figure CN118631531A
Patent Text Reader

Abstract

The invention particularly relates to a dynamic threat graph generation method and system based on an improved support vector machine. According to the dynamic threat graph generation method and system based on the improved support vector machine, key knowledge information is intelligently extracted from text and machine data, a dynamic threat graph generation engine is constructed based on an improved support vector machine algorithm, comprehensive and associated intelligence graph data is generated, and a threat graph system actively recognizes unknown attacks. According to the dynamic threat graph generation method and system based on the improved support vector machine, an original mode depending on expert rules is converted into an irregular threat graph generation engine, so that the false alarm rate of rule detection is reduced, the detection efficiency of existing threats is improved, and the stability of the overall service of a cloud center is effectively ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of information security technology, and in particular to a method and system for generating a dynamic threat graph based on an improved support vector machine. Background Art

[0002] With the continuous development of Internet application technology and the continuous growth of new threats and attacks, represented by advanced persistent threat technology (APT), a large number of government and enterprise units will directly connect to the Internet to carry out related work. However, the trend of network security has become more severe year by year, and Internet network attacks have occurred frequently, threatening the current network space security. In order to learn from previous major network attack incidents, security practitioners will carefully analyze previous incidents and give relevant reports.

[0003] On the other hand, threat graph technology has advantages in knowledge search, fusion, reasoning and visualization, and has been successfully applied in many fields. In the current complex cyberspace security context, how to automatically and intelligently analyze the key fingerprints in the report from numerous attacks and thus construct a threat intelligence knowledge graph has become an important research topic in the field of information security.

[0004] In order to reduce the false alarm rate of rule detection and improve the detection efficiency of existing threats, the present invention proposes a method and system for generating a dynamic threat map based on an improved support vector machine. Summary of the invention

[0005] In order to make up for the defects of the prior art, the present invention provides a simple and efficient method for generating a dynamic threat map based on an improved support vector machine.

[0006] The present invention is achieved through the following technical solutions:

[0007] A dynamic threat map generation method based on an improved support vector machine, characterized by: intelligently extracting key knowledge information from text and machine data, building a dynamic threat map generation engine based on an improved support vector machine algorithm, and outputting comprehensive and related intelligence map data, so that the threat map system can actively identify unknown attacks;

[0008] The following steps are involved:

[0009] Step S1: Knowledge Catch

[0010] The open or semi-open text data on the Internet is used as the original corpus for data reading, and the read data is classified and cleaned. Finally, the cleaned intelligence data is semi-automatically annotated manually to build a primary intelligence corpus;

[0011] Step S2: Behavior Modeling

[0012] Based on the intelligence corpus, threat knowledge extraction and data classification statistics are carried out to implement data clustering analysis and obtain threat intelligence data; a threat knowledge prediction model is constructed, and the support vector machine algorithm is used to train the intelligence data;

[0013] When extracting threat knowledge, events, risks and threat knowledge are extracted in sequence with time dimension; a threat knowledge prediction model is constructed based on the event, risk and threat knowledge triples;

[0014] Step S3: Generate a dynamic threat map (Threat Mapping)

[0015] The threat intelligence data obtained after the behavior entity modeling in step S2 is subjected to threat characterization to construct a threat map.

[0016] In the step S1, a whitelist mechanism is introduced in the process of cleaning the read data; the crawled and collected text data is filtered through the whitelist and then output for use.

[0017] In step S1, the public or semi-public text data includes but is not limited to a public vulnerability library, a public hacker group's Weibo, and the public Weibo data of the hacker group;

[0018] The whitelist of public or semi-public text data includes at least the following dimensions:

[0019] 1) Vulnerability intelligence library whitelist dimensions: vulnerability number (vulNumber), vulnerability content (vulDesc), vulnerability level (vulLevel), vulnerability disclosure time (vulCommitDate), vulnerability update time (vulUpdate) and vulnerability submitter (vulCommitAuthor);

[0020] 2) Hacker organization whitelist dimensions: Weibo ID (AuthorID), hacker organization ID (HackersID), content data published by the hacker organization (HackersPublishDesc), subscriber ID (SeedID), number of reads (ReadCount), content commented on by the hacker organization (HackersCommits), and user IDs followed by the hacker organization (HackersFocusUserID).

[0021] In step S1, the public vulnerability library includes but is not limited to the CVE vulnerability library and the SYNK vulnerability library;

[0022] For the public vulnerability database, a web crawler is written to crawl by category in the form of XML; the data structure includes six fields: vulnerability number vulNumber, vulnerability content vulDesc, vulnerability level vulLevel, vulnerability disclosure time vulCommitDate, vulnerability update time vulUpdate and vulnerability submitter vulCommitAuthor, and the vulnerability set E = (vulNumber, vulDesc, vulLevel, vulCommitDate, vulUpdate, vulCommitAuthor);

[0023] The hacker organization is marked as v, and a set of hacker organizations P is constructed, where v∈P. The historical data that the hacker organization v has ever released is crawled, and the Weibo user IDs that have liked, forwarded, and commented on each piece of intelligence corresponding to each piece of data, that is, the Weibo user IDs that have clicked on the corresponding threat intelligence, are used as the subsequent threat map data.

[0024] After filtering the whitelist, we get the intelligence knowledge base set (E, P) and generate m i dimensional vector, m i The current whitelist dimension.

[0025] In step S2, since the support vector machine algorithm has the problem of blindness in parameter selection during the training process when predicting the model, when constructing the threat knowledge prediction model, the particle swarm optimization algorithm is used to optimize the selected parameters, thereby improving the accuracy of the prediction model;

[0026] The specific steps are as follows:

[0027] Step S2.1, match the intelligence knowledge base with the built-in feature library for feature code. If the match is successful, the matching process is terminated and the matching result data is marked and stored; if all features in the feature library fail to match, the matching is terminated;

[0028] Step S2.2, read the prefabricated model training sample set, use the extracted event, risk and threat knowledge triples as initial training parameters to complete the first training of the support vector machine model, and obtain the initial prediction model;

[0029] The support vector machine model adopts the sub-gradient descent algorithm, and the formula is as follows:

[0030]

[0031] Among them, m is the event set, and the current whitelist dimension is m i is the i-th element in the event set m; x i is the i-th risk element, y i is the ith threat knowledge, n is the number of cycles;

[0032] Step S2.3, continue to read the model training sample set, and use the initial prediction model to complete the situation value prediction of the test sample to obtain the initial prediction result;

[0033] Step S2.4, using particle swarm algorithm to correct the prediction results;

[0034] The fitness evaluation function R formula of the particle swarm algorithm is as follows:

[0035]

[0036] Among them, f 1n is the initial prediction result, f 2n is the true situation value in the test sample set;

[0037] The fitness evaluation function R is used to calculate the error between the initial prediction result and the true situation value in the test sample set; when the fitness evaluation function R meets the entire convergence condition, the initial prediction model is the final prediction model, otherwise the particle swarm algorithm iterates and passes the second set of training parameters to the support vector machine model, the support vector machine model re-reads the training sample set for a second training to obtain the second-generation prediction model, and then uses the test sample set to verify the accuracy of the second-generation prediction model; and so on, until the final prediction model that meets the convergence condition of the fitness evaluation function R is obtained; the prediction result is output.

[0038] In step S2, a weighted round-robin method is used through a round-robin algorithm to schedule the process of knowledge construction.

[0039] In step S3, taking security events as the ontology, through abstraction of the entire attack process, taking entity information including but not limited to attack domain names and IP addresses as the ancestor, and according to the characteristics and rules of the threat intelligence field, a threat intelligence field ontology structure is created from top to bottom, and six threat information components are proposed for the threat intelligence ontology, namely, security events, threat subjects, attack indicators, observable objects, attack methods and attack targets.

[0040] Through the threat intelligence named entity recognition model based on multiple factors and the threat intelligence entity relationship extraction model based on graph neural network, the entity and relationship triplets (events, risks and threat knowledge) of the threat intelligence text are obtained, and the obtained triplets are stored in the graph database to generate a threat map.

[0041] A dynamic threat map generation system based on an improved support vector machine, characterized by: comprising a knowledge learning module, a behavior entity modeling module, a dynamic threat map generation module and a logic storage module;

[0042] The knowledge learning module uses the open or semi-open text data on the Internet as the original corpus to read data, classify and clean the read data, and finally semi-automatically manually annotate the cleaned intelligence data to build a primary intelligence corpus;

[0043] The behavior entity modeling module includes a threat knowledge extraction submodule, a threat knowledge construction submodule and a task scheduling submodule;

[0044] The threat knowledge extraction submodule performs threat knowledge extraction and data classification statistics based on the intelligence corpus, implements data clustering analysis, and obtains threat intelligence data;

[0045] The threat knowledge construction submodule is responsible for constructing a threat knowledge prediction model and training intelligence data using a support vector machine algorithm;

[0046] The task scheduling submodule schedules the knowledge construction process by using a weighted round-robin algorithm;

[0047] When the threat knowledge extraction submodule extracts threat knowledge, it extracts events, risks and threat knowledge in sequence with the time dimension; and constructs a threat knowledge prediction model based on the event, risk and threat knowledge triples;

[0048] The dynamic threat map generation module performs threat characterization on the threat intelligence data obtained after the behavior entity modeling to construct a threat map;

[0049] The logic storage module includes two types of storage modes: a distributed MySQL database cluster and a distributed HBASE database; the distributed MySQL database cluster is used to store sample sets for model training and judgment results for attacks; the distributed HBASE database is used to store information related to signal capture volume.

[0050] The knowledge learning module is provided with a whitelist mechanism, and the crawled and collected text data is filtered through the whitelist and then output for use;

[0051] The public or semi-public text data include but are not limited to public vulnerability libraries, public microblogs of hacker organizations, and public microblog data of hacker organizations;

[0052] The whitelist of public or semi-public text data includes at least the following dimensions:

[0053] 1) Vulnerability intelligence library whitelist dimensions: vulnerability number (vulNumber), vulnerability content (vulDesc), vulnerability level (vulLevel), vulnerability disclosure time (vulCommitDate), vulnerability update time (vulUpdate) and vulnerability submitter (vulCommitAuthor);

[0054] 2) Hacker organization whitelist dimensions: Weibo ID (AuthorID), hacker organization ID (HackersID), content data published by the hacker organization (HackersPublishDesc), subscriber ID (SeedID), number of reads (ReadCount), content commented on by the hacker organization (HackersCommits), and user IDs followed by the hacker organization (HackersFocusUserID);

[0055] Public vulnerability libraries include but are not limited to the CVE vulnerability library and the SYNK vulnerability library;

[0056] For the public vulnerability database, a web crawler is written to crawl by category in the form of XML; the data structure includes six fields: vulnerability number vulNumber, vulnerability content vulDesc, vulnerability level vulLevel, vulnerability disclosure time vulCommitDate, vulnerability update time vulUpdate and vulnerability submitter vulCommitAuthor, and the vulnerability set E = (vulNumber, vulDesc, vulLevel, vulCommitDate, vulUpdate, vulCommitAuthor);

[0057] The hacker organization is marked as v, and a set of hacker organizations P is constructed, where v∈P. The historical data that the hacker organization v has ever released is crawled, and the Weibo user IDs that have liked, forwarded, and commented on each piece of intelligence corresponding to each piece of data, that is, the Weibo user IDs that have clicked on the corresponding threat intelligence, are used as the subsequent threat map data.

[0058] After filtering the whitelist, we get the intelligence knowledge base set (E, P) and generate m i dimensional vector, m i The current whitelist dimension.

[0059] The threat knowledge construction submodule uses a particle swarm optimization algorithm to optimize the selected parameters, thereby improving the accuracy of the prediction model;

[0060] The specific steps are as follows:

[0061] Step S2.1, match the intelligence knowledge base with the built-in feature library for feature code. If the match is successful, the matching process is terminated and the matching result data is marked and stored; if all features in the feature library fail to match, the matching is terminated;

[0062] Step S2.2, read the prefabricated model training sample set, use the extracted event, risk and threat knowledge triples as initial training parameters to complete the first training of the support vector machine model, and obtain the initial prediction model;

[0063] The support vector machine model adopts the sub-gradient descent algorithm, and the formula is as follows:

[0064]

[0065] Among them, m is the event set, and the current whitelist dimension is m i is the i-th element in the event set m; x i is the i-th risk element, y i is the ith threat knowledge, n is the number of cycles;

[0066] Step S2.3, continue to read the model training sample set, and use the initial prediction model to complete the situation value prediction of the test sample to obtain the initial prediction result;

[0067] Step S2.4, using particle swarm algorithm to correct the prediction results;

[0068] The fitness evaluation function R formula of the particle swarm algorithm is as follows:

[0069]

[0070] Among them, f 1n is the initial prediction result, f 2n is the true situation value in the test sample set;

[0071] The fitness evaluation function R is used to calculate the error between the initial prediction result and the true situation value in the test sample set; when the fitness evaluation function R meets the entire convergence condition, the initial prediction model is the final prediction model, otherwise the particle swarm algorithm iterates and passes the second set of training parameters to the support vector machine model, the support vector machine model re-reads the training sample set for a second training to obtain the second-generation prediction model, and then uses the test sample set to verify the accuracy of the second-generation prediction model; and so on, until the final prediction model that meets the convergence condition of the fitness evaluation function R is obtained; the prediction result is output.

[0072] The dynamic threat map generation module takes security events as the ontology, abstracts the entire attack process, takes entity information including but not limited to attack domain names and IP addresses as the ancestor, and creates a threat intelligence domain ontology structure from top to bottom based on the characteristics and rules of the threat intelligence domain. It proposes six threat information components for the threat intelligence ontology, namely, security events, threat subjects, attack indicators, observable objects, attack methods, and attack targets.

[0073] The beneficial effect of the present invention is that the dynamic threat map generation method and system based on the improved support vector machine transforms the original expert rule-dependent method into a rule-free threat map generation engine, thereby reducing the false alarm rate of rule detection, improving the detection efficiency of existing threats, and effectively ensuring the stability of the overall business of the cloud center. BRIEF DESCRIPTION OF THE DRAWINGS

[0074] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0075] Attached Figure 1 It is a schematic diagram of a method for generating a dynamic threat graph based on an improved support vector machine according to the present invention.

[0076] Attached Figure 2 The figure is a schematic diagram of the improved support vector machine algorithm flow of the present invention. DETAILED DESCRIPTION

[0077] In order to enable those skilled in the art to better understand the technical solutions in the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0078] The improved support vector machine algorithm model (SVM) is a binary classification model that can be used for multi-category classification after modification. Support vector machines are divided into two categories: linear and nonlinear. The main idea is to find a hyperplane in the space that can separate all data samples and make the distance from all data in the sample set to this hyperplane the shortest.

[0079] Dynamic threat map generation engine, according to the prior experience of experts, most of the attack intelligence data on the Internet currently have complex correlations. For example, virus samples and Trojan samples usually use encrypted remote command and control instructions (C&C), so that when controlling the infected machine, the controlled bots (machines planted by Trojans and viruses) can be remotely controlled. Usually, the sample signature information, C&C remote address, URL, IP, communication domain name information of the virus and Trojan, as well as the corresponding domain name registrant, domain name holder, domain name-related contact information, domain name-related mobile phone number, domain name registration status information, domain name registration time, etc. of the communication domain name are usually summarized as WHOIS data. These core and absolutely sensitive data are automatically output to the database after passing through the dynamic threat map generation engine, and finally generate combat guidelines to guide the current network security defense system construction.

[0080] The existing schemes for threat graph generation models in the current cybersecurity industry rely solely on a single-dimensional threat library to match the target customer's information source, such as URL, compromised domain name, compromised IP data, etc. This single-dimensional threat intelligence data will not be associated with threat intelligence data of various complex dimensions; thus, the overall matching accuracy is relatively low. When data distortion or even abnormal matching errors occur, it will largely lead to false alarms on the user side. However, through the improved support vector machine algorithm combined with the dynamic threat graph generation engine, the intelligence data produced can effectively combine the advantages of all parties, reduce the false alarm rate, and effectively detect known attacks.

[0081] This dynamic threat map generation method based on improved support vector machine intelligently extracts key knowledge information from text and machine data, builds a dynamic threat map generation engine based on improved support vector machine algorithm, and produces comprehensive and related intelligence map data, so that the threat map system can actively identify unknown attacks;

[0082] The following steps are involved:

[0083] Step S1: Knowledge Catch

[0084] The open or semi-open text data on the Internet is used as the original corpus for data reading, and the read data is classified and cleaned. Finally, the cleaned intelligence data is semi-automatically annotated manually to build a primary intelligence corpus;

[0085] Step S2: Behavior Modeling

[0086] Based on the intelligence corpus, threat knowledge extraction and data classification statistics are carried out to implement data clustering analysis and obtain threat intelligence data; a threat knowledge prediction model is constructed, and the support vector machine algorithm is used to train the intelligence data;

[0087] When extracting threat knowledge, events, risks and threat knowledge are extracted in sequence with time dimension; a threat knowledge prediction model is constructed based on the event, risk and threat knowledge triples;

[0088] Step S3: Generate a dynamic threat map (Threat Mapping)

[0089] The threat intelligence data obtained after the behavior entity modeling in step S2 is subjected to threat characterization to construct a threat map.

[0090] It is particularly noted that currently both the public vulnerability intelligence database and the microblog data of the hacker organization are mixed with noise data. In the step S1, a whitelist mechanism is introduced in the process of cleaning the read data; the crawled and collected text data is filtered through the whitelist and then output for use.

[0091] In step S1, the public or semi-public text data includes but is not limited to a public vulnerability library, a public hacker group's Weibo, and the public Weibo data of the hacker group;

[0092] The whitelist of public or semi-public text data includes at least the following dimensions:

[0093] 1) Vulnerability intelligence library whitelist dimensions: vulnerability number (vulNumber), vulnerability content (vulDesc), vulnerability level (vulLevel), vulnerability disclosure time (vulCommitDate), vulnerability update time (vulUpdate) and vulnerability submitter (vulCommitAuthor);

[0094] 2) Hacker organization whitelist dimensions: Weibo ID (AuthorID), hacker organization ID (HackersID), content data published by the hacker organization (HackersPublishDesc), subscriber ID (SeedID), number of reads (ReadCount), content commented on by the hacker organization (HackersCommits), and user IDs followed by the hacker organization (HackersFocusUserID).

[0095] In step S1, the public vulnerability library includes but is not limited to the CVE vulnerability library and the SYNK vulnerability library;

[0096] For the public vulnerability database, a web crawler is written to crawl by category in the form of XML; the data structure includes six fields: vulnerability number vulNumber, vulnerability content vulDesc, vulnerability level vulLevel, vulnerability disclosure time vulCommitDate, vulnerability update time vulUpdate and vulnerability submitter vulCommitAuthor, and the vulnerability set E = (vulNumber, vulDesc, vulLevel, vulCommitDate, vulUpdate, vulCommitAuthor);

[0097] The hacker organization is marked as v, and a set of hacker organizations P is constructed, where v∈P. The historical data that the hacker organization v has ever released is crawled, and the Weibo user IDs that have liked, forwarded, and commented on each piece of intelligence corresponding to each piece of data, that is, the Weibo user IDs that have clicked on the corresponding threat intelligence, are used as the subsequent threat map data.

[0098] After filtering the whitelist, we get the intelligence knowledge base set (E, P) and generate m i dimensional vector, m i The current whitelist dimension.

[0099] In step S2, since the support vector machine algorithm has the problem of blindness in parameter selection during the training process when predicting the model, when constructing the threat knowledge prediction model, the particle swarm optimization algorithm is used to optimize the selected parameters, thereby improving the accuracy of the prediction model;

[0100] The specific steps are as follows:

[0101] Step S2.1, match the intelligence knowledge base with the built-in feature library for feature codes. If the match is successful, the matching process is terminated and the matching result data is marked and stored; if all features in the feature library fail to match, the matching is terminated;

[0102] Step S2.2, read the prefabricated model training sample set, use the extracted event, risk and threat knowledge triples as initial training parameters to complete the first training of the support vector machine model, and obtain the initial prediction model;

[0103] The support vector machine model adopts the sub-gradient descent algorithm, and the formula is as follows:

[0104]

[0105] Among them, m is the event set, and the current whitelist dimension is m i is the i-th element in the event set m; x i is the i-th risk element, y i is the ith threat knowledge, n is the number of cycles;

[0106] Step S2.3, continue to read the model training sample set, and use the initial prediction model to complete the situation value prediction of the test sample to obtain the initial prediction result;

[0107] Step S2.4, using particle swarm algorithm to correct the prediction results;

[0108] The fitness evaluation function R formula of the particle swarm algorithm is as follows:

[0109]

[0110] Among them, f 1n is the initial prediction result, f 2n is the true situation value in the test sample set;

[0111] The fitness evaluation function R is used to calculate the error between the initial prediction result and the true situation value in the test sample set; when the fitness evaluation function R meets the entire convergence condition, the initial prediction model is the final prediction model, otherwise the particle swarm algorithm iterates and passes the second set of training parameters to the support vector machine model, the support vector machine model re-reads the training sample set for a second training to obtain the second-generation prediction model, and then uses the test sample set to verify the accuracy of the second-generation prediction model; and so on, until the final prediction model that meets the convergence condition of the fitness evaluation function R is obtained; the prediction result is output.

[0112] In step S2, a weighted round-robin method is used through a round-robin algorithm to schedule the process of knowledge construction.

[0113] In step S3, taking security events as the ontology, through abstraction of the entire attack process, taking entity information including but not limited to attack domain names and IP addresses as the ancestor, and according to the characteristics and rules of the threat intelligence field, a threat intelligence field ontology structure is created from top to bottom, and six threat information components are proposed for the threat intelligence ontology, namely, security events, threat subjects, attack indicators, observable objects, attack methods and attack targets.

[0114] Through the threat intelligence named entity recognition model based on multiple factors and the threat intelligence entity relationship extraction model based on graph neural network, the entity and relationship triplets (events, risks and threat knowledge) of the threat intelligence text are obtained, and the obtained triplets are stored in the graph database to generate a threat map.

[0115] The dynamic threat graph generation system based on the improved support vector machine includes a knowledge learning module, a behavior entity modeling module, a dynamic threat graph generation module and a logic storage module;

[0116] The knowledge learning module uses the open or semi-open text data on the Internet as the original corpus to read data, classify and clean the read data, and finally semi-automatically manually annotate the cleaned intelligence data to build a primary intelligence corpus;

[0117] The behavior entity modeling module includes a threat knowledge extraction submodule, a threat knowledge construction submodule and a task scheduling submodule;

[0118] The threat knowledge extraction submodule performs threat knowledge extraction and data classification statistics based on the intelligence corpus, implements data clustering analysis, and obtains threat intelligence data;

[0119] The threat knowledge construction submodule is responsible for constructing a threat knowledge prediction model and training intelligence data using a support vector machine algorithm;

[0120] The task scheduling submodule schedules the knowledge construction process by using a weighted round-robin algorithm;

[0121] When the threat knowledge extraction submodule extracts threat knowledge, it extracts events, risks and threat knowledge in sequence with the time dimension; and constructs a threat knowledge prediction model based on the event, risk and threat knowledge triples;

[0122] The dynamic threat map generation module performs threat characterization on the threat intelligence data obtained after the behavior entity modeling to construct a threat map;

[0123] The logic storage module includes two types of storage modes: a distributed MySQL database cluster and a distributed HBASE database; the distributed MySQL database cluster is used to store sample sets for model training and judgment results for attacks; the distributed HBASE database is used to store information related to signal capture volume.

[0124] The knowledge learning module is provided with a whitelist mechanism, and the crawled and collected text data is filtered through the whitelist and then output for use;

[0125] The public or semi-public text data include but are not limited to public vulnerability libraries, public microblogs of hacker organizations, and public microblog data of hacker organizations;

[0126] The whitelist of public or semi-public text data includes at least the following dimensions:

[0127] 1) Vulnerability intelligence library whitelist dimensions: vulnerability number (vulNumber), vulnerability content (vulDesc), vulnerability level (vulLevel), vulnerability disclosure time (vulCommitDate), vulnerability update time (vulUpdate) and vulnerability submitter (vulCommitAuthor);

[0128] 2) Hacker organization whitelist dimensions: Weibo ID (AuthorID), hacker organization ID (HackersID), content data published by the hacker organization (HackersPublishDesc), subscriber ID (SeedID), number of reads (ReadCount), content commented on by the hacker organization (HackersCommits), and user IDs followed by the hacker organization (HackersFocusUserID);

[0129] Public vulnerability libraries include but are not limited to the CVE (Common Vulnerability and Exposures) vulnerability library and the SYNK vulnerability library;

[0130] For the public vulnerability database, a web crawler is written to crawl by category in the form of XML (Extensible Markup Language); the data structure includes six fields: vulnerability number vulNumber, vulnerability content vulDesc, vulnerability level vulLevel, vulnerability disclosure time vulCommitDate, vulnerability update time vulUpdate and vulnerability submitter vulCommitAuthor, and the vulnerability set E = (vulNumber, vulDesc, vulLevel, vulCommitDate, vulUpdate, vulCommitAuthor);

[0131] The hacker organization is marked as v, and a set of hacker organizations P is constructed, where v∈P. The historical data that the hacker organization v has ever released is crawled, and the Weibo user IDs that have liked, forwarded, and commented on each piece of intelligence corresponding to each piece of data, that is, the Weibo user IDs that have clicked on the corresponding threat intelligence, are used as the subsequent threat map data.

[0132] After filtering the whitelist, we get the intelligence knowledge base set (E, P) and generate m i dimensional vector, m i The current whitelist dimension.

[0133] The threat knowledge construction submodule uses a particle swarm optimization algorithm to optimize the selected parameters, thereby improving the accuracy of the prediction model;

[0134] The specific steps are as follows:

[0135] Step S2.1, match the intelligence knowledge base with the built-in feature library for feature code. If the match is successful, the matching process is terminated and the matching result data is marked and stored; if all features in the feature library fail to match, the matching is terminated;

[0136] Step S2.2, read the prefabricated model training sample set, use the extracted event, risk and threat knowledge triples as initial training parameters to complete the first training of the support vector machine model, and obtain the initial prediction model;

[0137] The support vector machine model adopts the sub-gradient descent algorithm, and the formula is as follows:

[0138]

[0139] Among them, m is the event set, and the current whitelist dimension is m i is the i-th element in the event set m; x i is the i-th risk element, y i is the ith threat knowledge, n is the number of cycles;

[0140] Step S2.3, continue to read the model training sample set, and use the initial prediction model to complete the situation value prediction of the test sample to obtain the initial prediction result;

[0141] Step S2.4, using particle swarm algorithm to correct the prediction results;

[0142] The fitness evaluation function R formula of the particle swarm algorithm is as follows:

[0143]

[0144] Among them, f 1n is the initial prediction result, f 2n is the true situation value in the test sample set;

[0145] The fitness evaluation function R is used to calculate the error between the initial prediction result and the true situation value in the test sample set; when the fitness evaluation function R meets the entire convergence condition, the initial prediction model is the final prediction model, otherwise the particle swarm algorithm iterates and passes the second set of training parameters to the support vector machine model, the support vector machine model re-reads the training sample set for a second training to obtain the second-generation prediction model, and then uses the test sample set to verify the accuracy of the second-generation prediction model; and so on, until the final prediction model that meets the convergence condition of the fitness evaluation function R is obtained; the prediction result is output.

[0146] The dynamic threat map generation module takes security events as the ontology, abstracts the entire attack process, takes entity information including but not limited to attack domain names and IP addresses as the ancestor, and creates a threat intelligence domain ontology structure from top to bottom based on the characteristics and rules of the threat intelligence domain. It proposes six threat information components for the threat intelligence ontology, namely, security events, threat subjects, attack indicators, observable objects, attack methods, and attack targets.

[0147] Compared with the existing technology, the dynamic threat graph generation method and system based on the improved support vector machine has the following characteristics:

[0148] (1) Based on the improved support vector machine algorithm model, the particle swarm algorithm is introduced to modify the model, so that the entire system can intelligently extract intelligence knowledge and improve the overall detection rate of the threat map for unknown attacks.

[0149] (2) The original dynamic threat map generation engine automatically associates intelligence knowledge when encountering unknown attacks, especially 0-Day attacks and -1-Day attacks, and extracts unique and effective detection rules from the attacks, thereby reducing the cost of manual participation and improving detection efficiency.

[0150] (3) Adopt a distributed deployment method. Due to the complex environment of the current cloud center, each cloud center has its own business logic. Therefore, the detection rules for each cloud center will be essentially different. This will reduce the overall false alarm rate of the system to a certain extent and effectively avoid the impact on the business.

[0151] The embodiment described above is only one specific implementation of the present invention. Common changes and substitutions made by those skilled in the art within the scope of the technical solution of the present invention should be included in the protection scope of the present invention.

Claims

1. A dynamic threat graph generation method based on improved support vector machine, Features: Intelligently extract key knowledge information from text and machine data, build a dynamic threat map generation engine based on the improved support vector machine algorithm, and produce comprehensive and relevant intelligence map data, so that the threat map system can proactively identify unknown attacks; The following steps are involved: Step S1: Knowledge learning The open or semi-open text data on the Internet is used as the original corpus for data reading, and the read data is classified and cleaned. Finally, the cleaned intelligence data is semi-automatically annotated manually to build a primary intelligence corpus; Step S2: Behavior Entity Modeling Based on the intelligence corpus, threat knowledge extraction and data classification statistics are carried out to implement data clustering analysis and obtain threat intelligence data; a threat knowledge prediction model is constructed, and the support vector machine algorithm is used to train the intelligence data; When extracting threat knowledge, events, risks and threat knowledge are extracted in sequence with time dimension; a threat knowledge prediction model is constructed based on the event, risk and threat knowledge triples; Step S3: Generate dynamic threat map The threat intelligence data obtained after the behavior entity modeling in step S2 is subjected to threat characterization to construct a threat map.

2. According to the method for generating a dynamic threat map based on an improved support vector machine according to claim 1, Features: In the step S1, a whitelist mechanism is introduced in the process of cleaning the read data; the crawled and collected text data is filtered through the whitelist and then output for use; Public or semi-public text data include but are not limited to public vulnerability libraries, public hacker group Weibo, and public hacker group Weibo data; The whitelist of public or semi-public text data includes at least the following dimensions: 1) Vulnerability intelligence library whitelist dimensions: vulnerability number vulNumber, vulnerability content vulDesc, vulnerability level vulLevel, vulnerability disclosure time vulCommitDate, vulnerability update time vulUpdate and vulnerability submitter vulCommitAuthor; 2) Hacker organization whitelist dimensions: Weibo ID AuthorID, hacker organization ID HackersID, content data published by the hacker organization HackersPublishDesc, subscriber ID SeedID, number of reads ReadCount, content commented on by the hacker organization HackersCommits, and user IDs followed by the hacker organization HackersFocusUserID.

3. According to the method for generating a dynamic threat map based on an improved support vector machine according to claim 2, Features: In step S1, the public vulnerability library includes but is not limited to the CVE vulnerability library and the SYNK vulnerability library; For the public vulnerability database, a web crawler is written to crawl by category in the form of XML; the data structure includes six fields: vulnerability number vulNumber, vulnerability content vulDesc, vulnerability level vulLevel, vulnerability disclosure time vulCommitDate, vulnerability update time vulUpdate and vulnerability submitter vulCommitAuthor, and the vulnerability set E = (vulNumber, vulDesc, vulLevel, vulCommitDate, vulUpdate, vulCommitAuthor); The hacker organization is marked as v, and a set of hacker organizations P is constructed, where v∈P. The historical data that the hacker organization v has ever released is crawled, and the Weibo user IDs that have liked, forwarded, and commented on each piece of intelligence corresponding to each piece of data, that is, the Weibo user IDs that have clicked on the corresponding threat intelligence, are used as the subsequent threat map data. After filtering the whitelist, we get the intelligence knowledge base set (E, P) and generate m i dimensional vector, m i The current whitelist dimension.

4. According to the method for generating a dynamic threat map based on an improved support vector machine according to claim 1, Features: In step S2, since the support vector machine algorithm has the problem of blindness in parameter selection during the training process when predicting the model, when constructing the threat knowledge prediction model, the particle swarm optimization algorithm is used to optimize the selected parameters, thereby improving the accuracy of the prediction model; The specific steps are as follows: Step S2.1, match the intelligence knowledge base with the built-in feature library for feature code. If the match is successful, the matching process is terminated and the matching result data is marked and stored; if all features in the feature library fail to match, the matching is terminated; Step S2.2, read the prefabricated model training sample set, use the extracted event, risk and threat knowledge triples as initial training parameters to complete the first training of the support vector machine model, and obtain the initial prediction model; The support vector machine model adopts the sub-gradient descent algorithm, and the formula is as follows: Among them, m is the event set, and the current whitelist dimension is m i is the i-th element in the event set m; x i is the i-th risk element, y i is the ith threat knowledge, n is the number of cycles; Step S2.3, continue to read the model training sample set, and use the initial prediction model to complete the situation value prediction of the test sample to obtain the initial prediction result; Step S2.4, using particle swarm algorithm to correct the prediction results; The fitness evaluation function R formula of the particle swarm algorithm is as follows: Among them, f 1n is the initial prediction result, f 2n is the true situation value in the test sample set; The fitness evaluation function R is used to calculate the error between the initial prediction result and the true situation value in the test sample set; when the fitness evaluation function R meets the entire convergence condition, the initial prediction model is the final prediction model, otherwise the particle swarm algorithm iterates and passes the second set of training parameters to the support vector machine model, the support vector machine model re-reads the training sample set for a second training to obtain the second-generation prediction model, and then uses the test sample set to verify the accuracy of the second-generation prediction model; and so on, until the final prediction model that meets the convergence condition of the fitness evaluation function R is obtained; the prediction result is output.

5. According to the method for generating a dynamic threat map based on an improved support vector machine according to claim 1, Features: In step S2, a weighted round-robin method is used through a round-robin algorithm to schedule the process of knowledge construction.

6. The method for generating a dynamic threat map based on an improved support vector machine according to claim 1, Features: In step S3, taking security events as the ontology, through abstraction of the entire attack process, taking entity information including but not limited to attack domain names and IP addresses as the ancestor, and according to the characteristics and rules of the threat intelligence field, a threat intelligence field ontology structure is created from top to bottom, and six threat information components are proposed for the threat intelligence ontology, namely, security events, threat subjects, attack indicators, observable objects, attack methods and attack targets.

7. A dynamic threat graph generation system based on improved support vector machine, Features: Including knowledge learning modules, Behavior entity modeling module, dynamic threat graph generation module and logic storage module; The knowledge learning module uses the open or semi-open text data on the Internet as the original corpus to read data, classify and clean the read data, and finally semi-automatically manually annotate the cleaned intelligence data to build a primary intelligence corpus; The behavior entity modeling module includes a threat knowledge extraction submodule, a threat knowledge construction submodule and a task scheduling submodule; The threat knowledge extraction submodule performs threat knowledge extraction and data classification statistics based on the intelligence corpus, implements data clustering analysis, and obtains threat intelligence data; The threat knowledge construction submodule is responsible for constructing a threat knowledge prediction model and training intelligence data using a support vector machine algorithm; The task scheduling submodule schedules the knowledge construction process by using a weighted round-robin algorithm; When the threat knowledge extraction submodule extracts threat knowledge, it extracts events, risks and threat knowledge in sequence with the time dimension; and constructs a threat knowledge prediction model based on the event, risk and threat knowledge triples; The dynamic threat map generation module performs threat characterization on the threat intelligence data obtained after the behavior entity modeling to construct a threat map; The logic storage module includes two types of storage modes: a distributed MySQL database cluster and a distributed HBASE database; the distributed MySQL database cluster is used to store sample sets for model training and judgment results for attacks; the distributed HBASE database is used to store information related to signal capture volume.

8. The dynamic threat map generation system based on improved support vector machine according to claim 7, Features: The knowledge learning module is provided with a whitelist mechanism, and the crawled and collected text data is filtered through the whitelist and then output for use; The public or semi-public text data include but are not limited to public vulnerability libraries, public microblogs of hacker organizations, and public microblog data of hacker organizations; The whitelist of public or semi-public text data includes at least the following dimensions: 1) Vulnerability intelligence library whitelist dimensions: vulnerability number vulNumber, vulnerability content vulDesc, vulnerability level vulLevel, vulnerability disclosure time vulCommitDate, vulnerability update time vulUpdate and vulnerability submitter vulCommitAuthor; 2) Hacker organization whitelist dimensions: Weibo ID AuthorID, hacker organization ID HackersID, content data published by the hacker organization HackersPublishDesc, subscriber ID SeedID, number of reads ReadCount, content commented on by the hacker organization HackersCommits, and user ID HackersFocusUserID that the hacker organization has followed; Public vulnerability libraries include but are not limited to the CVE vulnerability library and the SYNK vulnerability library; For the public vulnerability database, a web crawler is written to crawl by category in the form of XML; the data structure includes six fields: vulnerability number vulNumber, vulnerability content vulDesc, vulnerability level vulLevel, vulnerability disclosure time vulCommitDate, vulnerability update time vulUpdate and vulnerability submitter vulCommitAuthor, and the vulnerability set E = (vulNumber, vulDesc, vulLevel, vulCommitDate, vulUpdate, vulCommitAuthor); The hacker organization is marked as v, and a set of hacker organizations P is constructed, where v∈P. The historical data that the hacker organization v has ever released is crawled, and the Weibo user IDs that have liked, forwarded, and commented on each piece of intelligence corresponding to each piece of data, that is, the Weibo user IDs that have clicked on the corresponding threat intelligence, are used as the subsequent threat map data. After filtering the whitelist, we get the intelligence knowledge base set (E, P) and generate m i dimensional vector, m i The current whitelist dimension.

9. The dynamic threat graph generation system based on improved support vector machine according to claim 7, Features: The threat knowledge construction submodule uses a particle swarm optimization algorithm to optimize the selected parameters, thereby improving the accuracy of the prediction model; The specific steps are as follows: Step S2.1, match the intelligence knowledge base with the built-in feature library for feature code. If the match is successful, the matching process is terminated and the matching result data is marked and stored; if all features in the feature library fail to match, the matching is terminated; Step S2.2, read the prefabricated model training sample set, use the extracted event, risk and threat knowledge triples as initial training parameters to complete the first training of the support vector machine model, and obtain the initial prediction model; The support vector machine model adopts the sub-gradient descent algorithm, and the formula is as follows: Among them, m is the event set, and the current whitelist dimension is m i is the i-th element in the event set m; x i is the i-th risk element, y i is the ith threat knowledge, n is the number of cycles; Step S2.3, continue to read the model training sample set, and use the initial prediction model to complete the situation value prediction of the test sample to obtain the initial prediction result; Step S2.4, using particle swarm algorithm to correct the prediction results; The fitness evaluation function R formula of the particle swarm algorithm is as follows: Among them, f 1n is the initial prediction result, f 2n is the true situation value in the test sample set; The fitness evaluation function R is used to calculate the error between the initial prediction result and the true situation value in the test sample set; when the fitness evaluation function R meets the entire convergence condition, the initial prediction model is the final prediction model, otherwise the particle swarm algorithm iterates and passes the second set of training parameters to the support vector machine model, the support vector machine model re-reads the training sample set for a second training to obtain the second-generation prediction model, and then uses the test sample set to verify the accuracy of the second-generation prediction model; and so on, until the final prediction model that meets the convergence condition of the fitness evaluation function R is obtained; the prediction result is output.

10. The dynamic threat graph generation system based on improved support vector machine according to claim 7, Features: The dynamic threat map generation module takes security events as the ontology, abstracts the entire attack process, takes entity information including but not limited to attack domain names and IP addresses as the ancestor, and creates a threat intelligence domain ontology structure from top to bottom based on the characteristics and rules of the threat intelligence domain. It proposes six threat information components for the threat intelligence ontology, namely, security events, threat subjects, attack indicators, observable objects, attack methods, and attack targets.

Citation Information

Patent Citations

  • Network security situation forecasting method and system

    CN103581188A

  • Text data-oriented threat intelligence knowledge graph construction method

    CN110717049A

  • Knowledge graph construction method based on SMT quality big data analysis

    CN115098703A

  • Internal threat behavior detection method based on online learning

    CN116668134A

  • System and method for gathering, analyzing, and reporting global cybersecurity threats

    US20240080332A1