Detect LLMKube hostPath Path Traversal via Model.spec.source (CVE-2026-68903) in Splunk
Detects exploitation of CVE-2026-68903, an arbitrary host file read vulnerability in LLMKube (github.com/defilantech/llmkube) versions <= 0.8.28. The LLMKube Kubernetes operator fails to validate the Model.spec.source field, allowing an attacker who can create or modify Model custom resources to inject a hostPath (e.g. '../../../../etc/shadow' or absolute paths) that the operator mounts and reads from the host node filesystem. This enables disclosure of sensitive host files such as /etc/shadow, kubelet credentials, service-account tokens and TLS keys. Detection focuses on Model CR creation/modification containing path-traversal or absolute hostPath patterns in spec.source, operator pods reading sensitive host paths, and Kubernetes audit events for llmkube.defilantech.io Model resources. Fixed in v0.9.0 (PR #981, commit ec2647f).
MITRE ATT&CK
- Tactic
- Initial Access Discovery Collection
SPL Detection Query
``` df00tech DF00-fcc53d43cb · https://df00tech.com/detections/CVE-2026-68903 · licence: https://df00tech.com/detections/licence ```
index=k8s_audit (objectRef.resource=models OR objectRef.apiGroup="llmkube.defilantech.io") verb IN (create,update,patch)
| eval src=coalesce('requestObject.spec.source','responseObject.spec.source')
| where isnotnull(src) AND (match(src,"^/") OR match(src,"\.\.\/") OR match(src,"/etc/") OR match(src,"/var/run/secrets") OR match(src,"%2e%2e") OR match(src,"file://"))
| table _time user.username objectRef.namespace objectRef.name src sourceIPs verb
| sort -_time Splunk search over Kubernetes audit sourcetype for LLMKube Model CR mutations referencing traversal or absolute host paths in spec.source.
Data Sources
Required Sourcetypes
False Positives & Tuning
- Admins intentionally mounting node-local model directories via absolute paths
- Non-production/test clusters creating Model CRs with local sources
- GitOps reconcilers re-applying legitimate manifests
Other platforms for CVE-2026-68903
Testing Methodology
Validate this detection against 3 adversary techniques from Atomic Red Team. Each test below lists the behaviour to exercise and the telemetry you should expect to see. Executable commands and cleanup steps are further down this page.
- Test 1 Create LLMKube Model CR with path traversal in spec.source
Expected signal: Kubernetes audit log event with objectRef.resource=models, verb=create, requestObject.spec.source containing '../' sequences.
- Test 2 Create LLMKube Model CR with absolute host path to secrets
Expected signal: Audit event with requestObject.spec.source = '/var/run/secrets/...' for models resource.
- Test 3 Patch existing Model CR to inject traversal source
Expected signal: Audit event with verb=patch/update and requestObject.spec.source containing '../' for the models resource.
References (5)
- https://github.com/defilantech/LLMKube/security/advisories/GHSA-jw3m-8q7m-f35r
- https://github.com/defilantech/LLMKube/pull/981
- https://github.com/defilantech/LLMKube/commit/ec2647fd4557962a971a1bc9435790b8e77ce961
- https://github.com/defilantech/LLMKube/releases/tag/v0.9.0
- https://github.com/advisories/GHSA-jw3m-8q7m-f35r
Response Playbook
Triage
- Retrieve the full Model custom resource (`kubectl get model <name> -n <ns> -o yaml`) and inspect spec.source for traversal sequences (../) or absolute host paths targeting sensitive files (/etc/shadow, /var/run/secrets, kubelet certs).
- Identify the user/service account that created or modified the Model CR from the Kubernetes audit log (user.username, sourceIPs) and determine whether that identity is expected to manage Model resources.
- Check the LLMKube operator/controller pod logs around the event time for file-read activity or mount operations referencing the suspicious source path.
- Confirm the deployed LLMKube version: if <= 0.8.28 the cluster is vulnerable (fixed in v0.9.0).
Containment
- Delete or revert the malicious Model CR and cordon affected nodes if host file disclosure is suspected.
- Restrict RBAC so only trusted service accounts can create/update llmkube.defilantech.io Model resources, and add an admission policy (OPA/Gatekeeper/Kyverno) rejecting spec.source values containing '..' or leading '/'.
- Upgrade LLMKube to v0.9.0 or later which validates spec.source.
Evidence Collection
- Export the Kubernetes API server audit logs for all models resource verbs over the exposure window, preserving requestObject.spec.source.
- Capture the LLMKube operator pod logs and any filesystem artifacts (read files, temp mounts) from the affected node.
Escalation Criteria
- !Escalate to IR if spec.source referenced credential or secret files (/etc/shadow, service-account tokens, TLS keys) and the operator successfully read them.
- !Escalate if the creating identity is unexpected or externally sourced, or if multiple nodes/namespaces show the same traversal pattern indicating active exploitation.
Investigation Guide
Forensic Artifacts
- >
Kubernetes API server audit log entries for models resource with requestObject.spec.source - >
LLMKube operator pod logs and stdout referencing mounted/read source paths - >
Node filesystem access timestamps (atime) on sensitive files such as /etc/shadow
Tuning Guidance
Baseline the legitimate spec.source values your teams use (typically https:// or s3:// URLs, or a known on-node model-cache directory). Allowlist that known-good absolute path if host-mounted caching is intentional, then alert on any other absolute or '..'-containing source. Combine with RBAC context to prioritize events from identities not expected to manage Model resources.
Hunting Queries
Surface all LLMKube Model CRs whose spec.source uses traversal or absolute paths, grouped by creating identity and namespace, to find exploitation attempts.
// df00tech DF00-fcc53d43cb · https://df00tech.com/detections/CVE-2026-68903 · licence: https://df00tech.com/detections/licence
KubeAudit_CL | where ObjectRef_resource_s == "models" | extend src = tostring(RequestObject_spec_source_s) | where src has ".." or src startswith "/" | summarize count() by User_username_s, src, ObjectRef_namespace_s ``` df00tech DF00-fcc53d43cb · https://df00tech.com/detections/CVE-2026-68903 · licence: https://df00tech.com/detections/licence ```
index=k8s_audit objectRef.resource=models | eval src=coalesce('requestObject.spec.source','responseObject.spec.source') | where match(src,"\.\.") OR match(src,"^/") | stats count by user.username, src, objectRef.namespace Atomic Red Team Tests
Simulates exploitation by creating a Model custom resource whose spec.source attempts to read /etc/shadow via traversal (lab cluster only).
Command
kubectl apply -f - <<'EOF'
apiVersion: llmkube.defilantech.io/v1alpha1
kind: Model
metadata:
name: atomic-traversal-test
namespace: default
spec:
source: "../../../../../../etc/shadow"
EOF Cleanup
kubectl delete model atomic-traversal-test -n default --ignore-not-found Expected Telemetry
Kubernetes audit log event with objectRef.resource=models, verb=create, requestObject.spec.source containing '../' sequences.
Expected Detection
KQL/SPL rule fires on spec.source containing traversal sequence.
Creates a Model CR referencing the absolute kubelet secrets directory to simulate host-credential disclosure (lab only).
Command
kubectl apply -f - <<'EOF'
apiVersion: llmkube.defilantech.io/v1alpha1
kind: Model
metadata:
name: atomic-abspath-test
namespace: default
spec:
source: "/var/run/secrets/kubernetes.io/serviceaccount/token"
EOF Cleanup
kubectl delete model atomic-abspath-test -n default --ignore-not-found Expected Telemetry
Audit event with requestObject.spec.source = '/var/run/secrets/...' for models resource.
Expected Detection
Rule matches absolute path starting with '/' against sensitive location pattern.
Mutates an existing benign Model CR to change spec.source to a traversal payload, testing update/patch verb coverage.
Command
kubectl create model atomic-patch-test -n default --dry-run=client -o yaml > /tmp/m.yaml 2>/dev/null; kubectl apply -f - <<'EOF'
apiVersion: llmkube.defilantech.io/v1alpha1
kind: Model
metadata:
name: atomic-patch-test
namespace: default
spec:
source: "https://example.com/model.gguf"
EOF
kubectl patch model atomic-patch-test -n default --type merge -p '{"spec":{"source":"../../../../etc/passwd"}}' Cleanup
kubectl delete model atomic-patch-test -n default --ignore-not-found Expected Telemetry
Audit event with verb=patch/update and requestObject.spec.source containing '../' for the models resource.
Expected Detection
Rule matches on update/patch verb with traversal in spec.source.