Container Image Virus Scanning Queue Reordering

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Traditional virus scanning of container images in the order of arrival ignores varying levels of risk and leads to unnecessary latency and resource consumption due to repeated loading and scanning of common contents.

Innovation Solution

Reordering container images in the scanning queue based on risk levels and common content to prioritize higher-risk images and position images with shared content adjacent to each other, maintaining common content in memory to avoid repeated loading and scanning.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If container images are scanned in the order of arrival, then the scanning process is simple to implement, but higher-risk images may be scanned later causing extended vulnerability windows

Engineering Contradiction:
Improvevulnerability windowVSAvoidscanning queue management
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

The system performs preliminary risk assessment and content analysis on container images before they are added to the scanning queue. By pre-calculating risk levels and identifying common content characteristics, the system can then optimize the scanning order without adding complexity during the actual scanning process. This preliminary preparation enables priority-based scanning that reduces vulnerability windows while maintaining manageable queue operations.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The scanning queue is made dynamic by continuously reordering based on real-time risk assessments and content matching results. Instead of a static first-come-first-served approach, the system dynamically adjusts the scanning sequence to prioritize higher-risk images and those with unique content, thereby reducing overall vulnerability exposure while adapting to varying image characteristics.

Inventive Principle:
Principle #15Dynamics

2Productivity

If container images are scanned sequentially without optimization, then the implementation is straightforward, but repeated loading and scanning of common contents causes unnecessary latency and resource consumption

Engineering Contradiction:
Improvescanning efficiencyVSAvoidscanning latency
Core Design Contradiction:
ProductivityVSLoss of time

Solution Approach 1:

The system merges the scanning operations for container images that share common content by identifying and grouping images with identical or similar layers. When multiple images contain the same base image or shared libraries, the system performs a single scan of the common content and reuses the results across all matching images, thereby eliminating redundant scanning operations and significantly reducing total scanning time and resource consumption.

Inventive Principle:
Principle #5Merging (Combining)

Solution Approach 2:

The system recovers and caches the scanning results of common content from previously scanned images. Instead of discarding the scanning results after use, the system stores them in a cache or database and retrieves them when the same content appears in subsequent images, thereby avoiding repeated scanning of identical content and reducing both latency and computational overhead.

Inventive Principle:
Principle #34Discarding and recovering

3Reliability

If container images with common content are scanned separately, then each image receives individual attention, but the same content is repeatedly loaded and deleted from memory consuming valuable system resources

Engineering Contradiction:
Improvevirus detection accuracyVSAvoidmemory resource usage
Core Design Contradiction:
ReliabilityVSUse of energy by moving object

Solution Approach 1:

The system merges the memory management operations for common content across multiple container images by maintaining a single instance of the shared content in memory. When multiple images reference the same base image or library, the system loads the common content once and maintains it in memory for all subsequent scans, thereby eliminating repeated loading and deletion cycles and significantly reducing memory allocation overhead while preserving detection accuracy.

Inventive Principle:
Principle #5Merging (Combining)

Solution Approach 2:

The system creates a universal cache layer that stores scanned content results and makes them available for multiple images simultaneously. This universal cache serves as a shared resource that can be accessed by any image scanning operation, allowing the same memory space to serve multiple scanning functions and thereby reducing overall memory consumption while maintaining the ability to detect viruses in all images.

Inventive Principle:
Principle #6Universality (Multi-functionality)

Data Source

PatentUS11481491B2Managing virus scanning of container images
Publication Date: 2022.10.25 RED HAT LLC
  • US11481491B2 patent drawing
  • US11481491B2 patent drawing
  • US11481491B2 patent drawing

AI summary

Virus scanning of container images can be managed. For example, container images can be received in a sequential order. The container images can then be analyzed to determine the contents of the container images. The container images can be arranged in a virus-scanning queue in an order that is different from the sequential order in which the container images were received based on the contents of the container images. The container images can then be scanned for viruses in the order in which the container images are arranged in the virus-scanning queue.