YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Stealerium
Detects Stealerium infostealer
- 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:
= "Detects Stealerium infostealer"
= "ditekSHen"
= "ea137900-3add-54b4-9ce9-bc7e98f86d41"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L10027-L10042"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "a2834e7fe26ad0197a9e490ab517029ceed2e09506fcc37e6ddf0c1804fa6cb9"
= 75
= 73
= "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)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $x1 | text | "Stealerium" | ascii wide |
| $x2 | regex | /\.Target\.(Passwords|Messengers|Browsers|VPN|Gaming)\./ | ascii |
| $x3 | regex | /\.Modules\.(Keylogger|Implant|Passwords|Messengers|Browsers|VPN|Gaming|Clipper)\./ | ascii |
| $s1 | text | "Timeout /T 2 /Nobreak" | fullword wide |
| $s2 | text | "Directory not exists" | wide |
| $s3 | text | "### {0} ### ({1})" | wide |
| $s4 | regex | /---\s(AntiAnalysis|WebcamScreenshot|Keylogger|Clipper)/ | wide |
| $s5 | text | " *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.
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).
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
Related rules
- MalwareSEKOIA.IO Community· Sekoia.io· 2022-12-01
- MalwareditekSHen detection· ditekSHen· 2034-02-17
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06