k8s

Warn

Audited by Socket on Aug 31, 2026

5 alerts found:

Securityx5
SecurityMEDIUM
evals/cases/bad-k8s-host-boundary/values.yaml

This fragment does not show explicit malicious code, but it configures a highly privileged Kubernetes pod: it mounts the host Docker socket, enables host networking and host PID namespaces, and runs in privileged mode. This combination creates a strong host-compromise pathway if the image/application is compromised, and the empty image tag adds deployment/supply-chain ambiguity. Immediate security review and privilege tightening are warranted.

Confidence: 72%Severity: 92%
SecurityMEDIUM
evals/cases/bad-k8s-host-boundary/NOTES.md

No executable/malicious code is present in this fragment because it is narrative/static text rather than a real manifest or program. However, it explicitly describes a highly privileged Kubernetes pod configuration pattern (hostNetwork + hostPID + privileged: true + writable docker.sock via hostPath) engineered to make only a targeted detection rule fire. If these fields were actually applied in a real Deployment, the risk would be high due to likely container runtime/host compromise potential; based on the fragment alone, malicious behavior is not proven, but the described security posture is severely dangerous.

Confidence: 52%Severity: 70%
SecurityMEDIUM
evals/cases/bad-k8s-rbac-cluster-admin/templates/rbac.yaml

No malicious code is present in this YAML fragment (it is RBAC configuration only). However, the manifest grants the billing/invoice-api ServiceAccount effectively cluster-admin privileges—an extreme authorization scope that sharply increases impact if that identity is compromised or abused. This should be treated as a high-severity security misconfiguration/red-flag requiring review and replacement with least-privilege RBAC.

Confidence: 86%Severity: 92%
SecurityMEDIUM
evals/cases/bad-k8s-exposed-nodeport/NOTES.md

No direct evidence of intentional malware/backdoor behavior is shown; however, the fragment indicates significant Kubernetes security misconfiguration risk: fixed NodePort exposure (`nodePort: 31820`), unnecessary automounting of Kubernetes service account tokens, and embedding a sensitive `SESSION_SIGNING_KEY` as a plaintext environment value instead of using a Kubernetes Secret reference. These factors substantially increase attack surface and the likelihood of credential compromise if the workload or deployment artifacts are exposed.

Confidence: 45%Severity: 78%
SecurityMEDIUM
evals/cases/bad-values-secret-latest-noprobes/values.yaml

This YAML fragment contains no executable malicious logic, but it is security-critical: it hardcodes high-value credentials into container environment variables and uses a mutable image tag (latest) with pullPolicy: Always, increasing supply-chain/runtime uncertainty. If any of these credential values are real or if the referenced image/workload is compromised, the setup can directly enable credential theft and cloud/data access. Treat as a secrets leak pattern and rotate/revoke exposed credentials; replace plaintext env values with a secrets manager and pin images by immutable digests/signatures.

Confidence: 82%Severity: 90%
Audit Metadata
Analyzed At
Aug 31, 2026, 09:21 AM
Package URL
pkg:socket/skills-sh/anmolnagpal%2Fdevops-skills%2Fk8s%2F@989870690b42387706815db79f71cb5fc08f17088197557174e532f725980478
Security Audit — socket — k8s