> 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-access-point-block-public-access-setting-disabled.md). Agents can also search and read this documentation through its [MCP server](https://cortex-docs.paloaltonetworks.com/~gitbook/mcp).

# AWS S3 access point Block public access setting disabled

### Synopsis

| Field               | Value                                                    |
| ------------------- | -------------------------------------------------------- |
| Rule Type           | Detection                                                |
| Finding Type        | AWS S3 access point Block public access setting disabled |
| Finding ID          | 60000995                                                 |
| Generates a Finding | This detection rule also generates a finding             |
| Severity            | High                                                     |
| Category            | CONFIGURATION                                            |
| Cloud Providers     | AWS                                                      |
| Platform Module     | CSPM                                                     |
| Asset Types         | S3\_ACCESS\_POINT                                        |
| ATT\&CK Tactic      | TA0010 (TA0010)                                          |
| ATT\&CK Technique   | T1530 (T1530)                                            |

### Description

AWS S3 access points with the block public access setting disabled pose a significant security risk, allowing unintended public access to sensitive data.

S3 access points provide granular control over data access within buckets. Disabling the block public access setting on an access point negates this control, enabling anyone with the access point's URL to access data, regardless of intended permissions. This misconfiguration exposes data to unauthorized access, leading to data breaches and potential compliance violations.

The impact of this misconfiguration could include unauthorized data access, data exfiltration, and reputational damage. Enabling block public access ensures that only authorized users and applications can access data stored within the S3 access point, minimizing the risk of data breaches and maintaining data confidentiality.

To mitigate this risk, ensure the 'Block Public Access' setting is enabled on all S3 access points unless explicitly designed for public access. Regularly review and audit access point configurations to identify and remediate any misconfigurations. Restrict access based on least privilege.

### Remediation

**Manual steps:**

S3 Access Point - This issue identifies AWS S3 access points with the block public access setting disabled. This setting is crucial for preventing unintended public exposure of data stored in S3 buckets. When disabled, data stored in the access point can be accessed by anyone with the access point's URL, potentially leading to data breaches:

To remediate this issue, you need to enable the Block Public Access setting for the affected S3 access points. This setting can only be enabled during access point creation. Follow these steps:

1. **Sign In and Access S3 Dashboard:** Sign in to the AWS Management Console and navigate to the Amazon S3 dashboard.
2. **Locate Access Points Option:** In the left navigation pane, choose 'Access Points for general purpose buckets'.
3. **Initiate Access Point Creation:** On the Access Points page, choose 'Create access point'.
4. **Name and Configure Access Point:** In the Access point name field, enter the name of the access point. And update other configurations from an existing reported access point.
5. **Set Block Public Access:** Under 'Block Public Access settings for this Access Point', make sure to select 'Block all public access'.
6. **Finalize Access Point Creation:** Click on 'Create access point'.
7. **Delete Reported Access Point:** Once the new access point is created, delete the reported access point.

**Note:** Carefully review and test the steps before implementing them. Enabling the Block Public Access setting might impact applications or users that rely on public access to the S3 access point. Ensure that any necessary adjustments are made to avoid service disruptions.

**CLI code:**

S3 Access Point - This command provisions a new Amazon S3 access point and concurrently applies specified Block Public Access settings. It is critical to note that these public access restrictions (BlockPublicAcls, IgnorePublicAcls, BlockPublicPolicy, RestrictPublicBuckets) can only be configured during the initial creation of the access point. If an existing access point does not have these settings enabled, a new access point must be created with the desired public access block configuration. Subsequently, you should review and then delete the non-compliant S3 access point:

```bash
aws s3control create-access-point --bucket ${entity} --account-id ${entity} --name ${entity} --public-access-block-configuration BlockPublicAcls=true,IgnorePublicAcls=true,BlockPublicPolicy=true,RestrictPublicBuckets=true --region ${entity}
```

S3 Access Point - This command deletes an S3 access point. Once the new access point is created, delete the reported access point using the below command:

```bash
aws s3control delete-access-point --name ${entity} --account-id ${entity} --region ${entity}
```

**Terraform code:**

S3 Access Point - This Terraform code configures an 'aws\_s3\_access\_point' resource to enforce strict Block Public Access settings. By defining the 'public\_access\_block\_configuration' block within the resource and setting all its properties ('block\_public\_acls', 'block\_public\_policy', 'ignore\_public\_acls', 'restrict\_public\_buckets') to 'true', it ensures no public access is permitted through this S3 access point. Critically, AWS requires Block Public Access settings for access points to be configured at their creation. Therefore, if this configuration is applied to an existing access point (managed by Terraform) that was initially created without these specific settings or with different values, Terraform will likely need to **replace** (delete and recreate) the access point to apply these changes:

```hcl
resource "aws_s3_access_point" "example" {
 # ... other configurations
 # Ensure Block Public Access settings are enabled
 public_access_block_configuration {
 block_public_acls  = true
 block_public_policy  = true
 ignore_public_acls = true
 restrict_public_buckets = true
 }
}
```


---

# 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-access-point-block-public-access-setting-disabled.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.
