Benchmark: Container Registry
Description
This benchmark provides a set of controls that detect Terraform Azure Container Registry resources deviating from security best practices.
Usage
Install the mod:
mkdir dashboardscd dashboardspowerpipe mod initpowerpipe mod install github.com/turbot/steampipe-mod-terraform-azure-complianceStart the Powerpipe server:
steampipe service startpowerpipe serverOpen http://localhost:9033 in your browser and select Container Registry.
Run this benchmark in your terminal:
powerpipe benchmark run terraform_azure_compliance.benchmark.containerregistrySnapshot and share results via Turbot Pipes:
powerpipe benchmark run terraform_azure_compliance.benchmark.containerregistry --shareControls
- Container registries admin user should be disabled
 - Container registries anonymous pull should be disabled
 - Azure Defender for container registries should be enabled
 - Container registries should be encrypted with a customer-managed key
 - Container registries should be geo-replicated
 - Container registries image scan should be enabled
 - Container registries public network access should be disabled
 - Container registries quarantine policy should be enabled
 - Container registries should not allow unrestricted network access
 - Container registries retention policy should be enabled
 - Container registries trust policy should be enabled
 - Container Registry should use a virtual network service endpoint
 - Container registries should be zone redundant