Skip to content

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Stealerium

Detects Stealerium infostealer

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

What this rule detects

Detects Stealerium infostealer

Associated malware family: Stealerium.

Targets: Windows PE.

It defines 8 patterns (5 text, 0 hex, 3 regex).

Summary generated from the rule's metadata and condition.

Rule source

malware-win-stealerium.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Stealerium : FILE
{
	meta:
		description = "Detects Stealerium infostealer"
		author = "ditekSHen"
		id = "ea137900-3add-54b4-9ce9-bc7e98f86d41"
		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#L10027-L10042"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "a2834e7fe26ad0197a9e490ab517029ceed2e09506fcc37e6ddf0c1804fa6cb9"
		score = 75
		quality = 73
		tags = "FILE"

	strings:
		$x1 = "Stealerium" ascii wide
		$x2 = /\.Target\.(Passwords|Messengers|Browsers|VPN|Gaming)\./ ascii
		$x3 = /\.Modules\.(Keylogger|Implant|Passwords|Messengers|Browsers|VPN|Gaming|Clipper)\./ ascii
		$s1 = "Timeout /T 2 /Nobreak" fullword wide
		$s2 = "Directory not exists" wide
		$s3 = "### {0} ### ({1})" wide
		$s4 = /---\s(AntiAnalysis|WebcamScreenshot|Keylogger|Clipper)/ wide
		$s5 = " *Keylogger " fullword wide

	condition:
		uint16( 0 ) == 0x5a4d and ( all of ( $x* ) or ( 2 of ( $x* ) and all of ( $s* ) ) )
}

Strings (8 patterns)

IdentifierTypeValueModifiers
$x1text"Stealerium"ascii wide
$x2regex/\.Target\.(Passwords|Messengers|Browsers|VPN|Gaming)\./ascii
$x3regex/\.Modules\.(Keylogger|Implant|Passwords|Messengers|Browsers|VPN|Gaming|Clipper)\./ascii
$s1text"Timeout /T 2 /Nobreak"fullword wide
$s2text"Directory not exists"wide
$s3text"### {0} ### ({1})"wide
$s4regex/---\s(AntiAnalysis|WebcamScreenshot|Keylogger|Clipper)/wide
$s5text" *Keylogger "fullword wide

Condition

uint16( 0 ) == 0x5a4d and ( all of ( $x* ) or ( 2 of ( $x* ) and all of ( $s* ) ) )

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • All patterns in ( $x* ) must match.
  • All patterns in ( $s* ) must match.
  • At least 2 patterns in ( $x* ) 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: ea137900-3add-54b4-9ce9-bc7e98f86d41

Tags:FILE