Skip to content

Commit

Permalink
S3 buckets should require requests to use Secure Socket Layer
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Krieg committed Apr 8, 2021
1 parent 0dca76b commit 62b9710
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions controls/99-s3.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,17 @@
control 's3-public-buckets-99.1' do
title "S3 Public Buckets with Default Encryption enabled"
desc "All your S3 Buckets should not be public accessible and the AES256 default Encryption should be enabled."
ref 'AWS Security Hub, Section S3.5', url: 'https://docs.aws.amazon.com/securityhub/latest/userguide/securityhub-standards-fsbp-controls.html#s3-5-remediation'

all_buckets = aws_s3_buckets.bucket_names

all_buckets.each do |b|
describe aws_s3_bucket(b) do
it { should_not be_public }
it { should have_default_encryption_enabled }

## S3 buckets should require requests to use Secure Socket Layer:
it { should have_secure_transport_enabled }
end
end

Expand Down
2 changes: 1 addition & 1 deletion inspec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ copyright: Centrias Colocation GmbH
copyright_email: [email protected]
license: Apache-2.0
summary: InSpec Baseline Profile for AWS account setup verification
version: 1.4.1
version: 1.4.2
supports:
- platform: aws
inspec_version: ">= 4.25"
Expand Down

0 comments on commit 62b9710

Please sign in to comment.