{
  "Provider": "aws",
  "CheckID": "ecr_repositories_scan_images_on_push_enabled",
  "CheckTitle": "Check if ECR image scan on push is enabled",
  "CheckType": [
    "Identify",
    "Vulnerability, patch, and version management"
  ],
  "ServiceName": "ecr",
  "SubServiceName": "",
  "ResourceIdTemplate": "arn:partition:service:region:account-id:resource-id",
  "Severity": "medium",
  "ResourceType": "AwsEcrRepository",
  "Description": "Check if ECR image scan on push is enabled",
  "Risk": "Amazon ECR image scanning helps in identifying software vulnerabilities in your container images. Amazon ECR uses the Common Vulnerabilities and Exposures (CVEs) database from the open-source Clair project and provides a list of scan findings. ",
  "RelatedUrl": "",
  "Remediation": {
    "Code": {
      "CLI": "aws ecr create-repository --repository-name <repo_name> --image-scanning-configuration scanOnPush=true--region <region_name>",
      "NativeIaC": "https://docs.bridgecrew.io/docs/general_8#cli-command",
      "Other": "",
      "Terraform": "https://docs.bridgecrew.io/docs/general_8#fix---buildtime"
    },
    "Recommendation": {
      "Text": "Enable ECR image scanning and review the scan findings for information about the security of the container images that are being deployed.",
      "Url": "https://docs.aws.amazon.com/AmazonECR/latest/userguide/image-scanning.html"
    }
  },
  "Categories": [],
  "Tags": {
    "Tag1Key": "value",
    "Tag2Key": "value"
  },
  "DependsOn": [],
  "RelatedTo": [],
  "Notes": ""
}
