<?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>Dns-Query - CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/tags/dns-query/</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>Fri, 24 Jul 2026 09:10:19 +0000</lastBuildDate><atom:link href="https://feed.craftedsignal.io/tags/dns-query/feed.xml" rel="self" type="application/rss+xml"/><item><title>Malware Employs Web Services for Victim IP Reconnaissance</title><link>https://feed.craftedsignal.io/briefs/2026-07-malware-ip-reconnaissance/</link><pubDate>Fri, 24 Jul 2026 09:10:19 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2026-07-malware-ip-reconnaissance/</guid><description>Malware, including Trickbot and various stealers, utilizes DNS queries to public IP checking web services for reconnaissance purposes, aiming to determine the victim's external IP address, which can facilitate further attacks or lateral movement.</description><content:encoded><![CDATA[<p>Threat actors deploy malware, such as Trickbot, Azorult, DarkCrystal RAT, and other information stealers, that perform reconnaissance by querying public web services to ascertain the victim machine's external IP address. This activity, identifiable through Sysmon Event ID 22 logs, involves processes initiating DNS requests to a predefined list of IP-checking domains like &quot;wtfismyip.com,&quot; &quot;ipinfo.io,&quot; and &quot;icanhazip.com.&quot; This behavior is a common preliminary step for malware to gather environmental information, which is crucial for subsequent attack phases such as command and control (C2) communication, target profiling, or planning lateral movement within a compromised network. Detecting such reconnaissance early allows defenders to identify potentially malicious activity before more damaging stages of an attack unfold.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>Malware successfully executes on the victim's Windows endpoint, typically delivered via phishing or drive-by download.</li>
<li>The malicious process initiates internal reconnaissance to identify initial system characteristics and prepares to determine its external network presence.</li>
<li>The malware constructs a DNS query for a known public IP address checking web service, such as <code>ipecho.net</code> or <code>api.ipify.org</code>.</li>
<li>The operating system's DNS resolver processes this query, attempting to resolve the domain to an IP address.</li>
<li>Upon successful resolution, the malware receives the IP address of the external IP checking service.</li>
<li>The malware establishes an outbound network connection to the resolved IP address to communicate with the IP checking web service.</li>
<li>The IP checking service responds with the victim's external public IP address, which the malware parses and extracts.</li>
<li>The malware leverages this newly acquired external IP for various purposes, including reporting to its C2 server or tailoring subsequent attack steps like targeting specific external infrastructure.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>Successful IP reconnaissance by malware allows threat actors to gain critical network context about their victims. This information can be used to bypass network security controls, establish more reliable command and control channels, or tailor subsequent attack stages, such as targeting specific external-facing services or planning lateral movement from an internet-facing host. While this activity alone does not directly cause immediate data loss or system compromise, it is a foundational step for many malware families, making its detection vital for early threat intervention and preventing more severe consequences like data exfiltration, ransomware deployment, or widespread network compromise.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Deploy the <code>Detect Malware IP Reconnaissance via DNS Queries</code> Sigma rule to your SIEM and configure Sysmon to log Event ID 22 for DNS queries.</li>
<li>Monitor for DNS queries to the domains listed in the IOC table and investigate any hits, especially from non-browser processes.</li>
<li>Tune the <code>Detect Malware IP Reconnaissance via DNS Queries</code> rule by creating allowlists for known legitimate applications, such as internet browsers, that might query these services, as noted in the rule's <code>falsepositives</code>.</li>
</ul>
]]></content:encoded><category domain="severity">medium</category><category domain="type">advisory</category><category>reconnaissance</category><category>malware</category><category>dns-query</category><category>windows</category></item></channel></rss>