Check ID:
Provider: AWS
Service:
Severity: MEDIUM
Categories:
Resource type:
ecr_repositories_scan_vulnerabilities_in_latest_imageProvider: AWS
Service:
ecrSeverity: MEDIUM
Categories:
container-securityResource type:
AwsEcrRepositoryWhat this check verifies
Amazon ECR repositories are assessed on the most recent pushed image to confirm a vulnerability scan exists, completed successfully, and that no results meet or exceed the configured minimum severity (e.g.,CRITICAL, HIGH, MEDIUM).
Risk
Unscanned or high-severity findings in container images expose workloads to exploitation of known CVEs. Attackers can gain code execution, exfiltrate data, alter services, or disrupt operations, enabling lateral movement and supply-chain compromise-impacting confidentiality, integrity, and availability.Recommendation
Enable continuous scanning for repositories and enforce deployment gates at your policy threshold (e.g.,MEDIUM+).
Rebuild images with patched components and updated bases, keep images minimal, and apply least privilege. Use image signing and CI/CD checks so only scanned, compliant images can run.
Remediation
- Terraform
- Native IaC
- Dashboard steps
References
- https://www.geeksforgeeks.org/devops/how-to-manage-image-security-and-vulnerabilities-in-ecr/
- https://aws.amazon.com/blogs/aws/amazon-inspector-enhances-container-security-by-mapping-amazon-ecr-images-to-running-containers/
- https://docs.aws.amazon.com/inspector/latest/user/scanning-ecr.html
- https://docs.aws.amazon.com/AmazonECR/latest/userguide/image-scanning-enhanced.html
- https://docs.aws.amazon.com/AmazonECR/latest/userguide/image-scanning.html
- https://docs.aws.amazon.com/AmazonECR/latest/userguide/image-scanning-basic.html
Where this check fires
This check runs on every scheduled scan against your AWS account. Findings appear at Cloud Security → Findings filterable byCheck ID = ecr_repositories_scan_vulnerabilities_in_latest_image. To re-evaluate after a fix, hit Run now on the account’s schedule under Cloud Security → Schedules — the next scan re-checks this control and marks the finding fixed or keeps it persistent.
← Back to AWS checks