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

# AWS S3 bucket publicly readable

### Synopsis

| Field               | Value                                        |
| ------------------- | -------------------------------------------- |
| Rule Type           | Detection                                    |
| Finding Type        | AWS S3 bucket publicly readable              |
| Finding ID          | 60000524                                     |
| Generates a Finding | This detection rule also generates a finding |
| Severity            | High                                         |
| Category            | CONFIGURATION                                |
| Cloud Providers     | AWS                                          |
| Platform Module     | CSPM                                         |
| Asset Types         | S3\_BUCKET                                   |

### Description

Publicly readable AWS S3 buckets allow unauthorized access to sensitive data. This misconfiguration exposes data to anyone with knowledge of the bucket name, potentially leading to data breaches and reputational damage.

The S3 service lacks inherent namespace protection; improperly configured Access Control Lists (ACLs) and bucket policies enable unintended read access. Attackers can exploit this to download or list bucket contents, compromising sensitive information. Failure to implement appropriate security measures increases the risk of data exfiltration.

A data breach resulting from this misconfiguration could expose confidential customer data, intellectual property, or other sensitive information. Implementing strong access controls is critical to protecting data confidentiality and integrity. Maintaining a secure configuration reduces the likelihood of a successful attack.

To mitigate this risk, enforce least privilege by restricting access to only authorized users and services. Regularly review and update bucket policies and ACLs to ensure they align with security best practices. Implement robust monitoring and alerting to detect unauthorized access attempts. Consider using server-side encryption to further protect data at rest.

### Remediation

1. Log in to the AWS Console
2. Navigate to the 'S3' service
3. Click on the S3 resource reported in the alert
4. Click on the 'Permissions' tab
5. If Access Control List is set to 'Public' follow the below steps
   1. Under 'Access Control List', Click on 'Everyone' and uncheck all items
   2. Under ''Access Control List'', Click on ''Authenticated users group'' and uncheck all items
   3. Click on Save changes
6. If 'Bucket Policy' is set to public follow the below steps
   1. Under 'Bucket Policy', Select 'Edit Bucket Policy' and consider defining what explicit 'Principal' should have the ability to GET/LIST objects in your S3 bucket. You may also want to specifically limit the 'Principal' ability to perform specific GET/LIST functions, without the wild card.

      If 'Bucket Policy' is not required delete the existing 'Bucket Policy'.
   2. Click on Save changes

Note: Make sure updating 'Access Control List' or 'Bucket Policy' does not affect S3 bucket data access.


---

# 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/aws-s3-bucket-publicly-readable.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.
