# US 2019/0156027 A1 · Detecting lateral movement using a hypervisor

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

- Number: US 2019/0156027 A1
- Document ID: US20190156027A1
- Status: Published application
- Kind: A1
- Application number: 15/898,237
- Filed: 2018-02-16
- Published: 2019-05-23
- Earliest claimed: 2017-11-23
- Assignees: Nicira, Inc.
- Applicants: Nicira, Inc.
- Inventors: PRASAD DABAK
- Web page: https://patentgrep.com/patent/US20190156027A1

## CPC

- G06F 21/56: Computer malware detection or handling, e.g. anti-virus arrangements
- G06F 9/45533: {Hypervisors; Virtual machine monitors}
- G06F 9/4843: {by program, e.g. task dispatcher, supervisor, operating system}
- G06F 21/566: {Dynamic detection, i.e. detection performed at run-time, e.g. emulation, suspicious activities}
- H04L 63/1416: {Event detection, e.g. attack signature detection}
- H04L 63/1425: {Traffic logging, e.g. anomaly detection}
- H04L 63/145: {the attack involving the propagation of malware through the network, e.g. viruses, trojans or worms}
- G06F 9/455: Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F 2009/45587: {Isolation or security of virtual machine instances}
- G06F 2009/45591: {Monitoring or debugging support}
- H04L 63/1466: {Active attacks involving interception, injection, modification, spoofing of data unit addresses, e.g. hijacking, packet injection or TCP sequence number attacks}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

The subject matter described herein provides protection against zero-day attacks by detecting, via a hypervisor maintaining an extended page table, an attempt to execute arbitrary code associated with malware in a guest operation system (OS) running within a virtual machine (VM). Further, the subject matter provides detection of lateral movement of the malware. The hypervisor uses hidden breakpoints to detect a request for thread creation, and then determines whether the request is to download and execute arbitrary code.

## Claims

### Claim 1

A system for hypervisor detection of attempted arbitrary code execution in zero-day exploits, said system comprising:
at least one physical processor; and
at least one memory comprising computer program code, the at least one memory and the computer program code configured to, with the at least one physical processor, cause the physical processor to at least:
detect, by a hypervisor via a hidden breakpoint, a request from a current process in a guest operating system (OS) to create a thread, the request including a process identifier (ID) for the thread;
in response to detecting the request, determine whether a process ID for the current process is different from the process ID for the thread and different from a process ID for a parent process of the thread; and
upon determining that the process ID for the current process is different from the process ID for the thread and different from the process ID for the parent process of the thread:
obtain a thread context for the thread and a process context for the current process, the thread context identifying an entry point for the thread, the process context identifying a set of modules associated with the current process; and
upon the entry point being outside an address space of the identified set of modules or associated with a function that loads other code, classify the request as attempted lateral movement associated with malware.

### Claim 2 (depends on 1)

The system of claim 1, wherein the computer program code is configured to set a hidden breakpoint on a pre-defined function used by the current process to create a thread.

### Claim 3 (depends on 1)

The system of claim 1, wherein the computer program code is configured to set a hidden breakpoint on any function used by the current process to set thread context.

### Claim 4 (depends on 1)

The system of claim 1, wherein the computer program code is configured to determine that the entry point is within a stack, and classify the request as attempted lateral movement associated with malware.

### Claim 5 (depends on 1)

The system of claim 1, wherein the computer program code is configured to notify a security system monitor to quarantine the guest OS or quarantine a virtual machine that runs the guest OS after classifying the request as attempted lateral movement associated with malware.

### Claim 6 (depends on 1)

The system of claim 1, wherein the computer program code is configured to determine whether the entry point is within one of the identified set of modules by checking whether the entry point is in a legitimate code region associated with the identified set of modules.

### Claim 7 (depends on 1)

The system of claim 1, wherein the computer program code is further configured to create the thread.

### Claim 8

A method for hypervisor detection of attempted arbitrary code execution in zero-day exploits, said method comprising:
detecting, by a hypervisor via a hidden breakpoint, a request from a current process in a guest operating system (OS) to create a thread, the request including a process identifier (ID) for the thread;
in response to detecting the request, determining whether a process ID for the current process is different from the process ID for the thread and different from a process ID for a parent process of the thread; and
upon determining that the process ID for the current process is different from the process ID for the thread and different from the process ID for the parent process of the thread:
obtaining a thread context for the thread and a process context for the current process, the thread context identifying an entry point for the thread, the process context identifying a set of modules associated with the current process; and
upon the entry point being outside an address space of the identified set of modules or associated with a function that loads other code, classifying the request as attempted lateral movement associated with malware.

### Claim 9 (depends on 8)

The method of claim 8, further comprising setting a hidden breakpoint on a pre-defined function used by the current process to create a thread.

### Claim 10 (depends on 8)

The method of claim 8, further comprising setting a hidden breakpoint on any function used by the current process to set thread context.

### Claim 11 (depends on 8)

The method of claim 8, further comprising determining that the entry point is within a stack, and classifying the request as attempted lateral movement associated with malware.

### Claim 12 (depends on 8)

The method of claim 8, further comprising notifying a security system monitor to quarantine the guest OS or quarantine a virtual machine that runs the guest OS after classifying the request as attempted lateral movement associated with malware.

### Claim 13 (depends on 8)

The method of claim 8, further comprising determining whether the entry point is outside the identified set of modules by checking whether the entry point is in a legitimate code region associated with the identified set of modules.

### Claim 14 (depends on 8)

The method of claim 8, further comprising creating the thread.

### Claim 15

One or more non-transitory computer storage media having computer-executable instructions that, upon execution by a processor, cause the processor to at least perform operations comprising:
detecting, by a hypervisor via a hidden breakpoint, a request from a current process in a guest operating system (OS) to create a thread, the request including a process identifier (ID) for the thread;
in response to detecting the request, determining whether a process ID for the current process is different from the process ID for the thread and different from a process ID for a parent process of the thread; and
upon determining that the process ID for the current process is different from the process ID for the thread and different from the process ID for the parent process of the thread:
obtaining a thread context for the thread and a process context for the current process, the thread context identifying an entry point for the thread, the process context identifying a set of modules associated with the current process; and
upon the entry point being outside an address space of the identified set of modules or associated with a function that loads other code, classifying the request as attempted lateral movement associated with malware.

### Claim 16 (depends on 15)

The one or more non-transitory computer storage media of claim 15, wherein the operations include setting a hidden breakpoint on a pre-defined function used by the current process to create a thread.

### Claim 17 (depends on 15)

The one or more non-transitory computer storage media of claim 15, wherein the operations include setting a hidden breakpoint on any function used by the current process to set thread context.

### Claim 18 (depends on 15)

The one or more non-transitory computer storage media of claim 15, wherein the operations include determining that the entry point is within a stack, and classifying the request as attempted lateral movement associated with malware.

### Claim 19 (depends on 15)

The one or more non-transitory computer storage media of claim 15, wherein the operations further include notifying a security system monitor to quarantine the guest OS or a quarantine virtual machine that runs the guest OS after classifying the request as attempted lateral movement associated with malware.

### Claim 20 (depends on 15)

The one or more non-transitory computer storage media of claim 15, wherein the operations include determining whether the entry point is within one of the identified set of modules by checking whether the entry point is in a legitimate code region associated with the identified set of modules.
