# US 2009/0271867 A1 · Virtual machine to detect malicious code

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

- Number: US 2009/0271867 A1
- Document ID: US20090271867A1
- Status: Published application
- Kind: A1
- Application number: 10/583,051
- Filed: 2005-12-30
- Published: 2009-10-29
- Earliest claimed: 2005-12-30
- Inventors: Peng Zhang
- Web page: https://patentgrep.com/patent/US20090271867A1

## CPC

- G06F 21/566: {Dynamic detection, i.e. detection performed at run-time, e.g. emulation, suspicious activities}
- G06F 21/56: Computer malware detection or handling, e.g. anti-virus arrangements
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

One embodiment of the invention discloses a method for receiving in a virtual machine (VM) contents of a program for creating a virtual environment for interacting with a host platform in a computing device; and determining by the VM if the received contents comprise predetermined instructions for performing at least one unauthorized task. Another embodiment of the invention discloses a method for receiving a system call for a host platform in communication with a VM of a computing device; and determining by the VM if the received system call comprises at least one predetermined system call for performing at least one unauthorized task. Yet another embodiment of the invention discloses a method for receiving a virtualized memory address for a host platform in communication with a VM of a computing device; and determining by the VM if the received virtualized memory address comprises at least one predetermined unauthorized virtualized memory address.

## Claims

### Claim 1

A method comprising:
receiving in a virtual machine contents of a program for creating a virtual environment for interacting with a host platform in a computing device; and
determining by the virtual machine if the received contents comprises predetermined instructions for performing at least one unauthorized task.

### Claim 2 (depends on 1)

The method of claim 1, wherein the determining if the received contents comprises predetermined instructions further comprises:
comparing the received contents of the program to at least one predetermined instruction patterns corresponding to the predetermined instructions for performing the at least one unauthorized task; and
purging the predetermined instructions from the received contents based on the comparing.

### Claim 3 (depends on 2)

The method of claim 2, wherein the comparing the contents of the received program to at least one predetermined instruction patterns further comprises:
searching predetermined locations of the received contents of the program for the predetermined instructions.

### Claim 4 (depends on 2)

The method of claim 2, wherein the virtual machine comprises a translation cache, wherein the contents of the program reside in the translation cache, and wherein determining if the received contents comprises predetermined instructions further comprises:
checking a branch target at the outlets of the translation cache; and
determining if the checked branch target comprises at least one of a translation cache and the execution engine.

### Claim 5 (depends on 4)

The method of claim 4, further comprising:
generating checking and determining instructions for performing the checking the branch target and determining if the checked branch target comprises at least one of a translation cache and the execution engine.

### Claim 6 (depends on 2)

The method of claim 2, wherein the virtual machine comprises an execution engine and at least one interpret function invoked by the execution engine, wherein the contents of the program reside in the at least one interpret function.

### Claim 7

A system comprising:
a virtual machine to receive contents of a program for creating a virtual environment for interacting with a host platform in a computing device, the virtual machine comprising a detector subsystem to determine if the received contents comprises predetermined instructions for performing at least one unauthorized task.

### Claim 8 (depends on 7)

The system of claim 7, wherein the detector subsystem is to purge the predetermined instructions from the received contents of the program, wherein the detector subsystem further comprises:
a comparator logic to compare the received contents of the program to at least one predetermined instruction patterns corresponding to the predetermined instructions for performing the at least one unauthorized task; and
a search logic to search predetermined locations of the received contents of the program for the predetermined instructions.

### Claim 9 (depends on 7)

The system of claim 7, wherein the virtual machine comprises:
at least one of a translation cache to store translation data;
a translation engine to invoke the detector subsystem to determine if the contents of a translation data storage comprises predetermined instructions for performing at least one unauthorized task;
at least one loader, to receive contents of a program and to invoke the detector subsystem;
at least one interpreter function; and
an execution engine to invoke the detector subsystem to determine if the contents of the at least one interpret function invoked by the execution engine comprises predetermined instructions for performing at least one unauthorized task.

### Claim 10 (depends on 9)

The system of claim 9, wherein the detector subsystem further comprises:
translation cache logic to check a branch target at the outlets of the translation cache and to determine if the checked branch target comprises at least one of a translation cache and the execution engine, based on translation cache logic instructions; and
an instruction generation subsystem to generate the translation cache logic instructions.

### Claim 11 (depends on 8)

The method of claim 8, wherein the at least one predetermined instruction patterns are stored in a database in communication with the virtual machine.

### Claim 12

A storage medium that provides software that, if executed by a computing device, will cause the computing device to perform the following operations:
receiving in a virtual machine contents of a program for creating a virtual environment for interacting with a host platform in a computing device; and
determining by the virtual machine if the received contents comprises predetermined instructions for performing at least one unauthorized task.

### Claim 13 (depends on 12)

The storage medium of claim 12 further comprising software to:
compare the received contents of the program to at least one predetermined instruction patterns corresponding to the predetermined instructions for performing the at least one unauthorized task; and
purge the predetermined instructions from the received contents based on the comparing.

### Claim 14 (depends on 13)

The storage medium of claim 13 further comprising software to:
search predetermined locations of the received contents of the program for the predetermined instructions

### Claim 15

A method comprising:
receiving a system call for a host platform in communication with a virtual machine of a computing device; and
determining by the virtual machine if the received system call comprises at least one predetermined system call for performing at least one unauthorized task.

### Claim 16 (depends on 15)

The method of claim 15, wherein the determining if the received system call comprises predetermined system call further comprises:
comparing the system call to at least one predetermined system call patterns corresponding to the predetermined system calls for performing the at least one unauthorized task.

### Claim 17 (depends on 16)

The method of claim 16, wherein the unauthorized task comprises:
a task predetermined to be an inhibitive task by the computing device; and
a task to output data into memory regions storing at least one of instructions and data for operations of the virtual machine.

### Claim 18

A method comprising:
receiving a virtualized memory address for a host platform in communication with a virtual machine of a computing device; and
determining by the virtual machine if the received virtualized memory address comprises at least one predetermined unauthorized virtualized memory address.

### Claim 19 (depends on 18)

The method of claim 18, wherein the virtual machine further comprises:
at least one of a translation cache to store translation data;
an execution engine; and
at least one interpret function invoked by the execution engine.

### Claim 20 (depends on 19)

The method of claim 19, wherein the determining by the virtual machine if the received virtualized memory address comprises at least one predetermined unauthorized virtualized memory address comprises:
determining if the virtualized memory address is in a memory space available to the translation cache;
determining if the virtualized memory address is in a memory space available to the at least one interpret function; and
determining if the virtualized memory address is in a memory space region storing at least one of instructions and data for operations of the virtual machine.
