# US 8,578,489 B1 · Method and an apparatus to perform multiple packet payloads analysis

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

- Number: US 8,578,489 B1
- Document ID: US8578489B1
- Status: Granted
- Kind: B1
- Application number: 13/491,484
- Filed: 2012-06-07
- Granted: 2013-11-05
- Earliest claimed: 2004-10-13
- Assignees: SonicWALL, Inc.
- Applicants: Aleksandr Dubrovsky; Roman Yanovsky; Scott Aaron More; Boris Yanovsky
- Inventors: Aleksandr Dubrovsky; Roman Yanovsky; Scott Aaron More; Boris Yanovsky
- Web page: https://patentgrep.com/patent/US8578489B1

## CPC

- H04L 63/1416: {Event detection, e.g. attack signature detection}
- H04L 47/34: ensuring sequence integrity, e.g. using sequence numbers
- H04L 63/0245: {Filtering by information in the payload}
- H04L 63/0254: {Stateful filtering}
- H04L 63/1433: {Vulnerability analysis}
- H04L 69/22: Parsing or analysis of headers
- G06F 21/55: Detecting local intrusion or implementing counter-measures
- G06F 21/56: Computer malware detection or handling, e.g. anti-virus arrangements
- G06F 21/562: {Static detection}
- G06F 21/564: {by virus signature recognition}
- H04L 63/1408: {by monitoring network traffic (monitoring network traffic per se H04L43/00)}
- H04L 63/145: {the attack involving the propagation of malware through the network, e.g. viruses, trojans or worms}
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method and an apparatus to perform multiple packet payload analysis have been disclosed. In one embodiment, the method includes receiving a plurality of data packets, each of the plurality of data packets containing a portion of a data pattern, determining whether each of the plurality of data packets is out of order, and making and storing a local copy of the corresponding data packet if the corresponding data packet is out of order. Other embodiments have been claimed and described.

## Claims

### Claim 1

A method of performing re-assembly free deep packet inspection of a data stream corresponding to a client application at a network element, the method comprising:
receiving the data stream that corresponds to the client application, the data stream including a plurality of data packets communicated with the client application, each of the plurality of data packets containing a portion of a data pattern in a payload of that data packet; and
performing the re-assembly free deep packet inspection on the data stream, wherein each packet is inspected by:
determining, whether a corresponding data packet is out of order, and
if the corresponding data packet is out of order,
checking whether one or more local copies of previously received data packets is next in order,
wherein a local copy determined to be next in order is compared to a corresponding portion of an attack pattern, and
wherein there is no local copy next in order, and storing a local copy of the corresponding data packet, wherein the local copy is used when determined to be next in order after another one of the plurality of data packets in pattern matching to a corresponding portion of the attack pattern, and
if the corresponding data packet is in-order,
performing pattern matching on the payload of the corresponding data packet against at least a portion of the attack pattern to determine whether one or more of the data packets received so far contain the attack data pattern.

### Claim 2 (depends on 1)

The method of claim 1, further comprising passing the corresponding data packet if the corresponding data packet is out of order after making and storing the local copy of the corresponding data packet.

### Claim 3 (depends on 1)

The method of claim 1, wherein the pattern matching is performed in a plurality of states, each of the plurality of states corresponds to one of a plurality of segments of the attack pattern.

### Claim 4 (depends on 3)

The method of claim 3, wherein performing the pattern matching comprises storing a current state of the pattern matching after performing the pattern matching on a data packet.

### Claim 5 (depends on 4)

The method of claim 4, further comprising:
looking up the stored state when a next data packet is received; and
performing pattern matching on the next data packet from the stored state.

### Claim 6 (depends on 1)

The method of claim 1, further comprising:
passing the corresponding data packet if the one or more data packets compared so far do not contain the attack pattern; and
blocking the corresponding data packet if the one or more data packets compared so far contain the attack pattern.

### Claim 7 (depends on 6)

The method of claim 6, further comprising:
determining whether there is any in-order data packets stored locally; and
if there is one or more locally stored in-order data packets, performing pattern matching on the one or more locally stored in-order data packets against at least a portion of the attack pattern.

### Claim 8 (depends on 1)

The method of claim 1, wherein determining whether the corresponding data packet is out of order comprises checking a sequence number in the corresponding data packet.

### Claim 9

An apparatus to perform re-assembly free deep packet inspection of a data stream corresponding to a client application at a network element, the apparatus comprising:
an interface to receive a data stream including a plurality of data packets, the data stream associated with a client application communicably coupled to the interface; and
a processor to perform re-assembly free deep packet inspection by pattern matching on payloads of the plurality of data packets on a packet-by-packet basis without reassembling the plurality of data packets in order to scan for an attack pattern, wherein the plurality of data packets include in-order data packets and out-of-order data packets, and wherein each data packet is inspected by:
determining whether a corresponding data packet is in-order or out-of-order,
for each of the in-order data packets, pattern matching on a payload of that in-order data packet against at least a portion of the attack pattern to determine whether one or more of the data packets received so far contain an attack data pattern, and
for each of the out-of-order data packets:
checking whether one or more local copies of previously received data packets is next in order,
wherein a local copy determined to be next in order is compared to a corresponding portion of an attack pattern, and
wherein there is no local copy next in order, storing a local copy of that out-of-order data packet, wherein the local copy is used when determined to be next in order after another one of the plurality of data packets in pattern matching to a corresponding portion of the attack pattern.

### Claim 10 (depends on 9)

The apparatus of claim 9, further comprising a buffer to temporarily store a copy of each of the out-of-order data packets before allowing that data packet to pass.

### Claim 11 (depends on 9)

The apparatus of claim 9, wherein the attack pattern includes a plurality of data patterns and the processor is operable to represent each of the plurality of data patterns with a Deterministic Finite Automaton (DFA) and to perform the pattern matching on the received plurality of data packets against the attack pattern using the DFA.

### Claim 12 (depends on 11)

The apparatus of claim 11, further comprising a storage device to store a current state of the DFA such that the pattern matching is performed on a next data packet in the data stream from the stored state if the next data packet is in order.

### Claim 13 (depends on 12)

The apparatus of claim 12, wherein the storage device comprises a logical pointer.

### Claim 14

A system that performs re-assembly free deep packet inspection of a plurality of data streams, the system comprising:
a plurality of client applications that communicate the plurality of data streams, wherein each of the plurality of data streams includes a plurality of data packets;
a network; and
a network security module communicably coupled to the plurality of client applications via the network, the network security module comprising:
an interface coupled to the network, wherein the interface receives the plurality of data streams; and
a processor coupled to the interface, wherein the processor performs the re-assembly free deep packet inspection by pattern matching on each of the data streams on a packet-by-packet basis for the plurality of data packets in that data stream and without reassembling the data packets in order to scan for an attack pattern, wherein the plurality of data streams include in-order data packets and out-of-order data packets and wherein each data packet is inspected by:
determining whether a corresponding data packet is in-order or out-of-order,
for each of the in-order data packets, pattern matching on the payload of that in-order data packet against at least a portion of the attack pattern to determine whether one or more of the data packets received so far contain an attack data pattern, and
for each of the out-of-order data packets:
checking whether one or more local copies of previously received data packets is next in order,
wherein a local copy determined to be next in order is compared to a corresponding portion of an attack pattern, and
wherein there is no local copy next in order, storing a local copy of that out-of-order data packet, wherein the local copy is used in pattern matching to a corresponding portion of the attack pattern.

### Claim 15 (depends on 14)

The system of claim 14, wherein the network security module further comprises a buffer coupled to the processor, wherein the buffer temporarily stores a copy of each of the out-of-order data packets before allowing that data packet to pass.

### Claim 16 (depends on 15)

The system of claim 15, further comprising a server, wherein the network security module is operable to run on the server.

### Claim 17 (depends on 14)

The system of claim 14, wherein the attack pattern includes a plurality of data patterns and the processor represents each of the plurality of data patterns with a Deterministic Finite Automaton (DFA) and performs the pattern matching on the received data packets against the attack pattern using the DFA.

### Claim 18 (depends on 17)

The system of claim 17, wherein the network security module further comprises a storage device coupled to the processor, wherein the storage device store a current state of the DFA such that the pattern matching is performed on a next data packet from the stored state if the next data packet is in order.

### Claim 19 (depends on 18)

The system of claim 18, wherein the storage device comprises a logical pointer.

### Claim 20 (depends on 14)

The system of claim 14, further comprising a client machine, wherein the network security module is operable to run on the client machine.

### Claim 21 (depends on 14)

The system of claim 14, further comprising a router, wherein the network security module is operable to run on the router.
