π‘οΈ AWS S3 Bucket Policy is not set to deny HTTP requestsπ’
- Contextual name: π‘οΈ Bucket Policy is not set to deny HTTP requestsπ’
- ID:
/ce/ca/aws/s3/bucket-policy-deny-http-requests - Tags:
- π’ Policy with categories
- π’ Policy with type
- π’ Production policy
- Policy Type:
COMPLIANCE_POLICY - Policy Categories:
SECURITY
Logicβ
- π§ prod.logic.yamlπ’
- π AWS S3 Bucket
- π AWS S3 Bucket - object.extracts.yaml
- π§ͺ test-data.json
Similar Policiesβ
- Cloud Conformity: Secure Transport
- Internal:
dec-x-d5fbfc40
Similar Internal Rulesβ
| Rule | Policies | Flags |
|---|---|---|
| βοΈ dec-x-d5fbfc40 | 1 |
Descriptionβ
Descriptionβ
At the Amazon S3 bucket level, you can configure permissions through a bucket policy, making objects accessible only through HTTPS.
Rationaleβ
By default, Amazon S3 allows both HTTP and HTTPS requests. To allow access to Amazon S3 objects only through HTTPS, you must explicitly deny access to HTTP requests. Bucket policies that allow HTTPS requests without explicitly denying HTTP requests do not comply with this recommendation.
Auditβ
To allow access to HTTPS, you can use a bucket policy with the effect
allowand a condition that checks for the key"aws:SecureTransport": "true". This means that HTTPS requests are allowed, but it does not deny HTTP requests. To explicitly deny HTTP access, ensure that there is also a bucket policy with the effectdenythat contains the key"aws:SecureTransport": "false". You may also require TLS by setting a policy to deny any version lower than the one you wish to require, using the conditionNumericLessThanand the key"s3:TlsVersion": "1.2".From Consoleβ
... see more
Remediationβ
Remediationβ
From Consoleβ
Log in to AWS Management Console and open the Amazon S3 console using https://console.aws.amazon.com/s3/
Select the checkbox next to the bucket.
Click
Permissions.Click
Bucket Policy.Add either of the following to the existing policy, filling in the required information:
{
"Sid": "{{optional}}",
"Effect": "Deny",
"Principal": "*",
"Action": "s3:*",
"Resource": "arn:aws:s3:::{{bucket_name}}/*",
"Condition": {
"Bool": {
"aws:SecureTransport": "false"
}
}
}or
{
"Sid": "{{optional}}",
"Effect": "Deny",
"Principal": "*",
"Action": "s3:*",
"Resource": [
"arn:aws:s3:::{{bucket_name}}",
"arn:aws:s3:::{{bucket_name}}/*"
],
"Condition": {
"NumericLessThan": {
"s3:TlsVersion": "1.2"
}
}
}Click
Save.Repeat for all the buckets in your AWS account that contain sensitive data.
... see more