> 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-app-service-web-app-doesn-t-have-a-managed-service-identity.md). Agents can also search and read this documentation through its [MCP server](https://cortex-docs.paloaltonetworks.com/~gitbook/mcp).

# Azure App Service Web app doesn't have a Managed Service Identity

### Synopsis

| Field               | Value                                                             |
| ------------------- | ----------------------------------------------------------------- |
| Rule Type           | Detection                                                         |
| Finding Type        | Azure App Service Web app doesn't have a Managed Service Identity |
| Finding ID          | 60000302                                                          |
| Generates a Finding | This detection rule also generates a finding                      |
| Severity            | Low                                                               |
| Category            | CONFIGURATION                                                     |
| Cloud Providers     | AZURE                                                             |
| Platform Module     | CSPM                                                              |
| Asset Types         | AZURE\_APP\_SERVICE                                               |
| ATT\&CK Tactic      | TA0006 (TA0006)                                                   |
| ATT\&CK Technique   | T1552 (T1552)                                                     |

### Description

Azure App Services lacking a Managed Service Identity (MSI) present a significant security risk. Applications without MSI rely on secrets like connection strings containing credentials, increasing the chance of exposure and unauthorized access.

Azure App Services use MSIs to securely authenticate to other Azure services. Without MSI, applications must use and manage their own credentials, increasing the attack surface and vulnerability to compromise if these credentials are leaked or improperly secured. This misconfiguration undermines the principle of least privilege and makes applications susceptible to data breaches.

The impact of this misconfiguration includes unauthorized access to sensitive data and resources, potential service disruption, and compliance violations. Implementing MSI removes the need to manage secrets within the application, enhancing security and reducing the risk of credential compromise. This best practice promotes a more secure and robust application environment.

To mitigate this, ensure all Azure App Services are configured with a system-assigned Managed Service Identity. Regularly review and audit the application's access permissions and ensure only necessary permissions are granted. Employ a robust secret management solution to store and manage any remaining credentials required.

### Remediation

**Manual steps:**

Azure App Service - Manual remediation steps:

To configure managed service identity on your reported App Service, follow the below URL instructions:

<https://docs.microsoft.com/en-us/azure/app-service/overview-managed-identity>


---

# 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-app-service-web-app-doesn-t-have-a-managed-service-identity.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.
