# US 9,355,248 B1 · Container and image scanning for a platform-as-a-service system

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

- Number: US 9,355,248 B1
- Document ID: US9355248B1
- Status: Granted
- Kind: B1
- Application number: 14/605,019
- Filed: 2015-01-26
- Granted: 2016-05-31
- Earliest claimed: 2015-01-26
- Assignees: Red Hat, Inc.
- Applicants: Red Hat, Inc.
- Inventors: Thomas Wiest; Joel Smith
- Web page: https://patentgrep.com/patent/US9355248B1

## CPC

- G06F 21/562: {Static detection}
- G06F 9/455: Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F 9/45558: {Hypervisor-specific management and integration aspects}
- G06F 21/55: Detecting local intrusion or implementing counter-measures
- H04L 63/1441: {Countermeasures against malicious traffic (countermeasures against attacks on cryptographic mechanisms H04L9/002)}
- G06F 8/60: Software deployment
- G06F 2009/45562: {Creating, deleting, cloning virtual machine instances}
- G06F 2009/45575: {Starting, stopping, suspending or resuming virtual machine instances}
- 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

Implementations provide for container and image scanning for a Platform-as-a-Service (PaaS) system. A method of the disclosure includes initiating, by a processing device executing a node of a multi-tenant Platform-as-a-Service (PaaS) system, a scan process at the node to scan containers executing on the node, the containers executing functionality of multiple applications that are owned by multiple owners. The method further includes, for each container of the containers, scanning, by the processing device in accordance with the scan process, a top layer of application image instance used to launch the container in the node without scanning remaining layers of the application image instance, and terminating, by the processing device, the scan process for the container when the scanning generates a clean result.

## Claims

### Claim 1

A method, comprising:
initiating, by a processing device executing a node of a multi-tenant Platform-as-a-Service (PaaS) system, a scan process at the node to scan containers executing on the node, the containers executing functionality of multiple applications that are owned by multiple owners;
for each container of the containers:
scanning, by the processing device in accordance with the scan process, a top layer of application image instance used to launch the container in the node without scanning remaining layers of the application image instance; and
terminating, by the processing device, the scan process for the container when the scanning generates a clean result.

### Claim 2 (depends on 1)

The method of claim 1, wherein the application instance image to provide the functionality for an application of the multiple applications on the node.

### Claim 3 (depends on 1)

The method of claim 1, wherein the scanning to detect patterns defined by a definition file of the scan process.

### Claim 4 (depends on 3)

The method of claim 3, wherein the clean result comprises no patterns detected in the top layer of the application image instance.

### Claim 5 (depends on 3)

The method of claim 3, further comprising, for each container of the containers, when the scanning detects one of the patterns in the top layer of the application image instance, reporting a failure of the scan process to a monitoring component of the multi-tenant PaaS system in order for the monitoring component to initiate a takedown process for the container that failed the scan process.

### Claim 6 (depends on 1)

The method of claim 1, further comprising performing the scan process on an entirety of an application image of the multi-tenant PaaS system when the application image is built at a build system of the multi-tenant PaaS system.

### Claim 7 (depends on 6)

The method of claim 6, wherein information pertaining to the scan process on the entirety of the application image is reported to and maintained by a central scan data store of the multi-tenant PaaS system, and wherein the information comprises at least an identifier comprising a checksum of the scanned application image, an identification of the scan process, a version of a definition file used by the scan process, and a result of the scan process on the entirety of the application image.

### Claim 8 (depends on 1)

The method of claim 1, further comprising performing the scan process on each application image stored in an image repository of the multi-tenant PaaS system when a new definition file for the scan process is received at the image repository.

### Claim 9 (depends on 8)

The method of claim 8, further comprising when the scan process on any of the application images in the image repository results does not pass, reporting a failure of the scan process on the application image to a monitoring component of the multi-tenant PaaS system in order for the monitoring component to locate containers executing any instances of the application and initiate a takedown process for the located containers.

### Claim 10

A system, comprising:
a memory;
a processing device communicably coupled to the memory, the processing device to:
execute a node of a multi-tenant Platform-as-a-Service (PaaS) system;
initiate a scan process at the node to scan containers executing on the node, the containers executing functionality of multiple applications that are owned by multiple owners;
for each container of the containers:
scan, in accordance with the scan process, a top layer of application image instance used to launch the container in the node without scanning remaining layers of the application image instance; and
terminate the scan process for the container when the scanning generates a clean result.

### Claim 11 (depends on 10)

The system of claim 10, wherein the application instance image to provide the functionality for an application of the multiple applications on the node.

### Claim 12 (depends on 10)

The system of claim 10, wherein the scanning to detect patterns defined by a definition file of the scan process, and wherein the clean result comprises no patterns detected in the top layer of the application image instance.

### Claim 13 (depends on 12)

The system of claim 12, wherein the processing device further to, for each container of the containers, when the scanning detects one of the patterns in the top layer of the application image instance, report a failure of the scan process to a monitoring component of the multi-tenant PaaS system in order for the monitoring component to initiate a takedown process for the container that failed the scan process.

### Claim 14 (depends on 10)

The system of claim 10, wherein the processing device further to perform the scan process on an entirety of an application image of the multi-tenant PaaS system when the application image is built at a build system of the multi-tenant PaaS system.

### Claim 15 (depends on 10)

The system of claim 10, wherein the processing device further to perform the scan process on each application image stored in an image repository of the multi-tenant PaaS system when a new definition file for the scan process is received at the image repository.

### Claim 16

A non-transitory machine-readable storage medium including instructions that, when accessed by a processing device, cause the processing device to:
initiate, by the processing device executing a node of a multi-tenant Platform-as-a-Service (PaaS) system, a scan process at the node to scan containers executing on the node, the containers executing functionality of multiple applications that are owned by multiple owners;
for each container of the containers:
scan, by the processing device in accordance with the scan process, a top layer of application image instance used to launch the container in the node without scanning remaining layers of the application image instance; and
terminate, by the processing device, the scan process for the container when the scanning generates a clean result.

### Claim 17 (depends on 16)

The non-transitory machine-readable storage medium of claim 16, wherein the scanning to detect patterns defined by a definition file of the scan process, and wherein the clean result comprises no patterns detected in the top layer of the application image instance.

### Claim 18 (depends on 17)

The non-transitory machine-readable storage medium of claim 17, wherein the processing device further to, for each container of the containers, when the scanning detects one of the patterns in the top layer of the application image instance, report a failure of the scan process to a monitoring component of the multi-tenant PaaS system in order for the monitoring component to initiate a takedown process for the container that failed the scan process.

### Claim 19 (depends on 16)

The non-transitory machine-readable storage medium of claim 16, wherein the processing device further to perform the scan process on an entirety of an application image of the multi-tenant PaaS system when the application image is built at a build system of the multi-tenant PaaS system.

### Claim 20 (depends on 16)

The non-transitory machine-readable storage medium of claim 16, wherein the processing device further to perform the scan process on each application image stored in an image repository of the multi-tenant PaaS system when a new definition file for the scan process is received at the image repository.
