A network gang detection method based on frequent itemsets

By applying the frequent itemset algorithm in the label propagation algorithm to calculate the label similarity and edge weight, and combining it with the graph database to construct the relationship graph, the problem of low accuracy and credibility of the label propagation algorithm in network security event analysis in the existing technology is solved. , achieving more accurate and stable network gang discovery.

CN112968870BActive Publication Date: 2024-09-13NAT COMP NETWORK & INFORMATION SECURITY MANAGEMENT CENT
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110126310.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-01-29
Publication Date
2024-09-13
Estimated Expiration
2041-01-29

AI Technical Summary

Technical Problem

The existing label propagation algorithm LPA has low accuracy, random propagation and low credibility in network security event analysis, making it difficult to effectively detect network gangs.

Method used

Frequent itemset algorithm is used to calculate label similarity, combined with graph database to construct a relationship graph, calculate node importance and edge weight, improve label propagation algorithm to improve algorithm accuracy and stability, and discover network gangs.

Benefits of technology

It improves the accuracy and credibility of network security incident gang discovery, can simultaneously mine known and unknown tag gangs, and enhances the stability and accuracy of the algorithm.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112968870B
    Figure CN112968870B
Patent Text Reader

Abstract

The present invention relates to a network gang discovery method based on frequent item sets, which constructs network security event data into a relationship graph, extracts IP nodes in the graph, queries network communication data of these nodes, calculates the communication data using a frequent item set algorithm, obtains frequent item set features of IP nodes, and uses the frequent item set features of nodes for edge weight calculation of a label propagation algorithm LPA. The present invention solves the problems of low accuracy, random propagation and credibility of the label propagation algorithm LPA, and improves the stability of the algorithm; it can simultaneously mine gangs with known labels and gangs with unknown labels.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a network security event analysis method in the computer field, and in particular to a network gang discovery method based on frequent item sets. Background Art

[0002] The analysis of network security events involves a large amount of alarm logs, network trace data, and threat intelligence data. These data are usually stored in databases such as ElasticSearch, Hive, and Hbase, and each type of data is stored in a separate table. Since these network security events are stored in isolation, when conducting in-depth event analysis, the correlation analysis between events is not extracted and stored in advance, which is not conducive to data correlation analysis. At this time, a graph database can be used to build a relationship map.

[0003] Nowadays, hacking is no longer just an individual behavior. According to the FBI investigation, the emergence of cyber hacker gangs has made the operation mode of Internet hacker criminal organizations increasingly close to the enterprise, and more and more expert technicians have joined these organizations. From a business perspective, since there are a large number of organizational members around the world willing to work for these cyber hacker gangs, the output of these criminal groups is quite high.

[0004] Community discovery has developed rapidly since Newman proposed the concept of "community" in 2002. There are many types of community discovery algorithms. The label propagation algorithm LPA is one of the simple and easy-to-understand ones. The basic idea of ​​the label propagation algorithm is to predict the label information of unlabeled nodes by the label information of labeled nodes. Label propagation between nodes is mainly based on label similarity. During the propagation process, unlabeled nodes iteratively update their own label information based on the label information of neighboring points. If the similarity of its neighboring points is closer to it, the greater the influence weight on its annotation, the easier it is to propagate the labels of neighboring points. The focus of the LPA algorithm is on the calculation of label similarity in different business scenarios to improve the accuracy of community division. Summary of the invention

[0005] The main purpose of the present invention is to solve the application problem of the existing LPA algorithm in network security incident analysis, and to provide a network gang discovery method based on frequent itemsets. The technical problems to be solved are the accuracy, random propagation and low credibility of the label propagation algorithm LPA. The frequent itemset algorithm is used to determine the label similarity, which improves the algorithm accuracy and credibility, and realizes the gang discovery of network security incidents.

[0006] The present invention adopts the following technical solutions to solve the technical problems. According to a network gang discovery method based on frequent item sets proposed by the present invention, the main steps are as follows:

[0007] Step 1: Build a relationship graph, extract entities and the relationships between entities from various network security events, generate a relationship graph, and save it in a graph database;

[0008] Step 2: Query network connectivity data, extract IP nodes in the graph, and query network connectivity data and domain name access data of these nodes;

[0009] Step 3: Calculate the frequent item set features, use the frequent item set algorithm to process the network communication data, and calculate the frequent item set features of the IP node;

[0010] Step 4: Calculate edge weights and use the frequent item set features of the nodes for the label propagation algorithm LPA to calculate edge weights to find out the criminal gangs.

[0011] The purpose of the present invention and the solution to its technical problems can be further achieved by adopting the following technical measures.

[0012] In the above-mentioned network group discovery method based on frequent item sets, the specific steps of the label propagation algorithm LPA in step 4 are as follows:

[0013] Step 41: Calculate the importance of nodes, use the degree centrality of network nodes to measure the importance of nodes, and calculate the degree d of all nodes i As the importance of this node;

[0014] Step 42: At the same time, find all local core nodes of the network by using the degree centrality of the nodes;

[0015] Step 43: Using the calculated node importance as the update order of the nodes;

[0016] Step 44: Calculate the edge weights of all edges. First, obtain the common neighbor set CommNei between the two nodes. ij , according to the communication data between the node and the common neighbor set, the respective frequent item sets are obtained, and the similarity between the frequent item sets is used as the edge weight of the edge;

[0017] Step 45: assigning labels to all nodes in the network, wherein the nodes with known event data are labeled with corresponding event labels, and the nodes with unknown event data are assigned a unique label, and the unique label is not a known event label;

[0018] Step 46: Update labels: Update labels of all nodes in the network in order of importance;

[0019] Step 47: Stop condition: After multiple iterations of calculation, until the label is stable or the set round threshold is reached;

[0020] Step 48: Network group division: count the labels of each node, and nodes with the same label are in the same group.

[0021] In the above-mentioned network gang discovery method based on frequent item sets, the frequent item set features include port number, IP connection information, domain name and URL.

[0022] The aforementioned network gang discovery method based on frequent item sets, wherein the network security events include Trojan zombies, website backdoors, web page tampering, phishing, DDoS attacks, vulnerability attacks and malicious code propagation.

[0023] The aforementioned network gang discovery method based on frequent item sets is characterized in that the relationship graph is a variety of entity types, including IP addresses, domain names, URLs, email addresses and malicious codes.

[0024] To achieve the purpose of the present invention, the present invention mainly includes the following innovative technical measures:

[0025] 1. In the label propagation algorithm LPA, the frequent itemset algorithm is applied to calculate edge weights.

[0026] 2. In the label propagation algorithm LPA, the update calculation of the importance of local center points is added. According to different situations, the propagation range of local center point labels can be increased or decreased.

[0027] 3. In the label initialization process of the label propagation algorithm LPA, known labels and unknown labels are introduced, which can simultaneously mine groups belonging to known labels and groups with unknown labels.

[0028] 4. The present invention solves the problems of low accuracy, random propagation and credibility of the label propagation algorithm LPA, and improves the stability of the algorithm; it can simultaneously mine groups with known labels and groups with unknown labels.

[0029] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention and implement it according to the contents of the specification, the following is a detailed description of the preferred embodiments of the present invention in conjunction with the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] Figure 1 This is the process framework diagram of the present invention

[0031] in:

[0032] 1: Calculate the importance of each node

[0033] 2: Find all local core nodes in the network and update the importance of local core nodes

[0034] 3: Calculate the weight of each edge

[0035] 3-1 Get the common neighbor nodes between each pair of nodes

[0036] 3-2: Get the frequent itemsets of a node

[0037] 3-3: Calculate the similarity of the frequent itemsets of two nodes as the connection edge weight

[0038] 4: Assign corresponding labels to labeled nodes and unique labels to unlabeled nodes (not belonging to known labels).

[0039] 5: Update the labels of all nodes in order of importance

[0040] 6: All nodes no longer update labels or meet the maximum number of iterations

[0041] 7: Nodes with the same label are grouped together DETAILED DESCRIPTION

[0042] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined purpose of the invention, the following is a detailed description of the specific implementation method, method, steps, features and effects of a network gang discovery method based on frequent item sets proposed by the present invention in combination with the accompanying drawings and preferred embodiments.

[0043] A network group discovery method based on frequent item sets in a preferred embodiment of the present invention mainly includes the following steps:

[0044] Step 1: Build a relationship graph. Extract entities and the relationships between entities from various network security events, generate a relationship graph, and save it in the graph database; network security events include Trojan zombies, website backdoors, web page tampering, phishing, DDoS attacks, vulnerability attacks, and network security event data of malicious code propagation. The relationship graph contains multiple entity types, including IP addresses, domain names, URLs, email addresses, and malicious code.

[0045] Step 2: Query the data, extract the IP nodes in the relationship graph, and query the network connection data and domain name access data of these nodes.

[0046] From the relationship graph of the graph database, select the IP entity as the network community node v i , the communication information between two IP entities is used as the connection edge between nodes ij , forming a global network community network, denoted as G(V,E). For any community node v i ∈V,l i represents its label, n represents the number of network nodes, and m represents the number of network edges.

[0047] Step 3: Calculate frequent item set features, use the frequent item set algorithm to process the network communication data, and obtain the frequent item set features of the IP node. The frequent item set features include port number, IP connection information, domain name and URL.

[0048] Step 4: Calculate edge weights and use the frequent item set features of the nodes for the label propagation algorithm LPA to calculate edge weights to find out the criminal gangs.

[0049] The specific calculation steps of step 4 are as follows:

[0050] Calculate the importance of nodes to indicate the influence of network nodes. Specifically, use the degree centrality of network nodes to measure the importance of nodes. The degree centrality of nodes can be used to measure the centrality of nodes in the network. The higher the centrality of a node, the greater the probability that it is in a central position in the network, and the stronger the "influence" of the node.

[0051] At the same time, by using the degree centrality of nodes to find local core nodes, the accuracy of network gang discovery can be effectively improved; on the other hand, using the calculated node importance as the update order of nodes can improve the stability of the label propagation algorithm.

[0052] In the specific implementation, the degree d of all nodes is calculated i As the importance of this node i On this basis, if the number of nodes with a degree greater than that of a node in its neighbors does not exceed the threshold λ, then the node is a core node in its local area, and the importance of the node in, Indicates that the degree of the node is greater than the number of its neighboring nodes.

[0053] Furthermore, edge weights are calculated to measure the degree of relationship between nodes;

[0054] Specifically, the common neighbors between two nodes are used to obtain the frequent itemsets of the node according to the communication data between the node and its neighbors, and the similarity between the frequent itemsets of the two nodes is calculated as the edge weight of the edge connecting the two nodes.

[0055] The specific operations of obtaining frequent item sets of nodes and weight calculation based on communication data are as follows:

[0056] First, obtain the connection information between the IP node and the neighboring IP node, including the neighboring node connection port number, communication times, number of packets, and number of bytes; then obtain the domain name information of the neighboring IP node, including the domain name and URL address;

[0057] The acquired field information is vectorized to obtain an itemset set, and on this basis, the frequent itemsets of the itemset set are extracted.

[0058] In the embodiment of the present invention, the vector groups obtained from all common neighbor nodes are grouped into a set I{I1, I2, I3, ..., I n}, each item in set I represents the behavior of an IP node and an IP node. By mining the frequent item sets therein, the behavior information of the IP node can be stably and comprehensively described to represent the node. In the embodiment of the present invention, the Aprior algorithm is used to implement the mining of frequent item sets.

[0059] In the embodiment of the present invention, the Jaccard distance is calculated for the frequent item sets of each pair of nodes mined to determine the similarity (I i ,I j ), and use it as the edge weight of the edge connecting the two nodes.

[0060] Further, the label of the node is updated according to the label update rule;

[0061] Specifically, based on the importance of the node and the edge weight, the node v is calculated i For node v j The spread capability value of spread i,j Before updating its own label, a node needs to accumulate the propagation capability values ​​of its neighbors with the same label, and select the node label with the largest accumulated value to update its own label. The formal description of the node label update strategy based on node importance and edge weight is shown in the following formula:

[0062]

[0063] Among them, L(i) represents the label of node i, N(i) represents the neighbor nodes of node i and node i itself, sum(L j ) indicates that each label is L j The accumulated value of the propagation capability between the neighboring nodes and the node to be updated i can also be regarded as the probability that the node belongs to the label. The larger the value, the greater the influence of the label, and the easier it is to influence the label of the updated node. On the other hand, the label node with a larger propagation capability value is more likely to propagate its own label to the neighboring nodes, and it is not easy to be updated itself. In this way, the randomness of label selection can be eliminated to a certain extent, greatly enhancing the stability of the algorithm.

[0064] Further, if Figure 1As shown, calculate the importance of each node 1, find out all the local core nodes in the network and update the importance of the local core nodes 2, calculate the weight of each edge 3: first obtain the common neighbor nodes between each pair of nodes 3-1, obtain the frequent item sets of the nodes 3-2, calculate the similarity of the frequent item sets of the two nodes as the connection edge weight 3-3: assign corresponding labels to the labeled nodes, assign unique labels 4 (not belonging to known labels) to the unlabeled nodes, update the labels of all nodes in the order of node importance 5, all nodes no longer update the labels or meet the maximum number of iterations 6, and the nodes with the same labels are grouped together 7.

[0065] The specific steps of the label propagation algorithm LPA are as follows:

[0066] Initialization: Calculate the degree of all nodes as node importance, find all local core nodes in the network and update the importance of local core nodes; calculate the edge weights of all edges, first obtain the common neighbor set CommNei between two nodes ij , obtain the respective frequent item sets according to the communication data between the node and the common neighbor set, and use the similarity between the frequent item sets as the edge weight of the edge; assign labels to all nodes in the network. Among them, the corresponding event labels are marked for the known event data nodes, and a unique label (not belonging to the known event label) is assigned to the unknown event data nodes;

[0067] Update labels: Update labels of all nodes in the network according to formula (1) in descending order of importance.

[0068] Stop condition: After multiple iterations of calculation, until the label is stable or the set round threshold is reached;

[0069] Network group division: Count the labels of each node, and nodes with the same label are in the same group.

[0070] In this embodiment, based on the construction of a graph database, various network security events are extracted to extract the association between entities and entities, and a relationship map is generated. On this basis, the frequent itemsets and label propagation algorithm are combined to discover network gangs. Through the graph structure, the importance of the node is calculated; the edge weight of the edge is added to affect the label propagation process. Specifically, according to the neighboring nodes shared by each pair of nodes, the corresponding frequent item set is obtained, and the similarity of the frequent item set is used as the edge weight of the edge connecting the two nodes, so as to indicate the closeness of the relationship between the nodes, which is conducive to discovering potential community gangs; further, the extracted network security event information is used as the known label of the node, which effectively promotes the convergence of the label propagation algorithm and is conducive to discovering other gangs belonging to the event. In addition, for unlabeled nodes, other unique labels other than the known labels are selected, which can retain the ability to discover unknown network gangs to a certain extent. The label update of each step of the improved LPA algorithm is determined, and does not contain random sorting or random selection steps, which can achieve a good gang mining effect. The technical solution of the present invention solves the technical problems of low accuracy, random propagation and credibility of the label propagation algorithm LPA.

[0071] The above description is only a preferred embodiment of the present invention and does not limit the present invention in any form. Although the present invention has been disclosed as a preferred embodiment as above, it is not used to limit the present invention. Any technician familiar with this profession can make some changes or modifications to equivalent embodiments of equivalent changes using the technical contents disclosed above without departing from the scope of the technical solution of the present invention. However, any simple modification, equivalent change and modification made to the above embodiments based on the technical essence of the present invention without departing from the content of the technical solution of the present invention still falls within the scope of the technical solution of the present invention.

Claims

1. A network gang discovery method based on frequent item sets, characterized by the following steps: Step 1: Build a relationship graph: Extract entities and relationships between entities from various network security events, generate a relationship graph, and save it in a graph database; Step 2: Query network connectivity data: Extract the IP nodes in the graph and query the network connectivity data and domain name access data of these nodes; Step 3: Calculate frequent item set features: Use the frequent item set algorithm to process network communication data and domain name access data, and calculate the frequent item set features of IP nodes; Step 4: Calculate edge weights: Use the frequent item set features of the nodes in the label propagation algorithm LPA to calculate edge weights to find out the criminal gangs; The specific steps of the label propagation algorithm LPA in step 4 are as follows: Step 41: Calculate the importance of nodes, use the degree centrality of network nodes to measure the importance of nodes, and calculate the degree d of all nodes i As the importance of this node; Step 42: At the same time, find all local core nodes of the network by using the degree centrality of the nodes; Step 43: Using the calculated node importance as the update order of the nodes; Step 44: Calculate all edge weights. First, obtain the common neighbor set Comm Neij between two nodes. According to the connection data between the nodes and the common neighbor set, obtain the respective frequent item sets. The similarity between the frequent item sets is used as the edge weight. Step 45: assigning labels to all nodes in the network, wherein the nodes with known event data are labeled with corresponding event labels, and the nodes with unknown event data are assigned a unique label, and the unique label is not a known event label; Step 46: Update labels: Update labels of all nodes in the network in descending order of importance; Step 47: Stop condition: After multiple iterations of calculation, until the label is stable or the set round threshold is reached; Step 48: Network group division: count the labels of each node, and nodes with the same label are in the same group.

2. A network group discovery method based on frequent item sets according to claim 1, characterized in that The frequent item set features include port number, IP connection information, domain name and URL.

3. A network group discovery method based on frequent item sets according to claim 1, characterized in that The network security incidents mentioned include Trojan zombies, website backdoors, web page tampering, phishing, DDoS attacks, vulnerability attacks and malicious code propagation.

4. A network group discovery method based on frequent item sets according to claim 1, characterized in that The relationship graph is a variety of entity types, including IP addresses, domain names, URLs, email addresses, and malicious codes.