# US 10,334,083 B2 · Systems and methods for malicious code detection

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

- Number: US 10,334,083 B2
- Document ID: US10334083B2
- Status: Granted
- Kind: B2
- Application number: 14/949,913
- Filed: 2015-11-24
- Published: 2016-05-26
- Granted: 2019-06-25
- Earliest claimed: 2014-11-25
- Assignees: enSilo Ltd.
- Applicants: enSilo Ltd.
- Inventors: Roy Katmor; Tomer Bitton; Udi Yavo; Ido Kelson
- Web page: https://patentgrep.com/patent/US10334083B2

## CPC

- H04L 69/161: {Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields}
- H04L 63/0236: {Filtering by address, protocol, port number or service, e.g. IP-address or URL}
- H04L 63/0263: {Rule management}
- H04L 63/1416: {Event detection, e.g. attack signature detection}
- H04L 63/0281: {Proxies}
- H04L 63/1441: {Countermeasures against malicious traffic (countermeasures against attacks on cryptographic mechanisms H04L9/002)}
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

There is provided a computer implemented method for detection and prevention of an attempt at establishment of a network connection for malicious communication, comprising: detecting a connection establishment process for establishing a network connection, the connection establishment process initiated by code running on a client terminal; analyzing records in at least one stack trace of the initiating code managed at the client terminal, to detect a trial to establish a malicious communication wherein the network connection is used for malicious activity; and blocking establishment of the network connection when the analysis detects the trial to establish the malicious communication based on the network connection.

## Claims

### Claim 1

A computer implemented method for client-side detection and prevention of an attempt at establishment of a network connection for malicious communication, comprising:
detecting, by endpoint code executing on a client terminal, a connection establishment process for establishing a network connection from the client terminal to a server, the connection establishment process initiated by code running on the client terminal;
analyzing, by a network gateway in communication with the client terminal and in network communication with the server, records in at least one stack trace of the initiating code managed at the client terminal, prior to establishment of the network connection and prior to data communication from the client terminal to the server, to detect a trial to establish a malicious communication wherein the network connection is used for malicious activity; and
establishing, by the network gateway, the network connection for data communication from the client to the server when the analysis does not detect the trial to establish the malicious communication based on the network connection, and blocking, by the network gateway, establishment of the network connection for data communication from the client to the server when the analysis detects the trial to establish the malicious communication based on the network connection.

### Claim 2 (depends on 1)

The method of claim 1, wherein analyzing records comprises analyzing flow-data including the at least one stack trace and at least one member of the group consisting of: thread data, module data, and process data related to the connection establishment.

### Claim 3 (depends on 1)

The method of claim 1, further comprising:
gathering, at each respective client, data related to the at least one stack trace and/or flow-data; and
transmitting, from each respective client to a central server, the data related to the at least one stack trace;
wherein the analyzing is performed by the central server.

### Claim 4 (depends on 3)

The method of claim 3, wherein data related to the at least one stack trace includes dynamic code.

### Claim 5 (depends on 1)

The method of claim 1, further comprising permitting the connection establishment process to activate the network connection when the trial to establish the malicious communication based on the network connection is not detected.

### Claim 6 (depends on 1)

The method of claim 1, wherein the analyzing is performed prior to activation of the network connection.

### Claim 7 (depends on 1)

The method of claim 1, wherein the analysis is performed prior to malicious activity and/or communication related data forwarding by the initiating application when the network connection is activated.

### Claim 8 (depends on 1)

The method of claim 1, wherein the at least one stack trace is collected during the connection establishment executed according to a transmission control protocol (TCP) of the internet protocol suite for initiation of the connection establishment process.

### Claim 9 (depends on 1)

The method of claim 1, further comprising halting the connection establishment process after the detecting.

### Claim 10 (depends on 1)

The method of claim 1, wherein the at least one stack trace and/or flow-data is obtained at the initiation of the connection establishment process.

### Claim 11 (depends on 1)

The method of claim 1, wherein the at least one stack trace includes at least one sequence of multiple stack traces obtained at multiple points during the connection establishment process, and said analyzing comprises matching the multiple stack traces to flow-data analysis representing the trial to establish the malicious communication.

### Claim 12 (depends on 1)

The method of claim 1, wherein analyzing comprises analyzing the records of the at least one stack trace for at least one of an unknown module and a blacklisted or whitelisted module, representing infection of the initiating application.

### Claim 13 (depends on 1)

The method of claim 1, wherein analyzing comprises analyzing the at least one stack trace for connection establishment flow-data analysis used by uninfected applications designated as valid at a central server performing the analysis.

### Claim 14 (depends on 1)

The method of claim 1, wherein analyzing comprises comparison of at least one stack trace with connection establishment stack flow-data analysis expected to be generated by the application when the application has not been infected with injected code that initiates the trial to establish the malicious activity/communication.

### Claim 15

A system for client-side detection of an attempt at establishment of a network connection for malicious communication, comprising:
at least one network gateway in communication with a client terminal and in network communication with a server, configured to:
receive at least one stack trace of a code running on the client terminal during a connection establishment process for establishing a network connection from the client terminal to the network based server, wherein the connection establishment process is detected by endpoint code executing on the client terminal, wherein the connection establishment process is initiated by code running on the client terminal;
analyze records in the at least one stack trace, prior to establishment of the network connection and prior to data communication from the client terminal to the server, to determine a presence or absence of a trial to establish a malicious communication wherein the network connection is used for malicious activity;
detect an attempt at establishing the network connection for the malicious communication when the records are matched to malicious flow-data analysis; and
establish the network connection for data communication from the client to the server when the records are not matched to malicious flow-data analysis, and generate a signal representing the trial to establish the malicious communication using the network connection for data communication from the client to the server.

### Claim 16 (depends on 15)

The system of claim 15, wherein receive comprises receive at least one flow-data and analyze records comprises analyze the flow-data including the at least one stack trace and at least one member of the group consisting of: thread data, module data, and process data related to the connection establishment.

### Claim 17 (depends on 15)

The system of claim 15, wherein the at least one gateway resides at a remote server communicating with the client terminal over a network.

### Claim 18 (depends on 15)

The system of claim 15, wherein the at least one gateway is a software module residing at the client terminal.

### Claim 19 (depends on 15)

The system of claim 15, wherein the at least one gateway is a proxy server.

### Claim 20 (depends on 15)

The system of claim 15, further comprising:
the endpoint module for installation at the client terminal, configured to:
detect an initiation of establishment of the network connection by the code;
transmit the at least one stack trace and/or flow-data to the gateway;
receive the signal from the gateway; and
block the connection establishment process to prevent activation of the network connection based on the received signal.

### Claim 21 (depends on 15)

The system of claim 15, wherein the at least one gateway is further configured to prevent activation of the network connection based on the received signal.

### Claim 22 (depends on 15)

The system of claim 15, further comprising:
a management server in communication with the at least one gateway, the management server configured to collect the signal generated by the at least one gateway for each network connection request related to each client.

### Claim 23 (depends on 22)

The system of claim 22, wherein the management server further includes a user interface configured to allow a user to perform at least one member of the group consisting of: review the generated signals, manage the generated signals, centrally control the configuration of the at least one gateway, centrally control the configuration of at least one client terminal communicating with the at least one gateway, monitor status of the at least one gateway, and monitor status of at least one client terminal communicating with the at least one gateway.

### Claim 24 (depends on 15)

The system of claim 15, wherein the application running on the client terminal is a web browser.

### Claim 25 (depends on 15)

The system of claim 15, wherein the connection establishment process is managed by an application programming interface that represents a local end point for the network connection.

### Claim 26 (depends on 15)

The system of claim 15, wherein the application running on the client terminal is part of a hypervisor.

### Claim 27 (depends on 15)

The system of claim 15, wherein the application running on the client terminal is an unauthorized malicious application.

### Claim 28 (depends on 15)

The system of claim 15, further comprising updating the at least one gateway with a stack flow-data analysis associated with the identified attempt at establishing the network connection for the malicious communication, to identify similar stack flow-data analysis from other client terminals.

### Claim 29 (depends on 15)

The system of claim 15, wherein the at least one gateway is further configured to:
receive at least one stack trace of the application when the network connection is active; and
analyze records in the at least one stack trace to monitor for post connection establishment malicious activity using the active network connection.

### Claim 30 (depends on 15)

The system of claim 15, wherein the at least one gateway is further configured to:
receive a plurality of at least one flow-data from each of a plurality of clients; and
analyze the plurality of at least one flow-data to detect a coordinated attack.

### Claim 31

A computer program product for execution by at least one hardware processor of a network gateway in communication with a client terminal and in network communication with a server, for client-side detection of an attempt at establishment of a network connection for malicious activity, the computer program product comprising:
at least one non-transitory computer-readable storage medium, and program instructions stored on at least one of the at least one storage mediums, the program instructions comprising:
program instructions for receiving an indication of a detection, by endpoint code executing on the client terminal, of a connection establishment process for establishing a network connection from the client terminal to the server, the connection establishment process initiated by code running on the client terminal;
program instructions for analyzing records in at least one stack trace of the initiating code managed at the client terminal, prior to establishment of the network connection and prior to data communication from the client terminal to the server, to detect a trial to establish a malicious communication wherein the network connection is used for malicious activity; and
program instructions for establishing the network connection for data communication from the client to the server when the analysis does not detect the trial to establish the malicious communication based on the network connection, and blocking establishment of the network connection for data communication from the client to the server when the analysis detects the trial to establish the malicious communication based on the network connection.
