> For the complete documentation index, see [llms.txt](https://cortex-docs.paloaltonetworks.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cortex-docs.paloaltonetworks.com/posture-rules/cloud-saas-active-directory-posture-rules/cortex-posture-query-based-rules/detection-rules-by-name/azure-container-registry-with-repository-scoped-access-token-enabled.md). Agents can also search and read this documentation through its [MCP server](https://cortex-docs.paloaltonetworks.com/~gitbook/mcp).

# Azure Container Registry with repository scoped access token enabled

### Synopsis

| Field               | Value                                                                |
| ------------------- | -------------------------------------------------------------------- |
| Rule Type           | Detection                                                            |
| Finding Type        | Azure container registry with repository scoped access token enabled |
| Finding ID          | 60001507                                                             |
| Generates a Finding | This detection rule also generates a finding                         |
| Severity            | Low                                                                  |
| Category            | CONFIGURATION                                                        |
| Cloud Providers     | AZURE                                                                |
| Platform Module     | CSPM                                                                 |
| Asset Types         | CONTAINER\_REGISTRY                                                  |
| ATT\&CK Tactic      | TA0112 (TA0112)                                                      |
| ATT\&CK Technique   | T1685 (T1685)                                                        |

### Description

Azure Container Registries configured with repository-scoped access tokens introduce a security misconfiguration by allowing decentralized local authentication methods that can bypass centralized identity and access management controls.

Azure Container Registry's repository-scoped access tokens are a local authentication mechanism designed for granular access. When enabled, these tokens can be used directly for authentication, circumventing the robust security benefits of Microsoft Entra ID. A compromised or poorly managed token could grant an attacker direct access to specific repositories, enabling unauthorized pulling or pushing of container images, potentially leading to supply chain compromises or deployment of malicious code.

The misconfiguration of allowing repository-scoped access tokens increases the attack surface, potentially leading to unauthorized access to critical container images. This can result in data breaches, integrity compromises, or the deployment of unapproved software. Disabling these local tokens ensures that all access is routed through Microsoft Entra ID, providing centralized control, stronger authentication policies, and enhanced auditability for all registry operations.

To mitigate this misconfiguration, disable repository-scoped access tokens for all Azure Container Registries. Additionally, ensure that other local authentication methods, such as the admin user account and anonymous pull access, are also disabled. This practice mandates that all authentication to the container registry relies exclusively on Microsoft Entra ID identities, significantly bolstering security posture and compliance.

### Remediation

**Manual steps:**

Container Registry - Manual remediation steps:

1. Log in to your Azure portal
2. Navigate to 'Container registries'
3. Select the reported Container Registry
4. Under 'Repository permissions' select 'Tokens'
5. Click on the active token and make it inactive by unchecking the 'Active status'
6. Click on 'Save'
7. Repeat step 5 & 6 for all the active tokens


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://cortex-docs.paloaltonetworks.com/posture-rules/cloud-saas-active-directory-posture-rules/cortex-posture-query-based-rules/detection-rules-by-name/azure-container-registry-with-repository-scoped-access-token-enabled.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
