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 applicationsCompromised process could abuse writable root filesystem to elevate privileges.
Set securityContext.readOnlyRootFilesystem
to true
.
Set security_context.read_only_root_filesystem
to true
.
resource "kubernetes_pod" "allowed" {
metadata {
name = "terraform-example612"
}
spec {
container {
image = "nginx:1.7.9"
name = "example612"
security_context {
read_only_root_filesystem = true
}
}
dns_config {
nameservers = ["1.1.1.1", "8.8.8.8", "9.9.9.9"]
searches = ["example.com"]
}
dns_policy = "None"
}
}
resource "kubernetes_cron_job" "cron_allowed_1" {
metadata {
name = "demo"
}
spec {
concurrency_policy = "Replace"
failed_jobs_history_limit = 5
schedule = "1 0 * * *"
starting_deadline_seconds = 10
successful_jobs_history_limit = 10
job_template {
metadata {}
spec {
backoff_limit = 2
ttl_seconds_after_finished = 10
template {
metadata {}
spec {
container {
name = "hello"
image = "busybox"
security_context {
read_only_root_filesystem = true
}
command = ["/bin/sh", "-c", "date; echo Hello from the Kubernetes cluster"]
}
}
}
}
}
}
}