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 applicationsDefault seccomp profile is set to Unconfined
. Containers will run with seccomp disabled.
"Set spec.securityContext.seccompProfile.type
to RuntimeDefault
.
apiVersion: v1
kind: Container
metadata:
name: default-container
labels:
app: default-container
spec:
securityContext:
seccompProfile:
type: RuntimeDefault
containers:
- name: test-container
image: hashicorp/http-echo:1.0
args:
- "-text=just made some more syscalls!"
securityContext:
allowPrivilegeEscalation: false
Set seccomp.security.alpha.kubernetes.io/defaultProfileName
annotation to runtime/default
.
resource "kubernetes_pod_security_policy" "allowed" {
metadata {
name = "terraform-example640"
annotations = {
"seccomp.security.alpha.kubernetes.io/defaultProfileName" = "runtime/default"
}
}
spec {
privileged = false
allow_privilege_escalation = false
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
}
}
read_only_root_filesystem = true
}
}