Skip to content

YARA · BlackBerry Research & Intelligence (via Open-Source-YARA-rules)

BLACKBERRY_Windealer_Executable

Detects WinDealer Executable

Author
BlackBerry Threat Research Team
Date
2022-06-14
Modified
2022-07-07
Score / Quality
75 / 85

What this rule detects

Detects WinDealer Executable

Associated malware family: Windealer.

Targets: Windows PE.

It defines 9 patterns (9 text, 0 hex, 0 regex).

Summary generated from the rule's metadata and condition.

Rule source

windealer-executable.yarApache License 2.0
rule BLACKBERRY_Windealer_Executable : FILE
{
	meta:
		description = "Detects WinDealer Executable"
		author = "BlackBerry Threat Research Team"
		id = "68fe2b61-5c2d-5434-a9c5-dae25ccd40a0"
		date = "2022-06-14"
		modified = "2022-07-07"
		reference = "https://blogs.blackberry.com/en/2022/06/threat-thursday-china-based-apt-plays-auto-updater-card-to-deliver-windealer-malwareZ"
		source_url = "https://github.com/mikesxrs/Open-Source-YARA-rules/blob/ec0056f767db98bf6d5fd63877ad51fb54d350e9/Blackberry/Windealer_executable.yar#L1-L23"
		license_url = "N/A"
		logic_hash = "296e89ca89d063d165b6abab6a1e1e0b641cbbe7ff0ea60125c6beada457a95b"
		score = 75
		quality = 85
		tags = "FILE"
		license = "This Yara rule is provided under the Apache License 2.0 (https://www.apache.org/licenses/LICENSE-2.0) and open to any user or organization, as long as you use it under this license and ensure originator credit in any derivative to The BlackBerry Research & Intelligence Team"

	strings:
		$s1 = "28e4-20a6acec"
		$s2 = "5a7e-42ccdb67"
		$s3 = "632c-0ef22957"
		$s4 = "63ae-a20cf808"
		$s5 = "65ce-731bffbb"
		$a1 = "remoteip"
		$a2 = "sessionid"
		$a3 = "remotedomain"
		$a4 = "remark"

	condition:
		uint16( 0 ) == 0x5a4d and 2 of ( $s* ) and 1 of ( $a* )
}

Strings (9 patterns)

IdentifierTypeValueModifiers
$s1text"28e4-20a6acec"
$s2text"5a7e-42ccdb67"
$s3text"632c-0ef22957"
$s4text"63ae-a20cf808"
$s5text"65ce-731bffbb"
$a1text"remoteip"
$a2text"sessionid"
$a3text"remotedomain"
$a4text"remark"

Condition

uint16( 0 ) == 0x5a4d and 2 of ( $s* ) and 1 of ( $a* )

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • At least 2 patterns in ( $s* ) must match.
  • At least 1 patterns in ( $a* ) 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

References

Licence & attribution

Author: BlackBerry Threat Research Team

Source repository: BlackBerry Research & Intelligence (via Open-Source-YARA-rules) @ ec0056f767

Licence: Apache License 2.0 (stated in the rule's own meta)

“This Yara rule is provided under the Apache License 2.0 (https://www.apache.org/licenses/LICENSE-2.0) and open to any user or organization, as long as you use it under this license and ensure originator credit in any derivative to The BlackBerry Research & Intelligence Team”

Original rule

Mirrored via YARA Forge 20260927, which prefixes rule names with the source and adds normalised meta fields.

Rule id: 68fe2b61-5c2d-5434-a9c5-dae25ccd40a0

Tags:FILE

More Windealer rules