> 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/sensitive-data-asset-is-publicly-accessible.md). Agents can also search and read this documentation through its [MCP server](https://cortex-docs.paloaltonetworks.com/~gitbook/mcp).

# Sensitive Data Asset Is Publicly Accessible

### Synopsis

| Field             | Value                                                                                                                                                                                                            |
| ----------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Rule Type         | Detection                                                                                                                                                                                                        |
| Severity          | High                                                                                                                                                                                                             |
| Category          | DATA                                                                                                                                                                                                             |
| Cloud Providers   | AWS, AZURE, GCP                                                                                                                                                                                                  |
| Platform Module   | DSPM                                                                                                                                                                                                             |
| Asset Types       | AZURE\_COSMOS\_DB, AZURE\_SQL\_SERVER, AZURE\_STORAGE\_ACCOUNT, GOOGLE\_BIGQUERY\_DATASET, GOOGLE\_CLOUD\_STORAGE\_BUCKET, MARIADB, MONGODB, MYSQL, POSTGRESQL, RDS\_DATABASE\_INSTANCE, S3\_BUCKET, SQL\_SERVER |
| ATT\&CK Tactic    | TA0001 (TA0001)                                                                                                                                                                                                  |
| ATT\&CK Technique | T1133 (T1133)                                                                                                                                                                                                    |

### Description

This rule detects publicly accessible assets containing sensitive information. Public accessibility allows attackers outside the organization to access data within the asset and increases data risk. Implementing access restrictions against unauthenticated and broad access is recommended for all assets containing sensitive information.

### Remediation

**Manual steps:**

Azure Storage Account - Disable Public Access to the Storage Account:

Navigate to the Azure portal and open the Storage Account.

Select the storage account `{entity}`.

In the Storage Account menu, under Settings, click on Configuration.

Set Allow Blob anonymous access to Disabled.

Click Save to apply the changes.

Azure Storage Account - Revoke Public Access to Individual Containers:

Navigate to the Azure portal and open the Storage Account.

Select the storage account `{entity}`.

In the Storage Account menu, under Data storage, click on Containers.

For each container that you want to make private, check the Public access level. Public containers has this attribute set to Blob (anonymous read access for blobs only) or Container (anonymous read access for containers and blobs).

To make the container private, click on the three dots logo next to its name and then Change access level. change the Anonymous access level to Private (no anonymous access).

Click Ok to apply the changes.

Azure Storage Account - Remove Stored Sensitive Data:

Navigate to the Azure portal and open the Storage Account.

Select the storage account `{entity}`.

In the Storage Account menu, under Data Storage, click on Containers.

Browse through the containers and identify any blobs containing sensitive data. Use the Evidence section of this issue in Cortex to get insights on the sensitive data.

Download the blob, remove or redact the sensitive data, and then re-upload the modified blob, overwriting the original.

Alternatively, delete the blob containing sensitive data if it is no longer needed.

S3 Bucket - Revoke Public Access to the S3 Bucket:

Navigate to the Amazon S3 console.

Select the bucket `{entity}`.

Go to the Permissions tab.

Under Block public access (bucket settings), ensure that all settings are enabled to block all public access.

Under Access Control List (ACL), ensure that no public access is granted to the bucket.

Under Bucket Policy, verify that the policy does not allow public access. If it does, edit the policy to remove the statements that grant public access.

This procedure will revoke all public access to the bucket.

S3 Bucket - Remove Sensitive Data from the S3 Bucket:

Navigate to the Amazon S3 console.

Select the bucket `{entity}`.

Review the objects stored in the bucket and identify any sensitive data. Use the Evidence section of this issue in Cortex to get insights on the sensitive data.

Delete or redact the sensitive data from the objects.

Google Cloud Storage Bucket - Revoke public access to Cloud Storage Bucket:

Navigate to the GCP Cloud Storage console.

Select the bucket `{entity}`.

Go to the Permissions tab.

Under Public access, select Prevent public access.

Click on Confirm.

This procedure will revoke all public access to the bucket.

Google Cloud Storage Bucket - Remove Sensitive Data from the Bucket:

Navigate to the Google Cloud Storage console.

Select the bucket `{entity}`.

Review the objects stored in the bucket and identify any sensitive data. Use the Evidence section of this issue in Cortex to get insights on the sensitive data.

Delete or redact the sensitive data from the objects.

RDS Database Instance - Restrict Public Access to the RDS Instance:

Navigate to the Amazon Aurora and RDS console.

Select Databases from the left navigation pane.

Choose the RDS instance `{entity}`.

Click on the Connectivity & security tab.

Under the Security section, modify the VPC security groups to ensure that only authorized networks can access the database instance.

If the database is publicly accessible (Publicly accessible is set to Yes), modify the instance to disable public accessibility by clicking Modify, Additional configuration and then Not publicly accessible.

After making the necessary changes, proceed with the modification by clicking Continue.

RDS Database Instance - Remove Sensitive Data from the RDS instance:

Connect to the database `{entity}`. To get or change the necessary information for connectivity navigate to the Aurora and RDS dashboard in AWS, and view the instance's details.

Review the objects stored in the database and identify any sensitive data. Use the Evidence section of this issue in Cortex to get insights on the sensitive data.

Delete the sensitive data from the instance.

Google BigQuery Dataset - Restrict Public Access to the BigQuery Dataset:

Navigate to the Google Cloud Console.

Go to the BigQuery service.

In the Explorer panel, click on the Dataset `{entity}`.

In the Dataset's panel, Click on Sharing and then Permissions.

Review the principals listed and their assigned roles. Identify the principals `allUsers` or `allAuthenticatedUsers`.

Remove their permissions by clicking the trash bin logo next to their name.

Proceed with Remove.

Google BigQuery Dataset - Remove Sensitive Data from the BigQuery Dataset:

Navigate to the Google Cloud Console.

Go to the BigQuery service.

In the Explorer panel, click on the Dataset `{entity}`.

Identify tables within the dataset that contain sensitive data. Use the Evidence section of this issue in Cortex to get insights on the sensitive data.

For each table containing sensitive data, execute SQL queries to redact, mask, or delete the sensitive information.

Alternatively, delete the entire table if it's no longer needed and contains only sensitive data.

Azure SQL Server - Disable Public Access to the Azure SQL Server:

Navigate to the Azure portal and open the SQL Servers dashboard.

Select the SQL server `{entity}`.

In the left-hand menu, under Security, click on Networking.

Under Public network access, select Disable.

Click Save to apply the changes.

Azure SQL Server - Restrict Public Network Access to Azure SQL Server:

Navigate to the Azure portal and open the SQL Servers dashboard.

Select the SQL server `{entity}`.

In the left-hand menu, under Security, click on Networking.

Under Virtual networks, allow access only to the permitted networks.

Under Firewall rules, remove any existing firewall rules that allow access from public IP addresses or wide IP ranges (such as 0.0.0.0 - 255.255.255.255). Only allow access from specific IP addresses or virtual networks that require access.

Click Save to apply the changes.

Azure SQL Server - Remove Sensitive Data from the Azure SQL Server:

Connect to the SQL Server `{entity}`. To get or change the necessary information for connectivity navigate to the SQL Servers dashboard in Azure, and view the server's details.

Review the objects stored in the server and identify any sensitive data. Use the Evidence section of this issue in Cortex to get insights on the sensitive data.

Delete the sensitive data from the server.

MongoDB - Disable Public Access to the Database:

Navigate to the compute instance that hosts the MongoDB server. The details can be found in the related assets section in the issue on Cortex.

Modify the instance's networking and firewall rules to disable the public access to it.

MongoDB - Remove Sensitive Data from the Database:

Connect to the Mongo DB `{entity}`.

Review the objects stored in the database and identify any sensitive data. Use the Evidence section of this issue in Cortex to get insights on the sensitive data.

Delete the sensitive data from the database.

MySQL - Disable Public Access to the server:

Navigate to the compute instance that hosts the MySQL server. The details can be found in the related assets section in the issue on Cortex.

Modify the instance's networking and firewall rules to disable the public access to it.

MySQL - Remove Sensitive Data from the server:

Connect to the MySQL server `{entity}`.

Review the objects stored in the database and identify any sensitive data. Use the Evidence section of this issue in Cortex to get insights on the sensitive data.

Delete the sensitive data from the server.

MariaDB - Disable Public Access to the Database:

Navigate to the compute instance that hosts the MariaDB. The details can be found in the related assets section in the issue on Cortex.

Modify the instance's networking and firewall rules to disable the public access to it.

MariaDB - Remove Sensitive Data from the Database:

Connect to the MariaDB server `{entity}`.

Review the objects stored in the database and identify any sensitive data. Use the Evidence section of this issue in Cortex to get insights on the sensitive data.

Delete the sensitive data from the database.

SQL Server - Remove Sensitive Data from the server:

Connect to the SQL server `{entity}`.

Review the objects stored in the database and identify any sensitive data. Use the Evidence section of this issue in Cortex to get insights on the sensitive data.

Delete the sensitive data from the server.

Azure Cosmos DB - Restrict Public Network Access to the Cosmos DB Account:

Navigate to the Azure portal and open the Azure Cosmos DB dashboard.

Select the Azure Cosmos DB account `{entity}`.

In the left-hand menu, under Settings, click on Networking.

Under Virtual networks, allow access only to the permitted networks.

Under Firewall rules, remove any existing firewall rules that allow access from public IP addresses or wide IP ranges (such as 0.0.0.0 - 255.255.255.255). Only allow access from specific IP addresses or virtual networks that require access.

Click Save to apply the changes.

PostgreSQL - Disable Public Access to the server:

Navigate to the compute instance that hosts the PostgreSQL server. The details can be found in the related assets section in the issue on Cortex.

Modify the instance's networking and firewall rules to disable the public access to it.

PostgreSQL - Disable Public Access to the server:

Navigate to the compute instance that hosts the PostgreSQL server. The details can be found in the related assets section in the issue on Cortex.

Modify the instance's networking and firewall rules to disable the public access to it.


---

# 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/sensitive-data-asset-is-publicly-accessible.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.
