# US 2015/0106935 A1 · Detecting malicious network software agents

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

- Number: US 2015/0106935 A1
- Document ID: US20150106935A1
- Status: Published application
- Kind: A1
- Application number: 14/571,133
- Filed: 2014-12-15
- Published: 2015-04-16
- Earliest claimed: 2009-04-29
- Assignees: Juniper Networks, Inc.
- Applicants: Juniper Networks, Inc.
- Inventors: Bryan Burns; Krishna Narayanaswamy
- Web page: https://patentgrep.com/patent/US20150106935A1

## CPC

- H04L 63/1441: {Countermeasures against malicious traffic (countermeasures against attacks on cryptographic mechanisms H04L9/002)}
- H04L 63/14: {for detecting or protecting against malicious traffic}
- H04L 63/1416: {Event detection, e.g. attack signature detection}
- H04L 2463/144: Detection or countermeasures against botnets
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

This disclosure describes techniques for determining whether a network session originates from an automated software agent. In one example, a network device, such as a router, includes a network interface to receive packets of a network session, a bot detection module to calculate a plurality of scores for network session data based on a plurality of metrics, wherein each of the metrics corresponds to a characteristic of a network session originated by an automated software agent, to produce an aggregate score from an aggregate of the plurality of scores, and to determine that the network session is originated by an automated software agent when the aggregate score exceeds a threshold, and an attack detection module to perform a programmed response when the network session is determined to be originated by an automated software agent. Each score represents a likelihood that the network session is originated by an automated software agent.

## Claims

### Claim 1

A method comprising:
receiving, with a network device, packets of a network session;
assembling network session data for the network session from the packets, the network session data comprising application-layer data and packet flow data for the network session;
calculating a plurality of scores for the network session based on a plurality of metrics applied to the network session data, wherein each of the metrics corresponds to a characteristic of a network session originated by an automated software agent, and wherein each of the scores represents a likelihood that the network session is originated by an automated software agent;
aggregating the plurality of scores to produce an aggregate score;
determining that the network session is originated by an automated software agent when the aggregate score exceeds a threshold; and
executing a programmed response when the network session is determined to be originated by an automated software agent.

### Claim 2 (depends on 1)

The method of claim 1, further comprising applying each of a plurality of weighting values to a respective one of the plurality of scores, wherein aggregating the plurality of scores comprises aggregating the plurality of scores having the respective weighting values applied.

### Claim 3 (depends on 2)

The method of claim 2, further comprising receiving the plurality of weighting values via a user interface.

### Claim 4 (depends on 1)

The method of claim 1, further comprising receiving a definition of at least one of the metrics via a user interface.

### Claim 5 (depends on 1)

The method of claim 1, wherein a first one of the metrics corresponds to a number of open connections for the network session, a second one of the metrics corresponds to an average number of transactions per open connection, a third one of the metrics corresponds to a time distribution between requests during the network session, a fourth one of the metrics corresponds to an average server response time to the requests, a fifth one of the metrics corresponds to a percent of data objects of a web page that are requested for the network session, a sixth one of the metrics corresponds to link-following behavior during the network session, a seventh one of the metrics corresponds to changes to a user agent during the network session, an eighth one of the metrics corresponds to web page cookie handling behavior, and a ninth one of the metrics corresponds to an operating system used by a client device of the network session.

### Claim 6 (depends on 1)

The method of claim 1, wherein executing a programmed response comprises at least one of sending an alert, dropping the packets of the network session, sending a close-session message to a client of the network session, blocking connection requests from a network device of the network session, sending a close-session message to a server of the network session, rate-limiting the network session, sending an identifier of the client to a network device with instructions to block other network sessions of the client, and sending an identifier of the server to the network device with instructions to block network sessions of the server.

### Claim 7

A network device comprising:
a network interface to receive packets of a network session;
a control unit having one or more processors;
a reassembly module executing within the control unit to re-assemble application-layer data for the network session;
a flow table to store packet flow information for the network session;
a bot detection module executing within the control unit to calculate a plurality of scores for the network session based on a plurality of metrics each applied to at least one of the reassembled application-layer data and the packet flow information, wherein each of the metrics corresponds to a characteristic of a network session originated by an automated software agent, wherein the bot detection module is configured to produce an aggregate score from an aggregate of the plurality of scores, and to determine that the network session is originated by an automated software agent when the aggregate score exceeds a threshold, wherein each of the scores represents a likelihood that the network session is originated by an automated software agent; and
an attack detection module executing within the control unit to perform a programmed response when the network session is determined to be originated by an automated software agent.

### Claim 8 (depends on 7)

The device of claim 7, wherein the bot detection module applies each of a plurality of weighting values to a respective one of the plurality of scores and produces the aggregate score after having applied the weighting values to the plurality of scores for the aggregate of the plurality of scores.

### Claim 9 (depends on 8)

The device of claim 8, further comprising a user interface to receive the plurality of weighting values.

### Claim 10 (depends on 7)

The device of claim 7, further comprising a user interface to receive a definition of at least one of the metrics.

### Claim 11 (depends on 7)

The device of claim 7, wherein a first one of the metrics corresponds to a number of open connections for the network session, a second one of the metrics corresponds to an average number of transactions per open connection, a third one of the metrics corresponds to a time distribution between requests during the network session, a fourth one of the metrics corresponds to an average server response time to the requests, a fifth one of the metrics corresponds to a percent of data objects of a web page that are requested for the network session, a sixth one of the metrics corresponds to link-following behavior during the network session, a seventh one of the metrics corresponds to changes to a user agent during the network session, an eighth one of the metrics corresponds to web page cookie handling behavior, and a ninth one of the metrics corresponds to an operating system used by a client device of the network session.

### Claim 12 (depends on 7)

The device of claim 7, wherein the a programmed response executed by the attack detection module comprises at least one of sending an alert, dropping the packets of the network session, sending a close-session message to a client of the network session, sending a close-session message to a server of the network session, blocking connection requests from a network device of the network session, rate-limiting the network session, sending an identifier of the client to a network device with instructions to block other network sessions of the client, and sending an identifier of the server to the network device with instructions to block network sessions of the server.

### Claim 13 (depends on 7)

The device of claim 7, further comprising a router, wherein a service plane of the router comprises an intrusion detection and prevention card that comprises the reassembly module, the bot detection module, and the attack detection module.

### Claim 14

A computer-readable medium comprising instructions for causing a programmable processor of a network device to:
receive packets of a network session;
assemble network session data for the network session from the packets, the network session data comprising application-layer data and packet flow data for the network session;
calculate a plurality of scores for the network session based on a plurality of metrics applied to the network session data, wherein each of the metrics corresponds to a characteristic of a network session originated by an automated software agent, and wherein each of the scores represents a likelihood that the network session is originated by an automated software agent;
aggregate the plurality of scores to produce an aggregate score;
determine that the network session is originated by an automated software agent when the aggregate score exceeds a threshold; and
execute a programmed response when the network session is determined to be originated by an automated software agent.

### Claim 15 (depends on 14)

The computer-readable medium of claim 14, further comprising instructions to apply each of a plurality of weighting values to a respective one of the plurality of scores, wherein the instructions to aggregate the plurality of scores comprise instructions to aggregate the plurality of scores having the respective weighting values applied.

### Claim 16 (depends on 15)

The computer-readable medium of claim 15, further comprising instructions to present a user interface and to receive the plurality of weighting values via the user interface.

### Claim 17 (depends on 14)

The computer-readable medium of claim 14, further comprising instructions to present a user interface and to receive a definition of at least one of the metrics via the user interface.

### Claim 18 (depends on 14)

The computer-readable medium of claim 14, wherein a first one of the metrics corresponds to a number of open connections for the network session, a second one of the metrics corresponds to an average number of transactions per open connection, a third one of the metrics corresponds to a time distribution between requests during the network session, a fourth one of the metrics corresponds to an average server response time to the requests, a fifth one of the metrics corresponds to a percent of data objects of a web page that are requested for the network session, a sixth one of the metrics corresponds to link-following behavior during the network session, a seventh one of the metrics corresponds to changes to a user agent during the network session, an eighth one of the metrics corresponds to web page cookie handling behavior, and a ninth one of the metrics corresponds to an operating system used by a client device of the network session.

### Claim 19 (depends on 14)

The computer-readable medium of claim 14, wherein the instructions to execute a programmed response comprise at least one of instructions to send an alert, instructions to drop the packets of the network session, instructions to send a close-session message to a client of the network session, instructions to block connection requests from a network device of the network session, instructions to send a close-session message to a server of the network session, rate-limiting the network session, instructions to send an identifier of the client to a network device with instructions to block other network sessions of the client, and instructions to send an identifier of the server to the network device with instructions to block network sessions of the server.
