|
| 1 | +name: Direct disk device access |
| 2 | +id: b77914b8-9e91-46ab-8f52-342a2848c59e |
| 3 | +version: 1.0.0 |
| 4 | +description: | |
| 5 | + Detects direct access to raw disk devices or volumes by user-mode processes, |
| 6 | + bypassing the Windows filesystem layer. Attackers abuse raw disk handles to |
| 7 | + read partition structures, extract volume data, or wipe MBR/VBR without |
| 8 | + triggering standard file-level auditing, making it a common primitive in |
| 9 | + data destruction malware, ransomware, pre-encryption volume enumeration, |
| 10 | + and stealthy credential harvesting tools that read NTFS structures directly. |
| 11 | +labels: |
| 12 | + tactic.id: TA0005 |
| 13 | + tactic.name: Defense Evasion |
| 14 | + tactic.ref: https://attack.mitre.org/tactics/TA0005/ |
| 15 | + technique.id: T1006 |
| 16 | + technique.name: Direct Volume Access |
| 17 | + technique.ref: https://attack.mitre.org/techniques/T1006/ |
| 18 | +references: |
| 19 | + - https://github.com/nmht3t/RawHive |
| 20 | + - https://www.fortinet.com/blog/threat-research/the-increasing-wiper-malware-threat |
| 21 | + - https://www.crowdstrike.com/en-us/blog/petrwrap-ransomware-technical-analysis-triple-threat-file-encryption-mft-encryption-credential-theft/ |
| 22 | + |
| 23 | +condition: > |
| 24 | + open_file and |
| 25 | + evt.pid != 4 and file.path imatches |
| 26 | + ( |
| 27 | + '?:', |
| 28 | + '\\Device\\Harddisk*\\DR*', |
| 29 | + '\\Device\\Harddisk*\\Partition*', |
| 30 | + '\\Device\\HarddiskVolume*', |
| 31 | + '\\Device\\Scsi\\*', |
| 32 | + '\\??\\GLOBALROOT\\Device\\HarddiskVolume*' |
| 33 | + ) and |
| 34 | + ps.exe not imatches |
| 35 | + ( |
| 36 | + '?:\\Windows\\System32\\svchost.exe', |
| 37 | + '?:\\Windows\\System32\\services.exe', |
| 38 | + '?:\\Windows\\System32\\defrag.exe', |
| 39 | + '?:\\Windows\\System32\\chkdsk.exe', |
| 40 | + '?:\\Windows\\System32\\diskpart.exe', |
| 41 | + '?:\\Windows\\System32\\diskmgmt.msc', |
| 42 | + '?:\\Windows\\System32\\dfrg.msc', |
| 43 | + '?:\\Windows\\System32\\wbadmin.exe', |
| 44 | + '?:\\Windows\\System32\\fsutil.exe', |
| 45 | + '?:\\Program Files\\VMware\\VMware Workstation\\vmware.exe', |
| 46 | + '?:\\Program Files (x86)\\VMware\\VMware Workstation\\vmware.exe', |
| 47 | + '?:\\Program Files\\Oracle\\VirtualBox\\VBoxSVC.exe', |
| 48 | + '?:\\Program Files\\Oracle\\VirtualBox\\VirtualBoxVM.exe', |
| 49 | + '?:\\Windows\\System32\\vmms.exe', |
| 50 | + '?:\\Windows\\System32\\vmwp.exe', |
| 51 | + '?:\\Program Files\\Windows Defender\\MsMpEng.exe', |
| 52 | + '?:\\Program Files\\Windows Defender\\NisSrv.exe', |
| 53 | + '?:\\ProgramData\\Microsoft\\Windows Defender\\Platform\\*\\MsMpEng.exe', |
| 54 | + '?:\\ProgramData\\Microsoft\\Windows Defender\\Platform\\*\\NisSrv.exe' |
| 55 | + ) |
| 56 | +
|
| 57 | +severity: high |
| 58 | + |
| 59 | +min-engine-version: 3.0.0 |
0 commit comments