<?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>Ads — CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/tags/ads/</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>Fri, 26 Jan 2024 18:00:00 +0000</lastBuildDate><atom:link href="https://feed.craftedsignal.io/tags/ads/feed.xml" rel="self" type="application/rss+xml"/><item><title>Suspicious Alternate Data Stream (ADS) File Creation</title><link>https://feed.craftedsignal.io/briefs/2024-01-ads-file-creation/</link><pubDate>Fri, 26 Jan 2024 18:00:00 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2024-01-ads-file-creation/</guid><description>Detects suspicious creation of Alternate Data Streams (ADS) on targeted files using script or command interpreters, indicative of malware hiding in ADS for defense evasion.</description><content:encoded><![CDATA[<p>This detection focuses on identifying the creation of Alternate Data Streams (ADS) on Windows systems, a technique often employed by adversaries to conceal malicious code or data within seemingly benign files. Attackers leverage scripting engines and command interpreters to write ADS to various file types, including executables, documents, and media files. This activity is uncommon in legitimate workflows, making it a valuable indicator of potential compromise. The rule is designed to trigger on file creation events where the process creating the file is a known script or command interpreter (cmd.exe, powershell.exe, etc.) and the target file has a suspicious extension. The detection excludes common legitimate ADS usage patterns. This technique is used for defense evasion, allowing malware to persist without being easily detected by traditional security measures.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>An attacker gains initial access to a Windows system (e.g., through phishing or exploiting a vulnerability).</li>
<li>The attacker uses a command interpreter (cmd.exe, powershell.exe, etc.) or scripting engine (wscript.exe, cscript.exe) to execute malicious code.</li>
<li>The malicious code creates an Alternate Data Stream (ADS) on a targeted file (e.g., an executable, document, or image). The targeted file&rsquo;s extension could be pdf, dll, exe, dat, etc.</li>
<li>The attacker hides malicious code or data within the ADS, making it less visible to standard file system scans and security tools. The ADS is written to a file path using the <code>C:\\*:\*</code> syntax.</li>
<li>The attacker may rename or clean up any staging files to further conceal their activity.</li>
<li>The attacker can then execute the hidden code within the ADS, or use the ADS to store configuration data for later use.</li>
<li>The attacker maintains persistence by using the ADS to store and execute malicious code, bypassing typical file-based security measures.</li>
<li>The ultimate goal is to maintain unauthorized access to the system, potentially leading to data exfiltration, lateral movement, or other malicious activities.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>Successful exploitation allows attackers to hide malicious code within legitimate files, evading detection by traditional security measures. This can lead to prolonged persistence on compromised systems, enabling data theft, ransomware deployment, or other malicious activities. While the specific number of victims is unknown, this technique is broadly applicable across Windows environments, potentially affecting a wide range of organizations.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Deploy the Sigma rule <code>Suspicious ADS File Creation via Cmd</code> to detect ADS creation events initiated by cmd.exe.</li>
<li>Deploy the Sigma rule <code>Suspicious ADS File Creation via PowerShell</code> to detect ADS creation events initiated by powershell.exe.</li>
<li>Enable Sysmon Event ID 15 (FileCreateStreamHash) to provide detailed information about ADS creation events, as referenced in the rule&rsquo;s setup instructions.</li>
<li>Investigate any alerts generated by these rules, focusing on the file paths, creating processes, and command-line arguments involved, as detailed in the rule&rsquo;s triage and analysis notes.</li>
</ul>
]]></content:encoded><category domain="severity">high</category><category domain="type">advisory</category><category>defense-evasion</category><category>ads</category><category>file-creation</category><category>windows</category></item><item><title>Rundll32 Execution with DLL Stored in Alternate Data Stream (ADS)</title><link>https://feed.craftedsignal.io/briefs/2024-01-08-rundll32-ads/</link><pubDate>Mon, 08 Jan 2024 15:30:00 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2024-01-08-rundll32-ads/</guid><description>Adversaries may use rundll32.exe to execute DLLs stored within alternate data streams (ADS) to bypass security controls and conceal malicious code.</description><content:encoded><![CDATA[<p>Rundll32 is a legitimate Windows utility used to execute DLLs. However, adversaries can abuse this functionality to execute malicious code while evading detection. This technique involves storing a malicious DLL within an Alternate Data Stream (ADS) of a file. ADS allows hiding data within existing files, making it less likely to be discovered by standard file system scans. When rundll32.exe is then used to execute the DLL from the ADS, it can bypass application whitelisting and other security measures, as the execution appears to originate from the trusted rundll32.exe process. This technique has been observed across various threat actors seeking to establish persistence or execute arbitrary code.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>An attacker gains initial access to the system through methods like phishing or exploiting a vulnerability.</li>
<li>The attacker uploads a malicious DLL to the target system.</li>
<li>The attacker uses a command-line utility to write the DLL into an Alternate Data Stream (ADS) of an existing file, such as a text file or image. For example: <code>echo &quot;DLL content&quot; &gt; legitimate_file.txt:malicious.dll</code>.</li>
<li>The attacker uses <code>rundll32.exe</code> to execute the DLL stored in the ADS. The command typically looks like: <code>rundll32.exe &quot;C:\ads\file.txt:ADSDLL.dll&quot;,DllMain</code>.</li>
<li>Rundll32.exe loads and executes the malicious DLL from the ADS.</li>
<li>The malicious DLL performs its intended actions, such as establishing persistence, downloading additional payloads, or exfiltrating data.</li>
<li>The attacker may use additional techniques to further conceal their activity, such as obfuscating the command line or using process injection.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>Successful exploitation allows arbitrary code execution on the targeted system. Attackers can use this technique to establish persistence, escalate privileges, bypass security controls, and deploy further malware. The use of ADS makes detection more challenging, as the malicious DLL is hidden within a seemingly benign file. This can lead to data breaches, system compromise, and potential financial losses.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Enable Sysmon process creation logging to capture the command-line arguments used with <code>rundll32.exe</code> (as used in the Sigma rules below).</li>
<li>Deploy the Sigma rules in this brief to your SIEM to detect suspicious <code>rundll32.exe</code> executions from ADS.</li>
<li>Monitor for unusual file modifications that involve writing data to alternate data streams.</li>
<li>Implement application whitelisting to restrict the execution of unauthorized executables.</li>
</ul>
]]></content:encoded><category domain="severity">high</category><category domain="type">advisory</category><category>defense-evasion</category><category>ads</category><category>rundll32</category><category>windows</category></item></channel></rss>