β Repository β π Compliance Engine β π CloudAware β π AWS β π ECR
π‘οΈ AWS ECR Repository Manual Scanning is enabledπ’
- Contextual name: π‘οΈ Repository Manual Scanning is enabledπ’
- ID:
/ce/ca/aws/ecr/disable-repository-manual-scanning
- Tags:
- π’ Policy with categories
- π’ Policy with type
- π’ Production policy
- Policy Type:
COMPLIANCE_POLICY
- Policy Categories:
SECURITY
Logicβ
- π§ prod.logic.yamlπ’
Similar Policiesβ
- AWS Security Hub: [ECR.1] ECR private repositories should have image scanning configured
- Internal:
dec-x-7f041b04
Similar Internal Rulesβ
Rule | Policies | Flags |
---|---|---|
βοΈ dec-x-7f041b04 | 1 |
Descriptionβ
Descriptionβ
This policy identifies AWS ECR Repositories configured with manual vulnerability scanning. To ensure automated timely detection of security vulnerabilities, it is recommended to enable either Scan on Push or Continuous Scanning.
Rationaleβ
Automated vulnerability scanning is a critical security control in containerized environments. By scanning images immediately when they are pushed to the registry, security flaws can be detected and remediated early in the development lifecycle. This reduces the likelihood of vulnerable images being deployed to production.
Impactβ
Relying on manual scanning increases the risk of deploying container images with known vulnerabilities. If exploited, these flaws could result in security breaches, data exposure, or compromise of systems running the affected containers.
Auditβ
This policy flags an AWS ECR Repository as
INCOMPLIANT
if theScanning Configuration Rules JSON
of the associated ECR Registry does not include any rules enabling either Scan on Push or Enhanced Scanning, indicating that only manual scanning is configured.
Remediationβ
Remediationβ
To ensure continuous vulnerability scanning, configure your Amazon ECR registry to use either Scan on Push or Continuous Scanning. This helps ensure that container images are scanned automatically, reducing the likelihood of deploying vulnerable images.
Disable Manual Scanningβ
From AWS CLIβ
Enable Basic scanning with Scan on Push:
aws ecr put-registry-scanning-configuration \
--scan-type BASIC \
--rules '[{"scanFrequency":"SCAN_ON_PUSH","repositoryFilters":[{"filter":"*","filterType":"WILDCARD"}]}]'Enable Enhanced scanning with Continuous Scanning:
aws ecr put-registry-scanning-configuration \
--scan-type ENHANCED \
--rules '[{"scanFrequency":"CONTINUOUS_SCAN","repositoryFilters":[{"filter":"*","filterType":"WILDCARD"}]}]'