# US 2013/0254884 A1 · Systems and methods for behavioral sandboxing

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

- Number: US 2013/0254884 A1
- Document ID: US20130254884A1
- Status: Published application
- Kind: A1
- Application number: 13/898,284
- Filed: 2013-05-20
- Published: 2013-09-26
- Earliest claimed: 2009-12-15
- Assignees: McAfee, Inc.
- Inventors: Gregory William Dalcher; John D. Teddy
- Web page: https://patentgrep.com/patent/US20130254884A1

## CPC

- G06F 21/53: by executing in a restricted environment, e.g. sandbox or secure virtual machine
- G06F 11/3466: {Performance evaluation by tracing or monitoring}
- G06F 21/552: {involving long-term monitoring or reporting}
- G06F 21/566: {Dynamic detection, i.e. detection performed at run-time, e.g. emulation, suspicious activities}
- H04L 63/105: {Multiple levels of security}
- H04L 63/145: {the attack involving the propagation of malware through the network, e.g. viruses, trojans or worms}
- G06F 2201/86: Event-based monitoring
- G06F 2221/2149: Restricted operating environment
- H04L 63/20: {for managing network security; network security policies in general (filtering policies H04L63/0227)}
- 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

Methods and system for behavioral sandboxing are described. In one example embodiment, a system for behavioral sandboxing can include a network and a computer. The network communicatively coupled to a source of an executable application. The computer communicatively couple to the network and including a behavioral analysis module and a plurality of execution environments. The behavioral analysis module is configured to perform behavioral analysis on the executable application downloaded over the network. The plurality of execution environments including a standard execution environment and a protected execution environment. The behavioral analysis module is configured to evaluate a plurality of behavioral characteristics of the executable application to determine whether the executable application should be executed within the protected execution environment prior to execution of the executable application. The behavioral analysis module also monitors execution of the executable application to determine whether the execution environment can be changed.

## Claims

### Claim 1

A method for dynamically determining an execution environment in a system having a plurality of execution environments including a first execution environment and a second execution environment, the second execution environment being a protected execution environment, the method comprising:
performing behavioral analysis on an executable application prior to execution;
determining an initial execution environment based on the behavioral analysis;
if the determination indicates protected execution for the initial execution environment, loading the executable application for execution within the second execution environment;
if the determination indicates other than protected execution for the initial execution environment, loading the executable application for execution within the first execution environment;
collecting behavioral characteristics of the executable application as it is executed within the initial execution environment; and
determining from the collected behavioral characteristics whether execution of the executable application should be moved from the initial execution environment to a secondary execution environment while the executable application is still executing in the initial execution environment, wherein only one of the initial execution environment and the secondary execution environment is a protected execution environment.

### Claim 2 (depends on 1)

The method of claim 1, wherein performing behavioral analysis prior to execution comprises evaluating one or more characteristics associated with the executable application that indicate an origin of the executable application.

### Claim 3 (depends on 2)

The method of claim 2, wherein performing behavioral analysis prior to execution comprises analyzing resources the executable application will utilize.

### Claim 4 (depends on 2)

The method of claim 2, wherein the one or more characteristics include one or more of the following:
network address the executable application was received from;
trust level of a process that requested the executable application;
signed certificate from a trusted source; and
prior performance of suspicious or out of policy activities.

### Claim 5 (depends on 1)

The method of claim 1, wherein loading the executable application for execution within the second execution environment comprises determining a scope of restrictions to apply to the second execution environment prior to execution of the executable application.

### Claim 6 (depends on 5)

The method of claim 5, wherein determining the scope of restrictions comprises determining what types of activity should be contained within the second execution environment.

### Claim 7 (depends on 5)

The method of claim 5, wherein determining the scope of restrictions comprises determining a disposition for operations performed within the second execution environment by the executable application.

### Claim 8 (depends on 1)

The method of claim 1, wherein determining from the collected behavioral characteristics comprises detecting potentially malicious activities including:
opening resource files;
loading plug-ins;
manipulation by other processes;
manipulating other processes; and
accessing the Internet.

### Claim 9 (depends on 1)

The method of claim 1, wherein determining the initial execution environment comprises applying a security policy.

### Claim 10 (depends on 1)

The method of claim 1, wherein determining the initial execution environment comprises determining a first portion of a single execution of the executable application to be executed within the second execution environment and a second portion of the single execution of the executable application to be executed within the first execution environment.

### Claim 11 (depends on 10)

The method of claim 10, wherein the first portion a single execution of the executable application includes execution of:
a fiber;
a thread;
a process;
a dynamic link library;
a script; or
a plug-in component.

### Claim 12

A system comprising:
a computer comprising one or more processors wherein the one or more processors are configured to:
perform behavioral analysis on an executable application prior to execution;
determine an initial execution environment based on the behavioral analysis;
select, based on the determination, either a first execution environment or a second execution environment as an initial execution environment for the executable application, wherein only one of the first or second execution environments is a protected execution environment;
collect behavioral characteristics of the executable application as it is executed in the initial execution environment; and
determine from the collected behavioral characteristics whether execution of the executable application should be moved from the initial execution environment to a secondary execution environment while the executable application is still executing in the initial execution environment, wherein only one of the initial execution environment and the secondary execution environment is a protected execution environment.

### Claim 13 (depends on 12)

The system of claim 12, wherein the one or more processors configured to perform behavioral analysis are further configured to evaluate a characteristic associated with the executable application, wherein the characteristic indicates whether the provider of the executable application can be trusted.

### Claim 14 (depends on 13)

The system of claim 13, wherein the one or more processors configured to perform behavioral analysis are further configured to evaluate a plurality of characteristics including two or more of the following:
network address the executable application was received from;
trust level of the process that requested the executable application;
signed certificate from a trusted source; and
prior performance of suspicious or out of policy activities.

### Claim 15 (depends on 12)

The system of claim 12, wherein the one or more processors configured to perform behavioral analysis are further configured to analyze, prior to execution of the executable application, a resource the executable application will utilize if executed.

### Claim 16 (depends on 12)

The system of claim 12, wherein the one or more processors configured to perform behavioral analysis are further configured to determine a scope of restrictions a protected execution environment will use to control the execution of the executable application.

### Claim 17 (depends on 16)

The system of claim 16, wherein the one or more processors configured to perform behavioral analysis are further configured to determine what types of activity should be contained within the protected execution environment.

### Claim 18 (depends on 16)

The system of claim 16, wherein the one or more processors configured to perform behavioral analysis are further configured to apply a security policy when determining the scope of restrictions for use by the protected execution environment.

### Claim 19 (depends on 16)

The system of claim 16, wherein the one or more processors configured to perform behavioral analysis are further configured to determine a disposition for operations performed within the protected execution environment by the executable application.

### Claim 20 (depends on 12)

The system of claim 12, wherein the one or more processors configured to perform behavioral analysis are further configured to detect potentially malicious activities, including:
opening resource files;
loading plug-ins;
manipulation by other processes;
manipulating other processes; and
accessing the Internet.

### Claim 21 (depends on 12)

The system of claim 12, wherein the one or more processors configured to perform behavioral analysis are further configured to apply a security policy when evaluating a plurality of behavioral characteristics of the executable application to determine whether the initial execution environment should be a protected execution environment.

### Claim 22 (depends on 12)

The system of claim 12, wherein the one or more processors configured to perform behavioral analysis are further configured to determine a first portion of a single execution of the executable application to be executed within the initial execution environment and a second portion of the single execution of the executable application to be executed in the secondary execution environment.

### Claim 23 (depends on 22)

The system of claim 22, wherein the portion of the single execution of the executable application includes execution of:
a fiber;
a thread;
a process;
a dynamic link library;
a script; or
a plug-in component.

### Claim 24

A non-transitory computer-readable storage medium comprising instructions stored thereon to cause one or more processors to:
perform behavioral analysis on an executable application prior to execution;
determine an initial execution environment based on the behavioral analysis;
select, based on the determination, either a first execution environment or a second execution environment as an initial execution environment for the executable application, wherein only one of the first or second execution environments is a protected execution environment;
collect behavioral characteristics of the executable application as it is executed in the initial execution environment; and
determine from the collected behavioral characteristics whether execution of the executable application should be moved from the initial execution environment to a secondary execution environment while the executable application is still executing in the initial execution environment, wherein only one of the initial execution environment and the secondary execution environment is a protected execution environment.

### Claim 25 (depends on 24)

The non-transitory computer-readable storage medium of claim 24, further comprising instructions stored thereon to cause one or more processors to:
monitor second behavioral characteristics of the executable application during execution within the secondary execution environment after the executable application is moved from the initial execution environment;
perform behavioral analysis on the monitored second behavioral characteristics to determine whether the executable application should be moved from the secondary execution environment back to the initial execution environment; and
move, based on the behavioral analysis of the monitored second behavioral characteristics, the executable application from the secondary execution environment to the initial execution environment prior to termination of the execution in the secondary execution environment.
