Communication analysis device, communication analysis program, and communication analysis method
The communication analysis device improves service port identification accuracy by classifying traffic flows, maintaining IP-specific service port lists, and employing estimation methods to handle UDP and broadcast communications, addressing the limitations of conventional methods.
Patent Information
- Application Number
- JP2023221466
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-02-20
- Filing Date
- 2023-12-27
- Publication Date
- 2024-08-30
AI Technical Summary
Existing communication traffic log analysis methods struggle with accurate identification of service ports, particularly in cases involving UDP communication, misidentification due to packet order changes, and broadcast communications, leading to frequent false detections and reduced classification accuracy.
A communication analysis device that classifies traffic data by flow, determines service ports using flow information and header data, maintains a service port list for each IP address, and employs a service port estimation process to improve accuracy, especially for UDP and broadcast communications.
Enhances the accuracy of service port determination by considering various communication scenarios, including UDP and broadcast communications, thereby improving the reliability of network security monitoring.
Smart Images

Figure 2024118424000001
Abstract
Description
[Technical field]
[0001] The present invention relates to a communication analysis device, a communication analysis program, and a communication analysis method, and can be applied to, for example, a device that performs analysis regarding communication security based on communication traffic data. [Background technology]
[0002] Currently, with the expansion of use of IoT devices, there is an increasing demand for monitoring edge networks, which are the terminal networks in organizational networks to which employees' PCs and IoT devices are connected. For example, as a large number of IoT devices are connected to edge networks in offices and factories, it is becoming difficult for IT administrators to collect and manage information such as what devices are connected to the edge network, where each device is communicating with, and whether there are any security threats due to malware infections, etc. For this reason, there is currently a demand for edge network monitoring that automatically collects and manages such information.
[0003] Conventionally, there is a method using communication traffic log analysis to realize edge network monitoring. In conventional communication traffic log analysis, a communication analysis device is connected to a mirror port of a network switch that houses devices in a monitored network, and traffic flowing through the network is captured and analyzed to visualize the communication status in real time and detect the occurrence of security risks and security threats. As visualization information of the communication status, it may be necessary to show which device has communicated with which other device. In addition, in order to grasp security risks, it may be necessary to grasp the services that servers in the network are waiting for and to check whether unintended ports are open. Furthermore, in order to detect security threats, it may be necessary to check whether a certain device is accessing a service of a server different from usual. In conventional communication traffic log analysis, in order to realize these, it is necessary to identify the port number (hereinafter referred to as "service port") on the side where the server is waiting in the communication flow (a flow of traffic identified by a set of a source IP address, a source port number, a destination IP address, a destination port number, and a protocol number).
[0004] In the past, a method for identifying service ports in communication traffic log analysis was to identify the smaller of the source and destination port numbers as the service port, since port numbers with lower numbers are often used as service ports, such as port numbers defined as well-known ports. However, when observing actual traffic, it has been found that the smaller port number is not always used as the service port.
[0005] Another method for identifying service ports is to take advantage of the characteristic that communication generally occurs from a client to a server, observe the first packet in the communication flow, and identify the destination port number of that packet as the service port. However, this method can lead to misidentification of service ports in at least the following three cases: [First Case] Depending on the characteristics of the mirroring switch, a packet sent after the first packet may arrive at the mirror port before the first packet. In this case, the subsequent packet will be received and processed as the first packet of the flow, resulting in a misidentification. [Second Case] When traffic mirroring is started by retrofitting a traffic analysis device to an operational network, the first packet of the communication flow that started before the installation cannot be observed, so there is a possibility that the service port will be misidentified. [Third Case] Consider a type of broadcast communication in which a device broadcasts a request to the entire network, and a device that receives the request sends a response packet to the request. In this type of communication, the source address of the broadcast request packet is the IP address of the request source, and the destination address is the broadcast IP address of the network segment. On the other hand, the source address of the response packet is the IP address of the response packet source, and the destination address is the IP address of the request source, and since the IP address pairs of the request packet and the response packet are different, they are treated as different communication flows. In this case, the source port number and destination port number of the response packet are often the inverse of the port number of the request packet, so the service port of the response packet's communication flow matches the source port number of the request packet. Generally, the port number on the client side is set to a different value each time a flow occurs, so the service port of the response packet is considered to be a different port number each time a communication flow occurs. As a result, for example, when detecting an anomaly in a communication that accesses a service that is different from usual, an anomaly is detected every time such a broadcast communication occurs, resulting in frequent false detections. For this reason, it is often more appropriate to consider the service port number of the response packet as the source port number (i.e. the destination port number of the request packet). Also, it may be desirable to treat such a broadcast request packet and its response packet as a single communication. In the first and second cases of misclassification above, in the case of TCP communication, it is possible to identify the service port from the information in the SYN flag of the TCP control flags, but in the second case of misclassification, if the SYN flag is missed, it cannot be identified. Also, in the case of UDP communication, since there is no control flag like in TCP communication, there is no way to reliably identify the first packet of the flow. Also, as shown in the third case of broadcast communication above, there are issues with identifying service ports on a communication flow basis.
[0006] As described above, in communication traffic log analysis, a mechanism is required to reduce erroneous determination of service ports and improve determination accuracy. However, there are conventional techniques described in Patent Documents 1 and 2 that address this issue.
[0007] Patent Document 1 discusses a method for adjusting the packet arrival order by using sequence numbers included in TCP headers and IP headers to address the issue of packets acquired by traffic mirroring being received in a different order of arrival. Patent Document 2 also discusses a method for detecting anomalies in a control network by analyzing communication traffic acquired by traffic mirroring on a flow-by-flow basis. [Prior art documents] [Patent documents]
[0008] [Patent Document 1] JP 2014-183483 A [Patent Document 2] JP 2020-61667 A Summary of the Invention [Problem to be solved by the invention]
[0009] The technology described in Patent Document 1 requires the use of a connection-oriented protocol as the communication protocol, and cannot handle cases of erroneous determination of UDP service ports. Also, the technology described in Patent Document 1 cannot handle the second and third cases described above. Furthermore, the technology described in Patent Document 2 uses the smaller of the source port number and destination port number to determine the service port, and does not take into consideration the issue of erroneous determination of service ports.
[0010] In view of the problems in the conventional technology as described above, there is a need for a communication analysis device, a communication analysis program, and a communication analysis method that can improve the accuracy in identifying a service port from communication traffic data. [Means for solving the problem]
[0011] A first communication analysis device of the present invention comprises a communication flow processing means which classifies communication traffic data flowing on a network to be analyzed by communication flow, a service port determination means which performs a service port determination process which determines a service port for each communication flow using flow information based on header information of packets constituting the communication flow, a service port list management means which manages a service port list which is a list of service ports for each IP address to be analyzed on the network, and a service port estimation means which performs a service port estimation process which estimates a service port using the service port list managed by the service port list management means for the communication flows for which a service port cannot be identified from flow information alone, and is characterized in that the service port determination means takes the result of the service port estimation process by the service port estimation means as the result of the service port determination process for the communication flows for which a service port cannot be identified from flow information alone.
[0012] A second communication analysis program of the present invention causes a computer to function as: communication flow processing means for classifying communication traffic data flowing on a network to be analyzed by communication flow; service port determination means for performing service port determination processing for determining a service port for each communication flow using flow information based on header information of packets constituting the communication flow; service port list management means for managing a service port list which is a list of service ports for each IP address to be analyzed on the network; and service port estimation means for performing service port estimation processing for estimating a service port using the service port list managed by the service port list management means for the communication flows for which a service port cannot be identified by flow information alone, and the service port determination means is characterized in that for the communication flows for which a service port cannot be identified by flow information alone, the service port estimation means uses a result of the service port estimation processing by the service port estimation means as the result of the service port determination processing.
[0013] A third aspect of the present invention is a communication analysis method performed by a communication analysis device, the communication analysis device comprising a communication flow processing means, a service port determination means, a service port list management means, and a service port estimation means, the communication flow processing means classifying communication traffic data flowing on a network to be analyzed by communication flow, the service port determination means performing a service port determination process for determining a service port for each communication flow using flow information based on header information of packets constituting the communication flow, the service port list management means managing a service port list which is a list of service ports for each IP address to be analyzed on the network, the service port estimation means performing a service port estimation process for estimating a service port using the service port list managed by the service port list management means for the communication flow for which a service port cannot be identified by flow information alone, and the service port determination means sets a result of the service port estimation process by the service port estimation means as a result of the service port determination process for the communication flow for which a service port cannot be identified by flow information alone. Effect of the Invention
[0014] According to the present invention, it is possible to improve the accuracy in identifying a service port from communication traffic data. [Brief description of the drawings]
[0015] [Figure 1] 1 is a block diagram showing a functional configuration of a communication analysis device according to a first embodiment. [Diagram 2] FIG. 2 is a block diagram showing an example of a connection configuration of each device according to the first embodiment. [Diagram 3] FIG. 2 is a diagram illustrating an example of broadcast communication in the first embodiment. [Figure 4] FIG. 2 is a diagram illustrating an example of a configuration of a feature amount of a communication flow according to the first embodiment. [Diagram 5]4 is a flowchart (part 1) showing the operation of the communication analysis device according to the first embodiment. [Figure 6] 6 is a second flowchart showing the operation of the communication analysis device according to the first embodiment. [Figure 7] 11 is a third flowchart illustrating the operation of the communication analysis device according to the first embodiment. [Figure 8] 11 is a fourth flowchart illustrating the operation of the communication analysis device according to the first embodiment. [Figure 9] 5 is a fifth flowchart illustrating the operation of the communication analysis device according to the first embodiment. [Figure 10] FIG. 1 is a diagram (part 1) illustrating an example of broadcast communication processing in the communication analysis device according to the first embodiment. [Figure 11] FIG. 2 is a diagram (part 2) illustrating an example of broadcast communication processing in the communication analysis device according to the first embodiment. [Figure 12] FIG. 11 is a diagram (part 3) illustrating an example of broadcast communication processing in the communication analysis device according to the first embodiment. [Figure 13] 3 is a diagram showing an example of a notable communication flow processed by the communication analysis device according to the first embodiment and a corresponding service port list. FIG. [Figure 14] FIG. 13 is a diagram showing an example of the results of tallying up the frequency of appearance for each port number included in the service port candidate list according to the first embodiment and creating a histogram based on the frequency of appearance. [Figure 15] FIG. 11 is a block diagram showing a functional configuration of a communication analysis device according to a second embodiment. [Figure 16] FIG. 13 is a block diagram showing a functional configuration of a communication analysis device according to a third embodiment. [Figure 17] 13 is a diagram illustrating an example of the configuration of UDP port usage history management information held by a UDP port history management unit according to the third embodiment; FIG. [Figure 18]FIG. 13 is an explanatory diagram showing a method for creating a UDP service port list by a service port list management unit according to the third embodiment; [Figure 19] FIG. 13 is an explanatory diagram showing a processing flow when a UDP port history management unit according to the third embodiment performs initial client port reuse detection for a terminal of interest; [Figure 20] FIG. 13 is a diagram showing a processing flow when a UDP port history management unit according to the third embodiment performs second or subsequent client port reuse detection for a terminal of interest. [Figure 21] 13 is a flowchart (part 1) showing a process flow in which a service port list management unit and a UDP port history management unit according to the third embodiment create a UDP service port list. [Figure 22] 13 is a flowchart (part 1) showing a process flow in which a service port list management unit and a UDP port history management unit according to the third embodiment create a UDP service port list. [Figure 23] 13 is a flowchart (part 2) showing the flow of a process in which a service port list management unit and a UDP port history management unit according to the third embodiment create a UDP service port list. [Figure 24] 13 is a flowchart (part 3) showing a process flow in which a service port list management unit and a UDP port history management unit according to the third embodiment create a UDP service port list. [Diagram 25] FIG. 13 is a diagram showing an example of preset communication performance judgment conditions used in a UDP port history management unit according to a modified example of the third embodiment. [Figure 26] 13 is a first flowchart showing a flow when a service port list management unit according to a modified example of the third embodiment performs a transition determination process for a port of interest to a service port determination process. [Figure 27]13 is a second flowchart showing a flow when a service port list management unit according to a modified example of the third embodiment performs a transition determination process for a target port to a service port determination process. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0016] (A) First embodiment Hereinafter, a first embodiment of a communication analysis device, a communication analysis program, and a communication analysis method according to the present invention will be described in detail with reference to the drawings.
[0017] (A-1) Configuration of the First Embodiment FIG. 2 is a block diagram showing the connections of the devices related to the first embodiment.
[0018] Here, the communication analysis device 10 performs processing to analyze traffic generated from monitored devices 30 (30-1, 30-2, ...) as communication devices (nodes) connected to a monitored network N1 that is the target of monitoring (analysis). In the configuration example of FIG. 2, the monitored network N1 is configured to include a network switch 20 (layer 2 switch) and a gateway 40 (e.g., a gateway corresponding to a firewall function) as network devices. Note that the type (use or function) of the monitored devices 30 connected to the monitored network N1 is not limited, and may be various devices without being limited to IoT devices.
[0019] In the configuration example of Fig. 2, each monitored device 30 is connected to a network switch 20 (a switch having at least the function of a layer 2 switch), and a gateway 40 is connected between the network switch 20 and the Internet N2. Therefore, in the example of Fig. 2, each monitored device 30 is in a state where it can communicate with the Internet N2 via the network switch 20 and the gateway 40. Also, the number of monitored devices 30, etc. connected to the network switch 20 is not limited, and will be described as being subject to an increase or decrease during operation.
[0020] In this embodiment, the monitored network N1 is composed of one or more segments to be monitored (hereinafter referred to as "monitored network segments"). Here, one segment refers to one broadcast domain indicated by one network address (for example, xxx.yyy.zzz.0 / 24). For example, xxx.yyy.zzz.3 / 24 is an IP address belonging to the segment xxx.yyy.zzz.0 / 24. In this embodiment, the monitored network segments are described as segments constituting the monitored network N1. In other words, each monitored device 30 is connected to one of the monitored network segments. In this embodiment, each monitored device 30 is assigned an IP address on one of the monitored network segments and performs IP communication with other nodes.
[0021] In the example of FIG. 2, the communication analysis device 10 is connected to the network switch 20. Here, the network switch 20 is set to mirror packets (Ethernet frames) transmitted and received at a LAN port (Ethernet port) connected to the gateway 40 to a port connected to the communication analysis device 10 (so-called port mirror connection). This allows the communication analysis device 10 to collect traffic (packets) flowing between a connection terminal (monitored device 30) under the network switch 20 and the Internet N2. In this embodiment, the port mirror setting of the network switch 20 is configured to supply data based on communication traffic transmitted and received by the monitored device 30 (hereinafter, simply referred to as "communication traffic data") to the communication analysis device 10, but the specific configuration for supplying communication traffic data to the communication analysis device 10 is not limited. Note that the configuration of the monitored network N1 shown in FIG. 1 is an example, and various configurations may be used as long as they are capable of supplying communication traffic data to the communication analysis device 10.
[0022] Next, the internal configuration of the communication analysis device 10 will be described.
[0023] FIG. 1 is a block diagram showing the functional configuration of a communication analysis device 10. As shown in FIG.
[0024] The communication analysis device 10 in this embodiment has a traffic capture unit 11, a control unit 12, a service port determination unit 13, a broadcast processing unit 14, a service port estimation unit 15, a service port list management unit 16, a communication pattern learning unit 17, a memory unit 18, and a timer unit 19.
[0025] The communication analysis device 10 may be configured entirely from hardware (e.g., a dedicated chip, etc.), or may be configured partially or entirely as software (a program). The communication analysis device 10 may be configured, for example, by installing a program (including the communication analysis program of this embodiment) in a computer having a processor and memory.
[0026] The traffic capture unit 11 has a function of receiving packets (IP packets) constituting communication traffic from the outside (for example, a mirror port of a network switch or a router; in this embodiment, the network switch 20). The traffic capture unit 11 notifies the control unit 12 of the received packets.
[0027] The control unit 12 has the function of controlling the overall processing performed by the communication analysis device 10 .
[0028] The control unit 12 performs a process of managing (classifying) the received packets by communication flow. A communication flow is identified by a set of 5-tuples including a source IP address, a source port number, a destination IP address, a destination port number, and a protocol (TCP or UDP). The control unit 12 judges packets with matching 5-tuples and packets with matching 5-tuples in which the source IP address and port number are swapped with the destination IP address and port number to be the same communication flow. The control unit 12 holds the packet size and the communication direction of the packets (information on whether the communication is from the source IP to the destination IP or from the destination IP to the source IP) of each packet in a series of communication flows. In addition, in the case of a TCP communication flow, the control unit 12 also holds the TCP control flags (e.g., FIN, SYN, RST, PSH, ACK, URG, etc.) of each packet. In the following, the communication flow to be processed (being processed) in the communication analysis device 10 is also called the "communication flow of interest."
[0029] The control unit 12 also performs a process of holding (managing) information on the service port for each communication flow. To obtain information on the service port for each communication flow, the control unit 12 notifies the service port determination unit 13 of information on the communication flow (5-tuples, packet size, packet communication direction, and TCP control flag in the case of TCP), requests service port determination, and receives the service port number as a response. When the control unit 12 receives the service port information from the service port determination unit 13, if the communication flow is related to broadcast communication, it receives progress information of the broadcast communication instead. Details of the progress information of broadcast communication will be described in detail in the explanation of the broadcast processing unit 14 below, but it consists of three stages: broadcast request, broadcast response, and unicast access.
[0030] When the control unit 12 receives the service port number for each communication flow from the service port determination unit 13, it notifies the service port list management unit 16 of the information on the communication flow (5-tuples, service port number).
[0031] Control unit 12 sets a timeout period for each communication flow, and determines that a communication flow has ended if no packet of that communication flow is received during the period from the time when the packet of that communication flow was last received until the timeout period. When control unit 12 receives a packet, it resets the timeout period for the communication flow of the received packet, and requests timer unit 19 to set the timer. When a communication flow times out, control unit 12 requests service port determination unit 13 to determine the service port for that communication flow. At this time, service port determination unit 13 is also notified of the information that it is a flow that has timed out.
[0032] When the control unit 12 determines that the communication flow has timed out or that the communication flow has ended by TCP (when a packet with FIN ON and a packet with FIN / ACK ON in the TCP control flag are observed), or when the number of received packets of the communication flow reaches a predetermined threshold or more, the control unit 12 stores information including the 5-tuples of the communication flow, a list of packet sizes, a list of communication directions, a service port (when the service port is undetermined, data indicating that it is empty (for example, a code indicating empty such as NULL) is stored), and broadcast progress information (when the communication flow is not related to broadcast, a null character is stored) as "communication flow history information" in the storage unit 18. Then, after storing the communication flow history information, the control unit 12 deletes the information regarding the communication flow that it has stored.
[0033] When the service port determination unit 13 receives information about a communication flow (hereinafter also referred to as "communication flow information") including 5-tuples, packet size, packet communication direction, TCP control flag, and timeout information (information indicating whether or not a timeout has occurred), the service port determination unit 13 has the function of determining the service port of the communication flow using the received communication flow information.
[0034] When the received communication flow of interest is TCP, the service port determination unit 13 first tries to determine the service port from the TCP control flag. Specifically, when the TCP control flag includes a packet with only the SYN flag ON, the packet can be determined as a connection request from the client to the server, so the service port determination unit 13 obtains the destination port number from the communication direction information of the packet and determines it as a service port. When the TCP control flag includes a packet with the SYN and ACK flags ON, the packet can be determined as a response packet to the SYN packet from the server to the client, so the service port determination unit 13 obtains the sending port number from the communication direction information of the packet and determines it as the service port of the communication flow of interest. When there is no packet that matches any of the above conditions, the service port determination unit 13 tries to estimate the service port from the communication pattern of the communication flow of interest. To this end, when the number of packets of the communication flow is equal to or greater than the threshold value or the communication flow of interest is timed out, the service port determination unit 13 notifies the service port estimation unit 15 of the 5-tuples, the packet size, and the communication direction, and requests estimation of the service port. When the service port estimation result is notified from service port estimation unit 15, service port determination unit 13 determines that port as the service port of the communication flow of interest. If the number of packets of the communication flow of interest is less than the threshold and there is no timeout information, or if service port estimation unit 15 notifies service port determination impossible, service port determination unit 13 determines that the communication flow of interest is impossible to determine (unable to determine the service port).
[0035] When the received communication flow of interest is UDP, the service port determination unit 13 notifies the broadcast processing unit 14 of information on 5-tuples and requests a determination of whether the packet is a broadcast-related packet or not. When the service port determination unit 13 is notified of the progress information of the broadcast from the broadcast processing unit 14, the service port determination unit 13 determines that the communication flow of interest is a broadcast-related communication flow. When the service port determination unit 13 is notified of the communication flow of interest from the broadcast processing unit 14 that the communication flow is not broadcast-related, the service port determination unit 13 attempts to estimate the service port of the communication flow of interest from the communication pattern of the communication flow of interest. Therefore, in this embodiment, when the number of packets of the communication flow is equal to or greater than a threshold value or the communication flow of interest is timed out, the service port determination unit 13 notifies the service port estimation unit 15 of 5-tuples, packet size, and communication direction and requests an estimation of the service port of the communication flow of interest. When the service port is notified from the service port estimation unit 15, the port is determined to be the service port of the communication flow of interest. If the number of packets in the communication flow is less than the threshold and there is no timeout information, or if service port estimation unit 15 notifies service port determination unit 13 that determination is impossible, service port determination unit 13 determines that determination is impossible for the communication flow of interest (unable to determine the service port).
[0036] If the service port determination unit 13 can determine the service port (if the determination result is not "undeterminable"), it notifies the control unit 12 of the service port number; if it determines that the communication is related to broadcast using UDP, it notifies the control unit 12 of broadcast progress information; otherwise, it notifies the control unit 12 of "undeterminable".
[0037] The broadcast processing unit 14 has a function of managing the communication flow of broadcast communication.
[0038] FIG. 3 is a diagram showing an example of a process for managing a communication flow of broadcast communication (a broadcast management method according to an embodiment).
[0039] Figures 3(a) to (c) show the steps (communications) for each stage of broadcast communication. Hereinafter, the communication steps shown in Figures 3(a) to (c) will be referred to as the first to third steps, respectively. Here, the assumed communication flow of broadcast communication will be described as consisting of two-stage (first step and second step) or three-stage (first step to third step) communication as shown in Figure 3.
[0040] The communication in the first step is a broadcast request communication, and FIG. 3(a) shows a packet sent from a certain monitored device 30 (xxx.yyy.zzz.2 / 24) to the broadcast IP address (xxx.yyy.zzz.255) of the network segment to which it belongs.
[0041] The broadcast processing unit 14 judges whether or not it is a broadcast request by checking whether or not the destination IP address corresponds to a broadcast IP address, and if it judges it to be a broadcast request, sets "broadcast request" as progress information and holds the pair of source IP address and destination port number as a list (hereinafter referred to as "broadcast response waiting list"). For the pair (pair of source IP address and destination port number) registered in the broadcast response waiting list, the broadcast processing unit 14 requests the timer unit 19 to set a timeout time for the registered element (pair of source IP address and destination port number). When the broadcast processing unit 14 receives a timeout notification from the timer unit 19, it deletes the corresponding pair (pair of source IP address and destination port number) from the broadcast response waiting list.
[0042] The second stage communication is a broadcast response communication, and FIG. 3(b) shows a packet that is sent from the monitored device 30 that received the broadcast request packet to the device that sent the broadcast request.
[0043] FIG. 3(b) shows a state where broadcast responses are sent from two monitored devices 30, "xxx.yyy.zzz.3" and "xxx.yyy.zzz.5". The broadcast processing unit 14 judges whether or not it is a broadcast response based on whether or not the pair of destination IP address and source port number is included in the broadcast response waiting list. If it is judged to be a broadcast response, it sets "broadcast response" as progress information and holds the pair of destination IP address and source IP address as a list (hereinafter, this list is called "unicast access waiting list"). If it is registered in the unicast access waiting list, it requests the timer unit 19 to set a timeout time for the registered element (pair of destination IP address and source IP address). When the broadcast processing unit 14 receives a notification of a timer out corresponding to the pair registered in the unicast access waiting list from the timer unit 19, it deletes the pair corresponding to the timeout from the unicast access waiting list.
[0044] The third stage communication is unicast access communication, and Fig. 3(c) shows a packet sent by unicast from the device that sent the broadcast request to the monitored device 30 that sent the broadcast response. The broadcast processing unit 14 judges whether or not the access is unicast based on whether or not the pair of source IP address and destination IP address is included in the unicast access waiting list. The broadcast processing unit 14 sets "unicast access" as the progress information corresponding to the pair judged to be unicast access, and deletes the pair from the unicast access waiting list.
[0045] When any of the progress information is set in the above three-stage determination, broadcast processing unit 14 notifies service port determination unit 13 of the set progress information. When no progress information is set, broadcast processing unit 14 notifies service port determination unit 13 of information that is "not related to broadcast communication" (or data indicating that it is empty (for example, a code indicating empty, such as NULL)).
[0046] The service port estimation unit 15 has a function of estimating the service port of the received communication flow by using the service port list for each monitored device 30 and the communication pattern analysis model corresponding to each service port. The service port list is created by the service port list management unit 16 described later, and for each monitored device 30, there is a list of service ports accessed by the monitored device 30 as a client and a list of service ports accessed by the monitored device 30 as a server, for both TCP and UDP. In other words, the service port estimation unit 15 holds four types of service port lists for each monitored device 30. The communication pattern analysis model is a learning model obtained by machine learning the communication behavior of the service port by the communication pattern learning unit 17 described later. The service port estimation unit 15 holds one learning model for each element (port number) of the service port list.
[0047] Hereinafter, the above four types of service port lists that make up the service port list will also be referred to as "sublists." In other words, the service port list will be composed of four sublists. That is, the service port list includes a first sublist that is a list of service ports accessed as a server, and a second sublist that is a list of service ports accessed as a client. The service port list also includes a first sublist and a second sublist for each protocol (TCP and UDP, respectively) (i.e., a total of four sublists).
[0048] The service port estimation unit 15 judges whether or not the source IP address and destination IP address of the received communication flow belong to any of the monitored network segments.
[0049] In this embodiment, it is assumed that information on the monitored network segments (for example, a list of network addresses corresponding to each segment constituting the monitored network N1) is stored in advance in the storage unit 18, and the service port estimation unit 15 grasps the monitored network segment based on the information stored in the storage unit 18. When the source IP address of the communication flow of interest belongs to the monitored network segment, the service port estimation unit 15 acquires a service port list of the IP address from the storage unit 18. When the destination IP address belongs to the monitored network segment, the service port estimation unit 15 acquires a service port list of the IP address from the storage unit 18. Furthermore, when the IP address (source IP address or destination IP address) of the communication flow of interest is outside the monitored network segment, the service port estimation unit 15 assigns an empty service port list to the IP address.
[0050] The service port estimation unit 15 estimates whether the source port number of the communication flow of interest is a service port. First, the service port estimation unit 15 checks whether the port number (the source port number of the communication flow of interest) is included in the service port list accessed as the server of the source IP address of the communication flow of interest. If the port number is included, the service port estimation unit 15 acquires a corresponding analysis model (a judger that judges "match or mismatch" by inputting a feature based on the communication flow and outputs a "numeric value of the degree of match"; hereinafter, referred to as a "communication pattern analysis model") from the storage unit 18. Next, the service port estimation unit 15 converts the packet size and communication direction information of the communication flow of interest into a feature to be applied to the communication pattern analysis model. As the communication pattern analysis model, for example, a learning model obtained by a learning device used in various AIs can be applied.
[0051] FIG. 4 is a diagram showing an example of a feature quantity indicating a communication flow.
[0052] Here, the service port estimation unit 15 converts the communication flow into a feature as shown in FIG. 4 (for example, vector-format data that can be processed by a neural network such as a deep neural network (DNN)) and processes it. In FIG. 4, the communication flow is represented as a feature (vector) consisting of parameters including the total number of packets (total number of packets transmitted and received), the total number of packet bytes (total number of bytes of data of transmitted and received packets), the number of transmitted packets, the total number of bytes of transmitted packets, the average number of bytes of transmitted packets, the number of received packets, the total number of bytes of received packets, and the average number of bytes of received packets. Note that the configuration of the above feature is not limited to the combination of parameters shown in FIG. 4. For example, a combination excluding some of the parameters shown in FIG. 4 may be used as the above feature, or other parameters may be added to the above feature.
[0053] Service port estimation unit 15 applies (applies as a judger) the feature amount converted for the communication flow of interest into the format shown in Fig. 4 to the acquired communication pattern analysis model, and as a result, obtains binary information of "match" or "mismatch" and the degree of match (a numerical value expressed in the range of 0 to 1). Note that service port estimation unit 15 obtains the degree of match only when the judgment result is match.
[0054] On the other hand, if the port number (the source port number of the communication flow of interest) is not included in the service port list (the service port list accessed as a server), the service port estimation unit 15 obtains information that the port is “off-list port” as the judgment result for the port.
[0055] Similarly, the service port estimation unit 15 checks whether the port number is included in the service port list for the destination IP address of the communication flow of interest as a client of the IP address, and obtains information on the port number, such as "match" (degree of match in case of match), "mismatch", or "out-of-list port", in the same manner as described above. Specifically, the service port estimation unit 15 checks whether the port number (destination port number of the communication flow of interest) is included in the service port list accessed as a client of the destination IP address of the communication flow of interest. If the port number is included, the service port estimation unit 15 acquires a corresponding communication pattern analysis model from the storage unit 18. Next, the service port estimation unit 15 converts the information on the packet size and communication direction of the communication flow of interest into a feature quantity to be applied to the communication pattern analysis model, applies it to the acquired communication pattern analysis model, and obtains information on "match" (degree of match in case of match) or "mismatch". On the other hand, if the port number (destination port number of the communication flow of interest) is not included in the service port list (service port list accessed as a client), the service port estimation unit 15 acquires information on the "out-of-list port" as the determination result for the port number.
[0056] Using the above results, if the source communication port of the flow of interest meets any of the following three conditions (conditions 1 to 3), the service port estimation unit 15 outputs "match" as the final service port estimation result for the source port number, and if none of the following three conditions are met, the service port estimation unit 15 outputs "mismatch" as the final service port estimation result for the source port number. [First condition] The source IP address is a monitored network segment, and the estimation result of the source communication port corresponding to the source IP address is "matched", and the destination IP address is a monitored network segment, and the estimation result of the source communication port corresponding to the destination IP address is "matched". [Second condition] The source IP address is in the monitored network segment, and the estimated result of the source communication port corresponding to the source IP address is "matched," and the destination IP address is outside the monitored network segment. [Third condition] The source IP address is outside the monitored network segment, and the destination IP address is in the monitored network segment, and the estimated result of the source communication port corresponding to the destination IP address is "match."
[0057] If the source port estimation result is "match", and the source IP address estimation result and destination IP address estimation result also match (i.e., satisfying the first condition above), service port estimation unit 15 may compare the degree of match for each and use the smaller value as the degree of match for the source port number.
[0058] Similarly, the service port estimation unit 15 estimates whether the destination port number is a service port or not for the destination port number. That is, the service port estimation unit 15 uses the "service port list accessed as a client" of the source IP address and the "service port list accessed as a server" of the destination IP address to perform the same service port estimation process as the process for the source port number described above, and obtains a service port estimation result for the destination port number ("match" (including the degree of match in the case of match) or "mismatch").
[0059] The service port estimation unit 15 performs service port estimation for the communication flow of interest using the estimation result of the source port number and the estimation result of the destination port number. Specifically, when the service port estimation result for the source port number is "match" and the service port estimation result for the destination port number is "mismatch", the service port estimation unit 15 sets the source port number as the estimation result of the service port of the communication flow of interest. Also, when the service port estimation result for the source port number is "mismatch" and the service port estimation result for the destination port number is "match", the service port estimation unit 15 sets the destination port number as the estimation result of the service port of the communication flow of interest. Furthermore, when the service port estimation result for the source port number is "mismatch" and the service port estimation result for the destination port number is also "mismatch", the service port estimation unit 15 sets "undeterminable" as the estimation result of the service port of the communication flow of interest. Furthermore, if the service port estimation result for the source port number is "match" and the service port estimation result for the destination port number is also "match", service port estimation unit 15 compares the degree of match (similarity) of the estimation result for the source port number with the degree of match (similarity) of the estimation result for the destination port number, and sets the larger port number as the estimation result of the service port of the noted communication flow, and sets "undeterminable" as the estimation result if the degrees of match (similarity) also match. Then, service port estimation unit 15 notifies the service port determination unit of the estimation result of the service port of the noted communication flow.
[0060] As described above, service port estimation unit 15 obtains the estimation result of the source port number and the estimation result of the destination port number. Then, service port estimation unit 15 notifies service port determination unit 13 of the estimation result of the service port of the communication flow of interest obtained by the above-mentioned processing.
[0061] Service port list management unit 16 has the function of creating and managing a service port list accessed as a client and a service port list accessed as a server for each of TCP and UDP (i.e., created for each protocol) for each monitored device 30. When service port list management unit 16 receives communication flow information (5-tuples, service port (empty if the service port is undetermined)) from control unit 12, it performs a service port list update process depending on whether the protocol of the communication flow of interest is TCP or UDP.
[0062] When the protocol of the communication flow of interest is TCP, the service port list management unit 16 checks whether the service port number matches the source port number or the destination port number. When the service port number matches the source port number and the source IP address is under the monitored network segment, the service port list management unit 16 adds the port number to the service port list accessed as a TCP server of the source IP address if it is not included. The service port list management unit 16 similarly performs this for the service port list accessed as a client of the destination IP address. When the service port number matches the destination port number, the service port list management unit 16 adds the port number to the service port list accessed as a TCP client of the source IP address if it is not included. The service port list management unit 16 similarly performs this for the service port list accessed as a server of the destination IP address. When the service port list is changed as a result of the above processing, the latest service port list is saved in the storage unit 18.
[0063] When the protocol of the communication flow of interest is UDP, the service port list management unit 16 holds, for each monitored device 30, a list of candidate service ports to be accessed as a client and a list of candidate service ports to be accessed as a server, separately from the service port list.
[0064] The service port list management unit 16 checks the service port information, and if a service port is set, checks whether the port number matches the source port number or the destination port number. If the port number matches the source port number and the source IP address is under the monitored network segment, the service port list management unit 16 adds the port number to a candidate list of service ports accessed as a server of the source IP address. The service port list management unit 16 also performs this for the candidate list of service ports accessed as a client of the destination IP address. If the service port number matches the destination port number, the service port list management unit 16 adds the port number to the candidate list of service ports accessed as a client of the source IP address, and also performs this for the candidate list of service ports accessed as a client of the destination IP address. If a service port is not set, the service port list management unit 16 performs the above-mentioned process of adding the destination port number to the candidate list of service ports. The reason why such an exception process is performed only for UDP is that in the service port determination process in the service port determination unit 13, there is a means for determining the service port using the information of the TCP control flag in the case of TCP, but in the case of UDP, there is no determination means other than estimation by communication pattern analysis, so that a problem occurs in which the service port is not determined when there is no element in the service port list. Therefore, the service port list management unit 16 has a service port list creation means using a candidate list of service ports. For example, the service port list creation method may be such that, for each port number included in the service port candidate list, the frequency of occurrence in the candidate list is tallied, and a port number having a higher frequency of occurrence than other port numbers is extracted as a service port. As a method for extracting service ports, for example, a method may be considered in which a port number corresponding to the frequency of occurrence determined as an outlier by an outlier detection algorithm is created as the service port list. As an algorithm for detecting outliers, for example, the Smirnov-Grubbs test can be used.When the service port list is changed, the service port list management unit 16 stores the latest service port list in the storage unit 18.
[0065] Service port list management unit 16 notifies communication pattern learning unit 17 of the communication flow information and the service port number (or the destination port number if there is no service port information in UDP) as a result of the above-mentioned service port list creation / update processing, "if the service port list includes the received service port number" or "if there is no service port information in UDP and the destination port number is included in the service port list." Also, service port list management unit 16 notifies communication pattern learning unit 17 of the communication flow information and the service port number (or the destination port number if there is no service port information in UDP) as a result of the above-mentioned service port list creation / update processing, "if the service port list includes the received service port number" or "if there is no service port information in UDP and the destination port number is included in the service port list."
[0066] As described above, the service port list management unit 16 manages the service port list for each IP address (for each monitored device 30).
[0067] The communication pattern learning unit 17 has a function of machine learning the communication pattern of the communication flow of each service port included in the service port list, and constructing a communication pattern analysis model that outputs whether or not an inputted communication flow of interest matches the communication behavior of the service port.
[0068] When the communication pattern learning unit 17 receives the communication flow information and the service port information from the service port list management unit 16, the communication pattern learning unit 17 acquires from the storage unit 18 the flow information in which the same service port as the received service port is set (if there is no service port information in UDP, the flow information in which the same destination port number as the received destination port number is acquired). Next, the communication pattern learning unit 17 extracts the flow information related to the source IP address from the acquired flow information. That is, when the service port matches the source port number for the source IP address of the received flow information, the communication pattern learning unit 17 extracts the flow information acquired from the storage unit 18 in which the pair of the source IP address and the source port number and the pair of the destination IP address and the destination port number match the pair of the source IP address and the source port number of the received flow information. When the service port matches the destination port number for the source IP address of the received flow information, the communication pattern learning unit 17 extracts the flow information acquired from the storage unit 18 in which the pair of the source IP address and the destination port number and the pair of the destination IP address and the source port number match the pair of the source IP address and the destination port number of the received flow information. When the number of extracted flow information items is equal to or greater than a threshold (a predetermined number of data items required for learning), the communication pattern learning unit 17 constructs a communication pattern analysis model corresponding to the service port number of the source IP. In order to construct a communication pattern analysis model, the communication pattern learning unit 17 converts each piece of extracted flow information into feature data as shown in FIG. 4. The communication pattern learning unit 17 applies the feature data of each flow as learning data to a machine learning device to learn the communication behavior of the port number. The machine learning device (AI platform) applied to the communication pattern learning unit 17 is not limited, and various learning devices can be used. The communication pattern learning unit 17 may use, for example, One Class SV M as the machine learning device and construct a model that determines feature data having characteristics similar to the feature data used for learning as normal and determines feature data having different characteristics as abnormal.The communication pattern learning unit 17 stores the constructed communication pattern analysis model in the storage unit 18 as a communication pattern analysis model corresponding to the service port in the service port list of the source IP address. The communication pattern learning unit 17 similarly performs the above process on the destination IP address.
[0069] The storage unit 18 has a function of holding various information related to service port identification. Specifically, it holds flow information, a list of service ports accessed as a client for each IP address and a list of service ports accessed as a server, a communication pattern analysis model corresponding to each port number included in the service port list, and monitored network segment information.
[0070] The timer section 19 has the function of receiving a request from the control section 12 and the broadcast processing section 14, setting a timer to the requested setting value, and notifying the control section 12 or the broadcast processing section 14 of a timeout.
[0071] (A-2) Operation of the First Embodiment Next, the operation of the communication analysis device 10 of the first embodiment (the communication analysis method according to the embodiment) will be described.
[0072] In the following, as examples of the operation of communication analysis device 10, a series of operations from receiving a packet to determining the service port of the communication flow (step S100), an operation of determining broadcast communication in a UDP communication flow (step S200), an operation of service port estimation processing (step S300), an operation of creating / updating a service port list (step S400), and an operation of constructing a communication pattern analysis model of a service port (step S500) will be described.
[0073] 5 to 9 are flowcharts each showing the operation of communication analysis device 10 (the operations of steps S100 to S500 described above).
[0074] First, the operation of step S100 in communication analysis device 10 (a series of operations from packet reception to service port determination of the communication flow) will be described with reference to the flowchart of FIG.
[0075] When the traffic capture unit 11 receives a packet from the mirror port, it notifies the control unit 12 of the received packet (S101).
[0076] Next, the control unit 12 extracts 5-tuples information from the received packet and checks whether it is a packet of a continuing communication flow. If the communication flow information held by the control unit 12 contains a communication flow that matches the 5-tuples of the received packet or a communication flow that matches the 5-tuples obtained by swapping the source IP address and port number with the destination IP address and port number, the control unit 12 judges it to be a continuing communication flow, and if there is no matching communication flow, the control unit 12 judges it to be a new communication flow. If the control unit 12 judges it to be a new communication flow, the control unit 12 holds the 5-tuples information, the packet size of the received packet, the communication direction (information on whether the communication is from the source IP address to the destination IP address or from the destination IP address to the source IP address), the value of the TCP control flag in the case of TCP, and the service port (value is null) as communication flow information that manages the communication flow. In addition, the control unit 12 sets in the timer unit 19 a timeout time used to discard the communication flow when the communication flow does not receive a packet for a certain period of time. Furthermore, if the control unit 12 judges it to be a continuing communication flow, it updates the communication flow information (S102). Specifically, the control unit 12 adds the packet size of the received packet, the communication direction, and if the protocol is TCP, the value of the TCP control flag to the communication flow information. In addition, the control unit 12 resets the timeout period that was set for the communication flow and sets a new timeout period in the timer unit 19.
[0077] Next, the control unit 12 checks the value of the service port by referring to the communication flow information of the attention communication flow corresponding to the received packet (S103). If the value of the service port of the attention communication flow is empty (not set), the process proceeds to step S107 described later to have the service port determination unit 13 execute a service port determination for the attention communication flow. If the value of the service port has been set, the process proceeds to step S104 described later to proceed to determining the communication flow storage conditions described later.
[0078] If the value of the service port of the communication flow of interest is null (not set) in step S103 described above, the service port determination unit 13 first checks whether the protocol of the communication flow of interest is TCP or UDP (S107), and if the protocol is TCP, proceeds to the processing of step S108 described later, and if not, proceeds to the processing of step S200 described later.
[0079] In the above step S107, if the protocol of the attention communication flow is TCP, the service port determination unit 13 attempts to determine the service port from the information of the TCP control flag of the attention communication flow (S108), and if the determination is successful, the process proceeds to the process of step S109 described later, and if not, the process proceeds to the process of step S111 described later. Specifically, if the control flags of the packets received so far (packets of the attention communication flow) include a packet with only the SYN flag ON, the service port determination unit 13 can determine that the packet is a connection request from the client to the server, and therefore obtains the destination port number from the communication direction information of the packet (the destination port number if the communication is from the source IP address to the destination IP address, and the source port number if the communication is in the opposite direction) and determines that the packet is a service port. Also, if the control flag includes a packet with the SYN and ACK flags ON, the packet can be determined that the packet is a response packet to the SYN packet from the server to the client, and therefore obtains the port number of the sender from the communication direction information of the packet and determines that the packet is a service port.
[0080] In the above-mentioned step S108, if the service port determination is successful from the information of the TCP control flag of the attention communication flow, the service port determination unit 13 determines the service port as the determination result for the attention communication flow and notifies the control unit 12 (S109).
[0081] In the above-mentioned step S108, if the service port cannot be determined from the information of the TCP control flag of the attention communication flow, the service port determining unit 13 proceeds to the process of step S111 described later and proceeds to the service port estimation process.
[0082] When the protocol of the attention communication flow is confirmed to be UDP in the above-mentioned step S107, service port determination unit 13 requests broadcast processing unit 14 to determine whether or not the attention communication flow is related to broadcast communication. In response to the request from service port determination unit 13, broadcast processing unit 14 determines whether or not the attention communication flow is broadcast communication (S200), and if the attention communication flow is broadcast communication, the operation proceeds to step S113 described later.
[0083] If it is determined in step S200 that the attention communication flow is broadcast communication, broadcast processing unit 14 notifies service port determination unit 13 of that effect together with broadcast progress information. When service port determination unit 13 acquires from broadcast processing unit 14 the determination result that the attention communication flow is broadcast communication, it uses the broadcast progress information notified from broadcast processing unit 14 as a response to control unit 12. In this case, control unit 12 recognizes that the attention communication flow is broadcast communication and recognizes (determines) the broadcast progress (S113).
[0084] On the other hand, if it is determined in step S200 that the attention communication flow is not broadcast communication, broadcast processing unit 14 notifies service port determination unit 13 of that effect. If service port determination unit 13 is notified that the attention communication flow is not broadcast communication, it proceeds to processing in step S111, which will be described later, and proceeds to service port estimation processing of the attention communication flow.
[0085] The service port determination unit 13 determines to perform service port determination by service port estimation processing for the communication flow of interest when "the service port determination by the control flag cannot be performed for the communication flow of interest in TCP" or "when the communication flow of interest is not determined to be a broadcast communication in UDP". At this time, the service port determination unit 13 determines whether or not packets received so far for the communication flow of interest satisfy a predetermined condition required for performing service port estimation (S111), and if it is determined that the above-mentioned predetermined condition is satisfied, the process proceeds to step S300 described later, and if it is determined that the above-mentioned predetermined condition is not satisfied, the process proceeds to step S112 described later. Specifically, the service port determination unit 13 may determine that the above-mentioned predetermined condition (the condition of step S111) is satisfied when the number of packets received so far for the communication flow of interest is equal to or greater than a threshold value, or when the communication flow is a timeout because no packets have been received for a certain period of time.
[0086] In the above-mentioned step S111, if the packets received so far for the attention communication flow satisfy the above-mentioned predetermined condition, service port determination unit 13 instructs service port estimation unit 15 to execute a service port estimation process for the attention communication flow and obtains the result. Then, service port estimation unit 15 performs a service port estimation process for the attention communication flow (S300), and if the service port can be estimated as a result (if it is not impossible to determine), it notifies service port determination unit 13 of the service port. At this time, service port determination unit 13 proceeds to step S109 and determines the received port number as the service port of the attention communication flow, and notifies control unit 12 of the determination. Details of the process of step S300 will be described later.
[0087] On the other hand, if "the packets received so far for the communication flow of interest in the above-mentioned step S111 do not satisfy the above-mentioned predetermined condition" or "if the service port estimation process for the communication flow of interest in the above-mentioned step S300 cannot be performed", the service port determination unit 13 determines that the service port for the communication flow of interest is not determinable, and notifies the control unit 12 of the determination (determination result) (S112).
[0088] As described above, the service port determination unit 13 notifies the control unit 12 of the determined service port number when the service port can be determined, or of the broadcast progress information when the service port is determined as a service port determination result when the service port cannot be determined. Then, the control unit 12 determines whether or not the attention communication flow satisfies a predetermined condition based on the result from the service port determination unit 13 (S110), and executes the process of step S400 described later only when the attention communication flow satisfies the predetermined condition, and then proceeds to the process of step S104 described above. For example, the control unit 12 may determine that the attention communication flow satisfies the above-mentioned predetermined condition (the condition of step S110) when the protocol of the attention communication flow is UDP, or when the protocol of the communication flow is TCP and the service port number is notified from the service port determination unit 13.
[0089] If it is determined in step S110 that the above-mentioned predetermined condition is satisfied, the control unit 12 notifies the service port list management unit 16 of the information on the 5-tuples of the communication flow and the information on the service port (empty if the determination is impossible), and causes the service port list management unit 16 to create and update the service port list (S400). Details of the process in step S400 will be described later.
[0090] When the service port determination process is completed, the control unit 12 determines whether or not the number (amount) of packets received so far for the communication flow of interest satisfies a predetermined condition (S104), and only if the predetermined condition is satisfied, stores information including 5-tuples information, packet size, communication direction, service port (null character if the service port has not been determined), and broadcast progress information (null character if the communication flow is not broadcast-related) in the storage unit 18 as communication flow history information (S105), and then proceeds to step S106. Note that after storing the flow history information, the control unit 12 deletes the information about the communication flow that it has retained.
[0091] The control unit 12 may determine that the above-mentioned specified condition (the condition of step S104) is satisfied, for example, when the number of packets received so far for the communication flow of interest is equal to or greater than a threshold, or when it can be determined that the communication flow of interest has ended (a packet with FIN ON and a packet with FIN / ACK ON in the TCP control flag are observed), or when the communication flow of interest is a communication flow that has timed out.
[0092] When the control unit 12 completes the process for the target communication flow corresponding to the received packet, it checks whether any of the communication flows it manages has received a timeout notification from the timer unit 19 (S106), and if any of the communication flows has timed out, it sets that communication flow as the next target communication flow and returns to the above-mentioned step S103 for operation. If it is determined in the above-mentioned step S106 that no communication flow has timed out, the control unit 12 waits until the next packet is received, and if the next packet is received, it resumes operation from the above-mentioned step S101.
[0093] As described above, the communication analysis device 10 performs operations associated with packet reception.
[0094] Next, details of the operation of step S200 (broadcast communication determination operation) in communication analysis device 10 will be described with reference to the flowchart of FIG.
[0095] Here, it is assumed that first, the broadcast processing unit 14 receives 5-tuples information of a UDP communication flow of interest from the service port determining unit 13 (S201).
[0096] Next, the broadcast processing unit 14 judges whether the received UDP packet is a broadcast request or not (S202), and if it is a broadcast request, the operation starts from the process of step S203 described later, and if it is not a broadcast request, the operation starts from the process of step S205 described later. For example, if the destination IP address of the received UDP packet is the broadcast IP address of the monitored network segment (for example, if the IP address ends with 255), the broadcast processing unit 14 may determine that the communication flow of interest is a broadcast request.
[0097] If it is determined in step S202 that the received UDP packet is a broadcast request, the broadcast processing unit 14 saves the pair of the source IP address and destination port number of the noted communication flow in the broadcast response waiting list, and sets a timeout timer for the pair in the timer unit 19 (S203).Then, the broadcast processing unit 14 sets the status of "broadcast request" as the broadcast progress of the pair (the pair of the source IP address and destination port number of the noted communication flow) corresponding to the received UDP packet (S204), and proceeds to the process of step S212, which will be described later.
[0098] If it is determined in step S202 that the received UDP packet is not a broadcast request, the broadcast processing unit 14 determines whether the received UDP packet is a broadcast response (S205), and if it is determined that it is a broadcast response, proceeds to processing in step 206, which will be described later, and if not, proceeds to processing in step S208, which will be described later. If the pair of the destination IP address and source port number of the received UDP packet is included in the broadcast response waiting list, the broadcast processing unit 14 may determine that the UDP packet is a broadcast response.
[0099] If it is determined in step S205 that the received UDP packet is a broadcast response, the broadcast processing unit 14 saves the pair of destination IP address and source IP address of the received UDP packet in the unicast access waiting list, and sets a timeout timer for the pair in the timer unit 19 (S206).Then, the broadcast processing unit 14 sets the status of "broadcast response" as the broadcast progress of the pair (the pair of source IP address and destination port number of the noted communication flow) corresponding to the received UDP packet (S207), and proceeds to the process of step S212 described later.
[0100] If it is determined in step S205 that the received UDP packet is not a broadcast response, the broadcast processing unit 14 determines whether the received UDP packet (interested communication flow) is a unicast access or not (S208), and if it is determined that it is a unicast access, the operation starts from the processing of step S209 described later, and if not, the operation starts from the processing of step S211 described later. If a pair of a source IP address and a destination IP address of the received UDP packet (interested communication flow) is included in the unicast access waiting list, the broadcast processing unit 14 may determine that the received UDP packet (interested communication flow) is a unicast access.
[0101] If it is determined in step S208 that the received UDP packet (interested communication flow) is a unicast access, the broadcast processing unit 14 deletes the pair (the pair of the source IP address and the destination IP address) corresponding to the received UDP packet (interested communication flow) from the unicast access waiting list (S209).Then, the broadcast processing unit 14 sets the status of "unicast access" as the broadcast progress of the pair (the pair of the source IP address and the destination port number of the interest communication flow) corresponding to the received UDP packet (interested communication flow) (S210), and proceeds to the process of step S212 described later.
[0102] On the other hand, if it is determined in step S208 that the received UDP packet (interested communication flow) is not unicast access, the broadcast processing unit 14 sets the status of "not related to broadcast communication" as the broadcast progress of the pair (pair of source IP address and destination IP address) corresponding to the received UDP packet (interested communication flow) (S211), and proceeds to the process of step S212 described later. At this time, instead of explicitly setting the status of "not related to broadcast communication" as the broadcast progress, nothing may be set (empty state).
[0103] When the broadcast progress information for the pair (pair of source IP address and destination IP address) of the received UDP packet (interested communication flow) is set by the process of any one of steps S204, S207, S210, and S211, the broadcast processing unit 14 performs maintenance of various lists (S212, S213). Specifically, the broadcast processing unit 14 deletes from the broadcast response waiting list an element (pair) that has received a timeout notification from the timer unit 19. In addition, the broadcast processing unit 14 deletes from the unicast access waiting list an element (pair) that has received a timeout notification from the timer unit 19.
[0104] Next, broadcast processing unit 14 notifies service port determination unit 13 of the set broadcast progress information. Furthermore, if the notified broadcast progress information is any one of a broadcast request, a broadcast response, or a unicast access, service port determination unit 13 notifies control unit 12 of the broadcast progress information (S214).
[0105] When the control unit 12 receives the broadcast progress information, the control unit 12 may set a service port for the communication flow according to the purpose from the received broadcast progress information (S215). For example, in the case of a function for detecting an abnormality in communication to a service that the monitored device 30 does not usually access, the control unit 12 may set the destination port number as the service port when the broadcast progress information is a broadcast request. Also, when the broadcast progress information is a broadcast response, the control unit 12 may set the source port number, which is the service port of the broadcast request, as the service port. Furthermore, when the broadcast progress information is unicast access, the control unit 12 may set the destination port number as the service port.
[0106] Figures 10 to 12 are diagrams showing specific examples of transitions of the lists (the broadcast response waiting list and the unicast access waiting list) when the communication analysis device 10 executes the process of the flowchart shown in Figure 5. Figures 10 to 12 respectively show an example when there is a broadcast request, an example when there is a broadcast response, and an example when there is a unicast access.
[0107] 10 shows an example in which communication (packet) is occurring from monitored device 30 at xxx.yyy.zzz.2 to xxx.yyy.zzz.255 with destination port number B. The destination IP address xxx.yyy.zzz.255 is the broadcast IP address of the monitored network segment, and is determined to be a broadcast request by the broadcast processing unit 14. Also, in FIG. 10, based on the above broadcast request, "xxx.yyy.zzz.2,B" is stored in the broadcast response waiting list as information indicating a pair of source IP address and destination port number.
[0108] 11 shows an example in which communication (packets) occurs from the monitored device 30 at xxx.yyy.zzz.3 and the monitored device 30 at xxx.yyy.zzz.5 to the monitored device 30 at xxx.yyy.zzz.2 at source port number B. In the example of FIG. 11, since the pair of destination IP address and source port number xxx.yyy.zzz.2,B is included in the broadcast response waiting list, the broadcast processing unit 14 determines that the two communication flows are broadcast responses. Therefore, in the example of FIG. 11, the two pairs (elements) of "xxx.yyy.zzz.2,xxx.yyy.zzz.3" and "xxx.yyy.zzz.2,xxx.yyy.zzz.5" are added to the unicast access waiting list by the broadcast processing unit 14.
[0109] Fig. 12 shows an example in which communication (packets) occurs from xxx.yyy.zzz.2 to xxx.yyy.zzz.5. In the example of Fig. 12, since the pair (element) of "xxx.yyy.zzz.2, xxx.yyy.zzz.5" is included in the unicast access waiting list, the broadcast processing unit 14 determines that the above communication (packets) is unicast access. Therefore, in the example of Fig. 12, the pair (element) of "xxx.yyy.zzz.2, xxx.yyy.zzz.5" is deleted from the unicast access waiting list by the broadcast processing unit 14.
[0110] As described above, the broadcast processing unit 14 uses each list (the broadcast response waiting list and the unicast access waiting list) to recognize packets of each process constituting the broadcast communication.
[0111] Next, the operation of step S300 in communication analysis device 10 (service port inference processing operation for inferring the service port of the communication flow in service port inference section 15) will be described with reference to the flowchart in FIG.
[0112] When service port estimation unit 15 receives information (5-tuples, packet size, communication direction) of a communication flow of interest that is to be the subject of service port estimation from service port estimation unit 15 (S301), service port estimation unit 15 obtains a service port list of the source IP address of the communication flow of interest and a service port list of the destination IP address from memory unit 18 (S302).
[0113] Next, the service port estimation unit 15 estimates whether the source port number of the communication flow of interest is a service port (S303), and further estimates whether the destination port number of the communication flow of interest is a service port (S304).
[0114] Next, the service port estimation unit 15 estimates the service port number for the communication flow of interest from the service port estimation result for the source port number and the service port estimation result for the destination port number (S305). If only one of the estimation results for the port number matches, the service port estimation unit 15 estimates the port number as the service port, and if the estimation results for both port numbers match, the service port estimation unit 15 estimates the port number with the greater degree of match as the service port. If the estimation results for both port numbers do not match, the service port estimation unit 15 estimates that it was unable to make a determination and that the determination is impossible (determination NG).
[0115] If the estimation of the service port number for the communication flow of interest is successful (determined as OK), the service port estimation unit 15 sets the estimated service port as the service port of the communication flow of interest (S306).
[0116] Service port estimation unit 15 notifies service port determination unit 13 of the estimation result, and ends the estimation process (S307).
[0117] Next, details of the process of estimating whether the source port number for the communication flow of interest in step S303 is a service port or not will be described.
[0118] First, when the source port in the service port list of the source IP address is a service port, the source IP address becomes a server, so the service port estimation unit 15 checks whether the source port number of the communication flow of interest is included in the "service port list accessed as a server" corresponding to the protocol (TCP or UDP) of the communication flow of interest. If the source port number of the communication flow of interest is not included, the service port estimation unit 15 determines that the service port determination result of the source IP address for the source port number is "out-of-list port". If the source port number of the communication flow of interest is included, the service port estimation unit 15 acquires a communication pattern analysis model corresponding to the port number from the storage unit 18 and performs a match determination of the communication pattern. Then, the service port estimation unit 15 converts the packet size and communication direction information of the communication flow of interest into feature quantities (for example, feature quantities as shown in FIG. 4) in order to apply them to the communication pattern analysis model. The service port estimation unit 15 applies the converted feature quantities to the acquired communication pattern analysis model, and obtains a match or mismatch result from the analysis model. If the result is a match, service port estimation unit 15 also obtains the degree of match (a value in the range of 0 to 1) from the communication pattern analysis model.
[0119] The service port estimation unit 15 also performs service port estimation for the source port number for the destination IP address. In the case of a destination IP address, the "service port list accessed as a client" among the service port list of the destination IP address is the subject of estimation. The service port estimation unit 15 also obtains the estimation result of the destination IP address as either a match, a mismatch, or a port outside the list.
[0120] Next, service port estimation unit 15 estimates whether the source port number is a service port using the above results. Specifically, when any one of the above first to third conditions is satisfied, service port estimation unit 15 estimates that the source communication port of the communication flow of interest is a service port. Here, when the source port number is estimated to be a service port, service port estimation unit 15 obtains a value of the degree of match. Here, when the above first condition is satisfied, service port estimation unit 15 compares the degrees of match of the estimation results for each IP address and adopts the smaller value. When other conditions are satisfied, the degree of match of the IP address where the estimation result shows a match is adopted.
[0121] Next, details of the process of estimating whether or not the destination port number for the communication flow of interest in step S304 is a service port will be described.
[0122] The service port estimation unit 15 also estimates whether the destination port number is a service port. First, when the destination port is a service port in the service port list of the source IP address, the source IP address becomes a client, so the service port estimation unit 15 estimates whether the destination port number is a service port in the same procedure as the source port number, targeting the "service port list accessed as a client" of the protocol of the communication flow. Then, the service port estimation unit 15 also performs service port estimation for the destination port number for the destination IP address. In the case of a destination IP address, the "service port list accessed as a server" in the service port list of the destination IP address is the subject of estimation. As a result of the estimation of the destination IP address, either a match, a mismatch, or a port outside the list is obtained. Finally, the service port estimation unit 15 estimates whether the destination port number is a service port using the above results, as in the case of the source port number. The conditions for estimating a service port are the same as those for the source port number.
[0123] Next, a specific example of the service port estimation process performed by service port estimation unit 15 will be described.
[0124] FIG. 13 is a diagram showing an example of a notable communication flow and its corresponding service port list.
[0125] FIG. 13 shows the operation of service port estimation unit 15 when executing the process of the flowchart shown in FIG. 7, together with the contents of each service port list.
[0126] In the example of Fig. 13, the protocol of the communication flow of interest to be estimated is TCP, the source IP address is xxx.yyy.zzz.2, the source port is 61111, the destination IP address is xxx.yyy.zzz.3, and the destination port is 80. In addition, in the example of Fig. 13, the monitored network segment is xxx.yyy.zzz / 24. Furthermore, in the example of Fig. 13, the monitored device 30 with the IP address xxx.yyy.zzz.2 is designated as device A, and the monitored device 30 with the IP address xxx.yyy.zzz.3 is designated as device B.
[0127] Next, the operation of step S302 in the example of Fig. 13 will be described. At this time, service port estimation unit 15 acquires a service port list of device A (the balloon part of device A) whose source IP address is xxx.yyy.zzz.2. At this time, service port estimation unit 15 also acquires a service port list of device B (the balloon part of device B) whose destination IP address is xxx.yyy.zzz.3.
[0128] Next, the operation of step S303 in the example of Fig. 13 will be described. At this time, device A is the source IP address, and the communication flow is TCP, so in service port estimation unit 15, the element of the service port list accessed as a TCP server (only No. 22) is compared with 61111, which is the source port number of the communication flow, and since 61111 is not included in the list, the estimation result is an off-list port. At this time, device B is the destination IP address, and service port estimation unit 15 compares the element of the service port accessed as a TCP client of device B (empty) with 61111, which is the source port number of the communication flow, and since it is not included in the list, the estimation result is an off-list port. Therefore, in the example of Fig. 13, since both the estimation results of the source IP address and the estimation results of the destination IP address are off-list ports, service port estimation unit 15 estimates that the source port number is not a service port.
[0129] Next, the operation of step S304 in the example of FIG. 13 will be described. At this time, the service port estimation unit 15 compares the elements (22 and 80) of the service port list accessed as a TCP client of the device A with the destination port number of the communication flow, 80. Since the number 80 is included in the list, the service port estimation unit 15 acquires a communication pattern analysis model corresponding to the number 80, applies the feature amount of the communication flow to the model, and obtains a match or mismatch result. At this time, the elements (22 and 80) of the service port list accessed as a TCP server of the device B are the target, and since the destination port number of the communication flow, 80, is included in the list, the service port estimation unit 15 applies the feature amount of the communication flow to the communication pattern analysis model, and obtains a match or mismatch as an estimation result. Therefore, in the example of FIG. 13, whether or not the destination port number of the communication flow of interest is a service port is determined depending on the estimation results of the communication pattern analysis models of the source IP address and the destination IP address, respectively. In other words, in the service port estimation unit 15, if either estimation result is inconsistent, it is estimated that the destination port number is not a service port, and if both estimation results are in agreement, it is estimated that the destination port number is a service port.
[0130] Next, the operation of step S305 in the example of Fig. 13 will be described. At this time, since the service port estimation result for the source port number is a mismatch, service port estimation unit 15 estimates that destination port number 80 is the service port if the estimation result for the destination port number is a match, and estimates that it is impossible to determine if the estimation results are a mismatch.
[0131] Next, the operation of step S400 in communication analysis device 10 (the operation of creating and updating the service port list by service port list management unit 16) will be described with reference to FIG.
[0132] Here, it is assumed that the service port list management unit 16 first receives 5-tuples and a service port number (the service port number determined by the service port determination unit 13; blank if the service port cannot be determined) as communication flow information of the communication flow of interest from the control unit 12 (S401).
[0133] Next, service port list management unit 16 checks whether the protocol of the communication flow of interest is TCP or UDP (S402), and if it is TCP, the operation proceeds from step S403 described below, and if it is UDP, the operation proceeds from step S406 described below.
[0134] If the protocol of the communication flow of interest is TCP, the service port list management unit 16 acquires a service port list corresponding to the communication flow of interest (S403). First, the service port list management unit 16 checks whether the received service port number matches the source port number or the destination port number of the communication flow. If it matches the source port number, the service port list management unit 16 acquires from the storage unit 18 a service port list accessed as a TCP server of the source IP address, and further acquires from the storage unit 18 a service port list accessed as a TCP client of the destination IP address. If it matches the destination port number, the service port list management unit 16 acquires from the storage unit 18 a service port list accessed as a TCP client of the source IP address, and further acquires from the storage unit 18 a service port list accessed as a TCP server of the destination IP address.
[0135] Next, service port list management unit 16 checks whether the received service port number is included in the acquired service port list, and if the service port number is not included in the list, adds the service port number to the service port list and saves the updated service port list in storage unit 18 (S404, S405). After that, service port list management unit 16 proceeds to step S413, which will be described later.
[0136] On the other hand, in the above-mentioned step S402, if the protocol of the noted communication flow is UDP, service port list management unit 16 acquires a service port candidate list corresponding to the noted communication flow (S406). If a value is set for the received service port, service port list management unit 16 checks whether the service port number matches the source port number or destination port number of the communication flow. If it matches the source port number, service port list management unit 16 acquires a service port candidate list for access as a server of the source IP address, and acquires a service port candidate list for access as a client of the destination IP address.
[0137] Next, service port list management unit 16 checks whether the service port matches the destination port number and whether a value is set in the service port (S407), and if a value is set, proceeds to processing in step S408, which will be described later, or if not, proceeds to processing in step S409, which will be described later.
[0138] In step S407, if it matches the destination port number or if no value is set for the service port, service port list management unit 16 acquires a list of service port candidates to be accessed as a client of the source IP address, and acquires a list of service port candidates to be accessed as a server of the destination IP address. Then, service port list management unit 16 adds the destination port number to the acquired service port candidate list to update it (S409).
[0139] On the other hand, in step S407, if the destination port number matches and a value is set in the service port, service port list management unit 16 updates the obtained service port candidate list by adding the service port number (S408).
[0140] After updating the service port candidate list, the service port list management unit 16 executes a process of creating a UDP service port list (S410). The service port list management unit 16 counts the frequency of occurrence of port numbers included in the service port list candidate list. After that, the service port list management unit 16 proceeds to step S413, which will be described later.
[0141] FIG. 14 is a diagram showing an example of the results of tallying up the frequency of appearance for each port number included in the service port candidate list and creating a histogram based on the frequency of appearance.
[0142] The service port list management unit 16 creates a service port list using the collected occurrence frequency of each port number. Specifically, a statistical outlier detection method is used to extract port numbers corresponding to occurrence frequencies that are treated as outliers as a service port list. For example, the Smirnov-Grubbs test can be used as an outlier detection method. In the example of FIG. 14, the range of occurrence frequencies that are treated as outliers is indicated by left and right arrows, and a service port list is created in which port numbers corresponding to occurrence frequencies included in this range are set as service port numbers. In FIG. 14, the horizontal axis represents occurrence frequency, and the vertical axis represents frequency (number of types of port numbers). In general, when the occurrence frequency of each port number is collected from traffic data of a device that performs IP communication, there are more types of port numbers that are not service ports than port numbers that are service ports, but the occurrence frequency of service ports tends to be significantly higher. Therefore, a port number whose occurrence frequency is an outlier as shown in FIG. 14 is highly likely to be a service port. For example, when referring to the occurrence frequencies of the source port number and the destination port number of a target communication flow, if only the occurrence frequency of one of the port numbers corresponds to the above-mentioned outlier, it is highly likely that the port number corresponds to a service port.
[0143] Next, the service port list management unit 16 compares the created service port list with the service port list stored in the memory unit 18, and if there are any changes in the elements contained in the list, it stores the new service port list in the memory unit 18 (S411, S412).
[0144] Thereafter, the service port list management unit 16 checks whether the service port number of the received communication flow (destination port number if the service port is empty in the case of UDP) is included in the updated service port list (S413), and if it is confirmed that the service port number is included, notifies the communication pattern learning unit 17 of the 5-tuples information of the communication flow and the service port number (destination port number if the service port is empty in the case of UDP) to construct a communication pattern analysis model (S500), and ends the process. The process of constructing a communication pattern analysis model of the port number by the communication pattern learning unit 17 will be described in detail later.
[0145] Next, the operation of step S500 in the communication analysis device 10 (the operation of constructing a communication pattern analysis model for a service port in the communication pattern learning unit 17) will be described with reference to the flowchart in FIG.
[0146] First, it is assumed that the communication pattern learning unit 17 receives, as communication flow information, information on the 5-tuples of the communication flow and the service port number (or the destination port number if the protocol is UDP and the service port is empty) from the service port list management unit 16 (S501).
[0147] When a value is set in the service port number, the communication pattern learning unit 17 acquires communication flow history information (5-tuples information, packet size and communication direction of each packet of the communication flow) in which the same service port number as the service port number received from the storage unit 18 is set (S502). Note that, when the value of the service port number is null at this time, the communication pattern learning unit 17 acquires communication flow history information of the same destination port number as the destination port number of the communication flow received from the storage unit 18.
[0148] Next, the communication pattern learning unit 17 extracts a communication flow related to the source IP address from the acquired communication flow history information (S503). Specifically, when the received service port number matches the source port number of the received communication flow, the communication pattern learning unit 17 extracts "a pair of the source IP address and the source port number that matches the pair of the source IP address and the source port number of the communication flow history information" or "a pair of the source IP address and the source port number that matches the pair of the destination IP address and the destination port number of the communication flow history information." When the received service port number matches the destination port number of the received communication flow, the communication pattern learning unit 17 extracts "a pair of the source IP address and the destination port number that matches the pair of the source IP address and the destination port number of the communication flow history information" or "a pair of the source IP address and the destination port number that matches the pair of the destination IP address and the source port number of the communication flow history information."
[0149] Next, the communication pattern learning unit 17 checks whether the number of extracted (accumulated) communication flow history information items is equal to or greater than a predetermined number required for constructing a communication pattern analysis model (S504). If the predetermined number or more items are accumulated, the process proceeds to step S505 described later; if not, the process of constructing a communication pattern analysis model ends.
[0150] When the number of pieces of communication flow history information extracted (accumulated) is equal to or greater than a predetermined number, the communication pattern learning unit 17 converts each piece of communication flow history information into a feature quantity for applying to the machine learning device (S505). Here, it is assumed that the communication pattern learning unit 17 converts into the feature quantities shown in FIG.
[0151] Next, the communication pattern learning unit 17 constructs a communication pattern analysis model using the feature amount of each converted communication flow history information as learning data (S506). There is no limitation on the platform for constructing the communication pattern analysis model, and various AI platforms and the like can be applied. Here, the communication pattern learning unit 17 constructs a communication pattern analysis model using One Class SVM to determine a communication flow having a feature amount close to the learning data as normal (it is a communication pattern of the service port number), and to determine a communication flow that is significantly different from the feature amount of the learning data as abnormal (it is not a communication pattern of the service port number).
[0152] Next, the communication pattern learning unit 17 stores the constructed communication pattern analysis model in the storage unit 18 as a model corresponding to the service port number present in the service port list of the source IP address (S507), and ends the construction process of the communication pattern analysis model. In other words, if the service port number matches the source port number, the communication pattern learning unit 17 stores it as a communication pattern analysis model corresponding to the service port number included in the service port list accessed as a TCP or UDP (depending on the protocol of the communication flow) server of the source IP address. If the service port number matches the destination port number, the communication pattern learning unit 17 stores it as a communication pattern analysis model corresponding to the service port number included in the service port list accessed as a TCP or UDP client of the source IP address.
[0153] The communication pattern learning unit 17 also performs the above process on the destination IP address.
[0154] (A-3) Effects of the First Embodiment According to the first embodiment, the following effects can be obtained.
[0155] In the first embodiment, for each monitored device 30 under management, a service port accessed by the monitored device 30 as a client and a service port accessed as a server are created and accumulated from information on communication flows that have occurred in the past, and are held as a list and used for service port determination. As a result, in the first embodiment, it is possible to improve the accuracy of determining the service port of a communication flow in which the service port cannot be identified from information on a single communication flow, such as a communication flow received at a mirror port with the arrival order of packets changed, a communication flow started before mirroring, or a UDP communication flow. Here, having two types of service port lists (a service port list accessed as a client and a service port list accessed as a server) for each monitored device 30 can increase the identifiability of the service port compared to a case in which one service port list is held for each monitored device 30 without distinguishing between client and server. For example, consider a case in which the service port list accessed as a client of device A includes port numbers 60000 and 1433, and the service port list accessed as a server of device B includes port numbers 60000 and 1433. In this case, if a communication flow occurs with source device A and source port number 1433 and destination device B and destination port number 60000, the service port of that communication flow can be determined to be 60000 because 60000 is included in the service port list accessed as a client of device A and 60000 is also included in the service port list accessed as a server of device B. On the other hand, if one service port list is held for each monitored device 30 without distinguishing between client and server, both the source port number and destination port number of the communication flow will be included in the service port lists of device A and device B, and the service port cannot be identified.
[0156] In the first embodiment, a communication pattern analysis model is used that machine-learns the communication pattern when communication is performed using each port number included in the service port list of the monitoring target device 30, and when determining the service port, the communication pattern analysis model is used to determine whether the communication patterns match. As a result, in the first embodiment, it is possible to increase the possibility of identifying the service port in a case where the service port cannot be determined even when the above two types of service port lists are used. For example, consider a case where the service port list accessed as a client of device A includes port numbers 60000 and 1433, the service port list accessed as a server includes port number 1433, the service port list accessed as a client of device B includes port number 1433, and the service port list accessed as a server includes port numbers 60000 and 1433. In this case, when a communication flow occurs in which the source device is A and the source port number is 1433 and the destination device is B and the destination port number is 60000, the source port number 1433 is included in the service port number accessed as the server of device A and is also included in the service port number accessed as the client of device B. Furthermore, the destination port number 60000 is included in the service port number accessed as a client of device A, and is also included in the service port number accessed as a server of device B. In such a case, both the source port number and the destination port number can be considered as service ports, so the service port cannot be identified. In the first embodiment, the service port of such a communication flow can be identified by using a communication pattern analysis model.
[0157] In the communication analysis device 10 of the first embodiment, progress information is provided for a series of processes of broadcast communication, and service port determination for communication flows related to broadcast communication is performed separately. This makes it possible to eliminate erroneous service port determination that occurs when, for example, a broadcast response is processed as a single unicast communication flow, and improves the accuracy of service port determination.
[0158] As described above, the communication analysis device 10 of the first embodiment can identify the service ports of communication that requires taking into account a connectionless communication flow such as UDP, a communication flow in which the first packet is missed, and a communication flow such as broadcast communication. In other words, the communication analysis device 10 of the first embodiment can improve the accuracy of identifying a service port from communication traffic data.
[0159] (B) Second embodiment A second embodiment of a communication analysis device, a communication analysis program, and a communication analysis method according to the present invention will be described below in detail with reference to the drawings.
[0160] FIG. 15 is a block diagram showing the functional configuration of a communication analysis device 10A according to the second embodiment.
[0161] In the first embodiment, in order to estimate a service port in the service port estimation unit 15, a communication pattern analysis model is used to determine whether the communication patterns match, but the communication analysis device 10A of the second embodiment applies an estimation method that does not use a communication pattern analysis model.
[0162] Communication analysis device 10A differs from the first embodiment in that communication pattern learning unit 17 is excluded and service port estimation unit 15 is replaced with service port estimation unit 15A.
[0163] Service port estimation unit 15A estimates a service port based only on information on whether the port number to be estimated is included in the service port list. In this way, communication analysis device 10A (service port estimation unit 15A) can shorten the time required for service port estimation and reduce the processing load by adopting a method that does not use a communication pattern analysis model.
[0164] (C) Third embodiment Hereinafter, a third embodiment of a communication analysis device, a communication analysis program, and a communication analysis method according to the present invention will be described in detail with reference to the drawings.
[0165] (C-1) Configuration of the third embodiment FIG. 16 is a block diagram showing the functional configuration of a communication analysis device 10B according to the third embodiment, in which the same or corresponding parts as those in FIG. 1 above are denoted by the same or corresponding reference numerals.
[0166] In the communication analysis devices 10 and 10A of the first and second embodiments, in the part where a UDP service port list is created, the frequency of occurrence of the destination port number is analyzed, and the destination port number whose frequency of occurrence is deemed to be an outlier (larger value) is registered as a service port using an outlier detection method. However, when the communication analysis devices 10 and 10A adopt the outlier detection method, it is necessary to set a threshold value for the outlier, but the frequency distribution of occurrence of the destination port number often differs depending on the environment, and there are many cases where manual tuning is required in the end. Therefore, the communication analysis device 10B of the third embodiment is configured to realize the creation of a UDP port service port list that is environment-independent and does not require manual tuning.
[0167] The following describes a communication analysis device 10B of the third embodiment, focusing on the differences from the first and second embodiments.
[0168] Communication analysis device 10B of the third embodiment differs from the first embodiment in that it additionally includes UDP port history information management unit 50. Communication analysis device 10B of the third embodiment also differs from the first embodiment in that service port list management unit 16 is replaced with service port list management unit 16B.
[0169] UDP port history information management unit 50 manages information equivalent to the UDP service port candidate list in the first embodiment, instead of service port list management unit 16B. Since communication analysis device 10B of the third embodiment has a significantly different content and configuration from that held in the UDP service port candidate list, in this embodiment, the information managed by UDP port history information management unit 50 will be referred to as "UDP port usage history management information" as described above.
[0170] FIG. 17 is a diagram showing an example of the configuration of UDP port usage history management information held by the UDP port history information management unit 50. As shown in FIG.
[0171] As shown in FIG. 17, UDP port usage history management information is information managed on a terminal 30 (IP address) basis, and for each destination port of a communication flow in which the terminal 30 is the source, the number of occurrences of that destination port, a list of source port numbers used in the flow of that destination port (only unique values excluding duplicates are managed), and occurrence date information are managed in separate lists on a daily basis (hereinafter, the daily list is referred to as a "sub-list").
[0172] FIG. 17 shows an example of UDP port usage history management information for the first terminal 30-1 (IP address: XXX.YYY.ZZZ.A). FIG. 17 shows that there are two destination ports, 1900 and 443, for past UDP flows originating from the first terminal 30-1 (XXX.YYY.ZZZ.A). There are also three sublists for port 1900, which shows that there are communication records for the past three days. Furthermore, the first list shows that two communication flows occurred on September 29, 2023, and that port numbers 20010 and 20011 were used as source port numbers. Here, as with the service port candidate list in the first embodiment, it is also possible to configure two types of UDP port usage history management information to be managed for each terminal 30 as a client (this is the list described above), and UDP port usage history management information to be accessed as a server (the list described above is managed as a list for when the terminal in question is the destination). However, in this embodiment, for simplicity of explanation, it is assumed that the UDP port usage history management information managed for each terminal 30 mentioned above is only for flows in which the terminal 30 is the sender.
[0173] When the UDP port history information management unit 50 receives UDP communication flow information from the service port list management unit 16B, it updates the contents of the UDP port usage history management information. First, the UDP port history information management unit 50 checks whether UDP port usage history management information related to the source IP address of the UDP flow exists, and if not, creates UDP port usage history management information for the source IP address. That is, the UDP port history information management unit 50 creates UDP port usage history management information for the source IP address, and adds a sublist to the UDP port usage history management information, with 1 set as the number of occurrences, the value of the source port number of the UDP flow set as the source port list, and the date of occurrence set as the day, as the destination port information of the UDP communication flow. On the other hand, if UDP port usage history management information related to the source IP address of the UDP flow exists, the UDP port history information management unit 50 updates the UDP port usage history management information for the source IP address. First, the UDP port history information management unit 50 acquires a sublist of the destination port number from the UDP port usage history management information of the source IP address. Next, the UDP port history information management unit 50 acquires the sublist with the most recent occurrence date from among the acquired sublists. If the occurrence date of the acquired sublist is the same as the current day, the UDP port history information management unit 50 updates the elements of the sublist. That is, the UDP port history information management unit 50 increments the occurrence count of the sublist and adds the source port of the flow to the list of source ports (if there is a duplicate port in the list elements, it is not added). If the occurrence date of the acquired sublist is different from the current day, the UDP port history information management unit 50 adds a new sublist (the sublist of the current day). That is, the UDP port history information management unit 50 adds a sublist in which 1 is set as the occurrence count, the value of the source port number of the communication flow is set as the source port list, and the current day is set as the occurrence date to the list of destination ports.
[0174] The UDP port history information management unit 50 also manages a reuse determination port list, a reuse flag, and an occurrence date threshold value, which will be described later, and performs processing to update this information based on the received UDP flow information.
[0175] Then, the UDP port history information management unit 50 notifies the service port list management unit 16B of the updated UDP port usage history management information and the occurrence day number threshold value.
[0176] In addition to the processing of the first embodiment, when the service port list management unit 16B receives a UDP communication flow from the control unit 12, it notifies the UDP port history information management unit of the received flow information, receives updated UDP port history management information and the occurrence day threshold value described later, and performs processing to create a UDP service port list.
[0177] FIG. 18 is an explanatory diagram showing a method for creating a UDP service port list by the service port list management unit 16B.
[0178] FIG. 18 shows the UDP port history management information of the second terminal 30-2 (IP address: XXX.YYY.ZZZ.B), and there are lists for destination ports 1900 and 12010. In creating the UDP service port list, a process is performed to determine whether or not each destination port included in the UDP port history management information is to be registered in the UDP service port list (hereinafter referred to as "service port determination process"). The condition for determining whether or not to register in this service port is to compare the number of occurrences of an arbitrary destination port PX (if there are multiple sublists, the total value of all sublists; hereinafter referred to as "port occurrence number C1") with the number of occurrences when each port number included in the source port list of the destination port PX is considered as a destination port (hereinafter referred to as "port occurrence number C2"). When C1>C2 is satisfied for any source port number, the destination port PX is registered in the UDP service port list as a service port. Note that if the source port does not exist in the destination port in the UDP port history management information, the number of occurrences of the source port is set to 0.
[0179] When the UDP port usage history management information has contents as shown in Fig. 18, the service port list management unit 16B first performs a service port determination process (service port determination process with 1900 as the destination port PX) to determine whether or not to register destination port 1900 in the UDP service port list. As shown in Fig. 18, the port occurrence count C1 of port 1900 is 4 (the total value of three sublists), and the source port list includes 20010, 20011, 20100, and 20300.
[0180] Next, for each port number in the source port list, service port list management unit 16B refers to the number of port occurrences C2 when that port number is viewed as a destination port. In Fig. 18, none of the source port numbers are included in the destination port numbers, so the number of port occurrences C2 is 0. Finally, a condition comparison is made between the destination port number (number of occurrences is 4) and the number of occurrences C2 when each source port number is viewed as a destination port (number of occurrences is 0 for all ports), and in this case, the number of occurrences C1 of port 1900 (destination port PX) is greater than any other port, so port 1900 is registered in the UDP service port list.
[0181] Next, the service port list management unit 16B performs a service port determination process (a process for determining whether to register port 12010 in the UDP service port list) using the same procedure with port 12010 as the destination port PX. In FIG. 18, the port occurrence count C1 for port 12010 is 1, and the source port list includes only port 1900. When port 1900 is considered as the destination port, the port occurrence count C2 is 4, which is greater than the port occurrence count C1 for port 12010, and as a result, port 12010 is not registered in the service port list. In general, a communication flow is established from a client terminal to a server (i.e., the destination port number is a service port), so in most cases, the correct service port number is recorded in the destination port of the UDP port history management information. On the other hand, if one packet of the communication flow is missed, and the first packet received is from the server to the client, the port number on the client side is erroneously recorded in the destination port. However, in this case, the opposite port (source port) of the incorrect destination port number is a service port, and if that opposite port is a service port that is constantly used, in most cases the first packet of the communication flow of that service port is correctly received, so the number of occurrences when that service port is considered as a destination port should be greater than the number of occurrences of the incorrect destination port number. For this reason, by applying the above-mentioned judgment conditions to the service port judgment process of service port list management unit 16B, it is possible to eliminate the possibility that an incorrect destination port number will be regarded as a service port, and to register only correct service ports in the service port list.
[0182] Here, when creating a UDP service port list using the judgment conditions in the above-mentioned service port judgment process, there is a risk of misjudging a destination port that has been registered in the UDP port history management information recently as a service port. For example, immediately after starting to capture communication traffic, a packet to a client from a server of a communication flow that started before the capture is received first, and the client-side port is registered as a destination port in the UDP port history management information, and the correct service port information is not registered in the UDP port history management information (i.e., the number of occurrences of flows with the correct service port number as a destination port is zero). In this case, the client-side port is registered as a service port. Similarly, for a service that has just started to be used, if one packet of a communication flow of the service port of the service is missed, the client-side port may be registered as a service port.
[0183] In order to eliminate the above-mentioned cases of erroneous service port determination, the UDP port history information management unit 50 sets a condition for excluding destination ports with fewer occurrence days in the UDP port history management information from the service port determination target. Specifically, the UDP port history information management unit 50 sets a threshold for the number of days of occurrence of the destination port for each terminal 30 for which the UDP port history management information is managed, and excludes destination ports with fewer occurrence days than the threshold from the service port determination. As a method for determining the threshold, a method is used in which the threshold is incremented when a client port is reused. In general, the range of port numbers used by a device as a client is determined by the OS and device settings, and it is often the case that a port number used previously is reused after the range of port numbers has been used once. Here, when a port number is reused in the UDP port history information management unit 50, the number of occurrence days of the client side port erroneously registered as the destination port in the UDP port history management information may increase. For example, suppose that the source and destination are reversed for a communication flow with a client-side port number of 50000 in UDP port history information management unit 50 because the first packet was missed, and the client-side port number 50000 is registered as the destination port in the UDP port history information. If the client port is then reused in UDP port history information management unit 50 and another communication flow with port number 50000 occurs, the source and destination are reversed again and port number 50000 is registered as the destination port in the UDP port history management information, a sublist for port number 50000 is added and the number of days since the occurrence becomes 2.
[0184] Therefore, the UDP port history information management unit 50 can reduce the probability of determining a client port as a service port by incrementing the threshold number of occurrence days at the timing of detecting port number reuse. The method of detecting client port number reuse is to detect reuse when a communication flow is received having a source port number that is the same as any port number in the list of source port numbers included in each destination port of the UDP port history management information of the terminal 30, or when this is detected multiple times. The UDP port history information management unit 50 manages the source port number when the reuse of a client port is detected for each terminal 30 as a port list for reuse determination (multiple port numbers are entered when reuse is detected multiple times). When the number of elements in the port list for reuse determination reaches a predetermined threshold, the UDP port history information management unit 50 determines that a client port has been reused and increments the threshold number of occurrences. Once creation of the port list for reuse determination is completed, the UDP port history information management unit 50 uses the existing port list for reuse determination to determine reuse in the second and subsequent reuse detections. Specifically, the UDP port history information management unit 50 manages a reuse flag for each port in the reuse determination port list, and when it detects that a port has been reused, it sets the reuse flag for that port. When the reuse flag is set for all ports in the reuse determination port list, the UDP port history information management unit 50 determines that the client port has been reused, increments the threshold for the number of occurrences, and resets the reuse flags for all ports.
[0185] Next, a series of steps for detecting the reuse of a client port by the UDP port history information management unit 50 will be described with reference to FIG. 19 and FIG.
[0186] FIG. 19 is an explanatory diagram showing the flow of processing when the UDP port history information management unit 50 performs the first client port reuse detection for a certain terminal 30 (hereinafter referred to as the "target terminal").
[0187] 19(a) to 19(d) show a list of source port numbers (i.e., client ports) of communication flows whose source is a terminal of interest for each time series (hereinafter, referred to as the “client port usage list”) PL1, and a port list for reuse determination PL2.
[0188] 19(a), in the initial state, the client port usage list PL1 has consecutive numbers from 50000 to 50050, and the reuse judgment port list PL2 is empty. Note that, in the terminal of interest, the threshold for the number of elements in the reuse judgment port list that is judged as reused is 2, and the occurrence number threshold (threshold for judging whether to proceed to the service port judgment condition) is also 2.
[0189] Thereafter, if the communication analysis device 10B (UDP port history information management unit 50) receives a UDP flow sourced from the terminal of interest and the source port is 50051, the UDP port history information management unit 50 of the terminal of interest checks whether the client port usage list PL1 includes port 50051. In this example, it does not, so port 50051 is added to the client port usage list PL1, as shown in FIG. 19(b).
[0190] Then, suppose that the next UDP flow received by communication analysis device 10B (UDP port history information management unit 50) from the target terminal has a source port of 50000. In this case, since 50000 is included in client port usage list PL1, it will be added to reuse determination port list PL2, as shown in FIG.
[0191] At this point, the UDP port history information management unit 50 compares the reuse judgment threshold with the number of elements in the current reuse judgment port list, and since the threshold for judging reuse has not been reached, it is not judged as client port reuse.
[0192] Next, assume that the source port of a UDP flow received by communication analysis device 10B (UDP port history information management unit 50) from a terminal of interest is 50002. In this case, since 50002 is included in client port usage list PL1, UDP port history information management unit 50 adds it to reuse determination port list PL2, as shown in FIG.
[0193] At this point, UDP port history information management unit 50 compares the reuse determination threshold with the number of elements in the port list for reuse determination, and since the reuse determination threshold has been reached, it determines that a client port has been reused, increments the occurrence day count threshold, and sets the occurrence day count threshold to 3. At this point, UDP port history information management unit 50 has completed creating the port list for reuse determination for the terminal of interest, and from then on, judgments will be made using the reuse detection algorithm from the second time onwards.
[0194] FIG. 20 is a diagram showing the flow of processing when the UDP port history information management unit 50 performs client port reuse detection for the second or subsequent times for a terminal of interest.
[0195] Figures 20(a) to 20(e) show a port list PL2 for reuse determination related to a terminal of interest for each time series, and a list of reuse flags (hereinafter referred to as the "reuse flag list") FL corresponding to each port in the port list PL2 for reuse determination.
[0196] In FIG. 20(a), in the initial state, the reuse determination port list PL2 includes ports 50000 and 50002, and the reuse flag list FL is "False, False" (that is, the reuse flags of ports 50000 and 50002 are both False).
[0197] Thereafter, the communication analysis device 10B (UDP port history information management unit 50) receives a UDP flow whose source port number is 50000. In this case, the UDP port history information management unit 50 checks whether 50000 is included in the port list for reuse determination, and since it is included in this case, it changes the reuse flag corresponding to 50000 in the reuse flag list FL to True, as shown in FIG.
[0198] Next, assume that the source port of a UDP flow having a target terminal as the source received by the communication analysis device 10B (UDP port history information management unit 50) is 50010. In this case, since 50010 is not included in the reuse determination port list PL2, the UDP port history information management unit 50 does not manipulate the reuse flag list FL as shown in FIG.
[0199] Next, assume that the source port of a UDP flow received by the communication analysis device 10B (UDP port history information management unit 50) from a terminal of interest is 50002. In this case, since 50002 is included in the port list for reuse determination, the UDP port history information management unit 50 changes the reuse flag corresponding to 50002 in the reuse flag list FL to True, as shown in Fig. 20(d). At this time, since all reuse flags constituting the reuse flag list FL are True, the UDP port history information management unit 50 determines that a client port has been reused, increments the occurrence day number threshold, and sets the occurrence day number threshold to 4.
[0200] Finally, as shown in FIG. 20(e), the UDP port history information management unit 50 resets (resets) all the values of the reuse flags in the reuse flag list FL to False, to prepare for the next reuse detection.
[0201] When the service port list management unit 16B receives an occurrence day threshold (update of the occurrence day threshold) from the UDP port history information management unit 50, in the service port determination, for each destination port number of the terminal of interest, only destination ports that exceed the occurrence day threshold are subjected to the above-mentioned service port determination process.
[0202] (C-2) Operation of the Third Embodiment Next, the operation of the communication analysis device 10B of the third embodiment (the communication analysis method according to the embodiment) will be described, focusing on the differences from the first and second embodiments.
[0203] 21 to 24 are flowcharts showing the flow of processing performed by the service port list management unit 16B and the UDP port history information management unit 50 to create a UDP service port list.
[0204] A series of processes (S600) performed by the communication analysis device 10B from when it receives a UDP communication flow until when it updates the UDP service port list will be described with reference to FIG.
[0205] First, the service port list management unit 16B receives communication flow information (5-tuples information and service port number) from the control unit 12, and if the received communication flow is UDP, it notifies the UDP port history information management unit 50 of the 5-tuples information and requests an update of the UDP port usage history management information and the occurrence day threshold (S601).
[0206] Next, the UDP port history information management unit 50 updates the occurrence number of days threshold of the terminal of the source IP address of the received communication flow (hereinafter, the target terminal) (S700).
[0207] Next, UDP port history information management unit 50 updates the UDP port history management information of the terminal of interest (S800), and notifies service port list management unit 16B of the updated information.
[0208] Next, service port list management unit 16B extracts port numbers to be subjected to service port judgment from among destination port numbers included in the UDP port history management information of the noted terminal based on the received occurrence days threshold and UDP port history management information of the noted terminal, and judges whether or not to register each extracted destination port number in the UDP service port list of the noted terminal. Then, service port list management unit 16B outputs a list of destination port numbers registered as service ports as a result of the judgment as the UDP service port list of the noted terminal (S900).
[0209] Next, the details of the process of updating the occurrence day number threshold (the process of step S700) performed by the UDP port history information management unit 50 will be described with reference to FIG.
[0210] First, UDP port history information management unit 50 acquires a port list for reuse determination of the target terminal (a list for storing the port number when the client port is reused) from the source IP address (target terminal information) of the 5-tuples flow information received from service port list management unit 16B. Then, UDP port history information management unit 50 checks whether the acquired port list for reuse determination contains enough elements to determine that the client port has been reused (whether the number of types of port numbers is equal to or greater than the reuse detection threshold) (S701). If the number of elements does not reach the reuse detection threshold, UDP port history information management unit 50 proceeds to the first reuse detection process (step S702 described later), and if the number of elements reaches the reuse detection threshold, proceeds to the second or subsequent reuse detection process (step S707 described later).
[0211] When the UDP port history information management unit 50 proceeds to step S702, in the initial reuse detection process, it first obtains a list of source port numbers used in the past from the UDP history management information of the terminal of interest (S702). In other words, the UDP port history information management unit 50 prepares a single list of source port numbers included in the sublists of each destination port in the UDP history management information of the terminal of interest, excluding duplicates, and treats the list as empty if there is no UDP history management information of the terminal of interest.
[0212] Next, the UDP port history information management unit 50 acquires the source port number of the received flow and checks whether the same port number is included in the source port numbers of the target terminal (S703). If the same port number is not included, the UDP port history information management unit 50 ends the update process, and if the same port number is included, it adds the port number to the port list for reuse determination of the target terminal (S704). At this time, if the port number is already registered in the port list for reuse determination, the UDP port history information management unit 50 does not add it.
[0213] Next, UDP port history information management unit 50 checks whether the number of elements in the reuse judgment port list of the target terminal reaches the reuse detection threshold (S705). If the number of elements has not reached the reuse detection threshold, UDP port history information management unit 50 ends the update process, and if the number of elements has reached the reuse detection threshold, it determines that the target terminal has reused a client port, increments the occurrence date threshold of the target terminal (S706), and then ends the update process.
[0214] When the UDP port history information management unit 50 moves from step S701 to the second or subsequent reuse detection process, it first obtains the source port number of the received flow and checks whether the port number is included in the port list for reuse determination of the target terminal (S707). If the port number is not included in the list, the UDP port history information management unit 50 ends the update process, and if the port number is included in the list, it sets the reuse flag corresponding to the port number in the port list for reuse determination to True (S708).
[0215] Next, UDP port history information management unit 50 checks whether the flags corresponding to all port numbers included in the reuse determination port list are set to True (S709). If any flag is set to False, UDP port history information management unit 50 ends the update process. On the other hand, if all flags are set to True, UDP port history information management unit 50 determines that the target terminal's client port is being reused, resets all flags to False (S710), increments the occurrence date threshold for the target terminal (S706), and ends the update process.
[0216] Next, the operation of UDP port history information management unit 50 when performing the update process of UDP port history management information (the operation of step S800 described above) will be described with reference to FIG.
[0217] First, the UDP port history information management unit 50 checks whether UDP port history management information exists for the terminal of interest (S801), and if UDP port history management information exists, proceeds to step S803 described below; if not, proceeds to step S802 described below.
[0218] If no UDP port history management information exists in step S801 described above, the UDP port history information manager 50 creates new UDP port history information for the terminal of interest (S802), and proceeds to step S804, which will be described later.
[0219] On the other hand, if UDP port history management information is present in step S801 described above, the UDP port history information management unit 50 obtains the destination port number from the flow information and checks whether a list of that port number exists in the UDP port history information of the terminal of interest (S803).If the list exists, the process proceeds to step S805 described below; if not, the process proceeds to step S804 described below.
[0220] If the list does not exist in step S803 or after the processing of step S802, the UDP port history information management unit 50 creates a new list of the port numbers in the UDP port history information of the terminal of interest (S804), and proceeds to step S806 described later.
[0221] On the other hand, if a list exists in step S803 described above, the UDP port history information management unit 50 obtains the sublist for the latest date (number of occurrences, list of source port numbers, date of occurrence) in the list of port numbers in the UDP port history information of the terminal of interest and compares it with the current date (S805). If the sublist for the latest date and the current date are the same, the process proceeds to step S807 described below. If the sublist for the latest date and the current date are not the same (if the latest date and current date are compared and the current date is newer), the process proceeds to step S806 described below.
[0222] If the sublist of the latest date is not the same as the current date in the above-mentioned step S805 or after the processing of the above-mentioned step S804, the UDP port history information management unit 50 adds a sublist of the port number in question, with 1 as the number of occurrences, the value of the source port number of the flow information as the list of source port numbers, and the current date as elements (S806), and then terminates the processing.
[0223] On the other hand, if the latest date sublist and the current date are the same in step S805, the UDP port history information management unit 50 updates the elements of the latest date sublist (S807) and ends the process. That is, the UDP port history information management unit 50 increments the number of occurrences and adds the source port number of the flow information to the list of source port numbers.
[0224] The UDP port history information management unit 50 then finishes updating the UDP port history management information of the terminal of interest, and notifies the service port list management unit 16B of the value of the occurrence day threshold and the UDP port history management information updated in the processing of the flowchart in Figure 22 described above.
[0225] Next, the UDP service port list update process (the process of step S900 described above) in service port list management section 16B will be described with reference to FIG.
[0226] When service port list management unit 16B receives the occurrence days threshold and UDP port history management information of the terminal of interest from UDP port history information management unit 50, it determines whether or not to register each destination port included in the UDP port history management information of the terminal of interest in the UDP service port list of the terminal of interest. Then, service port list management unit 16B attempts to acquire information on destination ports that have not yet been subjected to service port determination processing (destination port values and sublists of said ports) from the UDP port history management information of the terminal of interest (S901), and if acquired, proceeds to step S902 described later, otherwise proceeds to step S906 described later.
[0227] If a destination port that has not been subjected to the service port determination process can be obtained in the above-mentioned step S901, service port list management unit 16B counts the number of sublists (i.e., the number of days of occurrence) of the obtained destination port, and checks whether the number of sublists is greater than the occurrence day threshold (S902).If the number of sublists does not reach the occurrence day threshold, the service port determination process for that destination port is terminated and the process returns to the above-mentioned step S901, and proceeds to the service port determination process for the next destination port.
[0228] On the other hand, in the above-mentioned step S902, if the number of sublists becomes equal to or greater than the occurrence date threshold, service port list management unit 16B checks (S903) for the acquired destination port whether or not there are any unchecked ports (ports that have not been checked in step S904 described below) remaining in the source port list, and if so, proceeds to step S904 described below, and if not, terminates the service port determination process for that destination port and returns to the above-mentioned step S901, and proceeds to the service port determination process for the next destination port.
[0229] If there are any unchecked ports remaining in the determination in step S903, service port list management unit 16B extracts source port numbers one by one from the list of source port numbers in each sublist, and calculates the number of occurrences when the extracted source port number is used as the destination port (the total number of occurrences of destination ports included in the UDP port history management information of the terminal of interest, which are included in the sublists of destination ports that match the extracted source port number). Then, service port list management unit 16B compares the number of occurrences of the destination port to be determined (number of port occurrences C1) with the number of occurrences when the extracted source port number is used as the destination port (number of port occurrences C2) (S904), and if the number of occurrences of the destination port to be determined is greater (if C1>C2), it proceeds to step S905 described later, and if not, it returns to the above-mentioned step S903 and operates.
[0230] In the above-mentioned step S904, if the number of occurrences of the destination port to be judged is greater (if C1>C2), the service port list management unit 16B adds the port to the service port list (S905), and the process returns to the above-mentioned step S901.
[0231] In step S901, if there are no destination ports remaining that have not been subjected to the service port determination process, service port list management unit 16B completes the service port determination process for all destination ports included in the UDP port history management information of the terminal of interest, outputs the service port list at that point in time as the UDP service port list of the terminal of interest (S906), and terminates the process.
[0232] (C-3) Effects of the Third Embodiment According to the third embodiment, the following advantages can be achieved compared to the first and second embodiments.
[0233] In the third embodiment (communication analysis device 10B), a method of creating a UDP service port list is to manage past UDP communication flow information (for each destination port, the number of occurrences, the type of source port number in the flow of the destination port, and the date of occurrence are held in a sublist on a daily basis) for each terminal 30 as UDP port usage history management information, and the number of occurrences for each destination port is compared with the number of occurrences when the source port number included in the destination port list is considered as the destination port, and if the number of occurrences for the destination port is greater, it is deemed to be a service port. In the third embodiment (communication analysis device 10B), by using such a simple magnitude comparison condition for service port determination, manual threshold setting is not required, and service ports can be created fully automatically.
[0234] In addition, in the third embodiment (communication analysis device 10B), in order to prevent a client-side port from being erroneously registered as a service port immediately after traffic capture begins or when a new UDP service begins to be used, the number of days the destination port has occurred is set as a condition, and those with a short number of days of occurrence are not subjected to the service port determination process. Furthermore, in the third embodiment (communication analysis device 10B), the threshold number of days of occurrence used to determine whether to subject the port to the service port determination process is dynamically changed (increased) depending on the reuse determination of the client port. In the third embodiment (communication analysis device 10B), by setting such additional conditions, the probability of erroneously determining the service port can be stably reduced throughout the entire operation period.
[0235] (D) Other embodiments The present invention is not limited to the above-described embodiments, and may include modified embodiments such as those exemplified below.
[0236] (D-1) In the communication pattern learning unit 17 in the first embodiment, all the information on the packet size and communication direction of the communication flow history information is used and converted into feature quantities to construct a communication pattern analysis model, but this is not limited to this. For example, in consideration of the possibility that the service port estimation unit 15 analyzes a communication flow in which the first packet of the communication flow is not included in the communication flow information, such as a communication flow started before traffic capture, the learning data in the communication pattern learning unit 17 may be made to have variation. For example, the communication pattern learning unit 17 may convert into feature quantities excluding information (packet size and communication direction) of the first packet of the communication flow history information used for learning. Similarly, the communication pattern learning unit 17 may convert into feature quantities excluding information up to the first second packet. The communication pattern learning unit 17 performs this up to the first m packets at most. By making the learning data vary in this way, the probability of determining the service port can be increased even when estimating the service port of a communication flow that does not include a first packet.
[0237] (D-2) In the first embodiment, the communication pattern analysis model is constructed in such a way that it corresponds to each port number in the service port list for each IP, but this is not limited to this. For example, a method is conceivable in which only one communication pattern analysis model is constructed for each port number, and in service port estimation, it is used as a common communication pattern analysis model regardless of IP. Since the number of models to be constructed can be reduced compared to the case where a communication pattern analysis model corresponding to a service port number for each IP is constructed, the processing load on the communication pattern learning unit 17 can be reduced, and the storage capacity secured for holding the models in the storage unit 18 can be reduced.
[0238] (D-3) In each of the above embodiments, the service port list management unit 16 updates the UDP service port list every time communication flow information is received, but an update interval may be set and the service port list may be updated at each update interval. For example, a method may be considered in which time information is used as the update interval and a process of creating and updating the service port list from the service port candidate list of each IP is executed at a frequency of, for example, once every 24 hours. By setting the update interval in this manner, the time required for communication flow reception processing can be shortened. Similarly, an update interval may be set for model construction in the communication pattern learning unit 17, and a communication pattern analysis model may be constructed at each update interval.
[0239] (D-4) In the first embodiment, the various service port lists managed by the service port list management unit 16 are created and updated in response to received communication traffic, but the present invention is not limited to this. An administrator may manually add communication IP pairs that are known to be used in the monitored network N1 and the service ports used for communication between the pairs in advance. In the above embodiment, the contents of the service port list managed by the service port list management unit 16 may be edited by an administrator during operation of the communication analysis device 10. For example, during operation of the communication analysis device 10, the addition of identified communication IP pairs and the service ports used for communication between the pairs may be accepted, or a service port that has been erroneously registered in the various service port lists created by the service port list management unit 16 may be accepted. For example, in active mode of FTP (File Transfer Protocol), a communication flow is initiated from the server and the source port number (server-side port) is used as the service port (see Reference 1 below), so in a method of determining the service port by looking at the SYN flag for TCP communication, as in the communication analysis device 10 of the first embodiment, an incorrect service port list will be set in the service port list management unit 16. However, by making the contents of the service port list managed by the service port list management unit 16 editable by an administrator or the like, it is possible to correct the service port list in the service port list management unit 16 and reduce erroneous identification of service ports, even in special cases such as the above-mentioned FTP.
[0240] Reference 1: Difference between active and passive modes in FTP Introduction to building CentOS servers, [Online], INTERNET, [Retrieved January 13, 2023],<URL:http: / / cos.linux-dvr.biz / archives / 131>
[0241] (D-5) In the first and third embodiments (communication analysis devices 10 and 10B), when creating a UDP service port list, it was assumed that the communication flow is extended from the client to the server, and the service port is the number on the destination port side. However, in some services, there is a UDP communication flow extended from the server to the client. For example, in Microsoft's RDP (Remote Desktop Protocol), after a TCP session is first established from the client to the server, a UDP flow may be established from the server to the client in data transfer (see Reference 2 below). In this case, the server-side port number (i.e., the source port number) is the service port, and these service ports cannot be correctly determined by the idea that the destination port is the service port.
[0242] Reference 2: “Messages and Intersection with Other Protocols”, [Online], INTERNET, [Retrieved December 17, 2023], <https: / / learn.microsoft.com / en-us / openspecs / windows_protocols / ms-rdpemt / 02d833db-5c7c-4c15-a18e-179df6d8a34d> In order to determine whether the source port number of a UDP communication flow sent from such a server is a service port, one possible method would be to perform an occurrence frequency analysis on the source port number as well, and consider the one that occurs most frequently as the service port.
[0243] For example, in the UDP service port determination method of the first embodiment (communication analysis device 10), the occurrence frequency of UDP destination ports is analyzed, and a port determined to be a larger outlier is regarded as a service port, but the same may be done for UDP source ports. That is, in the first embodiment (communication analysis device 10), the occurrence frequency may also be recorded for the source port number of a UDP communication flow, and a source port number determined to be a larger outlier in outlier detection of occurrence frequency may be regarded as a service port.
[0244] In addition, in the UDP service port determination method of the third embodiment (communication analysis device 10B), the number of occurrences for each destination port, the source port number, and the number of days of occurrence are managed as UDP port usage history management information for each terminal 30, but the same may be done for the source port. That is, in the third embodiment (communication analysis device 10B), the number of occurrences for each source port, the type of destination port number, and the number of days of occurrence may be managed in addition to the UDP port usage history management information for each terminal 30. In the third embodiment (communication analysis device 10B), a port number that becomes a service port may be extracted from the UDP port usage history management information of the source port in the same manner as the service port determination for the destination port, and added to the service port list. As described above, in the first and third embodiments (communication analysis devices 10 and 10B), not only the destination port but also the source port can be extracted without missing a port that uses the source port number as a service port by the same management method and condition determination method as the destination port.
[0245] (D-6) In the second embodiment (communication analysis device 10A), the service port is estimated only based on whether the port to be estimated is included in the service port list, without using a communication pattern analysis model. In this estimation method, when both the source port and the destination port are included in the service port list, it is not possible to determine which port is more likely to be the service port, and the number of cases where the determination is impossible increases. Therefore, in the second embodiment (communication analysis device 10A), a method of determining the likelihood of the service port by another means without using the communication pattern analysis model may be applied. For example, in the second embodiment (communication analysis device 10A), the occurrence frequency may be recorded for each port included in the service port list, and in the estimation of the service port, when both the source port and the destination port are included in the service port list, the port with the higher occurrence frequency may be set as the service port. As a result, in the second embodiment (communication analysis device 10A), information other than the port number may be added to the information managed in the service port list and used for service port estimation, thereby reducing the number of events where the service port cannot be determined.
[0246] (D-7) In the third embodiment (communication analysis device 10B), the number of days of occurrence of the destination port in the UDP port usage history management information was set as a threshold, and a condition was set such that a port with a small number of days of occurrence is not determined to be a service port. That is, in the third embodiment (communication analysis device 10B), the initial value of the number of days of occurrence threshold is 2, so that a destination port is not registered in the service port list until at least a full day has passed since it started to be used. Also, in the third embodiment (communication analysis device 10B), a service port that has recently started to be used during operation is not registered in the service port list until more than two days have passed, depending on the number of days of occurrence threshold at that time.
[0247] Therefore, in the third embodiment (communication analysis device 10B), in the process (hereinafter referred to as the "transition determination process") for determining whether or not a certain port (hereinafter referred to as the "port of interest") should proceed to the service port determination process, a method may be applied in which a process for determining whether or not to proceed to the service port determination process based on communication history (hereinafter referred to as the "communication history determination process") is added so that the port is registered in the service port list even if the number of days since its occurrence is short. Hereinafter, the conditions applied to the communication history determination process will be referred to as the "communication history determination conditions".
[0248] The communication record judgment condition here means that there is a sufficient communication record to judge it as a service port. For example, the number of types of port numbers included in the source port list of the destination port (hereinafter referred to as the "number of source port types") is a certain number or more (e.g., 30 or more), or the number of terminals in which the destination port is registered in the UDP port usage history management information (hereinafter referred to as the "number of port-using terminals") is a certain number or more (e.g., 10% of the total number of terminals to be monitored). In the following, the threshold corresponding to the number of source port types is set to X, and the threshold corresponding to the number of terminals using the port is set to Y. This is because it is considered that a destination port with a large number of source port types indicates that the source port is highly likely to be used as a client port, and a destination port with a large number of terminals using the port indicates that the destination port is highly likely to be a service port that is generally used in the network. Here, a threshold must be set for each of these conditions, and the smaller the threshold, the more destination ports are registered as service ports early, but the higher the probability of false positives (client-side ports are registered as service ports). On the other hand, the larger the threshold, the lower the probability of false positives, but only more major service ports are registered as service ports early. Therefore, one possible method is to prepare several combinations of these threshold parameters (X, Y) as presets depending on whether the communication performance judgment conditions place importance on the number of false positives (emphasis on accuracy) or on early application (speed of application).
[0249] FIG. 25 is a diagram showing an example of preset communication performance determination conditions.
[0250] FIG. 25 shows an example in which three types of presets, namely, application speed emphasis (setting that emphasizes application speed), accuracy emphasis (setting that emphasizes accuracy), and balance (setting that considers both application speed and angle), are set as communication performance judgment conditions, but the number and combination of presets are not limited to these. In FIG. 25, as the preset for "application speed emphasis", the number of source port types X=30 and the number of terminals using the port Y=(total number of terminals×0.1) are set. Also, in FIG. 25, as the preset for "balance", the number of source port types X=100 and the number of terminals using the port Y=(total number of terminals×0.2) are set. Furthermore, in FIG. 25, as the preset for "accuracy emphasis", the conditions (number of source port types X, number of terminals using the port Y) are not set (in other words, the decision on whether to proceed to service port judgment is made only based on the condition of the number of days of occurrence).
[0251] In the third embodiment (communication analysis device 10B), by making it possible to set multiple presets as described above, it is possible to set an appropriate preset (for example, set one of the above three presets) initially and operate the device according to the policy of the network operator, etc. Here, it is assumed that the service port list management unit 16B performs the transition determination process.
[0252] FIG. 26 is a flowchart (part 1) showing the flow when a communication analysis device 10B (service port list management unit 16B) relating to a modified example of the third embodiment performs transition determination processing to service port determination processing for a certain port (hereinafter referred to as the "port of interest").
[0253] Here, it is assumed that a communication performance determination condition (for example, any of the presets shown in FIG. 25) is set in advance in service port list management unit 16B.
[0254] When service port list management unit 16B starts the transition determination process for the target port, it first performs a communication performance determination process when the target port is made a service port (S1001). Specifically, service port list management unit 16B uses a preset threshold (X, Y) that is set in advance, and when the number of source port types exceeds threshold X or the number of port using terminals exceeds threshold Y, it determines that the target port has sufficient communication performance as a service port, and proceeds to a service port determination process for the target port (step S1003).
[0255] On the other hand, if the communication history determination process in step S1001 determines that the communication history is insufficient to be a service port, service port list management unit 16B determines whether to proceed to service port determination process for the port of interest based on conditions such as the number of days of occurrence and the number of terminals used per day, which will be described later (S1102), and proceeds to either service port determination process (step S1003) or a decision not to determine that it is a service port (S1004).
[0256] (D-8) In the third embodiment (communication analysis device 10B), the number of days of occurrence of the destination port (attention port) in the UDP port usage history management information was used as a threshold to determine whether to proceed to the service port determination process. In addition, the method of determining the number of days of occurrence threshold was a method of incrementing in conjunction with the detection of client port reuse in the terminal 30. Here, some communication services do not use a specific service port, but communicate while dynamically changing the value of the service port according to some rule (for example, incrementing the service port every time communication is performed). In this case, the flow of each dynamically changing service port is considered to be the destination port when viewed on a flow-by-flow basis, but these service ports generally use high ports (port numbers with values larger than the well-known port) and often overlap with ports used on the client side, so that the source port and the destination port may be included in the service port list in the service port determination and may be determined to be undeterminable, and it is not preferable to register them in the service port list. In the case of a dynamically changing service port, the range of service ports used may be used at a different timing (earlier timing) from the reuse of the client port, and the number of days of occurrence may be incremented earlier. In other words, if the condition is based only on the number of days of occurrence, there is a possibility that dynamically changing service ports may end up being registered in the service port list.
[0257] Therefore, in order to prevent dynamically changing service ports from being registered in the service port list, it is preferable to set an additional judgment condition other than the number of days of occurrence in the transition judgment process for any destination port (attention port). Here, for each destination port included in the UDP port usage history management information, a destination port with a "number of terminals using per day" (a value obtained by taking out the destination port and the occurrence date of each terminal in the UDP port usage history management information, counting the destination ports and occurrence dates that match in other terminals, calculating this for all occurrence dates, and dividing the total value by the total number of days of occurrence) smaller than a certain value (for example, 2) is excluded from the service port judgment process. This is because, even when multiple terminals use a service that uses a dynamically changing service port, it is considered that the service port used is different for each terminal (the range of service ports may be the same, but the same service port is rarely used on the same day), and therefore it is considered that the number of terminals using such a port per day is likely to be smaller than 2. On the other hand, if this condition is added to the migration judgment process, a service port that is used by only one terminal on the network will not be registered in the service port list, but it is thought that this can be avoided by combining it with the service port judgment condition based on communication history mentioned above.
[0258] FIG. 27 is a flowchart (part 2) showing the flow when a communication analysis device 10B (service port list management unit 16B) according to a modified example of the third embodiment performs a transition determination process for a port of interest to a service port determination process.
[0259] In Fig. 27, the service port list management unit 16B takes into consideration the dynamically changing service ports (taking into consideration the number of terminals using per day) in addition to the number of days of occurrence during the transition determination process. Fig. 27 differs from the flow chart in Fig. 26 in that step S1005 (processing taking into consideration the number of terminals using per day) is added.
[0260] 27, in step S1002, if the number of days of occurrence of the port of interest is greater than the threshold number of days of occurrence, the service port list management unit 16B compares the number of terminals using the port per day with a fixed value (2) (S1005), and if the number of terminals using the port per day is 2 or more, the process proceeds to a service port determination process (step S1003), and if not, the process proceeds to a decision not to determine that the port is a service port (S1004).Therefore, in the communication analysis device 10B according to the modified example of the third embodiment, it is possible to create a more reliable service port list by suppressing cases where a dynamically changing service port slips through the number of days of occurrence condition and proceeds to service port determination.
[0261] (D-9) In the third embodiment (communication analysis device 10B), UDP port usage history management information was managed for each terminal 30, but this is not limited to the above, and a management method in which only one UDP port usage history management information is stored in the network may be applied. When UDP port usage history management information is stored for each terminal 30, the file size of the UDP port usage history management information increases as the number of terminals increases, and management on a small device with limited computational resources may be impractical. Therefore, in the third embodiment (communication analysis device 10B), by having only one UDP port usage history management information in the network, this embodiment can be applied to various devices regardless of the size of computational resources. [Explanation of symbols]
[0262] 10...communication analysis device, 11...traffic capture unit, 12...control unit, 13...service port determination unit, 14...broadcast processing unit, 15...service port estimation unit, 16...service port list management unit, 17...communication pattern learning unit, 18...memory unit, 19...timer unit, 30...monitored device, N1...monitored network.
Claims
1. A communication flow processing means for classifying communication traffic data flowing on a network to be analyzed into communication flows; a service port determination means for performing a service port determination process for determining a service port for each of the communication flows by using flow information based on header information of packets constituting the communication flow; a service port list management means for managing a service port list, which is a list of service ports, for each IP address to be analyzed on the network; a service port estimation means for performing a service port estimation process for estimating a service port by using the service port list managed by the service port list management means for the communication flow in which a service port cannot be specified only by flow information, The service port determination means sets the result of the service port estimation process by the service port estimation means as the result of the service port determination process for the communication flow in which the service port cannot be specified only by the flow information. A communication analysis device comprising:
2. The communication analysis device according to claim 1, characterized in that the service port list management means adds a service port to the service port list of the IP address related to the communication flow that is the target of the service port determination process based on a result of the service port determination process by the service port determination means.
3. 3. The communication analysis device according to claim 2, wherein the service port list held by the service port list management means includes a first sublist which is a list of ports accessed by the IP address as a client, and a second sublist which is a list of ports accessed by the IP address as a server.
4. 4. The communication analysis device according to claim 3, wherein the service port list held by the service port list management means includes the first sublist and the second sublist for each protocol.
5. 5. The communication analysis device according to claim 4, wherein the service port estimation means performs the service port estimation process by comparing the service port list corresponding to a source address of the communication flow and the service port list corresponding to a destination address of the communication flow with the source communication port of the communication flow and the destination communication port of the communication flow.
6. a communication pattern learning means for constructing a communication pattern analysis model for determining whether or not a match is present based on a feature amount of the communication flow for each service port constituting the service port list managed by the service port list management means, the service port list management means holds the communication pattern analysis model constructed by the communication pattern learning means, The service port estimation means performs the service port estimation process by using the communication pattern analysis model held by the service port list management means.
2. The communication analysis device according to claim 1 .
7. The service port list management means holds the service port list for each protocol, In order to create the service port list for a protocol of UDP, the communication device further comprises a UDP port history information management means for managing the number of occurrences of communication flows and the source port number of the communication flows for each destination port number of the communication flows as history information of the UDP communication flows; The service port list management means compares, for each destination port number included in the history information of the UDP communication flow, the number of occurrences of the communication flow with the number of occurrences of the communication flow when the source port number of the communication flow is regarded as the destination port, and adds the destination port number to the UDP service port list when the number of occurrences of the destination port number is greater than any of the source port numbers.
3. The communication analysis device according to claim 2.
8. the UDP port history information management means further manages, as history information of the UDP communication flows, the number of days on which the communication flows occurred for each destination port number of the communication flows; The service port list management means does not add a destination port included in the history information of the UDP communication flow to the service port list of the UDP if the number of days for which the communication flow has occurred does not satisfy a predetermined threshold value.
8. The communication analysis device according to claim 7.
9. The UDP port history information management means further managing information on how many times the same source port number has been used for each terminal as history information of the UDP communication flow; The threshold value for the number of days on which the communication flow occurred is increased from a predetermined initial value in accordance with an increase in the number of times the source port number is used.
9. The communication analysis device according to claim 8.
10. 9. The communication analysis device according to claim 8, wherein the service port list management means further sets, for each destination port included in the history information of the UDP communication flow, a condition for determining that the port is a service port, in addition to the threshold value of the number of days of occurrence of the communication flow, that the number of types of source port numbers of the communication flow or the number of types of source IP addresses of the communication flow of the destination port is equal to or greater than a predetermined threshold value.
11. 9. The communication analysis device according to claim 8, wherein the service port list management means, in creating the UDP service port list, does not add a destination port that is determined to be a service port based on the condition of the number of days on which the communication flow has occurred to the UDP service port list if the number of source IP addresses used per day for the destination port is smaller than a predetermined threshold value.
12. Computer, A communication flow processing means for classifying communication traffic data flowing on a network to be analyzed into communication flows; a service port determination means for performing a service port determination process for determining a service port for each of the communication flows by using flow information based on header information of packets constituting the communication flow; a service port list management means for managing a service port list, which is a list of service ports, for each IP address to be analyzed on the network; functioning as a service port estimation means for performing a service port estimation process for estimating a service port using the service port list managed by the service port list management means for the communication flow in which a service port cannot be specified only by flow information; The service port determination means sets the result of the service port estimation process by the service port estimation means as the result of the service port determination process for the communication flow in which the service port cannot be specified only by the flow information. A communication analysis program comprising:
13. A communication analysis method performed by a communication analysis device, The communication analysis device includes a communication flow processing unit, a service port determination unit, a service port list management unit, and a service port estimation unit, The communication flow processing means classifies communication traffic data flowing on a network to be analyzed into communication flows, the service port determination means performs a service port determination process for determining a service port for each of the communication flows by using flow information based on header information of packets constituting the communication flow; the service port list management means manages a service port list, which is a list of service ports, for each IP address to be analyzed on the network; the service port estimation means performs a service port estimation process for estimating a service port for the communication flow in which a service port cannot be identified based on flow information alone, using the service port list managed by the service port list management means; The service port determination means sets the result of the service port estimation process by the service port estimation means as the result of the service port determination process for the communication flow in which the service port cannot be specified only by the flow information. A communication analysis method comprising:
Citation Information
Patent Citations
Packet analysis program, packet analysis method, packet analysis device, and packet analysis system
JP2014183483A
Network apparatus, method of processing packet, and program
JP2020061667A
