Open
Conversation
| export AWS_DEFAULT_REGION=us-west-2 | ||
| echo "<h1>Deployed via CloudFormation</h1>" | sudo tee /var/www/html/index.html | ||
|
|
||
| WebHostStorage: |
There was a problem hiding this comment.
Ensure AWS EBS volumes are encrypted
Resource: AWS::EC2::Volume.WebHostStorage | ID: BC_AWS_GENERAL_3
How to Fix
Resources:
NewVolume:
Type: AWS::EC2::Volume
Properties:
...
+ Encrypted: trueDescription
Encrypting EBS volumes ensures that replicated copies of your images are secure even if they are accidentally exposed. AWS EBS encryption uses AWS KMS customer master keys (CMK) when creating encrypted volumes and snapshots. Storing EBS volumes in their encrypted state reduces the risk of data exposure or data loss. We recommend you encrypt all data stored in the EBS.Benchmarks
- PCI-DSS V3.2 3
- NIST-800-53 SC-2
- PCI-DSS V3.2.1 3.4
- FEDRAMP (MODERATE) SC-28
| #################### | ||
| ### EC2 in VPC ### | ||
| #################### | ||
| EC2Instance: |
There was a problem hiding this comment.
Ensure EC2 user data does not expose secrets
Resource: AWS::EC2::Instance.EC2Instance | ID: BC_AWS_SECRETS_1
Description
**User Data** is a metadata field of an EC2 instance that allows custom code to run after the instance is launched. It contains code exposed to any entity which has the most basic access to EC2, even read-only configurations. This code is not encrypted.Removing secrets from easily-accessed unencrypted places reduces the risk of passwords, private keys and more from being exposed to third parties.
| #################### | ||
| ### EC2 in VPC ### | ||
| #################### | ||
| EC2Instance: |
There was a problem hiding this comment.
Ensure EC2 user data does not expose secrets
Resource: AWS::EC2::Instance.EC2Instance | ID: BC_AWS_SECRETS_1
Description
**User Data** is a metadata field of an EC2 instance that allows custom code to run after the instance is launched. It contains code exposed to any entity which has the most basic access to EC2, even read-only configurations. This code is not encrypted.Removing secrets from easily-accessed unencrypted places reduces the risk of passwords, private keys and more from being exposed to third parties.
| export AWS_DEFAULT_REGION=us-west-2 | ||
| echo "<h1>Deployed via CloudFormation</h1>" | sudo tee /var/www/html/index.html | ||
|
|
||
| WebHostStorage: |
There was a problem hiding this comment.
Ensure AWS EBS volumes are encrypted
Resource: AWS::EC2::Volume.WebHostStorage | ID: BC_AWS_GENERAL_3
How to Fix
Resources:
NewVolume:
Type: AWS::EC2::Volume
Properties:
...
+ Encrypted: trueDescription
Encrypting EBS volumes ensures that replicated copies of your images are secure even if they are accidentally exposed. AWS EBS encryption uses AWS KMS customer master keys (CMK) when creating encrypted volumes and snapshots. Storing EBS volumes in their encrypted state reduces the risk of data exposure or data loss. We recommend you encrypt all data stored in the EBS.Benchmarks
- PCI-DSS V3.2 3
- NIST-800-53 SC-2
- PCI-DSS V3.2.1 3.4
- FEDRAMP (MODERATE) SC-28
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.