<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:webfeeds="http://webfeeds.org/rss/1.0"><channel><title>Pod-Exec - CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/tags/pod-exec/</link><description>Trending threats, MITRE ATT&amp;CK coverage, and detection metadata. Fed continuously.</description><generator>Hugo</generator><language>en</language><managingEditor>hello@craftedsignal.io</managingEditor><webMaster>hello@craftedsignal.io</webMaster><lastBuildDate>Mon, 24 Aug 2026 15:47:12 +0000</lastBuildDate><atom:link href="https://feed.craftedsignal.io/tags/pod-exec/feed.xml" rel="self" type="application/rss+xml"/><image><url>https://feed.craftedsignal.io/favicon-32x32.png</url><title>CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/</link><width>32</width><height>32</height></image><webfeeds:icon>https://feed.craftedsignal.io/favicon.svg</webfeeds:icon><item><title>Kubernetes Pod Exec Sensitive File Access Detection</title><link>https://feed.craftedsignal.io/briefs/2026-08-k8s-pod-exec-credential-access/</link><pubDate>Mon, 24 Aug 2026 15:47:12 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2026-08-k8s-pod-exec-credential-access/</guid><description>Detection of Kubernetes pod exec sessions accessing sensitive host and in-cluster files used for credential theft and lateral movement.</description><content:encoded><![CDATA[<p>This alert addresses the abuse of the Kubernetes pod exec API to perform reconnaissance and credential theft. Attackers often leverage legitimate administrative access to interactively or programmatically access sensitive files within a container. This activity frequently precedes lateral movement or privilege escalation. The scope includes access to high-value targets such as mounted service account tokens (including IRSA and Workload Identity), host configuration files (/etc/shadow, /etc/passwd), private keys, keystores, and process environment variables that may contain secrets. The detection focuses on auditing Kubernetes API server logs for exec commands that reference these sensitive paths. Defending against this requires strict RBAC controls for the exec subresource and robust monitoring of audit logs for anomalous administrative access patterns.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>Attacker gains initial access to a Kubernetes cluster via compromised credentials or a vulnerable workload.</li>
<li>Attacker enumerates pods and containers to identify targets with sufficient privileges or sensitive mounts.</li>
<li>Attacker uses the 'kubectl exec' command or direct Kubernetes API calls to initiate an interactive session inside a container.</li>
<li>Attacker executes commands (e.g., cat, grep, ls) to probe for sensitive files or credential material in the container filesystem.</li>
<li>Attacker accesses high-value targets such as /var/run/secrets/kubernetes.io/serviceaccount/token or cloud-provider identity tokens.</li>
<li>Attacker exfiltrates discovered credentials or tokens to gain higher-level access to the cluster or cloud control plane.</li>
<li>Attacker performs further actions such as secret dumping, RBAC modifications, or container breakout to achieve final objectives.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>Successful exploitation of this technique allows an attacker to steal identity tokens, compromise service accounts, gain persistent access to the Kubernetes control plane, or escalate privileges within the cloud environment. Depending on the stolen credentials, this can lead to full cluster compromise or unauthorized access to external cloud resources (AWS, Azure, GCP).</p>
<h2 id="recommendation">Recommendation</h2>
<p>Prioritized, concrete actions for detection engineering teams:</p>
<ul>
<li>Deploy the ESQL detection logic to the SIEM and validate against existing audit logs.</li>
<li>Implement RBAC controls to restrict 'exec' permissions to only necessary users and automated service identities.</li>
<li>Review all pods with 'hostPath' mounts or privileged security contexts as these are primary targets for credential exfiltration.</li>
<li>Establish baseline monitoring for stable automation identities to reduce false positives from diagnostic or monitoring agents.</li>
</ul>
]]></content:encoded><category domain="severity">high</category><category domain="type">advisory</category><category>credential-access</category><category>kubernetes</category><category>pod-exec</category><category>cloud</category><category>threat-detection</category></item></channel></rss>