> 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/potential-data-exfiltration-risk-due-to-abuse-of-sas-keys-on-azure-storage-account-6a4a8d51.md). Agents can also search and read this documentation through its [MCP server](https://cortex-docs.paloaltonetworks.com/~gitbook/mcp).

# Potential data exfiltration risk due to abuse of SAS keys on... (Azure Storage Account) (6a4a8d51)

### Synopsis

| Field               | Value                                                                                                                                                                      |
| ------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Rule Name           | Potential data exfiltration risk due to abuse of SAS keys on a publicly exposed Azure Storage account configured with Shared key authorization and contains sensitive data |
| Rule Type           | Detection                                                                                                                                                                  |
| Finding Type        | Potential data exfiltration risk due to abuse of SAS keys on a publicly exposed Azure Storage account configured with Shared key authorization and contains sensitive data |
| Finding ID          | 60001252                                                                                                                                                                   |
| Generates a Finding | This detection rule also generates a finding                                                                                                                               |
| Severity            | High                                                                                                                                                                       |
| Category            | POSTURE                                                                                                                                                                    |
| Cloud Providers     | AZURE                                                                                                                                                                      |
| Platform Module     | CSPM                                                                                                                                                                       |
| Asset Types         | AZURE\_STORAGE\_ACCOUNT                                                                                                                                                    |

### Description

Unauthorized access to sensitive data stored in Azure Storage accounts is a significant security concern. Publicly accessible storage accounts using Shared Access Signature (SAS) keys for authorization create a vulnerability for data exfiltration.

Attackers could exploit publicly exposed SAS keys to gain unauthorized access to sensitive data within the storage account. This exposes the organization to data breaches, regulatory non-compliance, and reputational damage. The risk is heightened when sensitive data is stored within these accounts.

Mitigate this risk by immediately removing public access permissions from the affected storage account. Implement role-based access control ('RBAC') to grant granular permissions, restricting access to authorized users only. Transition from SAS key authorization to more secure methods like Managed Identities or Azure Active Directory authentication.

To prevent future occurrences, regularly review storage account configurations, ensuring only necessary permissions are granted. Proactively monitor for unauthorized access attempts and implement robust logging and alerting mechanisms. Immediately revoke any compromised SAS keys.

### Remediation

```
[PUBLIC_ACCESS]
```

1. Log in to the Azure portal
2. Navigate to 'Storage Accounts' dashboard
3. Select the reported storage account
4. Under 'Data storage' section, Select 'Containers'
5. Select the blob container you need to modify
6. Click on 'Change access level'
7. Set 'Public access level' to 'Private (no anonymous access)'
8. Click on 'OK'

   ```
   [MISCONFIGURATION]
   ```

To change the default network access rule, follow below URL:

<https://learn.microsoft.com/en-us/azure/storage/common/storage-network-security?tabs=azure-portal#change-the-default-network-access-rule>

```
[MISCONFIGURATION]
```

To prevent Shared Key authorization for an Azure Storage account, follow bellow URL:

<https://learn.microsoft.com/en-us/azure/storage/common/shared-key-authorization-prevent>

```
[DATA_EXPOSURE]
```

1. Make sure the resource is not exposed to public.
2. Delete or move the sensitive data if it is mistakenly place


---

# 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/potential-data-exfiltration-risk-due-to-abuse-of-sas-keys-on-azure-storage-account-6a4a8d51.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.
