<?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>Regasm - CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/tags/regasm/</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>Tue, 09 Jan 2024 12:00:00 +0000</lastBuildDate><atom:link href="https://feed.craftedsignal.io/tags/regasm/feed.xml" rel="self" type="application/rss+xml"/><item><title>RegAsm Executed Without Command Line Arguments</title><link>https://feed.craftedsignal.io/briefs/2024-01-09-regasm-no-args/</link><pubDate>Tue, 09 Jan 2024 12:00:00 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2024-01-09-regasm-no-args/</guid><description>The execution of regasm.exe without command-line arguments is often indicative of process injection and potential code execution, which could lead to privilege escalation, persistence, or data compromise.</description><content:encoded><![CDATA[<p>The detection analytic identifies instances where regasm.exe is executed without command-line arguments. This behavior is suspicious because RegAsm (Assembly Registration Tool) typically requires arguments specifying which assemblies to register or unregister. The absence of command-line arguments often indicates that the process has been injected into by another process, and its normal execution flow has been altered to evade standard defenses. The detection focuses on endpoint telemetry related to process execution, parent-child relationships, and command-line parameters. It is crucial for defenders because successful exploitation can lead to arbitrary code execution within a trusted process.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>An attacker gains initial access to the system through an unspecified method.</li>
<li>The attacker injects malicious code into a running process or spawns a new process (e.g., PowerShell).</li>
<li>The injected code identifies and targets regasm.exe for process injection.</li>
<li>The attacker leverages the process injection technique to execute regasm.exe without command-line arguments.</li>
<li>RegAsm, now running without arguments, may execute attacker-controlled code due to the injected malicious payload.</li>
<li>The injected code performs malicious actions such as modifying system configurations, creating persistence mechanisms, or escalating privileges.</li>
<li>The attacker leverages the compromised process to move laterally within the network and access sensitive data.</li>
<li>The final objective could be data exfiltration, system disruption, or deployment of ransomware.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>Successful exploitation can allow attackers to execute arbitrary code within the context of a trusted system process, potentially bypassing application control policies and detection mechanisms. This can lead to privilege escalation, persistence, lateral movement, and data compromise. While the exact number of victims and sectors targeted are unknown, any environment where RegAsm is present is potentially vulnerable, especially developer workstations and servers.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Deploy the Sigma rules in this brief to your SIEM to detect instances of RegAsm executing without command-line arguments and tune for your environment.</li>
<li>Enable Sysmon process-creation logging to provide the necessary telemetry for the detection rules.</li>
<li>Investigate any detected instances of RegAsm executing without arguments to determine the root cause and scope of the compromise.</li>
<li>Review and harden endpoint security policies to prevent process injection attacks.</li>
</ul>
]]></content:encoded><category domain="severity">high</category><category domain="type">advisory</category><category>regasm</category><category>process-injection</category><category>defense-evasion</category><category>windows</category></item><item><title>Regasm.exe Making External Network Connection</title><link>https://feed.craftedsignal.io/briefs/2024-01-regasm-network/</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-regasm-network/</guid><description>The detection of regasm.exe, a Microsoft-signed binary, establishing a network connection to a public IP address (excluding private ranges) may indicate command and control activity or attempts to bypass application control.</description><content:encoded><![CDATA[<p>The <code>regasm.exe</code> (Assembly Registration Tool) is a legitimate Microsoft-signed binary used for registering .NET assemblies. Adversaries may abuse <code>regasm.exe</code> to bypass application control or establish command and control (C2) communication. This activity is detected by monitoring network connections initiated by <code>regasm.exe</code> to public IP addresses, excluding connections to known private IP ranges. The LOLBAS project has documented the potential misuse of this binary. This activity is significant as it can be used to proxy malicious commands or download payloads. The detection is based on Sysmon Event ID 3 (Network Connect).</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>The adversary gains initial access through unspecified means (e.g., phishing, exploit).</li>
<li>The adversary executes <code>regasm.exe</code> on the compromised system.</li>
<li><code>regasm.exe</code> attempts to establish a network connection to a public IP address.</li>
<li>The connection bypasses typical application control restrictions due to the binary being signed by Microsoft.</li>
<li>Data is transmitted over the established connection, potentially downloading malicious payloads or sending command execution results.</li>
<li>The adversary uses the connection to maintain remote access and control.</li>
<li>Further malicious activities are executed, such as lateral movement or data exfiltration.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>A successful attack leveraging <code>regasm.exe</code> for network communication could allow an adversary to establish a persistent command and control channel within the environment. This could lead to further compromise, including data exfiltration, deployment of ransomware, or other malicious activities. The number of victims and targeted sectors are currently unknown.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Enable Sysmon Event ID 3 (Network Connect) logging to collect the necessary network connection data (Sysmon EventID 3).</li>
<li>Deploy the Sigma rule &quot;Detect Regasm with Network Connection&quot; to your SIEM and tune for your environment to reduce false positives (Sigma rule).</li>
<li>Investigate any alerts generated by the &quot;Detect Regasm with Network Connection&quot; rule, focusing on the destination IP address and associated processes (Sigma rule).</li>
<li>Implement application control policies that monitor and restrict the execution of <code>regasm.exe</code>, even though it's a signed binary, especially when network connections are involved.</li>
<li>Review endpoint network connection logs for <code>regasm.exe</code> to identify any unusual or suspicious connections to external IP addresses.</li>
</ul>
]]></content:encoded><category domain="severity">medium</category><category domain="type">advisory</category><category>regasm</category><category>application-control-bypass</category><category>command-and-control</category><category>lolbin</category></item></channel></rss>