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 applicationsOpening unnecessary port ranges in Compute Engine/GCE Firewall Rules for inbound traffic increases the attack surface and potential risk of unauthorized access. It is important to restrict the range of ports to only those that are required for legitimate traffic to minimize the exposure to potential threats.
Set allow.ports
to a specific port number instead of a range of ports where the direction
is INGRESS
.
Example configuration:
resource "google_compute_network" "default" {
name = "example718"
}
resource "google_compute_firewall" "allowed1" {
name = "example718a1"
network = google_compute_network.default.name
direction = "INGRESS"
allow {
protocol = "tcp"
ports = ["80", "443"]
}
source_ranges = ["192.168.0.0/24"]
}