Skip to content

Elastic KQL/EQL: AI Agent Container Breakout to Worker Node Host Socket — Threat Hunting Query

Density:
Evaluation DimensionObserved Telemetry / AttributeEpistemic Status
Hunting Query IdentifierHUNT-ELASTIC-K8S-CONTAINER-ESCAPECanonical Hunt Node
Target SIEM / Analytics PlatformElasticsearch & Kibana (EQL)Telemetry Ingestion Engine
Platform Syntax Dialectelastic_kqlQuery Language Standard
Telemetry & Log SourcesKubernetes Audit Logs, Elastic Defend Process EventsData Sensor Sources
Targeted Adversary SyndicatesCLOSEDQUORUM Threat ClusterThreat Attribution
Associated Weaponized CVEsCVE-2026-101861Vulnerabilities Targeted
Associated Intrusion CampaignsCAMP-GLOVE-2026Monitored Campaign
Analytical Confidence96%Hypothesis Validity Score
Primary Evidence SourcesSRC-GITHUB-ADVISORIES, SRC-CISCO-TALOSIntelligence Attestation

Adversaries compromising Langflow instances (CVE-2026-101861) interact with host sockets or dump service account tokens to escalate to cluster administration.

Adversary operations frequently slip through standard alerting thresholds by leveraging legitimate binaries or abusing valid service configurations. Proactive threat hunting formulates precise hypotheses based on known architectural chokepoints and queries historical telemetry to unearth stealthy intrusion footholds.


process where event.type == "start" and
process.name in ("curl", "wget", "kubectl", "nc", "socat") and
(
process.command_line : "*docker.sock*" or
process.command_line : "*containerd.sock*" or
process.command_line : "*/var/run/secrets/kubernetes.io/serviceaccount*"
) and
container.image.name : "*langflow*"

Inspect Langflow pod container logs and verify if external IP communication took place. Rotate all cluster secrets and cloud credentials accessible to the service account.

  1. Verify Timeline Baseline: Review the first seen and last seen timestamps of returned events to distinguish chronic benign traffic from sudden operational spikes.
  2. Examine Parent-Child Lineage: Ensure that all parent processes match authorized deployment manifests and do not conceal unexpected interactive utilities.
  3. Inspect Network Pivots: Cross-reference communicating source and destination IP addresses against Hermes Adversary Infrastructure endpoints.