# US 2019/0319981 A1 · Bind Shell Attack Detection

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

- Number: US 2019/0319981 A1
- Document ID: US20190319981A1
- Status: Published application
- Kind: A1
- Application number: 15/950,234
- Filed: 2018-04-11
- Published: 2019-10-17
- Earliest claimed: 2018-04-11
- Assignees: Palo Alto Networks (Israel Analytics) Ltd.
- Applicants: Palo Alto Networks (Israel Analytics) Ltd.
- Inventors: Yinnon Meshi; Idan Amit; Eyal Firstenberg; Jonathan Allon; Yaron Neuman
- Web page: https://patentgrep.com/patent/US20190319981A1

## CPC

- H04L 63/1425: {Traffic logging, e.g. anomaly detection}
- H04L 63/1416: {Event detection, e.g. attack signature detection}
- H04L 63/145: {the attack involving the propagation of malware through the network, e.g. viruses, trojans or worms}
- H04L 63/1466: {Active attacks involving interception, injection, modification, spoofing of data unit addresses, e.g. hijacking, packet injection or TCP sequence number attacks}
- H04L 63/20: {for managing network security; network security policies in general (filtering policies H04L63/0227)}
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

Methods, apparatus and computer program products implement embodiments of the present invention that include collecting data packets transmitted between multiple entities over a network, and grouping the packets at least according to their source and destination entities and their times, into connections to which the packets belong. Pairs of the connections are identified having identical source and destination entities and times that are together within a specified time window, and sets of features are generated for the identified pairs of the connections. The features in the pairs are evaluated in order to detect a given pair of connections indicating malicious activity, and an alert is generated for the malicious activity.

## Claims

### Claim 1

A method, comprising:
collecting data packets transmitted between multiple entities over a network;
grouping the packets at least according to their source and destination entities and their times, into connections to which the packets belong;
identifying pairs of the connections having identical source and destination entities and times that are together within a specified time window;
generating sets of features for the identified pairs of the connections;
evaluating, by a processor, the features in the pairs in order to detect a given pair of connections indicating malicious activity; and
generating an alert for the malicious activity.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the malicious activity comprises a bind shell attack.

### Claim 3 (depends on 1)

The method according to claim 1, wherein evaluating the features comprises determining a baseline of the features, and comparing the features in the pairs of connections to the baseline of the features.

### Claim 4 (depends on 1)

The method according to claim 1, wherein each given pair of connections comprises first and second connections, and wherein each of the features are selected from a list consisting of respective ports used during the first and the second connections, respective start times of the first and the second connections, respective end times of the first and the second connections, respective durations of the first and the second connections, respective volumes of the first and the second connections, respective reverse volumes of the first and the second connections, a source IP address for the first and the second connections, a destination IP address for the first and the second connections and a protocol for the first and the second connections.

### Claim 5 (depends on 4)

The method according to claim 4, wherein detecting the malicious activity comprises detecting that the first and the second ports are different for the given pair of connections.

### Claim 6 (depends on 1)

The method according to claim 1, wherein each given pair of connections comprises first and second connections, wherein a given feature comprises a difference between respective start times of the first and the second connections.

### Claim 7 (depends on 1)

The method according to claim 1, wherein each given pair of connections comprises first and second connections, wherein a given feature comprises a difference between an end time of the first connection and a start time of the second connection.

### Claim 8 (depends on 1)

The method according to claim 1, wherein each given pair of connections comprises first and second connections, wherein a given feature comprises a volume of data transmitted from the source entity to the destination entity during the first connection divided by a volume of data transmitted from the destination entity to the source entity during the first connection.

### Claim 9 (depends on 1)

The method according to claim 1, wherein each given pair of connections comprises first and second connections, wherein evaluating the features comprises applying a plurality rules to the features, and wherein detecting the given pair of connections indicating malicious activity comprises detecting that at least a predetermined number of the rules vote true.

### Claim 10 (depends on 9)

The method according to claim 9, wherein a given rule votes false if a duration of the second connection is less than a small value, if a volume of data transmitted in the second connection is less than a negligible value, and wherein the given rule votes true otherwise.

### Claim 11 (depends on 9)

The method according to claim 9, wherein a given rule votes true if a volume of data transmitted in the first connection is less than a small value, and wherein the given rule votes false otherwise.

### Claim 12 (depends on 9)

The method according to claim 9, wherein a given rule votes true if a difference between a start time of the first connection and a start time of the second connection is greater than a negligible value and less than a minimal value, and wherein the given rule votes false otherwise.

### Claim 13 (depends on 9)

The method according to claim 9, wherein a given rule votes true if a difference between an end time of the first connection and a start time of the second connection is a negligible value that can be positive or negative, and wherein the given rule votes false otherwise.

### Claim 14 (depends on 9)

The method according to claim 9, wherein a given rule votes true if a protocol used for the first connection is in a specified set of protocols, and wherein the given rule votes false otherwise.

### Claim 15 (depends on 9)

The method according to claim 9, wherein a given rule votes true if a protocol used for the second connection is either unknown or is in a specified set of protocols, and wherein the given rule votes false otherwise.

### Claim 16 (depends on 9)

The method according to claim 9, wherein a given rule votes false if a count of distinct IP addresses of the entities that communicated with ports used during the first and the second connections is greater than a small value, and wherein the given rule votes true otherwise.

### Claim 17 (depends on 9)

The method according to claim 9, wherein a given rule votes false if, for a given pair of connections comprising a given destination entity, a count of unique source entities that accessed the given destination entity using a first given port during the first connection and a second given port during the second connection is greater than a high value, and wherein the given rule votes true otherwise.

### Claim 18 (depends on 1)

The method according to claim 1, wherein each given pair of connections comprises first and second connections, wherein evaluating the features comprises applying, to the features, a plurality of noise detectors comprising respective entries, wherein the noise detector votes false if the features from the given pair of connections are in accordance with one of the entries, wherein the given noise detector votes true otherwise, and wherein detecting the given pair of connections indicating malicious activity comprises detecting that at least a predetermined number of the noise detectors vote true.

### Claim 19 (depends on 18)

The method according to claim 18, wherein each of the entries comprises a specified internet protocol (IP) address for the destination entity, and a specified port number on the destination entity used by the first connection.

### Claim 20 (depends on 19)

The method according to claim 19, wherein each of the entries also comprises a second specified port number on the destination entity used by the second connection.

### Claim 21 (depends on 18)

The method according to claim 18, wherein each of the entries comprises a specified internet protocol (IP) address for the source entity and a specified port on the destination entity used by the first connection.

### Claim 22

An apparatus, comprising:
a probe configured to collect data packets transmitted between multiple entities over a network; and
at least one processor configured:
to group the collected packets at least according to their source and destination entities and their times, into connections to which the packets belong,
to identify pairs of the connections having identical source and destination entities and times that are together within a specified time window, to generate sets of features for the identified pairs of the connections,
to evaluate the features of the pairs in order to detect a given pair of connections indicating malicious activity, and
to generate an alert for the malicious activity.

### Claim 23 (depends on 22)

The apparatus according to claim 22, wherein the malicious activity comprises a bind shell attack.

### Claim 24 (depends on 22)

The apparatus according to claim 22, wherein a given processor is configured to evaluate the features by determining a baseline of the features, and comparing the features in the pairs of connections to the baseline of the features.

### Claim 25 (depends on 22)

The apparatus according to claim 22, wherein each given pair of connections comprises first and second connections, and wherein each of the features are selected from a list consisting of respective ports used during the first and the second connections, respective start times of the first and the second connections, respective end times of the first and the second connections, respective durations of the first and the second connections, respective volumes of the first and the second connections, respective reverse volumes of the first and the second connections, a source IP address for the first and the second connections, a destination IP address for the first and the second connections and a protocol for the first and the second connections.

### Claim 26 (depends on 25)

The apparatus according to claim 25, wherein a given processor is configured to detect the malicious activity by detecting that the first and the second ports are different for the given pair of connections.

### Claim 27 (depends on 22)

The apparatus according to claim 22, wherein each given pair of connections comprises first and second connections, wherein a given feature comprises a difference between respective start times of the first and the second connections.

### Claim 28 (depends on 22)

The apparatus according to claim 22, wherein each given pair of connections comprises first and second connections, wherein a given feature comprises a difference between an end time of the first connection and a start time of the second connection.

### Claim 29 (depends on 22)

The apparatus according to claim 22, wherein each given pair of connections comprises first and second connections, wherein a given feature comprises a volume of data transmitted from the source entity to the destination entity during the first connection divided by a volume of data transmitted from the destination entity to the source entity during the first connection.

### Claim 30 (depends on 22)

The apparatus according to claim 22, wherein each given pair of connections comprises first and second connections, wherein a given processor is configured to evaluate the features by applying a plurality rules to the features, and wherein a given processor is configured to detect the given pair of connections indicating malicious activity by detecting that at least a predetermined number of the rules vote true.

### Claim 31 (depends on 30)

The apparatus according to claim 30, wherein a given rule votes false if a duration of the first connection is less than a small value, if a volume of data transmitted in the second connection is less than a negligible value, and wherein the given rule votes true otherwise.

### Claim 32 (depends on 30)

The apparatus according to claim 30, wherein a given rule votes true if a volume of data transmitted in the first connection is less than a small value, and wherein the given rule votes false otherwise.

### Claim 33 (depends on 30)

The apparatus according to claim 30, wherein a given rule votes true if a difference between a start time of the first connection and a start time of the second connection is greater than a negligible value and less than a minimal value, and wherein the given rule votes false otherwise.

### Claim 34 (depends on 30)

The apparatus according to claim 30, wherein a given rule votes true if a difference between an end time of the first connection and a start time of the second connection is a negligible value that can be positive or negative, and wherein the given rule votes false otherwise.

### Claim 35 (depends on 30)

The apparatus according to claim 30, wherein a given rule votes true if a protocol used for the first connection is in a specified set of protocols, and wherein the given rule votes false otherwise.

### Claim 36 (depends on 30)

The apparatus according to claim 30, wherein a given rule votes true if a protocol used for the second connection is either unknown or is in a specified set of protocols, and wherein the given rule votes false otherwise.

### Claim 37 (depends on 30)

The apparatus according to claim 30, wherein a given rule votes false if a count of distinct IP addresses of the entities that communicated with ports used during the first and the second connections is greater than a small value, and wherein the given rule votes true otherwise.

### Claim 38 (depends on 30)

The apparatus according to claim 30, wherein a given rule votes false if, for a given pair of connections comprising a given destination entity, a count of unique source entities that accessed the given destination entity using a first given port during the first connection and a second given port during the second connection is greater than a high value, and wherein the given rule votes true otherwise.

### Claim 39 (depends on 22)

The apparatus according to claim 22, wherein each given pair of connections comprises first and second connections, wherein a given processor is configured to evaluate the features by applying, to the features, a plurality of noise detectors comprising respective entries, wherein the noise detector votes false if the features from the given pair of connections are in accordance with one of the entries, wherein the given noise detector votes true otherwise, and wherein a given processor is configured to detect the given pair of connections indicating malicious activity by detecting that at least a predetermined number of the noise detectors vote false.

### Claim 40 (depends on 39)

The apparatus according to claim 39, wherein each of the entries comprises a specified internet protocol (IP) address for the destination entity, and a specified port number on the destination entity used by the first connection.

### Claim 41 (depends on 40)

The apparatus according to claim 40, wherein each of the entries also comprises a second specified port number on the destination entity used by the second connection.

### Claim 42 (depends on 39)

The apparatus according to claim 39 wherein each of the entries comprises a specified internet protocol (IP) address for the destination entity and a specified port on the destination entity used by the first connection.

### Claim 43

A computer software product, the product comprising a non-transitory computer-readable medium, in which program instructions are stored, which instructions, when read by a computer, cause the computer:
to collect data packets transmitted between multiple entities over a network;
to group the packets at least according to their source and destination entities and their times, into connections to which the packets belong;
to identify pairs of the connections having identical source and destination entities and times that are together within a specified time window;
to generate sets of features for the identified pairs of the connections;
to evaluate, by a processor, the features in the pairs in order to detect a given pair of connections indicating malicious activity; and
to generate an alert for the malicious activity.
