<?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>Raw-Disk-Access - CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/tags/raw-disk-access/</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/raw-disk-access/feed.xml" rel="self" type="application/rss+xml"/><item><title>Suspicious Raw Disk Access Detected</title><link>https://feed.craftedsignal.io/briefs/2024-01-09-raw-disk-access/</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-raw-disk-access/</guid><description>Detection of processes accessing raw disk volumes outside of normal system paths, often associated with wiper malware and boot sector attacks.</description><content:encoded><![CDATA[<p>This brief focuses on detecting anomalous raw disk access attempts on Windows systems. The activity is flagged via Sysmon EventCode 9, which logs raw disk reads. Threat actors frequently leverage raw disk access for destructive purposes like wiping, encrypting, or overwriting the boot sector, rendering systems inoperable. Notably, malware families like HermeticWiper have employed this technique to devastating effect. This detection excludes legitimate system processes by filtering known good paths like <code>\Windows\System32\</code> and <code>\Windows\SysWOW64\</code>. The successful execution of such an attack can lead to complete system failure, data loss, and significant operational disruption. Understanding and detecting this activity is crucial for preventing severe damage to targeted systems.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>Initial Access: The attacker gains initial access to the target system through various means (e.g., exploiting vulnerabilities, compromised credentials, or social engineering).</li>
<li>Privilege Escalation: The attacker escalates privileges to gain necessary permissions for raw disk access, often requiring SYSTEM-level access.</li>
<li>Disable Security Controls: Attempts to disable or evade security products that might interfere with disk access (e.g., anti-virus, endpoint detection and response (EDR)).</li>
<li>Raw Disk Access: A malicious process initiates raw disk access using Windows APIs to directly read or write to the disk volume partitions (Sysmon EventCode 9). Example: <code>\\Device\\HarddiskVolume1</code>.</li>
<li>Boot Sector Modification: The attacker overwrites the Master Boot Record (MBR) or other critical boot sectors with malicious code.</li>
<li>Data Wiping/Encryption: The attacker uses raw disk access to wipe partitions by overwriting data with random bytes or encrypting data without providing a recovery key.</li>
<li>System Crash/Reboot: The compromised system crashes or is forced to reboot.</li>
<li>Denial of Service: Upon reboot, the system fails to start due to the corrupted boot sector or wiped partitions, resulting in a denial-of-service condition.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>Successful raw disk access attacks can result in complete data loss, system inoperability, and significant operational disruption. The HermeticWiper attack in 2022 impacted hundreds of systems across multiple organizations, primarily in Ukraine, causing widespread data destruction and hindering critical services. Organizations across all sectors are potentially vulnerable, with financial, government, and critical infrastructure entities being prime targets. The cost of remediation can range from tens of thousands to millions of dollars, depending on the scale of the attack and the complexity of the recovery process.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Enable Sysmon Event ID 9 logging to capture raw disk access events. This will activate the core detection mechanism (Sysmon EventID 9).</li>
<li>Deploy the provided Sigma rule <code>Raw Disk Access Outside System Paths</code> to detect processes accessing disk volumes from unusual locations. Tune the filters based on your environment.</li>
<li>Investigate any alerts generated by the Sigma rule <code>Raw Disk Access by Unusual Processes</code> for processes not commonly associated with disk operations to identify potentially malicious activity.</li>
<li>Implement application control policies to restrict which processes can execute and access sensitive resources, mitigating the risk of unauthorized disk access.</li>
</ul>
]]></content:encoded><category domain="severity">critical</category><category domain="type">advisory</category><category>raw-disk-access</category><category>wiper</category><category>boot-sector</category><category>windows</category></item><item><title>Detecting Windows Raw Access to Master Boot Record</title><link>https://feed.craftedsignal.io/briefs/2024-01-mbr-raw-access/</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-mbr-raw-access/</guid><description>This analytic detects suspicious raw access reads to the drive containing the Master Boot Record (MBR) using Sysmon EventCode 9, which is a common tactic used by attackers to wipe, encrypt, or overwrite the MBR as part of their impact payload.</description><content:encoded><![CDATA[<p>This detection identifies suspicious raw access reads to the Master Boot Record (MBR) on Windows systems. Attackers frequently target the MBR to disrupt system operations, destroy data, or deploy ransomware. The MBR is a critical sector of a hard drive that contains bootloader code, so modifying or corrupting it renders the system unbootable. This analytic focuses on detecting unusual processes attempting to directly read from the MBR device (<code>\\Device\\Harddisk0\\DR0</code>) by monitoring Sysmon Event ID 9. The detection excludes legitimate system processes typically found under <code>C:\Windows\System32\</code> and <code>C:\Windows\SysWOW64\</code> to reduce false positives. This activity is often associated with destructive malware, ransomware, or other malicious tools that aim to compromise the integrity and availability of the system. Several destructive malware families, like WhisperGate, Hermetic Wiper, and Caddy Wiper, have leveraged MBR overwriting as part of their attack sequence. Early detection can prevent widespread damage and data loss.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>Initial Access: The attacker gains initial access to the system, often through phishing or exploiting a vulnerability. (This step is not logged by the detection rule but is a common precursor).</li>
<li>Privilege Escalation: The attacker elevates privileges to gain the necessary permissions to access and modify the MBR. (This step is not logged by the detection rule but is a common precursor).</li>
<li>MBR Access: The attacker uses a malicious tool to initiate a raw access read operation to the <code>\\Device\\Harddisk0\\DR0</code> device, which represents the MBR. This triggers Sysmon Event ID 9.</li>
<li>Data Read: The malicious tool reads the contents of the MBR sector. This can be for analysis before modification or simply as part of an overwrite operation.</li>
<li>MBR Modification: The attacker overwrites the MBR with malicious code, such as a wiper or ransomware demand.</li>
<li>System Reboot: The attacker triggers a system reboot, either directly or indirectly, to activate the malicious MBR code.</li>
<li>Impact: Upon reboot, the system attempts to load the corrupted MBR, leading to a boot failure, data loss, or the display of a ransomware message.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>Successful exploitation can render systems unbootable, leading to significant downtime and data loss. MBR overwriting is often associated with destructive attacks that aim to disrupt operations, as seen with WhisperGate malware targeting Ukrainian organizations. Depending on the scope of the attack, organizations could experience complete system compromise across numerous endpoints, resulting in substantial financial losses, reputational damage, and regulatory penalties. The attacks associated with MBR modification have been observed across various sectors, including government, critical infrastructure, and businesses.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Enable Sysmon with Event ID 9 to monitor raw disk access events on endpoints.</li>
<li>Deploy the &quot;Windows Raw Access To Master Boot Record Drive&quot; Sigma rule to your SIEM to detect suspicious processes accessing the MBR.</li>
<li>Tune the &quot;Windows Raw Access To Master Boot Record Drive&quot; Sigma rule by reviewing and excluding any legitimate processes accessing the MBR to reduce false positives.</li>
<li>Investigate any alerts generated by the Sigma rule, focusing on processes not under standard Windows directories as indicators of potential malicious activity.</li>
<li>Implement robust backup and recovery procedures to quickly restore systems in the event of a successful MBR overwrite attack.</li>
</ul>
]]></content:encoded><category domain="severity">critical</category><category domain="type">advisory</category><category>raw-disk-access</category><category>mbr</category><category>windows</category><category>sysmon</category><category>data-destruction</category></item></channel></rss>