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 applicationsAllowing privilege escalation violates least privilege and could allow an attacker to gain unauthorized access to sensitive resources or execute arbitrary code.
Set allowPrivilegeEscalation
to false
.
Set the allow_privilege_escalation
attribute to false
.
resource "kubernetes_pod_security_policy" "allowed" {
metadata {
name = "terraform-example630-1"
}
spec {
privileged = false
allow_privilege_escalation = false
read_only_root_filesystem = true
run_as_user {
rule = "MustRunAsNonRoot"
}
se_linux {
rule = "RunAsAny"
}
supplemental_groups {
rule = "MustRunAs"
range {
min = 1
max = 65535
}
}
fs_group {
rule = "MustRunAs"
range {
min = 1
max = 65535
}
}
}
}