Container Image Verification Flow for Malicious Code Screening
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing technologies fail to effectively analyze and process malicious code for container images, particularly in verifying integrity and security policies, leading to potential damage to servers and users.
Innovation Solution
A method involving copying a container image to a temporary directory, performing integrity verification, image analysis, and policy analysis, and determining abnormalities based on the results to allow or deny download requests.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Reliability
If container images are directly downloaded from the database without copying to temporary directory, then download speed is improved, but security verification and integrity checking cannot be performed
Solution Approach 1:
The system performs preliminary actions by copying the container image to a temporary directory before downloading, and conducts integrity verification and security analysis on this copy first. This preliminary verification ensures that only secure images are allowed to be downloaded, preventing malicious code execution while maintaining efficient download processes for verified images.
Solution Approach 2:
The temporary directory serves as an intermediary between the database and the user. It holds a copy of the container image that can be verified for integrity and security before being made available for download. This intermediary mechanism allows the system to verify security without blocking the entire download process, as verified images can be served directly from the temporary directory.
2Reliability
If integrity verification and security analysis are performed on every container image, then security is improved, but processing time and system complexity increase
Solution Approach 1:
The system segments the verification process into distinct phases: copying to temporary directory, integrity verification, image analysis, and policy analysis. Each phase can be independently configured and executed, allowing the system to perform comprehensive security checks without overwhelming complexity. The segmentation enables modular processing that can be optimized based on specific security requirements.
Solution Approach 2:
By creating a copy of the container image in a temporary directory, the system enables verification processes to work on the copy rather than the original. This copying mechanism allows multiple verification operations (integrity checking, malware scanning, policy validation) to be performed in parallel or sequence without affecting the original image or the database, reducing processing complexity and enabling flexible verification strategies.
3Measurement precision
If comprehensive analysis processes are implemented for container images, then detection accuracy of malicious code is improved, but processing speed decreases
Solution Approach 1:
The system performs preliminary copying and integrity verification before conducting comprehensive analysis. This preliminary action ensures that only images passing basic integrity checks undergo full analysis, reducing the overall processing load while maintaining high detection accuracy for malicious codes. The preliminary verification acts as a filter that prevents obviously safe images from undergoing time-consuming comprehensive analysis.
Solution Approach 2:
The analysis process is made dynamic by adjusting the depth and scope of analysis based on the specific container image and its characteristics. The system can perform comprehensive analysis when needed (e.g., for suspicious images or first-time downloads) and use faster verification methods for known safe images, optimizing the balance between detection accuracy and processing speed in real-time.
Data Source
AI summary
The present invention relates to a method for analyzing and processing a malicious code for a container image, includes: a container image storage step of storing a container image in a temporary directory by copying the container image to the database; a verification analysis process starting step of starting an integrity verification process for the container image, and starting an image analysis process and a policy analysis process; an abnormality determination step of determining an abnormality for the container image based on first analysis result information and second analysis result information when the first analysis result information and the second analysis result information have been acquired; and a download allowance step of allowing the user account to download the container image by allowing a download of the container image, when it is determined that the container image is normal by performing a function of the abnormality determination step.


