<?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>Azure Instance Metadata Service - CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/products/azure-instance-metadata-service/</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:03 +0000</lastBuildDate><atom:link href="https://feed.craftedsignal.io/products/azure-instance-metadata-service/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 Exploitation of Cloud Instance Metadata</title><link>https://feed.craftedsignal.io/briefs/2026-08-k8s-pod-exec-metadata/</link><pubDate>Mon, 24 Aug 2026 15:47:03 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2026-08-k8s-pod-exec-metadata/</guid><description>Threat actors utilize Kubernetes pod exec sessions to query cloud instance metadata endpoints for credential harvesting and unauthorized access to cloud environment resources.</description><content:encoded><![CDATA[<p>Unauthorized access to cloud instance metadata services via Kubernetes (K8s) containers is a significant security risk in multi-tenant and regulated environments. Adversaries who gain access to a K8s cluster and successfully perform a pod exec operation can abuse this capability to interact with link-local IP addresses (e.g., 169.254.169.254) or cloud-provider specific hostnames. By targeting AWS IMDS, GCP computeMetadata, or Azure IMDS, attackers can exfiltrate sensitive data, including temporary IAM role credentials, OAuth tokens, and instance metadata. This technique allows an attacker to pivot from a compromised container to the underlying node identity, potentially leading to widespread privilege escalation across the cloud environment. Defenders must monitor Kubernetes API audit logs for suspicious exec request patterns that include metadata-related strings.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>Attacker gains initial access to the Kubernetes cluster through an exploited service or compromised pod.</li>
<li>Attacker identifies a high-value pod that has access to the cloud environment or elevated IAM permissions.</li>
<li>Attacker uses the <code>kubectl exec</code> API to execute commands within the context of the targeted container.</li>
<li>Attacker crafts a command-line string (e.g., <code>curl</code> or <code>wget</code>) pointing to cloud provider metadata endpoints.</li>
<li>The containerized process transmits an HTTP request to the metadata service (e.g., 169.254.169.254) from within the K8s pod network.</li>
<li>The metadata service returns temporary credentials, tokens, or instance attributes to the container.</li>
<li>Attacker captures and exfiltrates the returned credentials to a remote command-and-control server.</li>
<li>Attacker uses the stolen credentials to authenticate to cloud APIs and achieve unauthorized data access or persistence.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>Successful exploitation allows attackers to bypass container isolation and assume the identity of the underlying cloud instance profile. This typically leads to full credential compromise for the associated IAM role, facilitating lateral movement into cloud infrastructure, data exfiltration from storage buckets, or the modification of infrastructure settings within AWS, GCP, or Azure environments.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Implement network policies that strictly deny pod access to the cloud metadata service IP (169.254.169.254) and other internal cloud service hostnames.</li>
<li>Audit all uses of <code>kubectl exec</code> within the cluster to baseline administrative behavior and identify anomalous requests.</li>
<li>Enable Kubernetes API server audit logging and ingest these logs into a SIEM for detection and correlation.</li>
<li>Review IAM roles associated with K8s nodes and minimize the scope of permissions to follow the principle of least privilege.</li>
<li>Deploy detection logic focused on command-line arguments within audit logs that reference metadata service paths, as provided in the detection section below.</li>
</ul>
]]></content:encoded><category domain="severity">high</category><category domain="type">advisory</category></item></channel></rss>