> 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-shared-with-external-account.md). Agents can also search and read this documentation through its [MCP server](https://cortex-docs.paloaltonetworks.com/~gitbook/mcp).

# Sensitive Data Asset Shared with External Account

### Synopsis

| Field             | Value                                                                                |
| ----------------- | ------------------------------------------------------------------------------------ |
| Rule Type         | Detection                                                                            |
| Severity          | High                                                                                 |
| Category          | DATA                                                                                 |
| Cloud Providers   | AWS                                                                                  |
| Platform Module   | DSPM                                                                                 |
| Asset Types       | AMAZON\_DYNAMODB\_TABLE, RDS\_DATABASE\_CLUSTER, RDS\_DATABASE\_INSTANCE, S3\_BUCKET |
| ATT\&CK Tactic    | TA0010 (TA0010)                                                                      |
| ATT\&CK Technique | T1078 (T1078)                                                                        |

### Description

This rule detects data assets containing sensitive information that are shared with external accounts. Allowing cross-account access can expose sensitive data to unauthorized parties. Organizations should limit access to trusted internal accounts only.

### Remediation

**Manual steps:**

S3 Bucket - Review and Remove External Access from S3 Bucket Policy:

Navigate to the S3 console in AWS.

Select the bucket `{entity}` that contains sensitive data.

Go to the Permissions tab.

Under Bucket policy, click Edit.

Review the bucket policy and identify statements that grant access to external accounts (look for Principal values with external AWS account IDs).

Remove or modify policy statements that allow access from external AWS accounts or principals.

Click Save changes to apply the updated policy.

RDS Database Instance - Review and Remove External Access from RDS Database Instance Policy:

Navigate to the RDS console in AWS.

Select Databases from the left navigation pane.

Click on the database instance `{entity}` that contains sensitive data.

Go to the Configuration tab and scroll to the Security section.

Review the security group rules and identify any rules that allow access from external accounts or IP ranges.

Click on the security group to modify it, then remove or restrict rules that grant access to external entities.

Click Save rules to apply the changes.

RDS Database Cluster - Review and Remove External Access from RDS Database Cluster Policy:

Navigate to the RDS console in AWS.

Select Databases from the left navigation pane.

Click on the database cluster `{entity}` that contains sensitive data.

Go to the Configuration tab and scroll to the Security section.

Review the security group rules and identify any rules that allow access from external accounts or IP ranges.

Click on the security group to modify it, then remove or restrict rules that grant access to external entities.

Click Save rules to apply the changes.

Amazon DynamoDB Table - Review and Remove External Access from DynamoDB Table Policy:

Navigate to the DynamoDB console in AWS.

Select Tables from the left navigation pane.

Click on the table `{entity}` that contains sensitive data.

Go to the Additional settings tab.

Scroll to the Resource-based policy section and click Edit.

Review the resource-based policy and identify statements that grant access to external accounts (look for Principal values with external AWS account IDs).

Remove or modify policy statements that allow access from external AWS accounts or principals.

Click Save to apply the updated policy.


---

# 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-shared-with-external-account.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.
