# US 11,120,106 B2 · Hardware—assisted system and method for detecting and analyzing system calls made to an operating system kernel

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

- Number: US 11,120,106 B2
- Document ID: US11120106B2
- Status: Granted
- Kind: B2
- Application number: 15/224,521
- Filed: 2016-07-30
- Published: 2018-02-01
- Granted: 2021-09-14
- Earliest claimed: 2016-07-30
- Assignees: Endgame, Inc.
- Applicants: Endgame, Inc.
- Inventors: Matthew D. Spisak
- Web page: https://patentgrep.com/patent/US11120106B2

## CPC

- G06F 21/00: Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F 21/126: {Interacting with the operating system}
- G06F 21/56: Computer malware detection or handling, e.g. anti-virus arrangements
- G06F 21/563: {by source code analysis}
- G06F 21/566: {Dynamic detection, i.e. detection performed at run-time, e.g. emulation, suspicious activities}
- G06F 21/121: {Restricting unauthorised execution of programs}
- G06F 21/6281: {at program execution time, where the protection is within the operating system}
- G06F 2221/034: Test or assess a computer or a system
- G06F 2221/2101: Auditing as a secondary aspect
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

The present disclosure relates to a system and method for monitoring system calls to an operating system kernel. A performance monitoring unit is used to monitor system calls and to gather information about each system call. The information is gathered upon interrupting the system call and can include system call type, parameters, and information about the calling thread/process, in order to determine whether the system call was generated by malicious software code. Potentially malicious software code is nullified by a malicious code counter-attack module.

## Claims

### Claim 1

A system for identifying and analyzing system calls to identify potentially malicious software code, the system comprising:
a processor comprising a performance monitoring unit and configured to run an operating system, the operating system comprising a kernel;
a system call monitoring module, executed by the processor, for configuring the performance monitoring unit to:
identify a system call to the kernel, by counting one or more FAR branches that are destined for the kernel, thereby encapsulating a system call instruction that generates the system call, wherein the system call comprises the one or more FAR branches; and
generate monitoring data from the system call that comprises at least two of information about a path to a file to be accessed by the system call, a memory address or range of addresses to be accessed by the system call, information about a socket that is being used by the system call in order to send or receive data, as well as history of system calls in order to monitor for specific sequences of system calls; and
a data analysis module, executed by the processor, to analyze the monitoring data in light of previously stored data, to learn from the previously stored data and the monitoring data, and to generate an alert based on the monitoring data, the alert indicating that the system call was generated by potentially malicious software code.

### Claim 2 (depends on 1)

The system of claim 1, further comprising:
a malware counter-attack module, executed by the processor, for receiving the alert and performing an action involving the potentially malicious software code.

### Claim 3 (depends on 2)

The system of claim 2, wherein the action comprises suspending the potentially malicious code from being further executed by the processor.

### Claim 4 (depends on 2)

The system of claim 2, wherein the action comprises deleting the potentially malicious code.

### Claim 5 (depends on 2)

The system of claim 2, wherein the action comprises adding the potentially malicious code to a list of code to not be executed by the processor.

### Claim 6 (depends on 2)

The system of claim 2, wherein the action comprises instructing the kernel to ignore the system call.

### Claim 7 (depends on 1)

The system of claim 1, wherein the system call comprises a supervisor call instruction.

### Claim 8 (depends on 1)

The system of claim 1, wherein the monitoring data further comprises a context for a thread within the operating system that will be interrupted by the system call.

### Claim 9 (depends on 1)

The system of claim 1, wherein the system call comprises an Mprotect or VirtualProtect instruction.

### Claim 10

A method for identifying and analyzing system calls to identify potentially malicious software code in a system comprising a processor, the processor further comprising a performance monitoring unit, the method comprising:
running, by the processor, an operating system comprising a kernel;
configuring, by a system call monitoring module, the performance monitoring unit;
identifying, by the performance monitoring unit, a system call to the kernel, by counting one or more FAR branches that are destined for the kernel, thereby encapsulating a system call instruction that generates the system call, wherein the system call comprises the one or more FAR branches;
generating monitoring data that comprises at least two of information about a path to a file to be accessed by the system call, a memory address or range of addresses to be accessed by the system call, information about a socket that is being used by the system call in order to send or receive data, as well as history of system calls in order to monitor for specific sequences of system calls;
analyzing the monitoring data, by a data analysis module, in light of previously stored data;
learning, by the data analysis module, from the previously stored data and the monitoring data; and
generating, by the data analysis module, an alert based on the monitoring data, the alert indicating that the system call was generated by potentially malicious software code.

### Claim 11 (depends on 10)

The method of claim 10, further comprising:
receiving, by a malware counter-attack module, the alert; and
performing, by the malware counter-attack module, an action involving the potentially malicious software code.

### Claim 12 (depends on 11)

The method of claim 11, wherein the action comprises suspending the potentially malicious code from being further executed by the processor.

### Claim 13 (depends on 11)

The method of claim 11, wherein the action comprises deleting the potentially malicious code.

### Claim 14 (depends on 11)

The method of claim 11, wherein the action comprises adding the potentially malicious code to a list of code to not be executed by the processor.

### Claim 15 (depends on 11)

The method of claim 11, wherein the action comprises instructing the kernel to ignore the system call.

### Claim 16 (depends on 10)

The method of claim 10, wherein the system call comprises a supervisor call instruction.

### Claim 17 (depends on 10)

The method of claim 10, wherein the monitoring data further comprises a context for a thread within the operating system that will be interrupted by the system call.

### Claim 18 (depends on 10)

The method of claim 10, wherein the system call comprises an Mprotect or VirtualProtect instruction.

### Claim 19

A non-transitory computer-readable storage medium having embodied thereon a program, the program executable by a processor to perform a method for identifying and analyzing system calls to identify potentially malicious software code in a system comprising a processor, the processor further comprising a performance monitoring unit, the method comprising:
running, by the processor, an operating system comprising a kernel;
configuring, by a system call monitoring module, the performance monitoring unit;
identifying, by the performance monitoring unit, a system call to the kernel, by counting one or more FAR branches that are destined for the kernel, thereby encapsulating a system call instruction that generates the system call, wherein the system call comprises the one or more FAR branches;
generating monitoring data from the system call that comprises at least two of information about a path to a file to be accessed by the system call, a memory address or range of addresses to be accessed by the system call, information about a socket that is being used by the system call in order to send or receive data, as well as history of system calls in order to monitor for specific sequences of system calls;
analyzing the monitoring data, by a data analysis module, in light of previously stored data;
learning, by the data analysis module, from the previously stored data and the monitoring data; and
generating, by the data analysis module, an alert based on the monitoring data, the alert indicating that the system call was generated by potentially malicious software code.

### Claim 20 (depends on 19)

The non-transitory computer-readable storage medium of claim 19, the method further comprising:
receiving the alert and performing an action involving the potentially malicious software code.

### Claim 21 (depends on 20)

The non-transitory computer-readable storage medium of claim 20, wherein the action comprises suspending or deleting the potentially malicious code from being further executed by the processor.

### Claim 22 (depends on 20)

The non-transitory computer-readable storage medium of claim 20, wherein the action comprises adding the potentially malicious code to a list of code to not be executed by the processor.

### Claim 23 (depends on 20)

The non-transitory computer-readable storage medium of claim 20, wherein the action comprises instructing the kernel to ignore the system call.
