> 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-cloudfront-distribution-with-s3-have-origin-access-set-to-disabled.md). Agents can also search and read this documentation through its [MCP server](https://cortex-docs.paloaltonetworks.com/~gitbook/mcp).

# AWS Cloudfront Distribution with S3 have Origin Access set to disabled

### Synopsis

| Field               | Value                                                                  |
| ------------------- | ---------------------------------------------------------------------- |
| Rule Type           | Detection                                                              |
| Finding Type        | AWS Cloudfront Distribution with S3 have Origin Access set to disabled |
| Finding ID          | 60000263                                                               |
| Generates a Finding | This detection rule also generates a finding                           |
| Severity            | Medium                                                                 |
| Category            | CONFIGURATION                                                          |
| Cloud Providers     | AWS                                                                    |
| Platform Module     | CSPM                                                                   |
| Asset Types         | CLOUDFRONT\_DISTRIBUTION                                               |
| ATT\&CK Tactic      | TA0112 (TA0112)                                                        |
| ATT\&CK Technique   | T1685 (T1685)                                                          |

### Description

AWS CloudFront distributions using S3 buckets with origin access disabled pose a significant security risk. Disabling origin access allows unauthorized access to S3 objects via their direct URLs, bypassing CloudFront's security features.

CloudFront's origin access identity feature controls access to S3 buckets used as origins. Disabling it removes this crucial layer of security, potentially exposing sensitive data stored in the S3 bucket. Attackers could discover and directly access these URLs, leading to data breaches or unauthorized modification.

The impact of this misconfiguration is direct exposure of S3 objects, potentially resulting in data loss, regulatory fines, and reputational damage. Enabling origin access ensures that only CloudFront can access the S3 bucket, enforcing a controlled access mechanism and preventing unauthorized direct access.

To mitigate this risk, ensure origin access identity is enabled for all CloudFront distributions that use S3 buckets as origins. Regularly audit CloudFront configurations and implement strong access control lists on S3 buckets to further enhance security.

### Remediation

**Manual steps:**

Cloudfront Distribution - Manual remediation steps:

1. Sign in to the AWS Console
2. Go to CloudFront
3. Choose the reported Distribution
4. Click on Distribution Settings
5. Click on 'Origins and Origin Groups'
6. Select the S3 bucket and click on Edit
7. On the 'Restrict Bucket Access', Select Yes
8. Click on 'Yes, Edit'


---

# 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-cloudfront-distribution-with-s3-have-origin-access-set-to-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.
