> 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-ai-foundry-account-has-public-network-access-enabled.md). Agents can also search and read this documentation through its [MCP server](https://cortex-docs.paloaltonetworks.com/~gitbook/mcp).

# Azure AI Foundry Account Has Public Network Access Enabled

### Synopsis

| Field               | Value                                                      |
| ------------------- | ---------------------------------------------------------- |
| Rule Type           | Detection                                                  |
| Finding Type        | Azure AI Foundry account has public network access enabled |
| Finding ID          | 60001552                                                   |
| Generates a Finding | This detection rule also generates a finding               |
| Severity            | Medium                                                     |
| Category            | CONFIGURATION                                              |
| Cloud Providers     | AZURE                                                      |
| Platform Module     | CSPM                                                       |
| Asset Types         | AZURE\_AI\_FOUNDRY\_ACCOUNT                                |
| ATT\&CK Tactic      | TA0001 (TA0001)                                            |
| ATT\&CK Technique   | T1190 (T1190)                                              |

### Description

An Azure AI Foundry account is configured with public network access enabled and either no restricting firewall rules or no network ACL default-deny policy. Azure AI Foundry accounts host generative AI models, agents, and connected data sources. When 'publicNetworkAccess' is 'Enabled' and 'networkAcls.defaultAction' is missing or set to 'Allow', the service endpoint is reachable from the public internet. Although authentication is still required to invoke the API, this configuration increases the attack surface and the risk of credential brute-forcing, prompt-injection probing, and potential model abuse or data exfiltration if credentials are compromised.

### Remediation

**Manual steps:**

Azure AI Foundry Account - Disable public network access via the Azure Portal:

Sign in to the Azure Portal.

In the top search bar, search for and select Azure AI Foundry.

Select the `{entity}` account.

In the left menu, under Resource Management, select Networking.

Under Firewalls and virtual networks, select Disabled to block all public access, or select Selected Networks and Private Endpoints and add only the trusted IP ranges and virtual networks that require access.

Click Save to apply the changes.

**CLI code:**

Azure AI Foundry Account - Disable public network access via Azure CLI:

```bash
az resource update --resource-group {entity} --name {entity} --resource-type Microsoft.CognitiveServices/accounts --set properties.publicNetworkAccess=Disabled
```

Azure AI Foundry Account - Restrict public access to trusted networks via Azure CLI. This leaves the public endpoint enabled but sets the network ACL default action to Deny, so only whitelisted IP ranges and virtual networks can reach the account. Replace with your trusted source and add more rules as needed before applying the Deny default action:

```bash
az cognitiveservices account network-rule add --resource-group {entity} --name {entity} --ip-address <trusted-ip-or-cidr>
az resource update --resource-group {entity} --name {entity} --resource-type Microsoft.CognitiveServices/accounts --set properties.networkAcls.defaultAction=Deny
```


---

# 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-ai-foundry-account-has-public-network-access-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.
