Skip to content

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

BLACKBERRY_Windealer_Library

Detects WinDealer Loaded DLL

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

What this rule detects

Detects WinDealer Loaded DLL

Associated malware family: Windealer.

Targets: Windows PE.

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

Summary generated from the rule's metadata and condition.

Rule source

windealer-library.yarApache License 2.0
rule BLACKBERRY_Windealer_Library : FILE
{
	meta:
		description = "Detects WinDealer Loaded DLL"
		author = "BlackBerry Threat Research Team"
		id = "d7fbf21b-9144-532a-ad5d-29543f0ffc33"
		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_Library.yar#L1-L26"
		license_url = "N/A"
		logic_hash = "35151a8c0486ceaddb5020cb81f644bba4b01d5f8e4726786abc65ae92ca9c3e"
		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 = "C:\\Users\\Public\\Documents\\Tencent\\QQ\\UserDataInfo.ini"
		$s2 = "Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Shell Folders"
		$s3 = "SOFTWARE\\SogouInput\\red"
		$s4 = "SOFTWARE\\SogouDesktopBar"
		$s5 = "MozillaDll.dll"
		$s6 = "Tencent Files"
		$s7 = "wangwang"
		$s8 = "WeChat Files"
		$s9 = "MyDocument"
		$s10 = "Skype"
		$e1 = "AutoGetSystemInfo"
		$e2 = "GetConfigInfo"
		$e3 = "partInitOpt"

	condition:
		uint16( 0 ) == 0x5a4d and all of them
}

Strings (13 patterns)

IdentifierTypeValueModifiers
$s1text"C:\\Users\\Public\\Documents\\Tencent\\QQ\\UserDataInfo.ini"
$s2text"Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Shell Folders"
$s3text"SOFTWARE\\SogouInput\\red"
$s4text"SOFTWARE\\SogouDesktopBar"
$s5text"MozillaDll.dll"
$s6text"Tencent Files"
$s7text"wangwang"
$s8text"WeChat Files"
$s9text"MyDocument"
$s10text"Skype"
$e1text"AutoGetSystemInfo"
$e2text"GetConfigInfo"
$e3text"partInitOpt"

Condition

uint16( 0 ) == 0x5a4d and all of them

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • All 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

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: d7fbf21b-9144-532a-ad5d-29543f0ffc33

Tags:FILE

More Windealer rules