Graphlet analysis method and program
The graphlet decomposition method addresses the challenge of interpreting mixed graphlets by separating them into basic graphlets, enhancing the accuracy of host profile analysis and visualization.
Patent Information
- Application Number
- PCT/JP2023/007061
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-02-27
- Publication Date
- 2024-09-06
AI Technical Summary
Existing methods for creating host profiles using graphlets struggle to distinguish between multiple communication behaviors within a host, resulting in mixed graphlets that are difficult to interpret and analyze.
A graphlet decomposition method that separates mixed graphlets into basic graphlets by calculating feature vectors and using a decomposition algorithm to filter and exclude packets, allowing for the creation of easily interpretable host profiles.
This method enables accurate visualization and analysis of host communication behavior, improving the accuracy of host profiles by decomposing mixed graphlets into basic graphlets that represent individual communication actions.
Smart Images

Figure JP2023007061_06092024_PF_FP
Abstract
Description
Graphlet decomposition method and program
[0001] The present disclosure relates to a graphlet decomposition method and program.
[0002] Host profiling is a technology for identifying the attribute information of communication terminals (hosts) on a network. Host profiling is an important technology for network monitoring and analysis because it allows us to understand what kind of attribute information the hosts have within the network.
[0003] A method using graphlets for the above-mentioned host profile has been proposed (for example, Non-Patent Document 1). Graphlets are a technology for visualizing the communication behavior of a host as a graph and improving its interpretability.
[0004] Himura, Yosuke, et al. "Synoptic graphlet: Bridging the gap between supervised and unsupervised profiling of host-level network traffic." IEEE / ACM Transactions on Networking 21.4 (2012): 1284-1297.
[0005] However, since multiple programs and processes generally run simultaneously within a host, graphlets created from the host's packets represent a mixture of multiple communication behaviors, making it generally difficult to read the host's communication behavior from graphlets and create a host profile.
[0006] The present disclosure has been made in consideration of the above points, and provides a technique for creating graphlets that are easy to host profile.
[0007] A graphlet decomposition method according to one aspect of the present disclosure includes a creation procedure of creating a first graphlet G from traffic data D consisting of packets generated by a plurality of communication behaviors, and a decomposition procedure of creating a first graphlet G from traffic data D consisting of packets generated by a single communication behavior. i(i=1,...,N) i (i=1, . . . , N), a second graphlet G similar to the first graphlet G i a selection step for selecting a second graphlet G i and an output step of outputting the first graphlet G as a decomposition result, executed by the computer.
[0008] Techniques are provided for creating graphlets that are easy to host profile.
[0009] FIG. 1 is a diagram (part 1) showing an example of a graphlet. FIG. 2 is a diagram (part 2) showing an example of a graphlet. A diagram showing an example of traffic data. A diagram showing an example of a line graph by packet. A diagram showing an example of a mixed graphlet. FIG. 1 is a diagram (part 1) showing an example of a basic graphlet. FIG. 2 is a diagram (part 3) showing an example of a basic graphlet. A diagram showing an example of the overall configuration of a communication system including a graphlet creation device according to this embodiment. A diagram showing an example of the hardware configuration of a graphlet creation device according to this embodiment. A diagram showing an example of the functional configuration of a graphlet creation device according to this embodiment. A flowchart showing an example of graphlet creation processing according to this embodiment.
[0010] An embodiment of the present invention will be described below.
[0011] <Preparation> First, techniques and the like necessary for explaining this embodiment will be described.
[0012] Host Profile: A host profile is a technology for identifying the attribute information of communication terminals (hosts) on a network. The host profile allows you to understand what attribute information the hosts have within the network, making it an important technology for network monitoring and analysis.
[0013] Examples of host attribute information include information indicating the communication format such as "server / client / P2P," information indicating whether multiple hosts are communicating with a single IP address such as "single user / middlebox," information indicating the server function such as "web server / mail server / NTP server," and information indicating whether a host is infected with malware such as "malware infected / not infected." However, these are just examples, and various types of attribute information are possible as long as they represent the attributes of the host. A middlebox is, for example, an aggregation router or a firewall.
[0014] Graphlet is a technology for visualizing host communication behavior as a graph and improving its interpretability. A method for using graphlets for host profiling has also been proposed (for example, Non-Patent Document 1). A graph is a data structure composed of nodes and edges.
[0015] A graphlet is composed of multiple node strings, and each node string represents traffic information (e.g., source IP address, source port number, destination IP address, destination port number, protocol number). Furthermore, each node represents the value of that traffic information (this value is also called a label). Such graphlets are created using traffic information (e.g., source IP address, source port number, destination IP address, destination port number, protocol number, etc.) contained in packets collected from hosts. Note that the traffic information represents the attributes of traffic, and may therefore be called, for example, traffic attributes, etc.
[0016] An example of a graphlet is shown in Figure 1. In the graphlet shown in Figure 1, it can be seen that a certain host with one source IP address is communicating with multiple destination IP addresses using source port number 80 and multiple destination port numbers. Since port number 80 is used in HTTP communication and communication is being made to multiple destination IP addresses, it can be seen that this host is likely to be a web server. Note that "SrcIP" represents the source IP address, "Proto" represents the protocol number, "DstIP" represents the destination IP address, "SrcPort" represents the source port number, and "DstPort" represents the destination port number.
[0017] Another example of a graphlet is shown in Figure 2. In the graphlet shown in Figure 2, we can see that a certain host with one source IP address is communicating with a single destination IP address, and that communication is being carried out from a single source port number to multiple destination port numbers. This suggests that there is a high possibility that this host is launching a port scan attack against the host with that destination IP address.
[0018] In this way, host profiling is possible by creating graphlets using packets collected from a host and interpreting the graphlets.
[0019] <Mixed Graphlets> Creating a graphlet for a host profile requires collecting packets from the same host over a certain period of time. However, typically, multiple programs and processes run simultaneously within a host. Therefore, packets resulting from multiple communication behaviors are collected from the host, and as a result, the graphlet created from these packets represents a mixture of multiple communication behaviors. In such cases, it is difficult to interpret the host's behavior from the graphlet and profile the host. Hereinafter, graphlets that may represent a mixture of multiple communication behaviors will be referred to as "mixed graphlets." On the other hand, graphlets that represent a single communication behavior will be referred to as "basic graphlets." For example, the graphlets shown in Figure 1 and Figure 2 are examples of basic graphlets.
[0020] Therefore, we will explain a method for decomposing a mixed graphlet into basic graphlets (hereinafter referred to as the proposed method). This proposed method allows us to decompose a mixed graphlet into basic graphlets, making it possible to obtain graphlets (basic graphlets) that are easy to profile.
[0021] <Explanation of the Proposed Method> In the following, as an example, five pieces of general traffic information (source IP address, destination IP address, source port number, destination port number, and protocol number) are used to create a graphlet.
[0022] <Definition of Terms> First, we will define terms related to graphlets.
[0023] ・Let A be the column number representing the node column that constitutes the graphlet. 1 , ..., A 5 As, A 1 is the source IP address, A 2 is the destination IP address, A 3 is the source port number, A 4 is the destination port number, A 5 represent the protocol numbers, respectively.
[0024] ・n i is A i It represents the number of nodes in the column. i Column n i Nodes are v 1,i , ..., v n_i,i Here, "n_i" is expressed as "n i ". Similarly, a subscript of a subscript will be represented by an underscore "_".
[0025] ・i:j is A i From A j It should be noted that j = i ± 1. 1 →A 2 →A 3 →A 4 →A 5 forward, A 5 →A 4 →A 3 →A2 →A 1 is called the reverse direction.
[0026] ・o i:j is A i From A j represents the number of nodes that have only one edge.
[0027] ・u i:j is A i From A j A for the edge in the direction i represents the average degree of the nodes in
[0028] ・When considering the forward edge, node v k,i The in-degree (i-1: number of edges in the i direction) to (in) k,i and node v k,i The out-degree (number of edges in the i:i+1 direction) of (out) k,i On the other hand, when considering the edge in the reverse direction, node v k,i Let the in-degree (i+1: number of edges in the i direction) be d' (in) k,i and node v k,i The out-degree (number of edges in the i:i-1 direction) of (out) k,i It is expressed as:
[0029] ・α i:j is A i From A j This maximum degree α i:j A node with v h_i,i Let's say.
[0030] ・When j = i + 1, β i:i+1 = d (in) h_i,i , j=i-1, β i:i-1 = d' (in) h_i,i and β i:j This defines A i From A j Maximum degree of direction α i:j Node v with h_i,i is the in-degree to
[0031] <Graphlet Features> The five graphlet features defined above (n i , o i:j , u i:j , α i:j , β i:j ) to construct a graphlet feature vector x (hereinafter simply referred to as a feature vector) representing the features of the graphlet.
[0032] For example, A 1 , ..., A 5 When a graphlet is composed of five pieces of traffic information, i is n 1 , ..., n 5 5th dimension, o i:j Hao 1:2 , o 2:1 , ..., o 5:4 The eighth dimension, u i:j Ha 1:2 , u 2:1 , ..., u 5:4 8th dimension, α i:j is α 1:2 , α 2:1 , ..., α 5:4 8th dimension, β i:j is β 2:1 , β 2:3 , ..., β 4:5 Since the feature vector x has six dimensions, the feature vector x has 35 dimensions.
[0033] However, the above feature vector x is just an example and is not limited to this. For example, the feature vector may be configured using some of the above five feature quantities, or may include feature quantities other than the above five feature quantities. In other words, the feature vector x may be anything that represents some feature of the graphlet.
[0034] <Distance between graphlets> Two graphlets G i , G j The feature vectors of x i , x j Then, the graphlet G i , G j The distance between each feature vector x i , x jThat is, if a distance function γ is used, the distance between two graphlets G i , G j The distance between γ(x i , x j ) where various distance functions can be used as γ(·,·), and as an example, Euclidean distance can be used.
[0035] <Graphlet Creation Method> The graphlet creation method may be the same as the existing method, but an example of the graphlet creation method will be briefly described below. i The traffic data D={p 1 , p 2 , ..., p N} is given, where N is the number of packets. An example of traffic data D is shown in FIG. 3. The traffic data shown in FIG. 3 is D={p 1 , p 2 , ..., p 5}, and each packet p i contains five pieces of traffic information (source IP address, destination IP address, source port number, destination port number, and protocol number).
[0036] At this time, first, packet p i A line graph (hereinafter referred to as a packet-specific line graph) is created for each packet. As an example, a packet-specific line graph created from the traffic data D shown in FIG. 3 is shown in FIG. 4. As shown in FIG. 4, the packet-specific line graph is created by creating a node for each packet, with each node having traffic information as a label, and then connecting adjacent nodes with edges.
[0037] Next, a graphlet is created by calculating the union of the line graphs of each packet and deleting duplicated nodes and edges. As an example, a graphlet created from the line graph for each packet shown in Figure 4 is shown in Figure 5. As shown in Figure 5, the graphlet is created by calculating the union of the line graphs of each packet for each node and deleting duplicated nodes and edges. Note that this generally results in a mixed graphlet.
[0038] <<Basic Graphlet Set>> In this proposed method, in order to decompose a mixed graphlet into basic graphlets, basic graphlets are prepared in advance according to the purpose of network monitoring and analysis. For example, these can be created by collecting packets generated by a single predetermined communication behavior and creating basic graphlets from these packets using the method described above in "Graphlet Creation Method." The feature vectors of these basic graphlets are also calculated in advance.
[0039] Below, we will introduce basic graphlets prepared in advance according to the purpose of network monitoring and analysis. i and the basic graphlet set is B = {G i |i=1,...,N base}. Also, let the basic graphlet G i The traffic data used to create i Furthermore, let the basic graphlet G i The feature vector of x i The set of feature vectors of the basic graphlet is expressed as X = {x i |i=1,...,N base}. N base is the number of basic graphlets included in the basic graphlet set B.
[0040] Examples of basic graphlets are shown in Figures 6 to 8. All of the basic graphlets shown in Figures 6 to 8 can easily interpret the communication behavior of a host, making it possible to create a host profile. For example, the basic graphlet shown in Figure 8 shows that a host with a single source IP address is communicating with multiple destination IP addresses, from multiple source port numbers to destination port number 80. The protocol number is also 8 (TCP). This shows that this host is browsing multiple websites using HTTP.
[0041] Note that the basic graphlets shown in Figures 6 to 8 are all examples, and basic graphlets are not limited to these. For example, the basic graphlet shown in Figure 8 can monitor whether a website is being viewed using HTTP, but there may also be a basic graphlet that can monitor whether a website is being viewed using HTTPS. In addition, there may also be a basic graphlet for each type of attack, for example. In this way, basic graphlets necessary to achieve the purpose of network monitoring and analysis are prepared according to the purpose of that purpose.
[0042] <<Mixed graphlet decomposition algorithm>> Traffic data D = {p 1 , p 2 , ..., p N} is given. In this case, in the proposed method, the mixed graphlet is decomposed into basic graphlets by the following steps 1 to 6. In the following, F is the set of basic graphlets to be output, and it is assumed that F=φ is initialized. 1 , th 2 , th 3 are all predetermined thresholds (parameters).
[0043] Step 1: A mixed graphlet G is created from traffic data D using the method described above in "Graphlet Creation Method."
[0044] Step 2: Calculate the feature vector x of the mixed graphlet G.
[0045] Step 3: Feature vector x and each feature vector x i ∈X, and γ(x, x i ) and each basic graphlet G i ∈B.
[0046] Step 4: γ(x, x i ) ≦ th 1 Each basic graphlet G that satisfies i (That is, for each basic graphlet G similar to the mixed graphlet G, i) are subjected to the following steps 4-1 to 4-3. That is, first, a basic graphlet G is extracted from the traffic data D. i (Step 4-1) Create a filter to exclude packets that make up the basic graphlet G. i From each node sequence, n i ≦th 2 The node string that satisfies the above condition is extracted, and the label value (value of traffic information) of the node included in this node string is used as a filter. i This is because a node string with a small number of |D| has a good representation of the characteristics of the graphlet. j It is determined whether or not there are | packets in the traffic data D (step 4-2). Then, it is determined whether there are | packets in the traffic data D having a traffic information value that matches the value of the traffic information used as the filter. j | packets exist in the traffic data D, these packets are excluded from the traffic data D, and the basic graphlet G j is excluded from B and is output. That is, D←D\{having a traffic information value that matches the value of the traffic information used as a filter|D j | packets p i}, B←B\{G j}, F←F∪{G j On the other hand, if the traffic information value matches the value of the traffic information used as a filter, then |D j If there are no packets in the traffic data D, the basic graphlet G j is not included in the mixed graphlet G, and B←B\{G j} (step 4-3).
[0047] Step 5: Determine whether a predetermined termination condition is met. If the termination condition is not met, return to step 1. On the other hand, if the termination condition is met, proceed to step 6. Here, the termination condition may be, for example, |D|≦th 3 In step 4 above, γ(x, x i ) ≦ th 1 A basic graphlet G that satisfies iThe former means that the number of remaining packets that make up the mixed graphlet G has become sufficiently small, and the latter means that the number of remaining packets that make up the mixed graphlet G has become small enough .... i means that it no longer exists.
[0048] Step 6: Find the basic graphlet G included in F i These basic graphlets G i is the decomposition result of the mixed graphlet G created in step 1.
[0049] The graphlet generating device 10 that generates a base graphlet from a mixed graphlet using the above mixed graphlet decomposition algorithm will be described below.
[0050] <Example of Overall Configuration of Communication System 1 Including Graphlet Creation Device 10> Fig. 9 shows an example of the overall configuration of a communication system 1 including the graphlet creation device 10 according to this embodiment. As shown in Fig. 9, the communication system 1 includes the graphlet creation device 10, a communication terminal 20, a DNS resolver 30, and a packet capture device 40. The communication terminal 20, the DNS resolver 30, and the packet capture device 40 are connected to a network 50.
[0051] The graphlet generating device 10 is a computer or computer system that executes the above-described mixed graphlet decomposition algorithm using the traffic data D acquired from the packet capturing device 40 .
[0052] The communication terminal 20 is a host that generates DNS traffic (packets). The DNS resolver 30 receives the DNS traffic generated by the communication terminal 20 and performs name resolution on it. The packet capture device 40 captures the DNS traffic (packets) after name resolution by the DNS resolver 30 and transmits traffic data D composed of these packets to the graphlet creation device 10.
[0053] The overall configuration of the communication system 1 shown in Fig. 1 is an example and is not limited to this. For example, although only one communication terminal 20 is shown in the example shown in Fig. 1, there may be multiple communication terminals 20. Similarly, there may be multiple DNS resolvers 30 and multiple packet capture devices 40.
[0054] <Example of Hardware Configuration of Graphlet Creation Device 10> An example of the hardware configuration of the graphlet creation device 10 according to this embodiment is shown in Fig. 10. As shown in Fig. 10, the graphlet creation device 10 according to this embodiment includes an input device 101, a display device 102, an external I / F 103, a communication I / F 104, a RAM (Random Access Memory) 105, a ROM (Read Only Memory) 106, an auxiliary storage device 107, and a processor 108. Each of these pieces of hardware is connected to each other via a bus 109 so as to be able to communicate with each other.
[0055] The input device 101 is, for example, a keyboard, a mouse, a touch panel, a physical button, etc. The display device 102 is, for example, a display, a display panel, etc. Note that the graphlet creation device 10 does not necessarily have to include at least one of the input device 101 and the display device 102, for example.
[0056] The external I / F 103 is an interface with an external device such as a recording medium 103a. Examples of the recording medium 103a include a CD (Compact Disc), a DVD (Digital Versatile Disk), an SD memory card (Secure Digital memory card), and a USB (Universal Serial Bus) memory card.
[0057] The communication I / F 104 is an interface for transmitting and receiving data to and from the packet capture device 40. The RAM 105 is a volatile semiconductor memory (storage device) that temporarily stores programs and data. The ROM 106 is a non-volatile semiconductor memory (storage device) that can store programs and data even when the power is turned off. The auxiliary storage device 107 is a non-volatile storage device (storage device) such as an HDD (Hard Disk Drive), an SSD (Solid State Drive), or a flash memory. The processor 108 is, for example, one of various arithmetic devices such as a CPU (Central Processing Unit).
[0058] 10 is just an example, and the hardware configuration of the graphlet creation device 10 is not limited to this. For example, the graphlet creation device 10 may have multiple auxiliary storage devices 107 or multiple processors 108, may not have some of the hardware shown in the figure, or may have various hardware other than the hardware shown in the figure.
[0059] <Example of Functional Configuration of Graphlet Creation Device 10> Fig. 11 shows an example of the functional configuration of the graphlet creation device 10 according to this embodiment. As shown in Fig. 11, the graphlet creation device 10 according to this embodiment includes a mixed graphlet creation unit 201, a feature calculation unit 202, a distance calculation unit 203, a mixed graphlet decomposition unit 204, and an output unit 205. Each of these units is realized, for example, by processing in which one or more programs installed in the graphlet creation device 10 are executed by the processor 108. The graphlet creation device 10 according to this embodiment also includes a storage unit 208. The storage unit 208 is realized, for example, by the auxiliary storage device 107 or the like.
[0060] The mixed graphlet creation unit 201 executes step 1 of the mixed graphlet decomposition algorithm. The feature calculation unit 202 executes step 2 of the mixed graphlet decomposition algorithm. The distance calculation unit 203 executes step 3 of the mixed graphlet decomposition algorithm. The mixed graphlet decomposition unit 204 executes steps 4 and 5 of the mixed graphlet decomposition algorithm. The output unit 205 executes step 6 of the mixed graphlet decomposition algorithm.
[0061] The storage unit 208 stores various data (traffic data D, basic graphlet set B, feature vector set X, threshold th 1 , th 2 , th 3 etc.)
[0062] <Graphlet Creation Process> The graphlet creation process for creating a basic graphlet from a mixed graphlet using the mixed graphlet decomposition algorithm will be described below with reference to Fig. 12. It is assumed that the basic graphlet set F to be output is initialized as F = φ.
[0063] The mixed graphlet creating unit 201 executes step 1 of the mixed graphlet decomposition algorithm (step S101). That is, the mixed graphlet creating unit 201 creates a mixed graphlet G from traffic data D by the method described above in the "Graphlet Creating Method."
[0064] Next, the feature calculation unit 202 executes step 2 of the mixed graphlet decomposition algorithm (step S102). That is, the feature calculation unit 202 calculates the feature vector x of the mixed graphlet G.
[0065] Next, the distance calculation unit 203 executes step 3 of the mixed graphlet decomposition algorithm (step S103). That is, the distance calculation unit 203 calculates the feature vector x and each feature vector x i ∈X, and γ(x, x i ) and each basic graphlet G i ∈B.
[0066] Next, the mixed graphlet decomposition unit 204 executes step 4 of the mixed graphlet decomposition algorithm (step S104). i ) ≦ th 1 Each basic graphlet G that satisfies i Then, each selected basic graphlet G i Execute the above steps 4-1 to 4-3 for the above.
[0067] Next, the mixed graphlet decomposition unit 204 executes step 5 of the mixed graphlet decomposition algorithm (step S105). That is, the mixed graphlet decomposition unit 204 determines whether a predetermined termination condition is satisfied.
[0068] If it is determined in step S105 that the termination condition is not satisfied, the process returns to step S101. On the other hand, if it is determined in step S105 that the termination condition is satisfied, the process proceeds to step S106.
[0069] Finally, the output unit 205 executes step 6 of the mixed graphlet decomposition algorithm (step S106). i These basic graphlets G i The output destination of the basic graphlet G can be set arbitrarily. For example, the output unit 205 may set the storage unit 206 as the output destination. i The output destination may be a program that takes the above as input, another device that can communicate with the graphlet creation device 10, or a display device 102 such as a display.
[0070] As described above, the graphlet creation device 10 according to this embodiment can decompose a mixed graphlet, which represents a mixture of multiple communication behaviors, into basic graphlets. This makes it possible to visualize and analyze the communication behavior of hosts more accurately, thereby improving the accuracy of host profiles.
[0071] The present invention is not limited to the above-described specifically disclosed embodiments, and various modifications, changes, and combinations with known technologies are possible without departing from the scope of the claims.
[0072] REFERENCE SIGNS LIST 1 Communication system 10 Graphlet creation device 20 Communication terminal 30 DNS resolver 40 Packet capture device 50 Network 101 Input device 102 Display device 103 External I / F 103a Recording medium 104 Communication I / F 105 RAM 106 ROM 107 Auxiliary storage device 108 Processor 109 Bus 201 Mixed graphlet creation unit 202 Feature amount calculation unit 203 Distance calculation unit 204 Mixed graphlet decomposition unit 205 Output unit 206 Storage unit
Claims
1. A procedure for creating a first graphlet G from traffic data D consisting of packets generated by a plurality of communication actions; i (i=1, . . . , N) i (i=1, . . . , N), a second graphlet G similar to the first graphlet G i a selection step of selecting a second graphlet G i an output step of outputting the first graphlet G as a decomposition result; and 2. The second graphlet G selected in the selection step i an extraction step of extracting a node string having a node number equal to or less than a predetermined threshold from among the node strings constituting the node string; i The computer further executes an exclusion step of excluding | packets from the traffic data D, the creation step re-creating the first graphlet from the traffic data D after the exclusion step, and the selection step re-creating the selected second graphlet G i A second graphlet G other than i A second graphlet G similar to the reconstructed first graphlet G i The graphlet decomposition method of claim 1 , further comprising the steps of:
3. The graphlet decomposition method according to claim 2, wherein the creation step, the selection step, the extraction step, the exclusion step, and the output step are repeated until a predetermined termination condition is satisfied.
4. The selection step comprises: i Feature quantity x that represents the characteristics of i and a second graphlet G whose distance between the feature quantity x representing the feature of the first graphlet G and the feature quantity x is equal to or less than a predetermined threshold value. i , G, which is similar to the first graphlet G, iThe graphlet decomposition method according to claim 1 , wherein the graphlet decomposition is performed by selecting as follows:
5. The graphlet decomposition method according to claim 4, wherein the feature quantities include at least a portion of the number of nodes included in the node strings constituting the graphlet, the number of nodes in each node string having only one edge, the average degree of the nodes included in each node string, the maximum degree of the nodes included in each node string, and the in-degree of the node having the maximum degree.
6. A procedure for creating a first graphlet G from traffic data D consisting of packets generated by a plurality of communication actions; i (i=1, . . . , N) i (i=1, . . . , N), a second graphlet G similar to the first graphlet G i a selection step of selecting a second graphlet G i an output step of outputting the first graphlet G as a decomposition result; and
