Container Base Image Vulnerability Detection via Layer Extraction

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing security solutions are unable to detect vulnerabilities in software container images, particularly base images, which can be maliciously infected with malware, leading to potential execution of malicious code during runtime, as they cannot process the specific structure of images and lack defense mechanisms for registries during continuous integration.

Innovation Solution

A method and system for detecting vulnerabilities in base images of software containers, involving a host device with a processing system and memory that scans image layers for malware and vulnerabilities prior to runtime, using a detector container to reformat and analyze the image structure without execution, and generating detection events for identified threats, with unitary signatures optimizing the scanning process.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If existing security solutions are used to scan base images, then security coverage is improved, but the solutions fail to detect vulnerabilities because they cannot process the specific structure of container images

Engineering Contradiction:
Improvesecurity detection capabilityVSAvoidcompatibility with image structure
Core Design Contradiction:
ReliabilityVSAdaptability or versatility

Solution Approach 1:

A detector container is introduced as an intermediary component that bridges the gap between existing security solutions and container image structures. The detector container receives the base image, extracts its layers, and presents them in a format that traditional security scanners can process, thereby enabling vulnerability detection without requiring the scanner to understand container image formats

Inventive Principle:
Principle #24Intermediary (Mediator)

Solution Approach 2:

The base image layers are copied and extracted into a temporary workspace within the detector container. This creates a working copy of the image structure that can be analyzed without modifying the original image, allowing security scans to proceed on the copied layers while preserving the integrity of the source image

Inventive Principle:
Principle #26Copying

2Reliability

If base images are scanned for vulnerabilities before runtime, then security is improved, but the scanning process adds time to the continuous integration pipeline

Engineering Contradiction:
Improvesecurity assuranceVSAvoidcontinuous integration duration
Core Design Contradiction:
ReliabilityVSLoss of time

Solution Approach 1:

Vulnerability scanning is performed as a preliminary action during the continuous integration process, before the base image is used to build containers. By integrating the scan early in the pipeline and using the detector container to efficiently extract and analyze only the necessary image layers, the security check is completed with minimal impact on overall build time

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The base image is segmented into multiple layers, and the detector container extracts and scans only the relevant layers that may contain vulnerabilities. This selective scanning approach, rather than scanning the entire image monolithically, reduces the time required while maintaining comprehensive security coverage

Inventive Principle:
Principle #1Segmentation

3Object-affected harmful factors

If malware detection is performed on base images, then the risk of malicious code execution is reduced, but false positives may block legitimate images

Engineering Contradiction:
Improvemalware execution riskVSAvoiddetection accuracy
Core Design Contradiction:
Object-affected harmful factorsVSMeasurement precision

Solution Approach 1:

The security scanning system incorporates feedback mechanisms where detection results are analyzed and validated. When potential malware is detected in base image layers, the system cross-references findings with known vulnerability databases and analyzes the context of the detected code to distinguish between actual threats and false positives, thereby improving detection precision

Inventive Principle:
Principle #23Feedback

Data Source

PatentUS10719612B2Static detection of vulnerabilities in base images of software containers
Publication Date: 2020.07.21 PALO ALTO NETWORKS INC
  • US10719612B2 patent drawing
  • US10719612B2 patent drawing
  • US10719612B2 patent drawing

AI summary

A system and method for detecting vulnerabilities in be images of software containers are disclosed. The method includes receiving an event indicating that at least one base image should be scanned for vulnerabilities, each base image including at least one image layer, wherein the event designates at least one source of the at least one base image, wherein the least one base image includes resources utilized to execute at least a software container; extracting contents of each image layer of each base image; scanning the extracting contents to detect at least one vulnerability; and generating a detection event, when the at least one vulnerability is detected.