# US 2023/0275916 A1 · Detecting malicious activity on an endpoint based on real-time system events

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

- Number: US 2023/0275916 A1
- Document ID: US20230275916A1
- Status: Published application
- Kind: A1
- Application number: 18/142,522
- Filed: 2023-05-02
- Published: 2023-08-31
- Earliest claimed: 2020-02-25
- Assignees: Palo Alto Networks, Inc.
- Applicants: Palo Alto Networks, Inc.
- Inventors: Roni Moshitzky; Elad Wexler; Marat Khousid; Guy Pilosof
- Web page: https://patentgrep.com/patent/US20230275916A1

## CPC

- H04L 63/1425: {Traffic logging, e.g. anomaly detection}
- H04L 63/0254: {Stateful filtering}
- H04L 63/0263: {Rule management}
- H04L 63/1441: {Countermeasures against malicious traffic (countermeasures against attacks on cryptographic mechanisms H04L9/002)}
- H04L 63/145: {the attack involving the propagation of malware through the network, e.g. viruses, trojans or worms}
- 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

Techniques for detecting malicious activity on an endpoint based on real-time system events are disclosed. In some embodiments, a system/process/computer program product for detecting malicious activity on an endpoint based on real-time system events includes monitoring an endpoint for malicious activity using an endpoint agent, in which the endpoint comprises a local device; detecting malicious activity associated with an application on the endpoint based on real-time system events using the endpoint agent based on a set of rules; and in response to detecting malicious activity on the endpoint based on real-time system events using the endpoint agent, performing a security response based on a security policy.

## Claims

### Claim 1

A system, comprising:
a processor configured to:
monitor an endpoint for malicious activity using an endpoint agent, wherein the endpoint comprises a local device;
filter file system related events, process related events, network related events, and operating system (OS) private application programming interface (API) events based on a filtering policy to filter out events that are noisy and/or are not useful indicators for malware detection using causality event chains, wherein at least the following events are filtered out: predetermined registry key hives and duplicate file-reads, and wherein the following file system related events are configured to not be filtered out: file read operations for predetermined sensitive files and a threshold number of reads to a database;
detect malicious activity associated with an application on the endpoint based on real-time system events using the endpoint agent based on a set of rules, wherein the causality event chain is inspected to detect malicious activity based on a pattern of events as opposed to only inspecting each system event individually, and wherein the set of rules includes one or more updated detection rules provided as an update to the endpoint agent without requiring a binary or code update, and wherein the set of rules are compiled for pattern matching to facilitate optimized detection logic;
in response to detecting malicious activity on the endpoint based on real-time system events using the endpoint agent, perform a security response based on a security policy; and
a memory coupled to the processor and configured to provide the processor with instructions.

### Claim 2 (depends on 1)

The system of claim 1 wherein the processor is further configured to detect an attempt by the application to take an action that would violate the set of rules, wherein the set of rules includes one or more updated detection rules.

### Claim 3 (depends on 1)

The system of claim 1, wherein the processor is further configured to detect an attempt by the application to take an action that would violate the set of rules, and wherein the set of rules comprises a whitelisted set of behaviors observed at a remote server during emulation of a sample in a virtualized environment and wherein an attempt by the application while executing on the local device to take an action not included in the whitelisted set of behaviors constitutes a rule violation.

### Claim 4 (depends on 1)

The system of claim 1, wherein the processor is further configured to:
detect an attempt by the application to take an action that would violate the set of rules, and
report the attempt to a user of the endpoint.

### Claim 5 (depends on 1)

The system of claim 1, wherein the processor is further configured to:
detect an attempt by the application to take an action that would violate the set of rules, and
report the attempt to a remote server.

### Claim 6 (depends on 1)

The system of claim 1, wherein the processor is further configured to report the detected malicious activity to a remote server, wherein in response to receiving the report, the remote server performs an evaluation of a sample provided by the endpoint, wherein the sample is associated with the detected malicious activity.

### Claim 7 (depends on 1)

The system of claim 1, wherein the set of rules restrict processes associated with a sample to behaviors observed during an execution of the sample in a virtualized environment.

### Claim 8 (depends on 1)

The system of claim 1, wherein a remote server is configured to evaluate an updated version of the application in response to receiving an indication that the application has been updated.

### Claim 9 (depends on 1)

The system of claim 1, wherein a remote server is configured to evaluate the application at least in part by executing the application in a virtualized environment, and wherein endpoint agent is configured to implement, at the endpoint, a set of rules restricting behaviors of an application.

### Claim 10

A method, comprising:
monitoring an endpoint for malicious activity using an endpoint agent, wherein the endpoint comprises a local device;
filtering file system related events, process related events, network related events, and operating system (OS) private application programming interface (API) events based on a filtering policy to filter out events that are noisy and/or are not useful indicators for malware detection using causality event chains, wherein at least the following events are filtered out: predetermined registry key hives and duplicate file-reads, and wherein the following file system related events are configured to not be filtered out: file read operations for predetermined sensitive files and a threshold number of reads to a database;
detecting malicious activity associated with an application on the endpoint based on real-time system events using the endpoint agent based on a set of rules, wherein the causality event chain is inspected to detect malicious activity based on a pattern of events as opposed to only inspecting each system event individually, wherein the set of rules includes one or more updated detection rules provided as an update to the endpoint agent without requiring a binary or code update, and wherein the set of rules are compiled for pattern matching to facilitate optimized detection logic; and
in response to detecting malicious activity on the endpoint based on real-time system events using the endpoint agent, performing a security response based on a security policy.

### Claim 11 (depends on 10)

The method of claim 10 further comprising detecting an attempt by the application to take an action that would violate the set of rules, wherein the set of rules includes one or more updated detection rules.

### Claim 12 (depends on 10)

The method of claim 10 further comprising detecting an attempt by the application to take an action that would violate the set of rules, and wherein the set of rules comprises a whitelisted set of behaviors observed at a remote server during emulation of a sample in a virtualized environment and wherein an attempt by the application while executing on the local device to take an action not included in the whitelisted set of behaviors constitutes a rule violation.

### Claim 13 (depends on 10)

The method of claim 10 further comprising:
detecting an attempt by the application to take an action that would violate the set of rules; and
reporting the attempt to a user of the endpoint.

### Claim 14 (depends on 10)

The method of claim 10 further comprising:
detect an attempt by the application to take an action that would violate the set of rules, and
report the attempt to a remote server.

### Claim 15 (depends on 10)

The method of claim 10 further comprising reporting the detected malicious activity to a remote server, wherein in response to receiving the report, the remote server performs an evaluation of a sample provided by the endpoint, wherein the sample is associated with the detected malicious activity.

### Claim 16 (depends on 10)

The method of claim 10, wherein the set of rules restrict processes associated with a sample to behaviors observed during an execution of the sample in a virtualized environment.

### Claim 17 (depends on 10)

The method of claim 10 wherein a remote server is configured to evaluate an updated version of the application in response to receiving an indication that the application has been updated.

### Claim 18 (depends on 10)

The method of claim 10, wherein a remote server is configured to evaluate the application at least in part by executing the application in a virtualized environment, and wherein endpoint agent is configured to implement, at the endpoint, a set of rules restricting behaviors of an application.

### Claim 19

A computer program product, the computer program product being embodied in a tangible computer readable storage medium and comprising computer instructions for:
monitoring an endpoint for malicious activity using an endpoint agent, wherein the endpoint comprises a local device;
filtering file system related events, process related events, network related events, and operating system (OS) private application programming interface (API) events based on a filtering policy to filter out events that are noisy and/or are not useful indicators for malware detection using causality event chains, wherein at least the following events are filtered out: predetermined registry key hives and duplicate file-reads, and wherein the following file system related events are configured to not be filtered out: file read operations for predetermined sensitive files and a threshold number of reads to a database;
detecting malicious activity associated with an application on the endpoint based on real-time system events using the endpoint agent based on a set of rules, wherein the causality event chain is inspected to detect malicious activity based on a pattern of events as opposed to only inspecting each system event individually, wherein the set of rules includes one or more updated detection rules provided as an update to the endpoint agent without requiring a binary or code update, and wherein the set of rules are compiled for pattern matching to facilitate optimized detection logic; and
in response to detecting malicious activity on the endpoint based on real-time system events using the endpoint agent, performing a security response based on a security policy.

### Claim 20 (depends on 19)

The computer program product recited in claim 19, further comprising computer instructions for:
detecting an attempt by the application to take an action that would violate the set of rules, wherein the set of rules includes one or more updated detection rules.
