<?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>Event-Triggered-Execution - CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/tags/event-triggered-execution/</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, 03 Jan 2024 14:27:00 +0000</lastBuildDate><atom:link href="https://feed.craftedsignal.io/tags/event-triggered-execution/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>Persistence via WMI Event Subscription</title><link>https://feed.craftedsignal.io/briefs/2024-01-03-wmi-persistence/</link><pubDate>Wed, 03 Jan 2024 14:27:00 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2024-01-03-wmi-persistence/</guid><description>Adversaries leverage Windows Management Instrumentation (WMI) to establish persistence by creating event subscriptions that trigger malicious code execution when specific events occur, often utilizing `wmic.exe` to create event consumers.</description><content:encoded><![CDATA[<p>Attackers can abuse Windows Management Instrumentation (WMI), a powerful Windows management framework, to maintain persistent access to systems. This involves creating WMI event filters, providers, consumers, and bindings that execute code upon specific event triggers. This technique allows threat actors to subscribe to events and execute arbitrary code when those events transpire, ensuring a persistent foothold on the targeted system. The detection focuses on the use of <code>wmic.exe</code> with specific arguments used to set up malicious WMI event subscriptions, a common method for attackers seeking to establish persistence. This activity can be difficult to detect without specific monitoring rules, making it a valuable technique for attackers targeting a wide range of Windows environments.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>Initial Access: The attacker gains initial access to the system through various methods (not specified in source).</li>
<li>Privilege Escalation: The attacker may attempt to elevate privileges to perform WMI tasks.</li>
<li>Discovery: The attacker uses reconnaissance commands to explore the WMI environment.</li>
<li>WMI Event Filter Creation: The attacker uses <code>wmic.exe</code> to create a WMI event filter that defines the event to monitor.</li>
<li>WMI Event Consumer Creation: The attacker uses <code>wmic.exe</code> to create an event consumer, such as <code>ActiveScriptEventConsumer</code> or <code>CommandLineEventConsumer</code>, which specifies the action to take when the event occurs. This action is often malicious code execution.</li>
<li>WMI Binding Creation: The attacker creates a binding between the event filter and the event consumer, linking the trigger to the action.</li>
<li>Persistence: The WMI event subscription ensures that the malicious code is executed whenever the defined event occurs, providing persistence.</li>
<li>Execution: When the defined event occurs, the configured consumer executes the malicious payload.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>Successful exploitation allows attackers to maintain persistent access to compromised systems. This can lead to data theft, system disruption, or further malicious activities within the network. Due to the nature of WMI, this persistence mechanism can be difficult to detect and remove, potentially granting long-term access to the attacker. This technique impacts all Windows systems where WMI is enabled.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Monitor process execution for <code>wmic.exe</code> with arguments &quot;create&quot;, &quot;ActiveScriptEventConsumer&quot;, or &quot;CommandLineEventConsumer&quot; to detect potential WMI event subscription abuse, as highlighted in the rule description.</li>
<li>Implement the provided Sigma rule to detect suspicious usage of <code>wmic.exe</code> related to WMI event subscription for persistence.</li>
<li>Investigate parent processes of <code>wmic.exe</code> for unexpected or unauthorized activity.</li>
<li>Regularly review WMI event filters, consumers, and bindings for any unauthorized or suspicious entries using tools like <code>wevtutil</code> or PowerShell.</li>
</ul>
]]></content:encoded><category domain="severity">medium</category><category domain="type">advisory</category><category>persistence</category><category>wmi</category><category>event-triggered-execution</category><category>windows</category></item></channel></rss>