Disable Azure Resource Manager (ARM) audience token authentication for your Microsoft Azure container registries in order to enhance security by restricting token usage to only those specifically scoped for Azure Container Registry (ACR), reducing the risk of unauthorized access.
Azure AD Tokens play a critical role in the authentication process for registry users interacting with Azure Container Registry (ACR). Typically, ACR accepts Azure AD Tokens that have an audience scope designated for Azure Resource Manager (ARM), which functions as a control plane management layer for overseeing Azure resources. However, by opting to disable the use of ARM Audience Tokens and instead enforcing ACR Audience Tokens, you can significantly improve the security of your container registries during authentication. This security enhancement is achieved by limiting the range of accepted tokens to those with a specific audience scope tailored for ACR. When ACR Audience Token enforcement is enabled, only Azure AD Tokens with an audience scope explicitly set for ACR will be recognized and permitted during the registry authentication and sign-in process. As a result, ARM Audience Tokens, which were previously valid for registry authentication, will no longer be accepted, thereby providing an added layer of protection to your container registries.
Audit
To determine if ARM audience token authentication is disabled for your Microsoft Azure container registries, perform the following operations:
Remediation / Resolution
To disable ARM audience token authentication for your Microsoft Azure container registries, perform the following operations:
References
- Azure Official Documentation
- What is Azure Policy?
- Azure Policy definition structure basics
- About registries, repositories, and artifacts
- Disable authentication as ARM template
- Azure Command Line Interface (CLI) Documentation
- az account list
- az account set
- az acr list
- az acr config authentication-as-arm show
- az acr config authentication-as-arm update