# US 2016/0261623 A1 · Detecting Malware In Content Items

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

- Number: US 2016/0261623 A1
- Document ID: US20160261623A1
- Status: Published application
- Kind: A1
- Application number: 15/155,861
- Filed: 2016-05-16
- Published: 2016-09-08
- Earliest claimed: 2009-05-26
- Assignees: Amazon Technologies, Inc.
- Applicants: Amazon Technologies, Inc.
- Inventors: Jon A. McClintock; Eric J. Martin; Karl A. McCabe; Thibault Candebat; Adam J. Cecchetti; David Erdmann
- Web page: https://patentgrep.com/patent/US20160261623A1

## CPC

- H04L 63/1425: {Traffic logging, e.g. anomaly detection}
- G06F 21/00: Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F 21/566: {Dynamic detection, i.e. detection performed at run-time, e.g. emulation, suspicious activities}
- H04L 63/1416: {Event detection, e.g. attack signature detection}
- 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

Disclosed are various systems, methods, and other embodiments directed to detection of malware in content items. To detect the malware, for example, one or more content items are identified in association with the rendering of a network page in a simulated environment. A plurality of tests are applied to the one or more content items to detect an existence of malware associated with the content items.

## Claims

### Claim at position 1

1-20. (canceled)

### Claim 21

A non-transitory computer-readable medium embodying a program executable in at least one computing device, the program comprising program code that, when executed, causes the at least one computing device to:
render a first test network page in a browser application executing in a virtual machine, wherein the first test network page comprises a content item included in a container;
obtain a first document object model from the first test network page as rendered from the browser application;
render a second test network page in the browser application, wherein the second test network page comprises the content item not included in the container;
obtain a second document object model from the second test network page as rendered from the browser application;
identify that a rendering of the content item causes a change to the first test network page outside of the container by comparing the first document object model to the second document object model; and
in response to the change being detected, flag the content item as comprising malware.

### Claim 22 (depends on 21)

The non-transitory computer-readable medium of claim 21, wherein the program further comprises program code that, when executed, causes the at least one computing device to:
monitor activity of the browser application during a rendering of the first test network page; and
identify an unauthorized action that occurred during the rendering of the first test network page.

### Claim 23 (depends on 22)

The non-transitory computer-readable medium of claim 22, wherein the unauthorized action comprises at least one of: a change of content of the first test network page, a call to a component of the virtual machine not necessary to render the content item, or a call to a component of the browser application not necessary to render the content item.

### Claim 24 (depends on 21)

The non-transitory computer-readable medium of claim 21, wherein the program further comprises program code that, when executed, causes the at least one computing device to apply a transformation to the content item that results in a modification of at least a portion of the content item in response to the content item being flagged as comprising malware.

### Claim 25 (depends on 21)

The non-transitory computer-readable medium of claim 21, wherein the program further comprises program code that, when executed, causes the at least one computing device to obtain at least one cookie from the browser application that may be subject to alteration due to the rendering of the content item.

### Claim 26

A system, comprising:
at least one computing device; and
program instructions executable by the at least one computing device that, when executed, cause the at least one computing device to:
receive a request to analyze a network page for malware, wherein the request comprises a uniform resource identifier;
access a content item to be incorporated in the network page from a location associated with the uniform resource identifier;
cause a rendering of the content item in a simulated environment; and
detect an existence of malware associated with the content item by applying at least one test to the content item as rendered in the simulated environment.

### Claim 27 (depends on 26)

The system of claim 26, wherein the request to analyze the network page for malware is generated by a network site application to detect an existence of malware in an advertisement provided over a network from a third-party provider.

### Claim 28 (depends on 27)

The system of claim 27, wherein the request is generated by the network site application before the network site application incorporates the content item in the network page to be served up to a client device.

### Claim 29 (depends on 26)

The system of claim 26, further comprising program instructions that, when executed, cause the at least one computing device to generate a plurality of different versions of a test network page for rendering in a browser application executed in the simulated environment, wherein at least one of the plurality of different versions of the test network page comprise the content item.

### Claim 30 (depends on 29)

The system of claim 29, further comprising program instructions that, when executed, cause the at least one computing device to detect an operation made by the content item that attempts to access data within the browser application or the simulated environment that is unrelated to the content item.

### Claim 31 (depends on 26)

The system of claim 26, further comprising program instructions that, when executed, cause the at least one computing device to maintain a network proxy through which incoming and outgoing network traffic is routed in association with the rendering of the content item.

### Claim 32

A computer-implemented method, comprising:
identifying, via at least one or more computing devices comprising at least one hardware processor, a request to analyze a content item associated with a rendering of a network page for malware;
accessing, via at least one of the one or more computing devices, the content item through a network proxy;
causing, via at least one of the one or more computing devices, a rendering of the content item in an environment of a virtual machine;
applying, via at least one of the one or more computing devices, at least one test to the content item as rendered in the virtual machine to detect malware.

### Claim 33 (depends on 32)

The computer-implemented method of claim 32, wherein causing the rendering of the content item in the environment of the virtual machine further comprises rendering, via at least one of the one or more computing devices, a first test network page in the environment of the virtual machine that comprises the content item and a second test network page in the environment that does not comprise the content item.

### Claim 34 (depends on 33)

The computer-implemented method of claim 33, wherein applying the at least one test to the content item further comprises:
comparing, via at least one of the one or more computing devices, a first document object model of the first test network page to a second document object model of the second test network page; and
detecting, via at least one of the one or more computing devices, a change between the first document object model and the second document object model.

### Claim 35 (depends on 34)

The computer-implemented method of claim 34, further comprising flagging, via at least one of the one or more computing devices, the content item as comprising malware in response to the change being detected.

### Claim 36 (depends on 35)

The computer-implemented method of claim 35, further comprising generating, via at least one of the one or more computing devices, a score based at least on a severity of the change as detected.

### Claim 37 (depends on 33)

The computer-implemented method of claim 33, wherein applying the at least one test to the content item further comprises:
comparing, via at least one of the one or more computing devices, a first cookie generated in association with the first test network page to a second cookie generated in association with the second test network page; and
detecting, via at least one of the one or more computing devices, a change between the first cookie and the second cookie.

### Claim 38 (depends on 37)

The computer-implemented method of claim 37, further comprising flagging, via at least one of the one or more computing devices, the content item as comprising malware in response to the change being detected.

### Claim 39 (depends on 38)

The computer-implemented method of claim 38, further comprising generating, via at least one of the one or more computing devices, a score based at least on a severity of the change as detected.

### Claim 40 (depends on 32)

The computer-implemented method of claim 32, further comprising:
identifying, via at least one of the one or more computing devices, an executable portion of the content item; and
causing, by via at least one of the one or more computing devices, an execution of the executable portion of the content item in the environment of the virtual machine.
