Update cfngoat.yaml#1
Open
danweavercloudsec wants to merge 1 commit into
Open
Conversation
| ToPort: 22 | ||
| CidrIp: 0.0.0.0/0 | ||
| - IpProtocol: "-1" | ||
| - IpProtocol: "-1" |
There was a problem hiding this comment.
AWS Security Group allows all traffic on SSH port (22)
Resource: AWS::EC2::SecurityGroup.WebNodeSG | Checkov ID: CKV_AWS_24
How to Fix
Type: AWS::EC2::SecurityGroup
Properties:
...
SecurityGroupIngress:
- Description: SSH Ingress
IpProtocol: tcp
FromPort: 22
ToPort: 22
- CidrIp: "0.0.0.0/0"
+ CidrIp: "10.10.10.0/24"Description
Security groups are stateful and provide filtering of ingress/egress network traffic to AWS resources. We recommend that security groups do not allow unrestricted ingress access to port 22. Removing unfettered connectivity to remote console services, such as SSH, reduces a server's exposure to risk.Benchmarks
- SOC2 CC6.3.3
- PCI-DSS V3.2.1 1.2.1, 1.3, 2.2.2
- PCI-DSS V3.2 2
- HIPAA 164.312(E)(1)
- NIST-800-53 AC-17, CA-3, CA-9, CM-3, SC-2
- ISO27001 A.10.1.1
- CIS AWS V1.2 4.1
- CIS AWS V1.3 5.2
- FEDRAMP (MODERATE) AC-4, SC-7, SC-7(3)
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.