> 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-origin-protocol-policy-does-not-enforce-https-only.md). Agents can also search and read this documentation through its [MCP server](https://cortex-docs.paloaltonetworks.com/~gitbook/mcp).

# AWS CloudFront origin protocol policy does not enforce HTTPS-only

### Synopsis

| Field               | Value                                                             |
| ------------------- | ----------------------------------------------------------------- |
| Rule Type           | Detection                                                         |
| Finding Type        | AWS CloudFront origin protocol policy does not enforce HTTPS-only |
| Finding ID          | 60000176                                                          |
| Generates a Finding | This detection rule also generates a finding                      |
| Severity            | Medium                                                            |
| Category            | CONFIGURATION                                                     |
| Cloud Providers     | AWS                                                               |
| Platform Module     | CSPM                                                              |
| Asset Types         | CLOUDFRONT\_DISTRIBUTION                                          |

### Description

AWS CloudFront distributions configured with an origin protocol policy that permits HTTP connections are vulnerable to eavesdropping and data manipulation. This misconfiguration exposes sensitive data transmitted between the CloudFront distribution and the origin server.

CloudFront's origin protocol policy determines the communication protocol (HTTP or HTTPS) between the distribution and its origin server. Allowing HTTP exposes data in transit to interception and modification by malicious actors. An attacker could intercept unencrypted data, leading to data breaches or man-in-the-middle attacks.

The impact of this misconfiguration includes the exposure of sensitive data, leading to potential breaches of confidentiality and integrity. Enforcing HTTPS-only protects data in transit by encrypting all communication, thereby reducing the risk of data breaches and ensuring data confidentiality and integrity.

To mitigate this risk, explicitly configure the origin protocol policy for all CloudFront distributions to require HTTPS. This ensures all communication between the CloudFront distribution and the origin server is encrypted, protecting against eavesdropping and data manipulation by untrusted actors.

### Remediation

Communication between CloudFront and your Custom Origin should enforce HTTPS-only traffic. Modify the CloudFront Origin's Origin Protocol Policy to HTTPS only.

1. Go to the AWS console CloudFront dashboard.
2. Select your distribution Id.
3. Select the 'Origins' tab.
4. Check the origin you want to modify then select Edit.
5. Change the Origin Protocol Policy to 'https-only.'
6. Select '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-origin-protocol-policy-does-not-enforce-https-only.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.
