CCSS (Common Configuration Scoring System) is a set of measures used to determine the severity of the rule.
Each rule is associated with a high-level category. For example IAM, Container, Monitoring, Logging, Network, etc.
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applicationsPublic access to remote server administration ports, such as 22 and 3389, increases resource attack surface and unnecessarily raises the risk of resource compromise.
Remove any invalid ingress rule from the aws_network_acl.
An ingress rule is invalid if it contains all of the following:
0.0.0.0/0 in the cidr_block or ::/0 in the ipv6_cidr_block key3389 in the from_port, to_port key, or any range that includes 3389allow action in the action keyExample configuration:
resource "aws_network_acl" "nacl1" {
vpc_id = "${aws_vpc.vpc1.id}"
subnet_ids = ["${aws_subnet.subnet1.id}"]
}
# Standalone rule
resource "aws_network_acl_rule" "rule1" {
network_acl_id = "${aws_network_acl.nacl1.id}"
rule_number = 10
protocol = "tcp"
rule_action = "allow"
cidr_block = "192.16.0.0/24"
from_port = 3389
to_port = 3389
}
# Inline rule
resource "aws_network_acl" "nacl2_inline" {
vpc_id = "${aws_vpc.vpc1.id}"
subnet_ids = ["${aws_subnet.subnet2.id}"]
ingress {
protocol = "tcp"
rule_no = 20
action = "allow"
cidr_block = "192.16.0.0/24"
from_port = 3389
to_port = 3389
}
}
Remove any invalid AWS::EC2::NetworkAclEntry associated with the AWS::EC2::NetworkAcl.
An AWS::EC2::NetworkAclEntry is invalid if it contains all of the following:
0.0.0.0/0 in the CidrBlock field3389 is within the port range defined in PortRange, OR Protocol is set to -1allowAlternatively, set the Properties.CidrBlock attribute to a more restrictive CIDR block, for example 192.16.0.0/24.
Example configuration:
AWSTemplateFormatVersion: 2010-09-09
Resources:
ValidVpc03:
Type: AWS::EC2::VPC
Properties:
CidrBlock: '10.0.0.0/16'
ValidVpcNacl:
Type: AWS::EC2::NetworkAcl
Properties:
VpcId: !Ref ValidVpc03
ValidVpc03NaclEntry01:
Type: AWS::EC2::NetworkAclEntry
Properties:
NetworkAclId: !Ref ValidVpc03Nacl
RuleNumber: 10
RuleAction: allow
Protocol: 6
CidrBlock: "192.16.0.0/24"
PortRange:
From: 3389
To: 3389