Back to Checks
system:authenticate group access binding
KSV-01011
Service: kubernetesSeverity: critical
OfficialBuilt-inVerified
Binding to system:authenticate group to any clusterrole or role is a security risk.
Run this check with Prowler
Run in Prowler CloudRun
prowler iac --checks KSV-01011Recommendation
Remove system:authenticated group binding from clusterrolebinding or rolebinding.
Check Code
# METADATA
# title: "system:authenticate group access binding"
# description: "Binding to system:authenticate group to any clusterrole or role is a security risk."
# scope: package
# schemas:
# - input: schema["kubernetes"]
# related_resources:
# - https://orca.security/resources/blog/sys-all-google-kubernetes-engine-risk/
# custom:
# id: KSV-01011
# long_id: kubernetes-no-system-authenticated-group-bind
# aliases:
# - AVD-KSV-01011
# - KSV01011
# - no-system-authenticated-group-bind
# - kubernetes-no-system-authenticated-group-bind
# severity: CRITICAL
# recommended_action: "Remove system:authenticated group binding from clusterrolebinding or rolebinding."
# input:
# selector:
# - type: kubernetes
# subtypes:
# - kind: rolebinding
# - kind: clusterrolebinding
package appshield.kubernetes.KSV01011
import rego.v1
import data.k8s
import data.lib.kubernetes
readRoleRefs := {"system:authenticated"}
authenticatedGroupBind if {
kubernetes.is_role_binding_kind
kubernetes.object.subjects[_].name in readRoleRefs
}
deny contains res if {
contains(k8s.version, "-gke")
authenticatedGroupBind
msg := kubernetes.format(sprintf("%s '%s' should not bind to roles %s", [kubernetes.kind, kubernetes.name, readRoleRefs]))
res := result.new(msg, input.metadata)
}