YARA · Signature Base (Florian Roth / Nextron)
SIGNATURE_BASE_MAL_ME_Rawdisk_Agent_Jan20_1
Detects suspicious malware using ElRawDisk
- Author
- Florian Roth (Nextron Systems)
- Date
- 2020-01-02
- Modified
- 2022-12-21
- Score / Quality
- 65 / 85
What this rule detects
Detects suspicious malware using ElRawDisk
Targets: Windows PE.
It defines 8 patterns (6 text, 2 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
rule SIGNATURE_BASE_MAL_ME_Rawdisk_Agent_Jan20_1 : FILE
{
meta:
= "Detects suspicious malware using ElRawDisk"
= "Florian Roth (Nextron Systems)"
= "0efaae51-1407-5039-9e5a-9c2f13d6a971"
= "2020-01-02"
= "2022-12-21"
= "Saudi National Cybersecurity Authority - Destructive Attack DUSTMAN"
= "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/yara/apt_dustman.yar#L2-L24"
= "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/LICENSE"
= "44100c73c6e2529c591a10cd3668691d92dc0241152ec82a72c6e63da299d3a2"
= "90345b8358d72b6616c6277222fb1091cb3a88b844391ac3766e7d1ee1192fbe"
= 65
= 85
= "FILE"
strings:
$x1 = "\\drv\\agent.plain.pdb" ascii
$x2 = " ************** Down With Saudi Kingdom, Down With Bin Salman ************** " fullword ascii
$s1 = ".?AVERDError@@" fullword ascii
$s2 = "b4b615c28ccd059cf8ed1abf1c71fe03c0354522990af63adf3c911e2287a4b906d47d" fullword wide
$s3 = "\\\\?\\ElRawDisk" fullword wide
$s4 = "\\??\\c:" wide
$op1 = { e9 3d ff ff ff 33 c0 48 89 05 0d ff 00 00 48 8b }
$op2 = { 0f b6 0c 01 88 48 34 48 8b 8d a8 }
condition:
uint16( 0 ) == 0x5a4d and filesize <= 2000KB and ( 1 of ( $x* ) or 4 of them )
}
Strings (8 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $x1 | text | "\\drv\\agent.plain.pdb" | ascii |
| $x2 | text | " ************** Down With Saudi Kingdom, Down With Bin Salman ************** " | fullword ascii |
| $s1 | text | ".?AVERDError@@" | fullword ascii |
| $s2 | text | "b4b615c28ccd059cf8ed1abf1c71fe03c0354522990af63adf3c911e2287a4b906d47d" | fullword wide |
| $s3 | text | "\\\\?\\ElRawDisk" | fullword wide |
| $s4 | text | "\\??\\c:" | wide |
| $op1 | hex | { e9 3d ff ff ff 33 c0 48 89 05 0d ff 00 00 48 8b } | |
| $op2 | hex | { 0f b6 0c 01 88 48 34 48 8b 8d a8 } |
Condition
uint16( 0 ) == 0x5a4d and filesize <= 2000KB and ( 1 of ( $x* ) or 4 of them )In plain words (Heuristic)
- The file must start with “MZ” — a Windows executable (PE).
- The file must be smaller than 2000KB (a cheap guard that skips large files).
- At least 1 patterns in ( $x* ) must match.
- At least 4 patterns in the rule must match.
Test this rule in your browser
Drop a file to scan it with this rule using YARA-X compiled to WebAssembly. Nothing is uploaded.
Sample hashes
Hashes of samples the author lists in the rule's meta (look them up in your threat-intelligence platform).
- 44100c73c6e2529c591a10cd3668691d92dc0241152ec82a72c6e63da299d3a2
Licence & attribution
Author: Florian Roth (Nextron Systems)
Source repository: Signature Base (Florian Roth / Nextron) @ 94a1c48d7a
Licence: Detection Rule License 1.1 (repository licence)
Mirrored via YARA Forge 20260927, which prefixes rule names with the source and adds normalised meta fields.
Rule id: 0efaae51-1407-5039-9e5a-9c2f13d6a971
Tags:FILE
Related rules
- MalwareSignature Base (Florian Roth / Nextron)· Florian Roth (Nextron Systems)· 2022-03-15
- MalwareSignature Base (Florian Roth / Nextron)· Florian Roth (Nextron Systems)· 2022-03-03
- MalwareSignature Base (Florian Roth / Nextron)· Florian Roth (Nextron Systems)· 2022-01-16
- MalwareSignature Base (Florian Roth / Nextron)· Florian Roth (Nextron Systems)· 2021-05-10
- MalwareSignature Base (Florian Roth / Nextron)· Florian Roth (Nextron Systems)· 2021-05-04
- MalwareSignature Base (Florian Roth / Nextron)· Florian Roth (Nextron Systems)· 2020-01-29
- MalwareSignature Base (Florian Roth / Nextron)· Florian Roth (Nextron Systems)· 2020-10-13
- MalwareSignature Base (Florian Roth / Nextron)· Florian Roth (Nextron Systems)· 2022-08-03