Back to controls

Ensure ECR repositories use immutable tags and image scanning

Container images should be protected from tag overwrite and scanned for vulnerabilities.

Category

Controls

Medium

Applies to

AWS

Coverage

null controls, 1 queries

Asset types

1 covered

Overview

Container images should be protected from tag overwrite and scanned for vulnerabilities.

What this control should detect

ECR repositories that do not enforce image tag immutability and scan-on-push.

Remediation guidance

AWS Remediation

Service-Wide (Recommended)

Enforce ECR baseline settings in IaC modules and account guardrails.

Console (Asset-Level)

  1. Open ECR repository settings.
  2. Set tag mutability to Immutable.
  3. Enable image scanning on push.

AWS CLI (Asset-Level)

aws ecr put-image-tag-mutability --repository-name <repository-name> --image-tag-mutability IMMUTABLE
aws ecr put-image-scanning-configuration --repository-name <repository-name> --image-scanning-configuration scanOnPush=true

References

  • https://docs.aws.amazon.com/AmazonECR/latest/userguide/image-tag-mutability.html
  • https://docs.aws.amazon.com/AmazonECR/latest/userguide/image-scanning.html

Query logic

These are the stored checks tied to this control.

ECR repositories without immutability and scan-on-push

Connectors

AWS

Covered asset types

ECRRepository

Expected check: eq []

{ ecrRepositories(where: { OR: [ { imageScanningConfigurationScanOnPush: false }, { imageTagMutability_NOT: "IMMUTABLE" } ] }) { ...AssetFragment } }
Cyscale Logo
Cyscale is an agentless cloud-native application protection platform (CNAPP) that automates the contextual analysis of cloud misconfigurations, vulnerabilities, access, and data, to provide an accurate and actionable assessment of risk.

Stay connected

Receive new blog posts and product updates from Cyscale

By clicking Subscribe, I agree to Cyscale’s Privacy Policy


© 2026 Cyscale Limited

LinkedIn icon
Twitter icon
Facebook icon
crunch base icon
angel icon