Skip to content
FendixDocumentationDocs

.fendix.yaml · SEC-001 · SARIF

Current release v3.7.0
CheckStablev3.7.0

Kubernetes container runAsUser: 0 (root)

Kubernetes container runAsUser: 0 (root): an infrastructure as code check run by the textscan analyzer.

On this page
IAC_K8S_RUNS_AS_ROOT
Analyzer
textscan
Category
Infrastructure as code
Default severity
HIGH
CWE
CWE-250
Execution
Passive
Authentication
Not required
Applicability
yaml
Availability
stable

What it detects

Kubernetes container runAsUser: 0 (root): an infrastructure as code check run by the textscan analyzer.

Evidence

The matching source path, line, and bounded code observation produced by the native rule.

Remediation

Set runAsUser to a non-zero UID, or runAsNonRoot: true to refuse to start if the image's USER is root.

Limitations

This check is limited to the applicability and evidence delivered by textscan. Review the evidence in context; a match is a finding input, while confidence and policy determine its disposition.

Analyzer Registry · Findings and release decisions · Policy and confidence

Remediation guidance: Remediation and fix verification · Baselines and suppressions