# US 10,956,570 B2 · Efficient program deobfuscation through system API instrumentation

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

- Number: US 10,956,570 B2
- Document ID: US10956570B2
- Status: Granted
- Kind: B2
- Application number: 16/725,748
- Filed: 2019-12-23
- Published: 2020-04-30
- Granted: 2021-03-23
- Earliest claimed: 2017-09-11
- Assignees: Palo Alto Networks, Inc.
- Applicants: Palo Alto Networks, Inc.
- Inventors: Robert Jung
- Web page: https://patentgrep.com/patent/US10956570B2

## CPC

- G06F 21/56: Computer malware detection or handling, e.g. anti-virus arrangements
- G06F 21/566: {Dynamic detection, i.e. detection performed at run-time, e.g. emulation, suspicious activities}
- G06F 3/062: {Securing storage systems}
- G06F 3/0641: {De-duplication techniques}
- G06F 3/0673: {Single storage device}
- G06F 11/3006: {where the computing system is distributed, e.g. networked systems, clusters, multiprocessor systems (multiprogramming arrangements G06F9/46; allocation of resources G06F9/50)}
- G06F 11/302: {where the computing system component is a software system}
- G06F 11/3034: {where the computing system component is a storage system, e.g. DASD based or network based (digital input from or digital output to record carriers G06F3/06; digital recording or reproducing G11B20/18; for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS], H04L67/1097)}
- G06F 11/3065: {Monitoring arrangements determined by the means or processing involved in reporting the monitored data (error or fault reporting or logging G06F11/0766)}
- G06F 12/0802: Addressing of a memory level in which the access to the desired data or data block requires associative addressing means, e.g. caches
- G06F 21/562: {Static detection}
- G06F 21/564: {by virus signature recognition}
- H04L 63/1416: {Event detection, e.g. attack signature detection}
- H04L 63/145: {the attack involving the propagation of malware through the network, e.g. viruses, trojans or worms}
- G06F 2201/84: Using snapshots, i.e. a logical point-in-time copy of the data
- G06F 2212/1052: Security improvement
- 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

Techniques for efficient program deobfuscation through system application program interface (API) instrumentation are disclosed. In some embodiments, a system/process/computer program product for efficient program deobfuscation through system API instrumentation includes monitoring changes in memory after a system call event during execution of a malware sample in a computing environment; and generating a signature based on an analysis of the monitored changes in memory after the system call event during execution of the malware sample in the computing environment.

## Claims

### Claim 1

A system, comprising:
a processor configured to:
perform dynamic analysis of a malware sample for program deobfuscation through system API instrumentation in a computing environment, wherein a plurality of pages in memory associated with a process launched by executing the malware sample are identified and monitored for changes after one or more system call events during execution of the malware sample for a predetermined period of time in the computing environment, and wherein an output of the monitored changes in memory after the system call event during execution of the malware sample for a predetermined period of time in the computing environment are reassembled and analyzed to identify a potential malware binary; and
generate an interface that includes a graphical visualization of a plurality of pages in memory associated with a process launched during execution of the malware sample in the computing environment, wherein the graphical visualization of the plurality of pages in memory indicates a subset of the plurality of pages in memory that were modified after a system call event that was intercepted through the system API instrumentation in the computing environment; and
a memory coupled to the processor and configured to provide the processor with instructions.

### Claim 2 (depends on 1)

The system recited in claim 1, wherein the computing environment comprises a virtual machine instance.

### Claim 3 (depends on 1)

The system recited in claim 1, wherein the processor is further configured to:
identify, in the interface, the system call event detected during execution of the malware sample in the computing environment.

### Claim 4 (depends on 1)

The system recited in claim 1, wherein the processor is further configured to:
monitor changes in memory after the system call event during execution of the malware sample in the computing environment, wherein monitoring changes in memory after the system call event during execution of the malware sample in the computing environment further comprises:
identify a plurality of pages in memory associated with a process launched by executing the malware sample in the computing environment;
perform an initial snapshot of all of the plurality of pages in memory associated with the process at initial time to and cache the initial snapshot of all of the plurality of pages in memory to provide a baseline for contents in memory while executing the malware sample in the computing environment;
perform another snapshot of all of the plurality of pages in memory associated with the process at subsequent time to after the system call event in response to detecting a return address in a call stack points to a memory address that has changed since the initial snapshot;
reassemble snapshots of the plurality of pages in memory associated with the process after executing the malware sample for a predetermined period of time in the computing environment; and
automatically detect unpacking of binaries in memory based on a static analysis of the reassembled snapshots of the plurality of pages in memory; and
a memory coupled to the processor and configured to provide the processor with instructions.

### Claim 5 (depends on 1)

The system recited in claim 1, wherein the potential malware binary is submitted for dynamic analysis and/or static analysis.

### Claim 6 (depends on 1)

The system recited in claim 1, wherein the processor is further configured to:
receive a plurality of malware samples; and
deduplicate the plurality of malware samples.

### Claim 7 (depends on 1)

The system recited in claim 1, wherein the processor is further configured to:
receive a plurality of malware samples;
deduplicate the plurality of malware samples to output a first malware sample; and
execute the first malware sample in the computing environment.

### Claim 8

A method, comprising:
performing dynamic analysis of a malware sample for program deobfuscation through system API instrumentation in a computing environment, wherein a plurality of pages in memory associated with a process launched by executing the malware sample are identified and monitored for changes after one or more system call events during execution of the malware sample for a predetermined period of time in the computing environment, and wherein an output of the monitored changes in memory after the system call event during execution of the malware sample for a predetermined period of time in the computing environment are reassembled and analyzed to identify a potential malware binary; and
generating an interface that includes a graphical visualization of a plurality of pages in memory associated with a process launched during execution of the malware sample in the computing environment, wherein the graphical visualization of the plurality of pages in memory indicates a subset of the plurality of pages in memory that were modified after a system call event that was intercepted through the system API instrumentation in the computing environment.

### Claim 9 (depends on 8)

The method of claim 8, wherein the computing environment comprises a virtual machine instance.

### Claim 10 (depends on 8)

The method of claim 8, further comprising:
identifying, in the interface, the system call event detected during execution of the malware sample in the computing environment.

### Claim 11 (depends on 8)

The method of claim 8, further comprising:
monitoring changes in memory after a system call event during execution of a malware sample in a computing environment, wherein monitoring changes in memory after the system call event during execution of the malware sample in the computing environment further comprises:
identifying a plurality of pages in memory associated with a process launched by executing the malware sample in the computing environment;
performing an initial snapshot of all of the plurality of pages in memory associated with the process at initial time to and cache the initial snapshot of all of the plurality of pages in memory to provide a baseline for contents in memory while executing the malware sample in the computing environment;
performing another snapshot of all of the plurality of pages in memory associated with the process at subsequent time to after the system call event in response to detecting a return address in a call stack points to a memory address that has changed since the initial snapshot;
reassembling snapshots of the plurality of pages in memory associated with the process after executing the malware sample for a predetermined period of time in the computing environment; and
automatically detecting unpacking of binaries in memory based on a static analysis of the reassembled snapshots of the plurality of pages in memory.

### Claim 12 (depends on 11)

The method of claim 11, wherein the potential malware binary is submitted for dynamic analysis and/or static analysis.

### Claim 13 (depends on 8)

The method of claim 8, further comprising:
receiving a plurality of malware samples; and
deduplicating the plurality of malware samples.

### Claim 14 (depends on 8)

The method of claim 8, further comprising:
receiving a plurality of malware samples;
deduplicating the plurality of malware samples to output a first malware sample; and
executing the first malware sample in the computing environment.

### Claim 15

A computer program product, the computer program product being embodied in a tangible non-transitory computer readable storage medium and comprising computer instructions for:
performing dynamic analysis of a malware sample for program deobfuscation through system API instrumentation in a computing environment, wherein a plurality of pages in memory associated with a process launched by executing the malware sample are identified and monitored for changes after one or more system call events during execution of the malware sample for a predetermined period of time in the computing environment, and wherein an output of the monitored changes in memory after the system call event during execution of the malware sample for a predetermined period of time in the computing environment are reassembled and analyzed to identify a potential malware binary; and
generating an interface that includes a graphical visualization of a plurality of pages in memory associated with a process launched during execution of the malware sample in the computing environment, wherein the graphical visualization of the plurality of pages in memory indicates a subset of the plurality of pages in memory that were modified after a system call event that was intercepted through the system API instrumentation in the computing environment.

### Claim 16 (depends on 15)

The computer program product recited in claim 15, further comprising computer instructions for:
identifying, in the interface, the system call event detected during execution of the malware sample in the computing environment.

### Claim 17 (depends on 15)

The computer program product recited in claim 15, further comprising computer instructions for:
monitoring changes in memory after a system call event during execution of a malware sample in a computing environment, wherein monitoring changes in memory after the system call event during execution of the malware sample in the computing environment further comprises:
identifying a plurality of pages in memory associated with a process launched by executing the malware sample in the computing environment;
performing an initial snapshot of all of the plurality of pages in memory associated with the process at initial time to and cache the initial snapshot of all of the plurality of pages in memory to provide a baseline for contents in memory while executing the malware sample in the computing environment;
performing another snapshot of all of the plurality of pages in memory associated with the process at subsequent time to after the system call event in response to detecting a return address in a call stack points to a memory address that has changed since the initial snapshot;
reassembling snapshots of the plurality of pages in memory associated with the process after executing the malware sample for a predetermined period of time in the computing environment; and
automatically detecting unpacking of binaries in memory based on a static analysis of the reassembled snapshots of the plurality of pages in memory.

### Claim 18 (depends on 17)

The computer program product recited in claim 17, wherein the potential malware binary is submitted for dynamic analysis and/or static analysis.

### Claim 19 (depends on 15)

The computer program product recited in claim 15, further comprising computer instructions for:
receiving a plurality of malware samples; and
deduplicating the plurality of malware samples.

### Claim 20 (depends on 15)

The computer program product recited in claim 15, further comprising computer instructions for:
receiving a plurality of malware samples;
deduplicating the plurality of malware samples to output a first malware sample; and
executing the first malware sample in the computing environment.
