Enable automated scanning of Amazon ECR container images to identify and address security vulnerabilities promptly. Scanning Amazon ECR container images ensures early detection of security vulnerabilities, helping to protect your applications from potential threats and maintain compliance.
This rule can help you work with the AWS Well-Architected Framework.
This rule resolution is part of the Conformity Security & Compliance tool for AWS.
The security of your container workloads in Amazon ECR is crucial. Image scanning is as essential step in this process, allowing you to detect vulnerabilities in both Operating Systems and programming languages without needing to set up your own scanning infrastructure or purchase third-party software. For repositories, Amazon ECR offers the Scan on Push feature, which automatically scans your container images after they are pushed to the repository. For registries, Amazon ECR provides two scanning levels: basic and enhanced. The basic level, enabled by default, uses the Common Vulnerabilities and Exposures (CVEs) database from the Clair project to detect vulnerabilities and generate a list of findings for remediation. The enhanced level, which must be manually enabled, uses Amazon Inspector to offer automated, continuous scanning. This feature also sends notifications via EventBridge when new vulnerabilities are discovered. To maximize your security posture, we strongly recommend enabling automated scanning for Amazon ECR container images. By doing so, you'll ensure that any vulnerabilities are detected and addressed before they can impact your applications.
Audit
To determine if automated scanning is enabled for your Amazon ECR container images, perform the following operations:
Remediation / Resolution
To enable automated, continuous vulnerability scanning for your Amazon ECR container images, perform the following operations:
References
- AWS Documentation
- Amazon Elastic Container Registry FAQs
- Amazon ECR private registry
- Amazon ECR private repositories
- Filters to choose which repositories are scanned in Amazon ECR
- Scan images for OS and programming language package vulnerabilities in Amazon ECR
- Configuring enhanced scanning for images in Amazon ECR
- AWS Command Line Interface (CLI) Documentation
- describe-repositories
- put-image-scanning-configuration
- get-registry-scanning-configuration
- put-registry-scanning-configuration