# US 2026/0095479 A1 · Identifying malicious network traffic behavior using flow-based packet payload length aggregation

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

- Number: US 2026/0095479 A1
- Document ID: US20260095479A1
- Status: Published application
- Kind: A1
- Application number: 19/018,538
- Filed: 2025-01-13
- Published: 2026-04-02
- Earliest claimed: 2024-09-27
- Assignees: Sophos Limited
- Applicants: Sophos Limited
- Inventors: Tristan Parker Mayfield; John Franklin Limb; Neil Richard Terry; James B. Anderson
- Web page: https://patentgrep.com/patent/US20260095479A1

## CPC

- H04L 63/1441: {Countermeasures against malicious traffic (countermeasures against attacks on cryptographic mechanisms H04L9/002)}
- H04L 63/1416: {Event detection, e.g. attack signature detection}
- 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

In example embodiments, techniques are provided for identifying malicious network traffic behavior by aggregating packet payload length of packets of a target packet flow that are part of same segments (e.g., same TCP segments) to produce segment payload lengths (e.g., TCP segment payload lengths), and using the segment payload lengths for identification. An encrypted payload analytics (EPA) engine of network detection and response (NDR) software may generate a target image from the segment payload lengths by organizing data points based on the segment payload lengths into a matrix, and converting the data points in the matrix into pixels of the target image. The EPA engine may then apply the target image to a trained machine learning (ML) model to determine a likelihood network traffic behavior is malicious network traffic behavior. In response to the likelihood, the NDR software may perform a remedial action.

## Claims

### Claim 1

A method for identifying malicious network traffic behavior, comprising:
capturing, by network detection and response (NDR) software executing on one or more computing devices, packets of a target packet flow traveling over a network between a target client application and a target server application, the packets of the target packet flow having respective packet payload lengths;
aggregating, by the NDR software, the packet payload length of one or more packets of the target packet flow that are part of same segments to produce a plurality of segment payload lengths;
generating a target image from the segment payload lengths by organizing data points based on the segment payload lengths into a matrix and converting the data points in the matrix into pixels of the target image;
applying the target image to a trained machine learning (ML) model configured to determine a likelihood network traffic behavior between the target client application and the target server application is malicious network traffic behavior; and
performing, by the NDR software, a remedial action in response to the likelihood.

### Claim 2 (depends on 1)

The method of claim 1, wherein the segments are TCP segments, the segment payload lengths are TCP segment payload lengths, and the aggregating comprises:
adding together packet payload lengths until an indicator is encountered in a packet of the target packet flow.

### Claim 3 (depends on 2)

The method of claim 2, wherein the indicator is a TCP Finish (FIN) flag, a TCP Reset (RST) flag, or a TCP Push (PSH) flag.

### Claim 4 (depends on 1)

The method of claim 1, wherein one or more of the segments include a plurality of packets having payloads split due to a maximum transmission unit (MTU) value used in the network.

### Claim 5 (depends on 1)

The method of claim 1, wherein the packets of the target packet flow include handshake packets used to conduct a multi-way handshake and non-handshake packets, and the aggregating aggregates packet payload length of the non-handshake packets.

### Claim 6 (depends on 1)

The method of claim 1, wherein the packets of a target packet flow include packets having encrypted payloads, and the aggregating produces the plurality of segment payload lengths without decrypting the encrypted payloads.

### Claim 7 (depends on 1)

The method of claim 1, wherein the generating further comprises:
normalizing the segment payload lengths to produce the data points; and
placing the data points into the matrix beginning at a center of the matrix and spiraling outward from the center of the matrix.

### Claim 8 (depends on 7)

The method of claim 7, wherein the normalizing further comprises:
converting the segment payload lengths to positive integer values;
padding the positive integer values to a given number of digits;
splitting digits of the padded integer values to produce single-digit integers; and
scaling the single-digit integers.

### Claim 9 (depends on 1)

The method of claim 1, wherein the trained ML model is a convolutional neural network (CNN) trained upon training images generated from training packet flows exhibiting known malicious network traffic behavior, and the applying further comprises:
calculating an extent a pattern in the target image matches a pattern in one or more of the training images to determine the likelihood.

### Claim 10 (depends on 1)

The method of claim 1, wherein the remedial action comprises providing an alert that the network traffic behavior is likely malicious network traffic behavior, blocking execution of the target client application and/or the target server application, or blocking one or more other applications from communicating with the target client application and/or the target server application.

### Claim 11

An apparatus for identifying malicious network traffic behavior, comprising:
one or more processors; and
one or more memories coupled to the one or more processors, the one or more memories configured to store network detection and response (NDR) software, wherein the NDR software when executed on the one or more processors is operable to:
determine segment payload lengths of segments of a target packet flow traveling over a network between a target client application and a target server application, wherein one or more of the segments include a plurality of packets having payloads split due to a maximum transmission unit (MTU) value used in the network,
generate a target image from the segment payload lengths;
apply the target image to a machine learning (ML) model trained upon training images generated from training packet flows exhibiting known malicious network traffic behavior and determine a likelihood network traffic behavior between the target client application and the target server application is malicious network traffic behavior based on an extent a pattern in the target image matches a pattern in one or more of the training images, and
perform a remedial action in response to the likelihood.

### Claim 12 (depends on 11)

The apparatus of claim 11, wherein the segments are TCP segments, the segment payload lengths are TCP segment payload lengths, and the NDR software is operable to determine TCP segment payload lengths by aggregating packet payload length of one or more packets that are part of same TCP segments.

### Claim 13 (depends on 12)

The apparatus of claim 12, wherein NDR software is operable to determine same segments based on one or more TCP flags, wherein the one or more TCP flags include a TCP Finish (FIN) flag, a TCP Reset (RST) flag, or a TCP Push (PSH) flag.

### Claim 14 (depends on 11)

The apparatus of claim 11, wherein the NDR software is operable to generate the target image by organizing data points based on the segment payload lengths into a matrix, and converting the data points in the matrix into pixels of the target image.

### Claim 15

A non-transitory computing device readable medium having instructions stored thereon, the instructions when executed by one or more computing devices operable to:
capture packets of a target packet flow traveling over a network between a target client application and a target server application, the packets of the target packet flow having respective packet payload lengths;
aggregate packet payload length of one or more packets of the target packet flow that are part of same Transmission Control Protocol (TCP) segments to produce a plurality of segment payload lengths;
generate target data from the segment payload lengths;
apply the target data to a trained machine learning (ML) model configured to determine a likelihood network traffic behavior between the target client application and the target server application is malicious network traffic behavior; and
provide an output indicating the network traffic behavior is likely malicious network traffic behavior in response to the likelihood.

### Claim 16 (depends on 15)

The non-transitory computing device readable medium of claim 15, wherein the instructions operable to aggregate comprise instruction operable to:
add together packet payload lengths until an indicator is encountered in a TCP packet of the target packet flow.

### Claim 17 (depends on 16)

The non-transitory computing device readable medium of claim 16, wherein the indicator is a TCP Finish (FIN) flag, a TCP Reset (RST) flag, or a TCP Push (PSH) flag.

### Claim 18 (depends on 15)

The non-transitory computing device readable medium of claim 15, wherein one or more of the TCP segments include a plurality of packets having payloads split due to a maximum transmission unit (MTU) value used in the network.

### Claim 19 (depends on 15)

The non-transitory computing device readable medium of claim 15, wherein the target data comprises a target image and the instructions operable to generate comprise instructions operable to:
organize data points based on the segment payload lengths into a matrix; and
convert the data points in the matrix into pixels of the target image.

### Claim 20 (depends on 15)

The non-transitory computing device readable medium of claim 15, wherein the packets of the target packet flow include packets having encrypted payloads, and the instructions operable to aggregate are operable to produce the segment payload lengths without decrypting the encrypted payloads.
