<?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>Wmic — CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/tags/wmic/</link><description>Trending threats, MITRE ATT&amp;CK coverage, and detection metadata — refreshed continuously.</description><generator>Hugo</generator><language>en</language><managingEditor>hello@craftedsignal.io</managingEditor><webMaster>hello@craftedsignal.io</webMaster><lastBuildDate>Wed, 03 Jan 2024 12:00:00 +0000</lastBuildDate><atom:link href="https://feed.craftedsignal.io/tags/wmic/feed.xml" rel="self" type="application/rss+xml"/><item><title>Suspicious WMIC Application Uninstallation</title><link>https://feed.craftedsignal.io/briefs/2024-01-wmic-uninstallation/</link><pubDate>Wed, 03 Jan 2024 12:00:00 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2024-01-wmic-uninstallation/</guid><description>This analytic identifies the use of the WMIC command-line tool to uninstall applications non-interactively, a technique used to evade detection by removing security software, as observed in IcedID campaigns.</description><content:encoded><![CDATA[<p>This detection focuses on the abuse of Windows Management Instrumentation Command-line (WMIC) to uninstall applications in a non-interactive manner. This technique is often employed by threat actors, including IcedID, to disable or remove security software, such as antivirus solutions, in order to evade detection and establish a stronger foothold within a compromised environment. This activity is often seen post-compromise, after initial access has been established, and is used to further the attacker&rsquo;s objectives. The use of the <code>/nointeractive</code> flag is a key indicator of this malicious activity. This behavior is significant because it allows attackers to disable security defenses, facilitating further compromise and persistence within the environment.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>Initial access is gained through a phishing campaign or other exploit.</li>
<li>The attacker executes a malicious payload on the victim machine.</li>
<li>The payload establishes persistence and elevates privileges.</li>
<li>WMIC is invoked via <code>wmic.exe</code> with parameters to enumerate installed products.</li>
<li>The attacker uses the <code>product</code> argument with a <code>where name</code> clause to identify target applications.</li>
<li>WMIC is then used with the <code>call uninstall</code> command to remove the target application.</li>
<li>The <code>/nointeractive</code> flag is used to suppress prompts and execute the uninstall silently.</li>
<li>Security software is disabled, allowing for further malicious activity.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>Successful execution of this attack results in the removal of security software, such as antivirus or endpoint detection and response (EDR) agents, which significantly reduces the victim&rsquo;s ability to detect and respond to the compromise. As seen in the IcedID campaign, this can lead to rapid escalation, such as ransomware deployment within 24 hours. This can affect any Windows environment where WMIC is accessible, potentially impacting organizations of any size.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Deploy the Sigma rule <code>Suspicious WMIC Product Uninstall via CommandLine</code> to detect non-interactive uninstallation attempts.</li>
<li>Investigate any process that spawns <code>wmic.exe</code> with arguments containing <code>product</code>, <code>where name</code>, <code>call uninstall</code>, and <code>/nointeractive</code>, as highlighted in the rule description.</li>
<li>Ensure endpoint detection and response (EDR) agents are configured to log process command-line arguments, which is required for the detection to function correctly.</li>
<li>Review and harden endpoint security policies to restrict the use of WMIC where possible.</li>
<li>Monitor parent processes of <code>wmic.exe</code> to identify potential malicious origins.</li>
<li>Whitelist legitimate uses of <code>wmic.exe</code> for application uninstallation, based on parent process and command line, to reduce false positives.</li>
</ul>
]]></content:encoded><category domain="severity">high</category><category domain="type">threat</category><category>defense-evasion</category><category>application-uninstall</category><category>wmic</category></item><item><title>Detection of Process Termination via File Path Using WMIC</title><link>https://feed.craftedsignal.io/briefs/2024-01-03-process-kill-file-path/</link><pubDate>Wed, 03 Jan 2024 12:00:00 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2024-01-03-process-kill-file-path/</guid><description>This analytic detects the use of `wmic.exe` with the `delete` command to terminate a process by specifying its executable path, often used to disable security tools or critical processes during the setup of malicious activities like cryptocurrency mining.</description><content:encoded><![CDATA[<p>This detection focuses on identifying the use of the Windows Management Instrumentation Command-line (WMIC) utility to terminate processes by referencing their file paths. Specifically, it looks for instances where <code>wmic.exe</code> is used with the <code>delete</code> command targeting an executable path. This technique is often employed by attackers to disable security software, terminate competing processes (such as other miners), or halt critical system services, as seen in cases involving cryptocurrency miners. The activity is often associated with the initial stages of setting up malicious operations on an endpoint, giving defenders an opportunity to disrupt attacks early in the kill chain. The source material was released in 2026, but the underlying technique has been used since at least 2020.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>An attacker gains initial access to the system, often through methods not directly covered by this detection (e.g., exploiting a vulnerability or using compromised credentials).</li>
<li>The attacker executes <code>wmic.exe</code> with specific parameters to target a running process.</li>
<li>The command includes the <code>process</code> argument to specify the process to be targeted, the <code>executablepath</code> argument to identify the process by its file path, and the <code>delete</code> command to terminate the process.</li>
<li><code>wmic.exe</code> attempts to locate the process based on the provided file path.</li>
<li>If the process is found, <code>wmic.exe</code> sends a termination signal to the process.</li>
<li>The targeted process is terminated.</li>
<li>The attacker repeats this process to disable other security tools or competing processes.</li>
<li>The attacker proceeds with their primary objective, such as deploying and executing a cryptocurrency miner or establishing persistence.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>Successful execution of this technique can lead to the disabling of security software, allowing malware to operate unimpeded. It can also result in the termination of critical system processes, leading to system instability or data loss. Observed cases include the deployment of XMRig cryptocurrency miners following the termination of security tools. If left unchecked, this activity can significantly increase the attacker&rsquo;s foothold within the compromised environment, facilitating further malicious actions.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Deploy the Sigma rule <code>Detect Process Termination via WMIC File Path</code> to your SIEM and tune it for your environment to identify malicious process termination attempts.</li>
<li>Enable Sysmon process creation logging (Event ID 1) and Windows Event Log Security (4688) to provide the necessary data for the Sigma rules.</li>
<li>Investigate any identified instances of <code>wmic.exe</code> being used with the <code>delete</code> command, especially when targeting executable paths of known security products or critical system processes.</li>
<li>Implement the <code>process_kill_base_on_file_path_filter</code> macro referenced in the search query to reduce noise.</li>
</ul>
]]></content:encoded><category domain="severity">high</category><category domain="type">advisory</category><category>process-termination</category><category>wmic</category><category>cryptocurrency-mining</category><category>endpoint</category></item></channel></rss>