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

# AWS S3 bucket not configured with secure data transport policy

### Synopsis

| Field               | Value                                                          |
| ------------------- | -------------------------------------------------------------- |
| Rule Type           | Detection                                                      |
| Finding Type        | AWS S3 bucket not configured with secure data transport policy |
| Finding ID          | 60000229                                                       |
| Generates a Finding | This detection rule also generates a finding                   |
| Severity            | Medium                                                         |
| Category            | CONFIGURATION                                                  |
| Cloud Providers     | AWS                                                            |
| Platform Module     | CSPM                                                           |
| Asset Types         | S3\_BUCKET                                                     |

### Description

AWS S3 buckets lacking secure data transport are susceptible to data breaches during transit.

AWS S3 buckets should enforce data encryption using Secure Sockets Layer (SSL) to protect data transmitted between clients and the S3 service. Failure to enforce HTTPS allows attackers to intercept sensitive data in transit, leading to data exposure and potential breaches. Untrusted IPs could access sensitive data without encryption.

The impact of this misconfiguration includes unauthorized access to sensitive data, data breaches, and potential regulatory fines. Enforcing HTTPS ensures all communication with S3 buckets is encrypted, protecting data confidentiality and integrity.

To mitigate this, configure bucket policies to explicitly deny all access except via HTTPS ('aws:SecureTransport: true'). Implement robust network security controls to limit access to S3 buckets only from trusted IP addresses. Regularly review and update bucket policies to reflect evolving security needs.

### Remediation

1. Sign into the AWS console
2. Navigate to Amazon S3 Dashboard
3. Click on 'Buckets' (Left Panel)
4. Choose the reported S3 bucket
5. On 'Permissions' tab, Click on 'Bucket Policy'
6. Add a bucket policy that explicitly denies (Effect: Deny) all access (Action: s3:) from anybody who browses (Principal: ) to Amazon S3 objects within an Amazon S3 bucket if they are not accessed through HTTPS (aws:SecureTransport: false). Below is the sample policy:

   ```
   {
   	"Sid": "ForceSSLOnlyAccess",
   	"Effect": "Deny",
   	"Principal": "*",
   	"Action": "s3:GetObject",
   	"Resource": "arn:aws:s3:::bucket_name/*",
   	"Condition": {
   			"Bool": {
   			"aws:SecureTransport": "false"
   		}
   	}
   }
   ```


---

# 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-not-configured-with-secure-data-transport-policy.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.
