# US 2016/0149887 A1 · Systems and methods for malicious code detection accuracy assurance

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

- Number: US 2016/0149887 A1
- Document ID: US20160149887A1
- Status: Published application
- Kind: A1
- Application number: 14/949,918
- Filed: 2015-11-24
- Published: 2016-05-26
- 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/US20160149887A1

## 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 method for authenticating an attempt at establishment of a network connection by allowed code, comprising: providing a dataset having previously observed stack trace templates each representing a stack trace pattern prevailing in stack traces recorded by monitoring stacks of clients executing an allowed code during a connection establishment process for establishing network connections related to the allowed code; receiving a new stack trace recorded during a new connection establishment process for a new network connection by a new client; measuring a similarity between the new stack trace and the plurality of stack trace templates to identify a match to a stack trace template; evaluating the matched stack trace template for a predefined rule requirement; and updating a rule-set database with the matched stack trace template to authenticate new network connection establishments associated with stack templates matching the matched stack trace template.

## Claims

### Claim 1

A method for authenticating an attempt at establishment of a network connection by allowed code, comprising:
providing a dataset having a plurality of previously observed stack trace templates each representing a stack trace pattern prevailing in stack traces recorded by monitoring a plurality of stacks of a plurality of clients executing an allowed code during a connection establishment process for establishing network connections related to the allowed code;
receiving a new stack trace recorded during a new connection establishment process for a new network connection by a new client;
measuring a similarity between the new stack trace and the plurality of stack trace templates to identify a match to a stack trace template;
evaluating the matched stack trace template for a predefined rule requirement; and
updating a rule-set database with the matched stack trace template to authenticate new network connection establishments associated with stack templates matching the matched stack trace template.

### Claim 2 (depends on 1)

The method of claim 1, wherein the plurality of stack trace templates are designated as representing suspicious malicious behavior of the allowed code.

### Claim 3 (depends on 1)

The method of claim 1, wherein the plurality of stack trace templates and the new stack trace include context data collected in association with the stack trace of the allowed code, and the similarity is measured according to the context data.

### Claim 4 (depends on 3)

The method of claim 3, wherein the context data includes an event ID and/or host name.

### Claim 5 (depends on 3)

The method of claim 3, wherein the context data includes at least one member selected from the group consisting of similar operating system running at the respective client, similar allowed application, similar stack trace data by different allowed applications, and similar protocols to establish the network connection.

### Claim 6 (depends on 1)

The method of claim 1, further comprising adding the new stack trace to the dataset as a new stack trace template based on an absence of the match.

### Claim 7 (depends on 1)

The method of claim 1, wherein evaluating the matched stack trace template comprises: incrementing a value of a counter indicative of a number of previous stack trace template matches from different clients, and evaluating the value against the predefined rule requirement of a number of matches.

### Claim 8 (depends on 7)

The method of claim 7, wherein the different clients are part of a same designated group.

### Claim 9 (depends on 1)

The method of claim 1, wherein evaluating the matched stack trace template for the predefined rule requirement is performed when the matched stack trace template and the new stack trace are associated with different clients.

### Claim 10 (depends on 1)

The method of claim 1, further comprising:
analyzing the new stack trace, to designate the network connection as being suspicious of being related to malicious code; and
further comprises re-designating the suspicion of being related to malicious code as being related to the allowed code.

### Claim 11 (depends on 10)

The method of claim 10, wherein the suspicion of being related to malicious code is triggered by a new allowed code installed on the new client displaying malicious-like behavior.

### Claim 12 (depends on 10)

The method of claim 10, wherein the allowed code represents a false positive identification by incorrectly triggering the identification of suspicious of being related to malicious code.

### Claim 13 (depends on 10)

The method of claim 10, wherein the stack trace associated with the authenticated new network connection is matched to at least one stack trace template associated with an attempt at establishing the network connection for malicious communication.

### Claim 14 (depends on 1)

The method of claim 1, wherein the new stack trace and the plurality of stack trace templates further comprise flow-data including at least one member selected from the group consisting of: processes, modules, and threads.

### Claim 15 (depends on 1)

The method of claim 1, wherein the new stack trace displays malicious-like behavior that has a similarity to stack traces related to malicious code.

### Claim 16 (depends on 1)

The method of claim 1, wherein the plurality of stack trace templates are based on authorized installation of similar allowed code on a plurality of the clients within a predefined period of time.

### Claim 17 (depends on 1)

The method of claim 1, wherein the predefined requirement is selected to prevent or reduce false positive connection blocking of allowed network connections by the allowed code.

### Claim 18 (depends on 1)

The method of claim 1, wherein the predefined requirement represents a tolerance level for false positive connection blocking of allowed network connections.

### Claim 19

A system for authenticating an attempt at establishment of a network connection by allowed code, comprising:
a dataset having a plurality of previously observed stack trace templates each representing a stack trace pattern prevailing in stack traces recorded by monitoring a plurality of stacks of a plurality of clients executing an allowed code during a connection establishment process for establishing network connections related to the allowed code; and
at least one event management server including a code implementable by a processor of the at least one event management server to:
receive a new stack trace recorded at a certain new client of a plurality of clients during a new connection establishment process for a new network connection by the certain new client;
measure a similarity between the new stack trace and the plurality of stack trace templates to identify a match to a stack template;
evaluate the matched stack trace template for a predefined requirement; and
update a rule-set database with the matched stack trace template to authenticate new network connection establishments associated with stack templates matching the matched stack trace template.

### Claim 20 (depends on 19)

The system of claim 19, further comprising at least one gateway server in communication with the event management server and with at least one of the plurality of client terminals, the at least one gateway server including a code implementable by a processor of the at least one gateways server to:
analyze the new stack trace to designate the new network connection as being suspicious of being related to malicious code;
transmit the new stack trace to the event management server for analysis;
receive the updated rule-set database; and
allow connection establishment of the new network connection.

### Claim 21 (depends on 19)

The system of claim 19, wherein the at least one event management server is in communication with a plurality of gateway servers, wherein each respective gateway server is in communication with at least one client of the plurality of clients, each respective gateway is includes a code implementable by a processor of each respective gateway to:
receive, from the new client, the new stack trace;
analyze the new stack trace to determine a presence or absence of a suspected 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 new stack trace is correlated with malicious data; and
generate a message representing the suspected trial to establish the malicious communication using the network connection; and
the code of the event management server is implementable to receive the message from each respective gateway server, and perform the measuring, evaluating and updating to re-designate the new network connection as representing an allowed network connection, to prevent or reduce blocking of false positive network connections by allowed code that appear malicious to the respective gateway.

### Claim 22 (depends on 21)

The system of claim 21, wherein the certain new client further comprises an allowed application associated with the allowed code that including a code implementable by a processor of the new client to trigger the suspicious of being related to malicious code identification.

### Claim 23 (depends on 21)

The system of claim 21, wherein the at least one event management server and the plurality of gateway servers are combined into the at least one event management server.

### Claim 24 (depends on 19)

The system of claim 19, wherein the allowed code is installed as injected code within an application, the injected code being associated with stack data similar to stack data associated with malicious injected code.

### Claim 25 (depends on 19)

The system of claim 19, wherein the allowed code is configured with high level permission to establish a network connection in a manner similar to high level permission obtained by malicious code.

### Claim 26 (depends on 19)

The system of claim 19, further comprising a client module for installation at each respective client, the client module including a code implementable by a processor of the respective client to:
identify a newly installed application at the respective client; and
analyze the newly installed application to identify a trial to establish a connection for malicious communication by the newly installed application.

### Claim 27 (depends on 26)

The system of claim 26, wherein the newly installed application is installed as an allowed application by a user that breaches an installation policy.

### Claim 28

A computer program product for authenticating an attempt at establishment of a network connection by allowed code, the computer program product comprising:
program instructions to provide a dataset having a plurality of previously observed stack trace templates each representing a stack trace pattern prevailing in stack traces recorded by monitoring a plurality of stacks of a plurality of clients executing an allowed code during a connection establishment process for establishing network connections related to the allowed code;
program instructions to receive a new stack trace recorded during a new connection establishment process for a new network connection by a new client;
program instructions to measure a similarity between the new stack trace and the plurality of stack trace templates to identify a match to a stack trace template;
program instructions to evaluate the matched stack trace template for a predefined rule requirement; and
program instructions to update a rule-set database with the matched stack trace template to authenticate new network connection establishments associated with stack templates matching the matched stack trace template.
