File tree Expand file tree Collapse file tree 3 files changed +9
-11
lines changed
abstract/vpc-flow-logs-misconfig Expand file tree Collapse file tree 3 files changed +9
-11
lines changed Original file line number Diff line number Diff line change @@ -6,4 +6,4 @@ Here a flow log set to the wrong bucket. It should be fixed.
66
77The expectation assumes the following:
88
9- - VPC Flow Log LogDestination: ` !Sub "arn:aws:s3:::gomboc-security-flowlogs-480437182633/${VPC}/" `
9+ 1 . The VPC Flow Log LogDestination: ` !Sub "arn:aws:s3:::gomboc-security-flowlogs-480437182633/${VPC}/" `
Original file line number Diff line number Diff line change @@ -14,7 +14,8 @@ This is a combination of several scenarios:
1414
1515The expected results assumes the following:
1616
17- 1 . The VPC flowlog destination is gomboc specific bucket with the VPC id as the prefix:
17+ 1 . The VPC flowlog object name is "FlowLogBucket"
18+ 2 . The VPC flowlog destination is gomboc specific bucket with the VPC id as the prefix:
1819 1 . ` !Sub "arn:aws:s3:::gomboc-security-flowlogs-480437182633/${VPC}/" `
19- 2 . The VPC SG safe port is "65535"
20- 3 . The VPC SG safe CIDR is "1.1.1.1/32"
20+ 3 . The VPC SG safe port is "65535"
21+ 4 . The VPC SG safe CIDR is "1.1.1.1/32"
Original file line number Diff line number Diff line change @@ -164,7 +164,6 @@ Resources:
164164 GroupName : !Ref EnvironmentName
165165 GroupDescription : The security group for our test
166166 VpcId : !Ref VPC
167- # Uncomment this to allow all traffic to the EC2 instance and create the misconfiguration
168167 SecurityGroupIngress :
169168 - IpProtocol : tcp
170169 FromPort : 0
@@ -255,7 +254,10 @@ Resources:
255254 - DeviceName : /dev/xvda
256255 Ebs :
257256 VolumeSize : 20
258- # Encrypted: true # Uncomment this to "fix" the issue of a non-encrypted drive
257+ Encrypted : false
258+ - DeviceName : /dev/xvdb
259+ Ebs :
260+ VolumeSize : 20
259261# ######################################
260262# # This section is for the S3 Bucket ##
261263# ######################################
@@ -268,11 +270,6 @@ Resources:
268270 BlockPublicPolicy : false
269271 IgnorePublicAcls : false
270272 RestrictPublicBuckets : false
271- # Uncomment this section to make an encrypted bucket
272- # BucketEncryption:
273- # ServerSideEncryptionConfiguration:
274- # - ServerSideEncryptionByDefault:
275- # SSEAlgorithm: AES256
276273# ###########################################
277274# # This section is for the DynamoDB table ##
278275# ###########################################
You can’t perform that action at this time.
0 commit comments