<?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>XMRig - CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/actors/xmrig/</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 12:00:00 +0000</lastBuildDate><atom:link href="https://feed.craftedsignal.io/actors/xmrig/feed.xml" rel="self" type="application/rss+xml"/><item><title>Excessive Usage of SC Service Utility</title><link>https://feed.craftedsignal.io/briefs/2024-01-excessive-sc-usage/</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-excessive-sc-usage/</guid><description>Detection of anomalous usage of sc.exe, often abused by ransomware and malware to manipulate services for privilege escalation or disabling security measures.</description><content:encoded><![CDATA[<p>This detection identifies potentially malicious activity related to the excessive use of <code>sc.exe</code>, the Windows Service Control Manager command-line utility. Observed in various ransomware campaigns and malware such as XMRig, adversaries leverage <code>sc.exe</code> to create, modify, delete, or disable system services. These actions may target security applications to weaken defenses or be used for privilege escalation to gain elevated access. The detection logic analyzes process creation events for <code>sc.exe</code>, identifies outliers in its execution frequency, and highlights potentially malicious instances that deviate significantly from established baselines. This activity warrants investigation as it often precedes or accompanies more severe malicious actions.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>Initial Access: Adversary gains access to the target system through unspecified means (e.g., exploitation, compromised credentials).</li>
<li>Persistence: The adversary uses sc.exe to create a new service configured to execute a malicious payload upon system restart.</li>
<li>Defense Evasion: sc.exe is used to disable or delete existing services, potentially including security software or logging mechanisms.</li>
<li>Privilege Escalation: A vulnerable service is identified or created, and sc.exe is used to modify its configuration, allowing the adversary to execute code with elevated privileges.</li>
<li>Execution: sc.exe is used to start the modified or newly created service, triggering the execution of the malicious payload.</li>
<li>Lateral Movement: The adversary uses sc.exe combined with other tools (e.g., PsExec, WMI) to manage services on other systems in the network, facilitating lateral movement.</li>
<li>Impact: Depending on the adversary's objective, the final impact could range from data exfiltration to system encryption (ransomware), achieved through services manipulated with sc.exe.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>Compromise via excessive <code>sc.exe</code> usage can lead to significant disruption, including disabling critical security controls, escalating privileges, and enabling lateral movement across a network. Successful exploitation often results in malware deployment, data theft, or ransomware encryption. While specific victim numbers are not detailed in the source, the targeted sectors typically include organizations vulnerable to ransomware attacks. The impact of a successful attack includes data loss, financial damage, and reputational harm.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Enable Sysmon process creation logging (EventCode 1) to capture <code>sc.exe</code> executions for detection using the provided Sigma rules.</li>
<li>Deploy the Sigma rule &quot;Excessive SC.exe Usage Detection&quot; to your SIEM to detect anomalous <code>sc.exe</code> activity and tune thresholds based on your environment.</li>
<li>Investigate any alerts generated by the Sigma rule &quot;SC.exe Service Manipulation&quot; to identify potential malicious service modifications.</li>
<li>Filter benign usage of <code>sc.exe</code> using the &quot;<code>excessive_usage_of_sc_service_utility_filter</code>&quot; macro, customizing it with known-good software that legitimately uses the utility.</li>
</ul>
]]></content:encoded><category domain="severity">medium</category><category domain="type">advisory</category><category>endpoint</category><category>sc.exe</category><category>service_control</category><category>privilege_escalation</category><category>defense_evasion</category><category>ransomware</category></item><item><title>Excessive Taskkill Usage for Defense Evasion</title><link>https://feed.craftedsignal.io/briefs/2024-01-03-excessive-taskkill/</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-excessive-taskkill/</guid><description>Adversaries use excessive calls to `taskkill.exe` (more than 10 times within a minute) to disable security tools or critical processes, evading detection and compromising systems.</description><content:encoded><![CDATA[<p>This threat brief addresses the excessive use of <code>taskkill.exe</code>, a Windows command-line utility, by various threat actors to terminate processes on compromised systems. The observed behavior involves executing <code>taskkill.exe</code> more than ten times within a one-minute timeframe. This technique is employed to disable security software, terminate monitoring agents, and halt other critical processes that could hinder the attacker's objectives. The DFIR Report has documented similar tactics in SQL Server attacks, while Joe Sandbox analysis reveals the use of <code>taskkill.exe</code> in malicious payloads. Successful execution of this evasion tactic allows attackers to bypass security controls, maintain persistence, and potentially deploy further malicious payloads such as ransomware or data exfiltration tools. This behavior has been associated with multiple malware families including Azorult, AgentTesla, NjRAT, XMRig, Crypto Stealer and BlankGrabber Stealer.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>Initial access is achieved through various means, such as exploiting vulnerabilities or social engineering techniques. (TA0001)</li>
<li>The attacker gains a foothold on the system and executes malicious code, either directly or through a dropper. (TA0002)</li>
<li>The attacker enumerates running processes to identify security tools, monitoring agents, or other critical processes to disable (T1057).</li>
<li>The attacker uses <code>taskkill.exe</code> with appropriate arguments to terminate the identified processes. (T1562.001)</li>
<li>The attacker repeats the <code>taskkill.exe</code> command multiple times in a short period (more than 10 times within a minute) to ensure the targeted processes are terminated (T1562.001).</li>
<li>With security tools disabled, the attacker proceeds to perform malicious activities, such as data exfiltration or lateral movement. (TA0007, TA0008)</li>
<li>The attacker may install persistence mechanisms to maintain access to the compromised system, taking advantage of the disabled security controls. (TA0003)</li>
<li>The attacker achieves their final objective, such as data theft, ransomware deployment, or disruption of services. (TA0040)</li>
</ol>
<h2 id="impact">Impact</h2>
<p>Successful execution of this attack can lead to significant disruption and damage. Security tools being disabled results in the system becoming vulnerable to further attacks. Data exfiltration can lead to financial loss and reputational damage. Ransomware deployment can encrypt critical data, causing business interruption and financial loss. While exact victim numbers are unavailable, this technique is associated with multiple malware families, indicating widespread potential impact.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Deploy the provided Sigma rule <code>Excessive Taskkill Execution Count</code> to detect instances where <code>taskkill.exe</code> is executed excessively within a short timeframe.</li>
<li>Enable process monitoring with command-line logging to capture the execution of <code>taskkill.exe</code> and its arguments, which is required for the Sigma rule to function correctly.</li>
<li>Investigate any alerts generated by the Sigma rule <code>Excessive Taskkill Execution Count</code> to determine the legitimacy of the <code>taskkill.exe</code> execution and identify potential malicious activity.</li>
<li>Use the provided Splunk search query to identify instances of excessive <code>taskkill.exe</code> usage in your environment and correlate with other security events to identify potential compromises.</li>
<li>Implement network segmentation to limit the impact of lateral movement if an attacker successfully disables security tools.</li>
<li>Review and harden endpoint security configurations to prevent attackers from easily disabling security tools.</li>
</ul>
]]></content:encoded><category domain="severity">high</category><category domain="type">threat</category><category>taskkill</category><category>defense-evasion</category><category>windows</category></item></channel></rss>