# US 2021/0084054 A1 · Simulating user interactions for malware analysis

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

- Number: US 2021/0084054 A1
- Document ID: US20210084054A1
- Status: Published application
- Kind: A1
- Application number: 16/570,851
- Filed: 2019-09-13
- Published: 2021-03-18
- Earliest claimed: 2019-09-13
- Assignees: Palo Alto Networks, Inc.
- Applicants: Palo Alto Networks, Inc.
- Inventors: Brandon R. Young; Daniel Raygoza; Sebas Sujeen Reymond Johnson; Abhiroop Dabral
- Web page: https://patentgrep.com/patent/US20210084054A1

## CPC

- H04L 63/145: {the attack involving the propagation of malware through the network, e.g. viruses, trojans or worms}
- G06F 9/45558: {Hypervisor-specific management and integration aspects}
- H04L 63/1416: {Event detection, e.g. attack signature detection}
- G06F 2009/45587: {Isolation or security of virtual machine instances}
- H04L 63/0254: {Stateful filtering}
- 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

Simulating user interactions during dynamic analysis of a sample is disclosed. A sample is received for analysis. Prior to execution of the sample, a baseline screenshot of a desktop is generated by accessing frame buffer data stored on a graphics card. The sample is caused to execute, at least in part using one or more hypervisor instructions to move a pointing device to an icon associated with the sample. A current screenshot of the desktop is generated by accessing current frame buffer data stored on the graphics card.

## Claims

### Claim 1

A system, comprising:
a processor configured to:
receive a sample for analysis;
generate, prior to execution of the sample, a baseline screenshot of a desktop by accessing frame buffer data stored on a graphics card;
cause the sample to execute, at least in part by using one or more hypervisor instructions to move a pointing device to an icon associated with the sample; and
generate a current screenshot of the desktop by accessing current frame buffer data stored on the graphics card; and
a memory coupled to the processor and configured to provide the processor with instructions.

### Claim 2 (depends on 1)

The system of claim 1 wherein the processor is further configured to compare the current screenshot to the baseline screenshot.

### Claim 3 (depends on 2)

The system of claim 2 wherein comparing the current screenshot to the baseline screenshot includes normalizing the screenshots.

### Claim 4 (depends on 2)

The system of claim 2 wherein comparing the current screenshot to the baseline screenshot includes determining a structural similarity index.

### Claim 5 (depends on 2)

The system of claim 2 wherein the processor is further configured to take an action in response to a comparison result.

### Claim 6 (depends on 5)

The system of claim 5 wherein the action includes performing optical character recognition on the current screenshot.

### Claim 7 (depends on 6)

The system of claim 6 wherein the processor is further configured to take an action based on a result of the optical character recognition.

### Claim 8 (depends on 5)

The system of claim 5 wherein the action includes moving the pointing device to a pixel location identified as being within a region of the desktop whose content changed between the baseline screenshot and the current screenshot.

### Claim 9 (depends on 1)

The system of claim 1 wherein the processor is further configured to determine whether any predetermined artifacts are present in the baseline screenshot.

### Claim 10 (depends on 9)

The system of claim 9 wherein the processor is configured to determine whether the predetermined artifacts are present at least in part by performing image recognition on the baseline screenshot.

### Claim 11 (depends on 9)

The system of claim 9 wherein the processor is configured to return coordinates of any of the predetermined artifacts determined to be present in the baseline screenshot.

### Claim 12 (depends on 1)

The system of claim 1 wherein the processor is further configured to generate a subsequent screenshot of the desktop and compare the subsequent screenshot to at least one of the baseline screenshot and the current screenshot.

### Claim 13

A method, comprising:
receiving a sample for analysis;
generating, prior to execution of the sample, a baseline screenshot of a desktop by accessing frame buffer data stored on a graphics card;
causing the sample to execute, at least in part by using one or more hypervisor instructions to move a pointing device to an icon associated with the sample; and
generating a current screenshot of the desktop by accessing current frame buffer data stored on the graphics card.

### Claim 14 (depends on 13)

The method of claim 13 further comprising comparing the current screenshot to the baseline screenshot.

### Claim 15 (depends on 14)

The method of claim 14 wherein comparing the current screenshot to the baseline screenshot includes determining a structural similarity index.

### Claim 16 (depends on 14)

The method of claim 14 further comprising taking an action in response to a comparison result.

### Claim 17 (depends on 15)

The method of claim 15 wherein the action includes moving the pointing device to a pixel location identified as being within a region of the desktop whose content changed between the baseline screenshot and the current screenshot.

### Claim 18 (depends on 13)

The method of claim 13 further comprising determining whether any predetermined artifacts are present in the baseline screenshot.

### Claim 19 (depends on 18)

The method of claim 18 further comprising returning coordinates of any of the predetermined artifacts determined to be present in the baseline screenshot.

### Claim 20

A computer program product embodied in a tangible computer readable storage medium and comprising computer instructions for:
receiving a sample for analysis;
generating, prior to execution of the sample, a baseline screenshot of a desktop by accessing frame buffer data stored on a graphics card;
causing the sample to execute, at least in part by using one or more hypervisor instructions to move a pointing device to an icon associated with the sample; and
generating a current screenshot of the desktop by accessing current frame buffer data stored on the graphics card.
