# US 2021/0176257 A1 · Mitigating malware impact by utilizing sandbox insights

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

- Number: US 2021/0176257 A1
- Document ID: US20210176257A1
- Status: Published application
- Kind: A1
- Application number: 16/709,379
- Filed: 2019-12-10
- Published: 2021-06-10
- Earliest claimed: 2019-12-10
- Assignees: Fortinet, Inc.
- Applicants: Fortinet, Inc.
- Inventors: Udi Yavo; Roy Katmor; Ido Kelson
- Web page: https://patentgrep.com/patent/US20210176257A1

## CPC

- H04L 63/145: {the attack involving the propagation of malware through the network, e.g. viruses, trojans or worms}
- G06F 8/30: Creation or generation of source code
- G06F 8/65: Updates (security arrangements therefor G06F21/57)
- G06F 21/53: by executing in a restricted environment, e.g. sandbox or secure virtual machine
- G06F 21/566: {Dynamic detection, i.e. detection performed at run-time, e.g. emulation, suspicious activities}
- G06F 21/568: {eliminating virus, restoring damaged files}
- H04L 63/02: {for separating internal from external traffic, e.g. firewalls}
- H04L 63/0227: {Filtering policies (mail message filtering H04L51/212)}
- G06F 8/74: Reverse engineering; Extracting design information from source code
- G06F 9/45512: {Command shells}
- G06F 11/0793: {Remedial or corrective actions (recovery from an exception in an instruction pipeline G06F9/3861; by retry G06F11/1402; for recovering from a failure of a protocol instance or entity H04L69/40)}
- G06F 21/55: Detecting local intrusion or implementing counter-measures
- G06F 2009/45587: {Isolation or security of virtual machine instances}
- G06F 2009/45591: {Monitoring or debugging support}
- H04L 63/0272: {Virtual private networks}
- H04L 63/1441: {Countermeasures against malicious traffic (countermeasures against attacks on cryptographic mechanisms H04L9/002)}
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Systems and methods for mitigating the impact of malware by reversing malware related modifications in a computing device are provided. According to an embodiment, a sandbox service running within a network security platform protecting an enterprise network receives a file containing malware and associated contextual information from an endpoint security solution running on an endpoint device, which has been infected by the malware. The sandbox service captures information regarding a first series of actions performed by the malware and based on the first series of actions generates a remediation script specifying a second series of actions that are configured to restore the endpoint device to a pre-infected state. The network security platform causes the endpoint device to be returned to the pre-infected state by causing the endpoint security solution to execute the remediation script on the endpoint device.

## Claims

### Claim 1

A method comprising:
receiving, by a sandbox service associated with a network security platform protecting an enterprise network, a file containing malware from an endpoint security solution running on an endpoint device of the enterprise network and contextual information associated with the file, wherein the endpoint device has been infected by the malware;
responsive to receipt of the file and the contextual information, capturing, by the sandbox service, information regarding a first series of actions performed by the malware, wherein each action of the series of actions is associated with a time stamp;
based on the first series of actions, generating, by the sandbox service, a remediation script specifying a second series of actions that are configured to restore the endpoint device to a pre-infected state representing a state of the endpoint device prior to being infected by the malware; and
causing, by the network security platform, the endpoint device to be returned to the pre-infected state by causing the endpoint security solution to execute the remediation script on the endpoint device.

### Claim 2 (depends on 1)

The method of claim 1, wherein the contextual information is captured by the endpoint security solution responsive to detection of a suspicious or malicious event detected by the endpoint security solution that relates to a process running on the endpoint device that is associated with the file.

### Claim 3 (depends on 2)

The method of claim 2, wherein the contextual information includes:
command line information associated with the process;
an execution chain associated with the process;
a memory dump associated with the process;
information indicative of an application with which the process is associated;
information identifying an end user associated with the process; or
environment variables associated with the process.

### Claim 4 (depends on 1)

The method of claim 1, wherein the network security platform is associated with a cloud-based security service.

### Claim 5 (depends on 4)

The method of claim 4, wherein the sandbox service is in a form of a virtual sandbox appliance.

### Claim 6 (depends on 1)

The method of claim 1, wherein the second series of actions are based on reverse actions of the first series of actions.

### Claim 7 (depends on 1)

The method of claim 1, wherein each action of the first series of action is associated with an undo recipe that is used to generate the remediation script specifying the second series of actions.

### Claim 8 (depends on 1)

The method of claim 1, wherein the first series of actions include one or more of:
a change in a registry file of the endpoint device;
a change in a system file of the endpoint device;
addition of a new user account on the endpoint device;
addition of a new firewall rule; and
a change to an existing firewall rule.

### Claim 9 (depends on 1)

The method of claim 1, wherein the sandbox service captures the information regarding the first series of actions by tracing operating system code of the endpoint device.

### Claim 10 (depends on 1)

The method of claim 1, wherein a three-dimensional in-memory graph represents the first series of actions in an operating system of the endpoint device.

### Claim 11 (depends on 1)

The method of claim 1, wherein the sandbox service captures, the information regarding the first series of actions based on at least one of static analysis or dynamic analysis of the file.

### Claim 12

A non-transitory computer-readable storage medium embodying a set of instructions, which when executed by one or more processing resources associated with a sandbox service associated with a network security platform protecting an enterprise network, causes the one or more processing resources to perform a method comprising:
receiving a file containing malware from an endpoint security solution running on an endpoint device of the enterprise network and contextual information associated with the file, wherein the endpoint device has been infected by the malware;
responsive to receipt of the file and the contextual information, capturing information regarding a first series of actions performed by the malware, wherein each action of the series of actions is associated with a time stamp;
based on the first series of actions, generating a remediation script specifying a second series of actions that are configured to restore the endpoint device to a pre-infected state representing a state of the endpoint device prior to being infected by the malware; and
causing the endpoint device to be returned to the pre-infected state by causing the endpoint security solution to execute the remediation script on the endpoint device.

### Claim 13 (depends on 12)

The non-transitory computer-readable storage medium of claim 12, wherein the contextual information is captured by the endpoint security solution responsive to detection of a suspicious or malicious event detected by the endpoint security solution that relates to a process running on the endpoint device that is associated with the file.

### Claim 14 (depends on 13)

The non-transitory computer-readable storage medium of claim 13, wherein the contextual information includes:
command line information associated with the process;
an execution chain associated with the process;
a memory dump associated with the process;
information indicative of an application with which the process is associated;
information identifying an end user associated with the process; or
environment variables associated with the process.

### Claim 15 (depends on 12)

The non-transitory computer-readable storage medium of claim 12, wherein the network security platform is associated with a cloud-based security service.

### Claim 16 (depends on 15)

The non-transitory computer-readable storage medium of claim 15, wherein the sandbox service is in a form of a virtual sandbox appliance.

### Claim 17 (depends on 12)

The non-transitory computer-readable storage medium of claim 12, wherein the second series of actions are based on reverse actions of the first series of actions.

### Claim 18 (depends on 12)

The non-transitory computer-readable storage medium of claim 12, wherein each action of the first series of action is associated with an undo recipe that is used to generate the remediation script specifying the second series of actions.

### Claim 19 (depends on 12)

The non-transitory computer-readable storage medium of claim 12, wherein the first series of actions include one or more of:
a change in a registry file of the endpoint device;
a change in a system file of the endpoint device;
addition of a new user account on the endpoint device;
addition of a new firewall rule; and
a change to an existing firewall rule.

### Claim 20 (depends on 12)

The non-transitory computer-readable storage medium of claim 12, wherein the sandbox service captures the information regarding the first series of actions based on at least one of static analysis or dynamic analysis of the file.
