Skip to content

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Unknown_Packedloader_01

Detects unknown loader / packer. Observed running LummaStealer

MalwareLummastealerditekSHen detectionBSD 2-Clause LicenseCompiles with YARA-X
Author
ditekShen
Date
2020-11-06
Modified
2024-11-01
Score / Quality
75 / 75

What this rule detects

Detects unknown loader / packer. Observed running LummaStealer

Associated malware family: Lummastealer.

Targets: Windows PE.

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

Summary generated from the rule's metadata and condition.

Rule source

malware-win-unknown-packedloader-01.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Unknown_Packedloader_01 : FILE
{
	meta:
		description = "Detects unknown loader / packer. Observed running LummaStealer"
		author = "ditekShen"
		id = "2969090f-dff9-5745-b87d-a031741dd2e0"
		date = "2020-11-06"
		modified = "2024-11-01"
		reference = "https://github.com/ditekshen/detection"
		source_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L10826-L10845"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "6fd9075793b55e04c68bb13d21b88741889a9c37a0a9d1a19d895c7b68af4506"
		score = 75
		quality = 75
		tags = "FILE"

	strings:
		$s1 = "Error at hooking API \"%S\"" wide
		$s2 = "Dumping first %d bytes:" wide
		$s3 = "Error at initialization of bundled DLL: %s" wide
		$s4 = "GetMemoryForDLL()" ascii
		$s5 = "type=activation&code=" ascii
		$s6 = "activation.php?code=" ascii
		$s7 = "&hwid=" ascii
		$s8 = "&hash=" ascii
		$s9 = "type=deactivation&hash=" ascii
		$s10 = "deactivation.php?hash=" ascii
		$s11 = "BANNED" fullword ascii
		$s12 = "GetAdaptersInfo" ascii

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

Strings (12 patterns)

IdentifierTypeValueModifiers
$s1text"Error at hooking API \"%S\""wide
$s2text"Dumping first %d bytes:"wide
$s3text"Error at initialization of bundled DLL: %s"wide
$s4text"GetMemoryForDLL()"ascii
$s5text"type=activation&code="ascii
$s6text"activation.php?code="ascii
$s7text"&hwid="ascii
$s8text"&hash="ascii
$s9text"type=deactivation&hash="ascii
$s10text"deactivation.php?hash="ascii
$s11text"BANNED"fullword ascii
$s12text"GetAdaptersInfo"ascii

Condition

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

In plain words (Heuristic)

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

Source repository: ditekSHen detection @ e76c93dcde

Licence: BSD 2-Clause License (repository licence)

Copyright notice: Copyright 2021 by ditekSHen (https://github.com/ditekshen/detection).

Original rule

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

Rule id: 2969090f-dff9-5745-b87d-a031741dd2e0

Tags:FILE