<?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/"><channel><title>Imds — CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/tags/imds/</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>Wed, 27 May 2026 10:02:28 +0000</lastBuildDate><atom:link href="https://feed.craftedsignal.io/tags/imds/feed.xml" rel="self" type="application/rss+xml"/><item><title>Suspicious Instance Metadata Service (IMDS) API Request</title><link>https://feed.craftedsignal.io/briefs/2026-05-suspicious-imds-request/</link><pubDate>Wed, 27 May 2026 10:02:28 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2026-05-suspicious-imds-request/</guid><description>This rule detects suspicious network activity from tools or scripts attempting to access the cloud service provider's Instance Metadata Service (IMDS) API endpoint, potentially retrieving sensitive instance-specific information and credentials.</description><content:encoded><![CDATA[<p>This detection rule identifies processes making network requests to the Instance Metadata Service (IMDS) API endpoint (169.254.169.254). The IMDS API provides access to sensitive instance-specific information, including instance ID, public IP address, and temporary security credentials if roles are assumed by that instance. Attackers often exploit this service after gaining initial access to a cloud instance to escalate privileges and move laterally within the cloud environment. The rule focuses on detecting suspicious processes, scripts, or tools that are not typically associated with legitimate IMDS API requests. It covers Windows, macOS, and Linux systems.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>Initial Access: An attacker gains initial access to a cloud instance through various means, such as exploiting a web application vulnerability or using compromised credentials.</li>
<li>Execution: The attacker executes a command interpreter or scripting engine (e.g., bash, PowerShell, python) on the compromised instance.</li>
<li>Discovery: The attacker uses the command interpreter or scripting engine to make a network request to the IMDS API endpoint (169.254.169.254) on port 80.</li>
<li>Credential Access: The IMDS API provides the attacker with instance metadata, including temporary security credentials associated with the instance&rsquo;s IAM role.</li>
<li>Privilege Escalation: The attacker uses the acquired credentials to escalate privileges within the cloud environment.</li>
<li>Lateral Movement: The attacker uses the escalated privileges to move laterally to other cloud resources, such as storage, secrets, or other instances.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>Successful exploitation of the IMDS API can lead to the compromise of sensitive cloud resources. Attackers can steal credentials, escalate privileges, and move laterally within the cloud environment, potentially causing significant damage, data breaches, or service disruptions. The number of victims and sectors targeted varies depending on the specific campaign.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Deploy the Sigma rule &ldquo;Detect Suspicious IMDS API Request via Common Tools&rdquo; to your SIEM and tune for your environment.</li>
<li>Deploy the Sigma rule &ldquo;Detect Suspicious IMDS API Request from Unusual Locations&rdquo; to your SIEM and tune for your environment.</li>
<li>Block the IMDS API endpoint (169.254.169.254) at the network level for processes that do not require it, as described in the rule overview.</li>
<li>Review and harden instance IAM roles to limit the scope of credentials exposed through IMDS, as mentioned in the investigation guide.</li>
<li>Enforce IMDSv2, the more secure version of the IMDS API, as a preventative measure.</li>
<li>Monitor cloud control-plane telemetry for suspicious use of instance role credentials or managed identity tokens.</li>
<li>Investigate any alerts triggered by access to the IMDS API endpoint (169.254.169.254).</li>
</ul>
]]></content:encoded><category domain="severity">medium</category><category domain="type">threat</category><category>credential-access</category><category>discovery</category><category>cloud</category><category>imds</category></item><item><title>Suspicious Instance Metadata Service (IMDS) API Command Line Execution</title><link>https://feed.craftedsignal.io/briefs/2026-05-suspicious-imds-api-cli/</link><pubDate>Wed, 27 May 2026 10:02:11 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2026-05-suspicious-imds-api-cli/</guid><description>The rule identifies command-line executions that attempt to access cloud service provider's Instance Metadata Service (IMDS) API endpoints, potentially retrieving sensitive instance information and temporary security credentials, ultimately leading to credential access and privilege escalation within the cloud environment.</description><content:encoded><![CDATA[<p>This detection rule identifies command-line activity that attempts to query a cloud instance&rsquo;s metadata service (IMDS) API endpoint. Attackers commonly exploit IMDS to retrieve sensitive instance-specific information, including instance IDs, public IP addresses, and temporary security credentials associated with assumed roles. The rule focuses on command-line tools and scripts like <code>curl</code>, <code>wget</code>, <code>powershell.exe</code>, and others, running on Linux, macOS, and Windows systems. This behavior allows attackers to gain unauthorized access to cloud resources by leveraging stolen credentials without needing passwords. The rule aims to detect this reconnaissance and credential access technique early in the attack chain.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>An attacker gains initial access to a cloud virtual machine (VM) through methods such as exploiting a web application vulnerability or using compromised credentials.</li>
<li>Upon gaining code execution, the attacker uses a command-line tool such as <code>curl</code> or <code>wget</code> to query the local instance metadata service (IMDS) endpoint.</li>
<li>The attacker crafts a request to retrieve IAM role credentials by accessing the IMDS endpoint at <code>http://169.254.169.254/latest/meta-data/iam/security-credentials/</code>.</li>
<li>If the instance has an IAM role assigned, the IMDS API returns temporary security credentials, including an access key ID, secret access key, and session token.</li>
<li>Alternatively, the attacker may target Azure managed identities by querying <code>/metadata/identity/oauth2/token*resource=*</code>.</li>
<li>The attacker exports the retrieved credentials, writing them to disk or setting them as environment variables.</li>
<li>The attacker uses the stolen credentials to interact with cloud resources, such as accessing storage buckets, secrets management services, or IAM APIs.</li>
<li>The attacker escalates privileges and moves laterally within the cloud environment using the compromised credentials.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>Successful exploitation allows attackers to obtain sensitive cloud credentials without requiring passwords. This can lead to unauthorized access to critical cloud resources, data breaches, and privilege escalation within the victim&rsquo;s cloud environment. The impact may include unauthorized data access, exfiltration of sensitive information, and potentially full compromise of the cloud infrastructure. The risk score is rated at 47, emphasizing the severity of potential credential compromise.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Deploy the Sigma rule &ldquo;Detect Suspicious IMDS API Access via Common Tools&rdquo; to your SIEM to identify suspicious command-line access attempts to the IMDS endpoint.</li>
<li>Enable Sysmon process creation logging to capture command-line activity on Windows systems for the Sigma rule (see logsource in rules).</li>
<li>Implement network segmentation to limit which users, services, or containers can reach the metadata endpoint as mentioned in the response and remediation steps.</li>
<li>Enforce the use of IMDSv2 (instance metadata service version 2) to mitigate the risks associated with IMDSv1, per the hardening recommendations in the analysis section.</li>
<li>Review and minimize the permissions granted to IAM roles associated with cloud instances to adhere to the principle of least privilege.</li>
<li>Monitor cloud control plane telemetry for suspicious use of instance role credentials or managed identity tokens against sensitive APIs.</li>
</ul>
]]></content:encoded><category domain="severity">medium</category><category domain="type">threat</category><category>credential-access</category><category>cloud</category><category>imds</category></item></channel></rss>