How does ECR image scanning help identify security vulnerabilities within container images before they are deployed?
Short answer
ECR image scanning automatically analyzes the operating system packages and, with enhanced scanning enabled, application dependencies within a container image against known vulnerability databases, flagging any identified vulnerabilities along with their severity level, which…
Advertisement
AModel answer
ECR image scanning automatically analyzes the operating system packages and, with enhanced scanning enabled, application dependencies within a container image against known vulnerability databases, flagging any identified vulnerabilities along with their severity level, which can be configured to run automatically every time a new image is pushed, giving teams visibility into security risks before a vulnerable image is ever deployed to production.
aws ecr start-image-scan --repository-name my-app --image-id imageTag=latestReal-world example
A security conscious development team enables automatic scanning on push for their ECR repositories, catching a critical vulnerability in a base image dependency before that image is ever deployed to their production ECS cluster.
Likely follow-ups
- What is the difference between basic scanning and enhanced scanning in ECR?
- How do you integrate ECR scan results into a CI/CD pipeline to block deployment of vulnerable images?
Related topics