# US 2016/0261611 A1 · Identifying malware-infected network devices through traffic monitoring

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2016/0261611 A1
- Document ID: US20160261611A1
- Status: Published application
- Kind: A1
- Application number: 14/635,761
- Filed: 2015-03-02
- Published: 2016-09-08
- Earliest claimed: 2015-03-02
- Inventors: David Paul Heilig
- Web page: https://patentgrep.com/patent/US20160261611A1

## CPC

- H04L 63/1425: {Traffic logging, e.g. anomaly detection}
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

The present invention generally relates to detecting malicious network activity coming from network devices such as routers and firewalls. Specifically, embodiments of the present invention provide for detecting stealth malware on a network device by comparing inbound and outbound network traffic to discover packets originating from the network device and packets that violate configuration rules. When combined with a network traffic monitor server configured to monitor actual network traffic reports and to receive known network traffic reports from host computers, the system can detect stealth network traffic originating from both network devices and host computer systems.

## Claims

### Claim 1

A network device monitoring system for detecting malware in network devices of a network, the system comprising:
a first network, configured to be coupled to a monitored network device in said network, the first network tap being further configured to copy network traffic data being communicated in said network in said coupled state; and
a first network monitor server, in operable communication with the first network tap, the server comprising:
a processor, and
a memory coupled to the processor,
the processor configured to:
receive from the first network tap network traffic comprising entering network packets and exiting network packets of the monitored network device,
determine matching packets between said entering network packets and said exiting network packets, and
generate an alert when no matching entering packet can be determined for one or more exiting packets, and
wherein said network device monitoring system is external to said network.

### Claim 2 (depends on 1)

The system of claim 1 further comprising:
a second network tap; and
wherein said first network monitor server is further configured to:
receive LAN side network traffic from said first network tap,
receive WAN side network traffic from said second network tap.

### Claim 3 (depends on 1)

The system of claim 1 wherein said first network monitor server is further configured to:
detect unauthorized packets by finding exiting packets without a corresponding entering packet,
detect exiting packets with modified payloads by comparing a hash corresponding to each exiting packet to a hash of one or more entering packets,
detect a LAN side exiting packet which does not have a corresponding LAN side entering packet that is a request for said LAN side exiting packet.

### Claim 4 (depends on 1)

The system of claim 1 wherein said first network monitor server is further configured to:
compare entering packets collected at time T to exiting packets collected within a time frame beginning at time T and ending at time T plus a delta time value.

### Claim 5 (depends on 1)

The system of claim 1 wherein said first network monitor server is further configured to:
receive a configuration profile corresponding to said one or more network devices,
detect an exiting packet which violates one or more rules in said configuration profile.

### Claim 6 (depends on 1)

The system of claim 1 wherein said first network monitor server is further configured to:
receive a known network traffic report corresponding to a host computer system on a separate physical machine from said first network monitor server,
wherein said known network traffic report comprises information about all network traffic known to an operating system of said host computer system; and
compare individual packet headers from said known network traffic report to individual packet headers from said entering network packets and/or said exiting network packets to identify stealth network traffic not reported in said known network traffic report.

### Claim 7 (depends on 1)

The system of claim 1 further comprising:
a server module configured to:
receive a known network traffic report corresponding to a host computer system on a separate physical machine from said server module,
wherein said known network traffic report comprises information about all network traffic known to an operating system of said host computer system,
receive network traffic information corresponding to said entering packets and said exiting packets;
a calculation module configured to compare individual packet headers from said known network traffic report to packet header information from said entering packets and/or said exiting packets to identify stealth network traffic not reported in said known network traffic report.

### Claim 8 (depends on 1)

The system of claim 1 wherein the first network monitor server is further configured to:
select at least one NAT-modified packet to compare to at least one original packet;
compare packet header information that is not modified by NAT of said at least one NAT-modified packet to corresponding packet header information of said at least one original packet, wherein said packet header information is selected from the group consisting of:
source IP address,
source port,
destination IP address, and
destination port;
perform an original packet hash on one or more of packet payload, source IP address, source port, destination IP address, and destination port of said at least one original packet;
compare said original packet hash to a corresponding hash of said at least one NAT-modified packet.

### Claim 9 (depends on 8)

The system of claim 8 wherein the first network monitor server is further configured to:
compare one or more TCP packet attributes of said at least one NAT-modified packet to corresponding TCP packet attributes of said at least one original packet, wherein said one or more TCP packet attributes are selected from the group consisting of:
sequence number,
acknowledge number, and
TCP checksum.

### Claim 10 (depends on 8)

The system of claim 8 wherein the first network monitor server is further configured to:
compare packet payload size of said at least one NAT-modified packet to payload size of said at least one original packet.

### Claim 11

A method of operating an external network monitoring system for detecting malware in a network device of a network, the method comprising the steps of:
a processor of the external network monitoring system receiving copies of network traffic information corresponding to network traffic comprising entering packets and exiting packets of a monitored network device of said network;
the processor comparing copies of entering packets to exiting packets respectively entering and exiting the monitored network device;
the processor determining exiting packets which do not have a corresponding entering packet, and
the processor generating an alert when no matching entering packet can be determined for one or more exiting packets,
wherein said network device monitoring system is external to said network.

### Claim 12 (depends on 11)

The method of claim 11 further comprising the steps of:
computing an exiting packet hash based, at least in part, on an exiting packet payload;
computing an entering packet hash based, at least in part, on an entering packet payload;
comparing said exiting packet hash to said entering packet hash.

### Claim 13 (depends on 11)

The method of claim 11 further comprising the steps of:
recording entering packets which are outbound requests for data;
comparing one or more inbound packets to said outbound requests for data;
detecting one or more inbound packets which do not have a corresponding said outbound request for data.

### Claim 14 (depends on 11)

The method of claim 11 further comprising the steps of:
receiving a known network traffic report corresponding to a host computer system,
wherein said known network traffic report comprises information about all network traffic known to an operating system of said host computer system; and
comparing packet header information from said known network traffic report to packet header information from said entering packets and/or said exiting packets to determine packets which are not reported in said known network traffic report.

### Claim 15 (depends on 11)

The method of claim 11 further comprising the step of:
comparing one or more entering packets collected at time T to one or more exiting packets collected within a time frame beginning at time T and ending at time T plus a delta time value.

### Claim 16 (depends on 15)

The method of claim 15 further comprising the step of:
comparing at least one of source IP address, source port, destination IP address, and destination port of an exiting packet to corresponding header information of an entering packet

### Claim 17 (depends on 16)

The method of claim 16 further comprising the steps of:
computing an entering hash based on said entering packet,
computing an exiting hash based on said exiting packet,
comparing said entering hash to said exiting hash,
determining that said exiting packet is a NAT-modified version of said entering packet based on comparison of said entering hash and said exiting hash.

### Claim 18 (depends on 17)

The method of claim 17 further comprising the step of:
comparing payload size of said entering packet with payload size of said exiting packet.

### Claim 19 (depends on 18)

The method of claim 18 further comprising the step of:
comparing at least one of TCP sequence number, TCP acknowledge number, and TCP checksum between said entering packet and said exiting packet.
