Skip to content

YARA · Signature Base (Florian Roth / Nextron)

SIGNATURE_BASE_MAL_ME_Rawdisk_Agent_Jan20_1

Detects suspicious malware using ElRawDisk

MalwareSignature Base (Florian Roth / Nextron)Detection Rule License 1.1Compiles with YARA-X
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

mal-me-rawdisk-agent-jan20-1.yarDetection Rule License 1.1
rule SIGNATURE_BASE_MAL_ME_Rawdisk_Agent_Jan20_1 : FILE
{
	meta:
		description = "Detects suspicious malware using ElRawDisk"
		author = "Florian Roth (Nextron Systems)"
		id = "0efaae51-1407-5039-9e5a-9c2f13d6a971"
		date = "2020-01-02"
		modified = "2022-12-21"
		reference = "Saudi National Cybersecurity Authority - Destructive Attack DUSTMAN"
		source_url = "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/yara/apt_dustman.yar#L2-L24"
		license_url = "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/LICENSE"
		hash = "44100c73c6e2529c591a10cd3668691d92dc0241152ec82a72c6e63da299d3a2"
		logic_hash = "90345b8358d72b6616c6277222fb1091cb3a88b844391ac3766e7d1ee1192fbe"
		score = 65
		quality = 85
		tags = "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)

IdentifierTypeValueModifiers
$x1text"\\drv\\agent.plain.pdb"ascii
$x2text" ************** Down With Saudi Kingdom, Down With Bin Salman ************** "fullword ascii
$s1text".?AVERDError@@"fullword ascii
$s2text"b4b615c28ccd059cf8ed1abf1c71fe03c0354522990af63adf3c911e2287a4b906d47d"fullword wide
$s3text"\\\\?\\ElRawDisk"fullword wide
$s4text"\\??\\c:"wide
$op1hex{ e9 3d ff ff ff 33 c0 48 89 05 0d ff 00 00 48 8b }
$op2hex{ 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.

Drop a file here or click to chooseScanned locally with YARA-X. Files up to 200 MB.

Open in editor

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)

Original rule

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