Skip to content

Commit

Permalink
[aws][fix] s3 bucket_secure_transport_policy (#1925)
Browse files Browse the repository at this point in the history
  • Loading branch information
aquamatthias committed Feb 16, 2024
1 parent 3570ad5 commit 60c8357
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resotocore/resotocore/static/report/checks/aws/aws_s3.json
Expand Up @@ -60,7 +60,7 @@
"risk": "Without enforcing HTTPS on the bucket policy, communication between clients and S3 buckets may use unencrypted HTTP, posing a risk of transmitting sensitive information in clear text over the network or internet.",
"severity": "medium",
"detect": {
"resoto": "is(aws_s3_bucket) and not bucket_policy.Statement[*].{Effect=Deny and (Action=s3:PutObject or Action=\"s3:*\" or Action=\"*\") and Condition.Bool.`aws:SecureTransport`== \"false\" }"
"resoto_cmd": "search is(aws_s3_bucket) | jq --no-rewrite 'if (.reported.bucket_policy==null) then [.] elif any(.reported.bucket_policy.Statement[]?; .Effect? ==\"Deny\" and (.Action? == \"s3:*\" or .Action? == \"s3:PutObject\" or .Action? == \"*\") and .Condition?.Bool?.\"aws:SecureTransport\"?==\"false\") then [] else [.] end' | flatten"
},
"remediation": {
"text": "To fix the issue, ensure that S3 buckets have encryption in transit enabled to enforce secure communication.",
Expand Down

0 comments on commit 60c8357

Please sign in to comment.