Communications between endpoints of packet-switched networks may be characterized as flows of associated packets. A particular flow may include packets containing information (e.g., within headers of the packets) that distinguishes the packets from packets associated with other flows. Network devices located between endpoints may alter packets associated with a flow and in doing so may potentially obfuscate the flow with which a particular packet is associated from other network devices. Accordingly, there is a need for correlating packets in communications networks.
The following presents a simplified summary in order to provide a basic understanding of some aspects of the disclosure. It is intended neither to identify key or critical elements of the disclosure nor to delineate the scope of the disclosure. The following summary merely presents some concepts of the disclosure in a simplified form as a prelude to the description below.
Aspects of this disclosure relate to correlating packets in communications networks. In accordance with embodiments of the disclosure, a computing system may identify packets received by a network device from a host located in a first network and may generate log entries corresponding to the packets received by the network device. The computing system may identify packets transmitted by the network device to a host located in a second network and may generate log entries corresponding to the packets transmitted by the network device. Utilizing the log entries corresponding to the packets received by the network device and the log entries corresponding to the packets transmitted by the network device, the computing system may correlate the packets transmitted by the network device with the packets received by the network device.
In some embodiments, the packets received by the network device may be associated with one or more flows (e.g., distinct end-to-end communication sessions); however, the network device may alter the packets in a way that obscures their association with the flow(s) from the computing system. Correlating the packets transmitted by the network device with the packets received by the network device may enable the computing system to determine that the packets transmitted by the network device are associated with the flow(s).
The present disclosure is pointed out with particularity in the appended claims. Features of the disclosure will become more apparent upon a review of this disclosure in its entirety, including the drawing figures provided herewith.
Some features herein are illustrated by way of example, and not by way of limitation, in the figures of the accompanying drawings, in which like reference numerals refer to similar elements, and wherein:
In the following description of various illustrative embodiments, reference is made to the accompanying drawings, which form a part hereof, and in which is shown, by way of illustration, various embodiments in which aspects of the disclosure may be practiced. It is to be understood that other embodiments may be utilized, and structural and functional modifications may be made, without departing from the scope of the disclosure.
Various connections between elements are discussed in the following description. These connections are general and, unless specified otherwise, may be direct or indirect, wired or wireless. In this respect, the specification is not intended to be limiting.
Network 104 may include tap devices 124 and 126 and packet correlator 128. Tap device 124 may be located on or have access to a communication path that interfaces network device(s) 122 and network 106. Tap device 126 may be located on or have access to a communication path that interfaces network device(s) 122 and network 104 (e.g., one or more of hosts 114, 116, and 118). Packet correlator 128 may comprise one or more devices and may include memory 130, processor(s) 132, communication interface(s) 134, and data bus 136. Data bus 136 may interface memory 130, processor(s) 132, and communication interface(s) 134. Communication interface(s) 134 may interface packet correlator 128 with network device(s) 122 and tap devices 124 and 126. Memory 130 may comprise program module(s) 138, rule(s) 140, and log(s) 142. Program module(s) 138 may comprise instructions that when executed by processor(s) 132 cause packet correlator 128, tap device 124, or tap device 126 to perform one or more of the functions described herein. Rule(s) 140 may be generated by packet correlator 128 and may be configured to cause tap device(s) 124 and 126 to identify packets meeting criteria specified by rule(s) 140 and to perform one or more functions specified by rule(s) 140 on the identified packets (e.g., forward (or route) the packets toward their respective destinations, drop the packets, log information associated with or contained in the packets, copy the packets (or data contained therein), or the like). For example, tap devices 124 and 126 may comprise one or more packet-filtering devices and may be provisioned with rule(s) 140, which may configure tap device(s) 124 and 126 to identify packets meeting criteria specified by rule(s) 140 and to communicate data associated with the identified packets to packet correlator 128 (e.g., via communication interface(s) 134), which may utilize the data to generate one or more log entries corresponding to the identified packets in log(s) 142.
At step 4, host 114 may generate packets (e.g., P1, P2, and P3) destined for host 108 and may communicate the packets to network device(s) 122. As indicated by the shaded box overlaying the communication of the packets and the line extending downward from tap device 126, the packets may be routed through tap device 126, or tap device 126 may have access to a communication path that interfaces network device(s) 122 and host 114 (e.g., tap device 126 may receive copies of or information associated with or contained in packets traversing the communication path that interfaces network device(s) 122 and host 114). At step 5, tap device 126 may identify the packets (e.g., P1, P2, and P3) by determining that the packets are destined for the network address associated with host 108 (e.g., based on network-layer information contained in their headers) and determining that the network address associated with host 108 is in the set of destination network addresses specified by the criteria included in rule(s) 140. At step 6, tap device 126 may generate log data associated with the packets received by network device(s) 122 from host 114 (e.g., P1, P2, and P3) and may communicate the log data to packet correlator 128. As indicated by the shaded communication emanating from network device(s) 122, the log data may include data from network device(s) 122, which may be requested (e.g., by tap device 126) and communicated via communication interface(s) 134.
Packet correlator 128 may receive the log data and may utilize the log data to generate one or more entries corresponding to the packets in log(s) 142. For example, referring to
Packet correlator 128 may generate timestamps for each of entries 306, 308, and 310. For example, packet correlator 128 may generate a timestamp for entry 306 indicating a time (e.g., T1) corresponding to receipt of P1 by network device(s) 122 (e.g., a time corresponding to when network device(s) 122 received P1, a time corresponding to when tap device 126 identified P1, a time corresponding to generation of entry 306, or the like). Similarly, packet correlator 128 may generate a timestamp for entry 308 indicating a time (e.g., T2) corresponding to receipt of P2 by network device(s) 122 and generate a timestamp for entry 310 indicating a time (e.g., T3) corresponding to receipt of P3 by network device(s) 122.
Returning to
For example, in some embodiments, network device(s) 122 may be configured to perform network address translation (NAT) for network addresses associated with network 104 (e.g., network addresses associated with hosts 114, 116, and 118). In such embodiments, the packets received from host 114 (e.g., P1, P2, and P3) may comprise network- or transport-layer header information identifying their source as a network address associated with host 114 (e.g., a network address associated with network 104 (or a private network address)), and the corresponding packets generated by network device(s) 122 (e.g., P1′, P2′, and P3′) may comprise network- or transport-layer header information identifying their source as a network address associated with network device(s) 122 (e.g., a network address associated with network 106 (or a public network address)).
Additionally or alternatively, network device(s) 122 may comprise a proxy (e.g., a web proxy, a domain name system (DNS) proxy, a session initiation protocol (SIP) proxy, or the like) configured to receive requests and generate corresponding requests. For example, the packets received by network device(s) 122 from host 114 (e.g., P1, P2, and P3) may comprise requests for data from host 108 configured to cause host 108 to transmit the requested data to host 114, and the corresponding packets generated by network device(s) 122 (e.g., P1′, P2′, and P3′) may comprise corresponding requests for the data from host 108 configured to cause host 108 to transmit the requested data to network device(s) 122.
In some embodiments, network device(s) 122 may comprise a gateway (e.g., a bridge, intermediary, VPN, or tunneling gateway). For example, the packets received from host 114 (e.g., P1, P2, and P3) may comprise data destined for host 108, and the corresponding packets generated by network device(s) 122 (e.g., P1′, P2′, and P3′) may comprise packets that encapsulate, encrypt, or otherwise transform the packets received from host 114 (e.g., P1, P2, and P3) (or the data destined for host 108 included therein). For example, network device(s) 122 may comprise a tunneling gateway, and network device(s) 120 may comprise a paired tunneling gateway configured to decapsulate, decrypt, or otherwise inverse transform P1′, P2′, and P3′ (or data included therein) to produce, reproduce, or replicate P1, P2, and P3 (or the data destined for host 108 included therein). In such embodiments, there may not be a one-to-one correspondence between the packets received by network device(s) 122 and the corresponding packets generated by network device(s) 122. For example, data associated with the encapsulation may cause network device(s) 122 to generate more corresponding packets (e.g., due to one or more protocol size constraints).
While such obfuscation may be done without malice, it may also be performed with malicious intent. For example, network device(s) 122 may be employed by a malicious entity to attempt to obfuscate, spoof, or proxy for the identity or location of host 114 (e.g., network device(s) 122 may be employed as part of a man-in-the-middle attack).
At step 8, tap device 124 may identify the corresponding packets generated by network device(s) 122 (e.g., P1′, P2′, and P3′) by determining that the packets meet the criteria included in rule(s) 140. The criteria may include any combination of the network-layer information, transport-layer information, application-layer information, or environmental variable(s), as described above with respect to
Packet correlator 128 may receive the log data and may utilize the log data to generate one or more entries corresponding to the packets in log(s) 142. For example, responsive to receiving the log data from tap device 124, packet correlator 128 may utilize the log data to generate entries 312, 314, and 316 (e.g., corresponding to P1′, P2′, and P3′, respectively) in log(s) 302. Each of entries 312, 314, and 316 may include data associated with their respective corresponding packet (e.g., network-layer information, transport-layer information, application-layer information, or environmental variable(s)). For example, entries 312, 314, and 316 may include data indicating that P1′, P2′, and P3′ were destined for host 108 (e.g., data derived from application-layer header fields of P1′, P2′, and P3′).
Packet correlator 128 may generate timestamps for each of entries 312, 314, and 316. For example, packet correlator 128 may generate a timestamp for entry 312 indicating a time (e.g., T4) corresponding to transmission of P1′ by network device(s) 122 (e.g., a time corresponding to when network device(s) 122 transmitted P1′, a time corresponding to when tap device 124 identified P1′, a time corresponding to generation of entry 312, or the like). Similarly, packet correlator 128 may generate a timestamp for entry 314 indicating a time (e.g., T5) corresponding to transmission of P2′ by network device(s) 122 and generate a timestamp for entry 316 indicating a time (e.g., T6) corresponding to transmission of P3′ by network device(s) 122.
At step 10, host 116 may generate packets (e.g., P4, P5, and P6) destined for host 108 and may communicate the packets to network device(s) 122. Referring to
Packet correlator 128 may receive the log data and may utilize the log data to generate one or more entries corresponding to the packets in log(s) 142. For example, responsive to receiving the log data from tap device 126, packet correlator 128 may utilize the log data to generate entries 318, 320, and 322 (e.g., corresponding to P4, P5, and P6, respectively) in log(s) 304. Each of entries 318, 320, and 322 may include data associated with their respective corresponding packet (e.g., network-layer information, transport-layer information, application-layer information, or environmental variable(s)). For example, entries 318, 320, and 322 may include data indicating that P4, P5, and P6 were received from host 116 and destined for host 108 (e.g., data derived from application-layer header fields of P4, P5, and P6).
Packet correlator 128 may generate timestamps for each of entries 318, 320, and 322. For example, packet correlator 128 may generate a timestamp for entry 318 indicating a time (e.g., T7) corresponding to receipt of P4 by network device(s) 122 (e.g., a time corresponding to when network device(s) 122 received P4, a time corresponding to when tap device 126 identified P4, a time corresponding to generation of entry 318, or the like). Similarly, packet correlator 128 may generate a timestamp for entry 320 indicating a time (e.g., T8) corresponding to receipt of P5 by network device(s) 122 and generate a timestamp for entry 322 indicating a time (e.g., T9) corresponding to receipt of P6 by network device(s) 122.
At step 13, network device(s) 122 may generate one or more packets (e.g., P4′, P5′, and P6′) corresponding to the packets received from host 116 and may communicate (or transmit) (e.g., via network 106 and network device(s) 120) the corresponding packets (or data contained therein) to host 108. The packets received by network device(s) 122 from host 116 (e.g., P4, P5, and P6) may be associated with one or more flows (e.g., distinct end-to-end communication sessions between host 116 and host 108), and the corresponding packets generated by network device(s) 122 and communicated to host 108 (e.g., P4′, P5′, and P6′) may thus also be associated with the flow(s). As indicated above, however, network device(s) 122 may include one or more devices that alter one or more aspects of the packets (e.g., a device configured to perform NAT for network addresses associated with network 104, a proxy, a gateway (e.g., a VPN or tunneling gateway), or one or more other flow-transforming devices) in a way that obfuscates the association of the packets received from host 116 (e.g., P4, P5, and P6) with the corresponding packets generated by network device(s) 122 (e.g., P4′, P5′, and P6′), at least from the perspective of devices other than network device(s) 122.
For example, as indicated above, network device(s) 122 may be configured to perform NAT for network addresses associated with network 104. The packets received from host 116 (e.g., P4, P5, and P6) may comprise network- or transport-layer header information identifying their source as a network address associated with host 116 (e.g., a network address associated with network 104 (or a private network address)), and the corresponding packets generated by network device(s) 122 (e.g., P4′, P5′, and P6′) may comprise network- or transport-layer header information identifying their source as a network address associated with network device(s) 122 (e.g., a network address associated with network 106 (or a public network address)).
At step 14, tap device 124 may identify the corresponding packets generated by network device(s) 122 (e.g., P4′, P5′, and P6′) by determining that the packets meet the criteria included in rule(s) 140. For example, tap device 124 may identify the corresponding packets generated by network device(s) 122 (e.g., P4′, P5′, and P6′) by determining that the corresponding packets are destined for the network address associated with host 108 (e.g., based on network- or transport-layer information contained in their headers) and determining that the network address associated with host 108 is in the set of destination network addresses specified by the criteria included in rule(s) 140. At step 15, tap device 124 may generate log data associated with the corresponding packets generated by network device(s) 122 (e.g., P4′, P5′, and P6′) and may communicate the log data to packet correlator 128.
Packet correlator 128 may receive the log data and may utilize the log data to generate one or more entries corresponding to the packets in log(s) 142. For example, responsive to receiving the log data from tap device 124, packet correlator 128 may utilize the log data to generate entries 324, 326, and 328 (e.g., corresponding to P4′, P5′, and P6′, respectively) in log(s) 302. Each of entries 324, 326, and 328 may include data associated with their respective corresponding packet (e.g., network-layer information, transport-layer information, application-layer information, or environmental variable(s)). For example, entries 324, 326, and 328 may include data indicating that P4′, P5′, and P6′ were destined for host 108 (e.g., data derived from application-layer header fields of P4′, P5′, and P6′).
Packet correlator 128 may generate timestamps for each of entries 324, 326, and 328. For example, packet correlator 128 may generate a timestamp for entry 324 indicating a time (e.g., T10) corresponding to transmission of P4′ by network device(s) 122 (e.g., a time corresponding to when network device(s) 122 transmitted P4′, a time corresponding to when tap device 124 identified P4′, a time corresponding to generation of entry 324, or the like). Similarly, packet correlator 128 may generate a timestamp for entry 326 indicating a time (e.g., T11) corresponding to transmission of P5′ by network device(s) 122 and generate a timestamp for entry 328 indicating a time (e.g., T12) corresponding to transmission of P6′ by network device(s) 122.
At step 16, packet correlator 128 may utilize log(s) 142 to correlate the packets transmitted by network device(s) 122 with the packets received by network device(s) 122. For example, packet correlator 128 may compare data in entry 306 with data in entry 312 (e.g., network-layer information, transport-layer information, application-layer information, or environmental variable(s)) to correlate P1′ with P1 (e.g., by determining that a portion of the data in entry 306 corresponds with data in entry 312). Similarly, packet correlator 128 may compare data in entry 308 with data in entry 314 to correlate P2′ with P2, packet correlator 128 may compare data in entry 310 with data in entry 316 to correlate P3′ with P3, packet correlator 128 may compare data in entry 318 with data in entry 324 to correlate P4′ with P4, packet correlator 128 may compare data in entry 320 with data in entry 326 to correlate P5′ with P5, and packet correlator 128 may compare data in entry 322 with data in entry 328 to correlate P6′ with P6.
In some embodiments, packet correlator 128 may compare data in one or more entries of log(s) 142 with data in one or more other entries of log(s) 142 to determine correlation scores for each of multiple possible correlations. For example, for each entry in log(s) 302 (or a portion thereof (e.g., a portion of the entries comprising data matching one or more criteria)), packet correlator 128 may compare data in the entry with data in each of the entries in log(s) 304 (or a portion thereof (e.g., a portion of the entries comprising data matching the one or more criteria)) to determine correlation scores corresponding to multiple possible correlations (e.g., based on the amount (e.g., percentage) of information in the data that corresponds) and may select the correlation corresponding to the correlation score indicating the strongest correlation (e.g., indicating the greatest amount of corresponding information in the data of the entries). For example, for entry 312, packet correlator 128 may compare the data in entry 312 (e.g., network-layer information, transport-layer information, application-layer information, or environmental variable(s)) (or a portion thereof) with the data in entries 306, 308, and 310 (or corresponding portions thereof), may determine that the amount (e.g., percentage) of data in entry 312 that corresponds to data in entry 306 is greater than the amount of data in entry 312 that corresponds to data in entry 308 and the amount of data in entry 312 that corresponds to data in entry 310, and, based on such a determination, may correlate P1′ with P1.
In some embodiments, packet correlator 128 may correlate the packets transmitted by network device(s) 122 with the packets received by network device(s) 122 by comparing one or more timestamps of the entries in log(s) 142 with one or more other timestamps of the entries in log(s) 142. For example, for each entry in log(s) 302 (or a portion thereof (e.g., a portion of the entries comprising data matching one or more criteria)), packet correlator 128 may compare the timestamp of the entry with the timestamps of the entries in log(s) 304 (or a portion thereof (e.g., a portion of the entries comprising data matching the one or more criteria)) to determine a difference between the times indicated by the timestamps and may correlate the packet corresponding to the entry in log(s) 302 with a packet corresponding to an entry in log(s) 304 having the smallest difference in time indicated by the timestamps. For example, for entry 312, packet correlator 128 may compute a difference between T4 and T1, T2, and T3, may determine that |T4−T1|<|T4−T2|<|T4−T3|, and, based on such a determination, may correlate P1′ with P1.
At step 17, host 116 may generate packets (e.g., P7, P8, and P9) destined for host 110 and may communicate the packets to network device(s) 122. Tap device 126 may determine that the packets (e.g., P7, P8, and P9) are destined for a network address associated with host 110 (e.g., based on network-layer information contained in their headers), may determine that the network address associated with host 110 is not in the set of destination network addresses specified by the criteria included in rule(s) 140, and, based on these determinations, may fail to generate log data associated with the packets received by network device(s) 122 from host 116 (e.g., P7, P8, and P9). At step 18, network device(s) 122 may generate one or more packets (e.g., P7′, P8′, and P9′) corresponding to the packets received from host 116 and may communicate (or transmit) (e.g., via network 106 and network device(s) 120) the corresponding packets (or data contained therein) to host 110. Tap device 124 may determine that the corresponding packets (e.g., P7′, P8′, and P9′) are destined for the network address associated with host 110 (e.g., based on network-layer information contained in their headers), may determine that the network address associated with host 110 is not in the set of destination network addresses specified by the criteria included in rule(s) 140, and, based on these determinations, may fail to generate log data associated with the packets generated by network device(s) 122 (e.g., P7′, P8′, and P9′). For example, packet correlator 128 may be configured to correlate packets destined for the network address associated with host 108 but not packets destined for the network address associated with host 110, and rule(s) 140 may be configured to cause tap devices 124 and 126 to generate log data for packets destined for the network address associated with host 108 but not for packets destined for the network address associated with host 110 (e.g., host 108 may be associated with a malicious entity or host 110 may be associated with a trusted entity).
At step 19, host 114 may generate packets (e.g., P10 and P11) destined for host 108 and may communicate the packets to network device(s) 122. At step 20, tap device 126 may identify the packets (e.g., P10 and P11) by determining that the packets are destined for the network address associated with host 108 (e.g., based on network-layer information contained in their headers) and determining that the network address associated with host 108 is in the set of destination network addresses specified by the criteria included in rule(s) 140. Referring to
Packet correlator 128 may receive the log data and may utilize the log data to generate one or more entries corresponding to the packets in log(s) 142. For example, responsive to receiving the log data from tap device 126, packet correlator 128 may utilize the log data to generate entries 330 and 332 (e.g., corresponding to P10 and P11, respectively) in log(s) 304. Each of entries 330 and 332 may include data associated with their respective corresponding packet (e.g., network-layer information, transport-layer information, application-layer information, or environmental variable(s)). For example, entries 330 and 332 may include data indicating that P10 and P11 were received from host 114 and destined for host 108 (e.g., data derived from application-layer header fields of P10 and P11).
Packet correlator 128 may generate timestamps for each of entries 330 and 332. For example, packet correlator 128 may generate a timestamp for entry 330 indicating a time (e.g., T13) corresponding to receipt of P10 by network device(s) 122 (e.g., a time corresponding to when network device(s) 122 received P10, a time corresponding to when tap device 126 identified P10, a time corresponding to generation of entry 330, or the like). Similarly, packet correlator 128 may generate a timestamp for entry 332 indicating a time (e.g., T14) corresponding to receipt of P11 by network device(s) 122.
At step 22, network device(s) 122 may generate one or more packets (e.g., P10′ and P11′) corresponding to the packets received from host 114 and may communicate (or transmit) (e.g., via network 106 and network device(s) 120) the corresponding packets (or data contained therein) to host 108. The packets received by network device(s) 122 from host 114 (e.g., P10 and P11) may be associated with one or more flows (e.g., distinct end-to-end communication sessions between host 114 and host 108), and the corresponding packets generated by network device(s) 122 and communicated to host 108 (e.g., P10′ and P11′) may thus also be associated with the flow(s). As indicated above, however, network device(s) 122 may include one or more devices that alter one or more aspects of the packets (e.g., a device configured to perform NAT for network addresses associated with network 104, a proxy, a gateway (e.g., a VPN or tunneling gateway), or one or more other flow-transforming devices) in a way that obfuscates the association of the packets received from host 114 (e.g., P10 and P11) with the corresponding packets generated by network device(s) 122 (e.g., P10′ and P11′), at least from the perspective of devices other than network device(s) 122.
For example, as indicated above, network device(s) 122 may be configured to perform NAT for network addresses associated with network 104. The packets received from host 114 (e.g., P10 and P11) may comprise network-layer header information identifying their source as a network address associated with host 114 (e.g., a network address associated with network 104 (or a private network address)), and the corresponding packets generated by network device(s) 122 (e.g., P10′ and P11′) may comprise network-layer header information identifying their source as a network address associated with network device(s) 122 (e.g., a network address associated with network 106 (or a public network address)).
At step 23, tap device 124 may identify the corresponding packets generated by network device(s) 122 (e.g., P10′ and P11′) by determining that the packets meet the criteria included in rule(s) 140. For example, tap device 124 may identify the corresponding packets generated by network device(s) 122 (e.g., P10′ and P11′) by determining that the corresponding packets are destined for the network address associated with host 108 (e.g., based on network-layer information contained in their headers) and determining that the network address associated with host 108 is in the set of destination network addresses specified by the criteria included in rule(s) 140. At step 24, tap device 124 may generate log data associated with the corresponding packets generated by network device(s) 122 (e.g., P10′ and P11′) and may communicate the log data to packet correlator 128.
Packet correlator 128 may receive the log data and may utilize the log data to generate one or more entries corresponding to the packets in log(s) 142. For example, responsive to receiving the log data from tap device 124, packet correlator 128 may utilize the log data to generate entries 334 and 336 (e.g., corresponding to P10′ and P11′, respectively) in log(s) 302. Each of entries 334 and 336 may include data associated with their respective corresponding packet (e.g., network-layer information, transport-layer information, application-layer information, or environmental variable(s)). For example, entries 334 and 336 may include data indicating that P10′ and P11′ were destined for host 108 (e.g., data derived from application-layer header fields of P10′ and P11′).
Packet correlator 128 may generate timestamps for each of entries 334 and 336. For example, packet correlator 128 may generate a timestamp for entry 334 indicating a time (e.g., T15) corresponding to transmission of P10′ by network device(s) 122 (e.g., a time corresponding to when network device(s) 122 transmitted P10′, a time corresponding to when tap device 124 identified P10′, a time corresponding to generation of entry 334, or the like). Similarly, packet correlator 128 may generate a timestamp for entry 336 indicating a time (e.g., T16) corresponding to transmission of P11′ by network device(s) 122.
At step 25, packet correlator 128 may utilize log(s) 142 to correlate the packets transmitted by network device(s) 122 with the packets received by network device(s) 122. For example, packet correlator 128 may compare data in entry 330 with data in entry 334 (e.g., network-layer information, transport-layer information, application-layer information, or environmental variable(s)) to correlate P10′ with P10 (e.g., by determining that a portion of the data in entry 330 corresponds with data in entry 334). Similarly, packet correlator 128 may compare data in entry 332 with data in entry 336 to correlate P11′ with P11. In some embodiments, packet correlator 128 may compare data from one or more requests included in the packets transmitted by network device(s) 122 with data from one or more requests included in the packets received by network device(s) 122 and may correlate one or more of the packets transmitted by network device(s) 122 with one or more of the packets received by network device(s) 122 by determining that the data from the request(s) included in the packet(s) transmitted by network device(s) 122 corresponds to the data from the request(s) included in the packet(s) received by network device(s) 122 (e.g., where network device(s) 122 include a proxy). Additionally or alternatively, packet correlator 128 may compare data encapsulated in one or more of the packets transmitted by network device(s) 122 with data from one or more of the packets received by network device(s) 122 and may correlate one or more of the packets transmitted by network device(s) 122 with one or more of the packets received by network device(s) 122 by determining that the data encapsulated in the packet(s) transmitted by network device(s) 122 corresponds to the data in the packet(s) received by network device(s) 122 (e.g., where network device(s) 122 include a gateway (e.g., a VPN or tunneling gateway)).
In some embodiments, packet correlator 128 may correlate the packets transmitted by network device(s) 122 with the packets received by network device(s) 122 by comparing one or more timestamps of the entries in log(s) 142 with one or more other timestamps of the entries in log(s) 142. For example, packet correlator 128 may compare the timestamp of an entry in log(s) 302 with the timestamps of one or more entries in log(s) 304 (e.g., a portion of the entries comprising data matching one or more criteria)) to determine a difference between the times indicated by the timestamps and may compare the difference between the times indicated by the timestamps with a threshold latency value associated with network device(s) 122 (e.g., a predetermined value representing the time it takes for a packet to be communicated from tap device 126 to tap device 124, an estimated maximum latency associated with a communication path spanning from tap device 126 to tap device 124 (e.g., a communication path comprising network device(s) 122), or the like). For example, for entry 334, packet correlator 128 may compute a difference between T15 and T13, may determine that 0<T15−T13<THRESHOLD, and, based on such a determination, may correlate P10′ with P10. In some embodiments, the threshold latency value may be determined based on one or more previously determined differences between timestamps of entries corresponding to previously correlated packets. For example, the threshold latency value with which the difference between T15 and T13 is compared may have been determined based on the differences between T4 and T1, T5 and T2, or T6 and T3.
Responsive to correlating the packets transmitted by network device(s) 122 with the packets received by network device(s) 122, at step 26, packet correlator 128 may determine, based on one or more of the entries in log(s) 142, a network address associated with a host located in network 104 that is associated with a packet transmitted by network device(s) 122. For example, responsive to correlating P10′ with P10, packet correlator 128 may determine, based on data in entry 330 (e.g., network-layer information comprising the network address associated with host 114) that the network address associated with host 114 is associated with P10′ (e.g., a communication with host 108). At step 27, packet correlator 128 may generate one or more messages identifying host 114. For example, host 108 may be associated with a malicious entity, packet correlator 128 may determine (e.g., based on network-layer information in entry 334) that P10′ was transmitted to host 108, and the message(s) may indicate that host 114 communicated with host 108 (e.g., the malicious entity). At step 28, packet correlator 128 may communicate one or more of the message(s) to host 114 (e.g., to notify a user of host 114 of the communication with the malicious entity), and, at step 29, packet correlator 128 may communicate one or more of the message(s) to host 116, which may be associated with an administrator of network 104 (e.g., to notify the administrator of the communication of host 114 with the malicious entity).
Referring to
At step 35, tap device 126 may generate log data associated with the packets communicated by host 114 (e.g., P12 and P13) and may communicate the log data to packet correlator 128, which may receive the log data and may utilize the log data to generate one or more entries corresponding to the packets in log(s) 142. For example, responsive to receiving the log data from tap device 126, packet correlator 128 may utilize the log data to generate entries 338 and 340 (e.g., corresponding to P12 and P13, respectively) in log(s) 304. Each of entries 338 and 340 may include data associated with their respective corresponding packet (e.g., network-layer information, transport-layer information, application-layer information, or environmental variable(s)). For example, entry 338 may include data indicating that P12 was received from host 114 and destined for host 112 (e.g., data derived from application-layer header fields of P12), and entry 340 may include data indicating that P13 was received from host 114 and destined for host 118 (e.g., data derived from application-layer header fields of P13). Entries 338 and 340 may indicate that tap device 126 dropped their respective corresponding packets. Packet correlator 128 may generate timestamps for each of entries 338 and 340. For example, packet correlator 128 may generate a timestamp for entry 338 indicating a time (e.g., T17) corresponding to when tap device 126 identified P12, generation of entry 338, or the like. Similarly, packet correlator 128 may generate a timestamp for entry 340 indicating a time (e.g., T18) corresponding to when tap device 126 identified P13, generation of entry 340, or the like.
In some embodiments, the packets received by the network device may be associated with one or more flows (e.g., distinct end-to-end communication sessions); however, the network device may alter the packets in a way that obscures their association with the flow(s) from the computing system. For example, P1, P2, and P3 may be associated with a common flow; however, network device(s) 122 may alter P1, P2, and P3 (e.g., by generating P1′, P2′, and P3′) in a way that obscures their association with the common flow from packet correlator 128. Correlating the packets transmitted by the network device with the packets received by the network device may enable the computing system to determine that the packets transmitted by the network device are associated with the flow(s). For example, correlating P1′ with P1, P2′ with P2, and P3′ with P3 may enable packet correlator 128 to determine that P1′, P2′, and P3′ are associated with the common flow.
The functions and steps described herein may be embodied in computer-usable data or computer-executable instructions, such as in one or more program modules, executed by one or more computers or other devices to perform one or more functions described herein. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types when executed by one or more processors in a computer or other data-processing device. The computer-executable instructions may be stored on a computer-readable medium such as a hard disk, optical disk, removable storage media, solid-state memory, RAM, etc. As will be appreciated, the functionality of the program modules may be combined or distributed as desired. In addition, the functionality may be embodied in whole or in part in firmware or hardware equivalents, such as integrated circuits, application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGA), and the like. Particular data structures may be used to more effectively implement one or more aspects of the disclosure, and such data structures are contemplated to be within the scope of computer-executable instructions and computer-usable data described herein.
Although not required, one of ordinary skill in the art will appreciate that various aspects described herein may be embodied as a method, system, apparatus, or one or more computer-readable media storing computer-executable instructions. Accordingly, aspects may take the form of an entirely hardware embodiment, an entirely software embodiment, an entirely firmware embodiment, or an embodiment combining software, hardware, and firmware aspects in any combination.
As described herein, the various methods and acts may be operative across one or more computing devices and networks. The functionality may be distributed in any manner or may be located in a single computing device (e.g., a server, client computer, or the like).
Aspects of the disclosure have been described in terms of illustrative embodiments thereof. Numerous other embodiments, modifications, and variations within the scope and spirit of the appended claims will occur to persons of ordinary skill in the art from a review of this disclosure. For example, one of ordinary skill in the art will appreciate that the steps illustrated in the illustrative figures may be performed in other than the recited order and that one or more illustrated steps may be optional. Any and all features in the following claims may be combined or rearranged in any way possible.
This application is a continuation of U.S. patent application Ser. No. 14/714,207 (now U.S. Pat. No. 9,560,176), filed May 15, 2015, entitled “CORRELATING PACKETS IN COMMUNICATIONS NETWORKS,” which is a continuation of U.S. patent application Ser. No. 14/618,967 (now U.S. Pat. No. 9,264,370), filed Feb. 10, 2015, entitled “CORRELATING PACKETS IN COMMUNICATIONS NETWORKS.” The disclosures of both applications are incorporated by reference herein in their entirety and made part hereof.
Number | Date | Country | |
---|---|---|---|
Parent | 14714207 | May 2015 | US |
Child | 15413947 | US | |
Parent | 14618967 | Feb 2015 | US |
Child | 14714207 | US |