Check provider logo

ECR repository has image tag immutability enabled

ecr_repositories_tag_immutability

Severitymedium
Serviceecr
by Prowler

Amazon ECR repositories are assessed for image tag immutability. Repositories permitting tag updates (MUTABLE) are identified; those enforcing immutable tags (such as IMMUTABLE) are recognized.

Risk

Mutable tags allow replacing the image behind a trusted tag, undermining release integrity. This enables supply-chain injection, unintended rollouts, and backdoored deployments, harming availability. Malicious images can exfiltrate data, impacting confidentiality.

Run this check with Prowler CLI

prowler aws --checks ecr_repositories_tag_immutability

Recommendation

Enable tag immutability so tags map to a single artifact. Use versioned tags per build, block retagging in CI/CD, and apply least privilege for push actions. Layer image signing and admission controls to run only trusted images. If exceptions are needed, keep them narrow and monitored.

Remediation

CLI

aws ecr put-image-tag-mutability --repository-name <repository-name> --image-tag-mutability IMMUTABLE

Native IaC
Terraform
Other
  1. Open the Amazon ECR console
  2. Go to Repositories (Private) and select the repository
  3. Click Actions > Edit
  4. Set Image tag immutability to Immutable
  5. Click Save

Source Code

Resource Type

AwsEcrRepository

References