YARA · SEKOIA.IO Community
SEKOIA_Infostealer_Win_Stealerium
Detects Stealerium based on specific strings
- Author
- Sekoia.io
- Date
- 2022-12-01
- Modified
- 2024-12-19
- Score / Quality
- 75 / 78
What this rule detects
Detects Stealerium based on specific strings
Associated malware family: Stealerium.
Targets: Windows PE.
It defines 21 patterns (21 text, 0 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
infostealer-win-stealerium.yarDetection Rule License 1.1
rule SEKOIA_Infostealer_Win_Stealerium : FILE
{
meta:
= "Detects Stealerium based on specific strings"
= "Sekoia.io"
= "165c7d3d-de7e-4d71-b94a-8ab4a0e5ddd5"
= "2022-12-01"
= "2024-12-19"
= "https://github.com/SEKOIA-IO/Community"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/infostealer_win_stealerium.yar#L1-L36"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
= "f420848164ad4b6966f2a776a58d90b7d70c8b151a42d6f56b654f1700b5e564"
= 75
= 78
= "FILE"
= "1.0"
= "TLP:CLEAR"
strings:
$stl = "Stealerium" ascii wide
$str01 = "Processe: " wide
$str02 = "Compname: " wide
$str03 = "Language: " wide
$str04 = "SandBoxie: " wide
$str05 = "== System Info ==" wide
$str06 = "== Hardware ==" wide
$str07 = "== Domains ==" wide
$str08 = "WEBCAMS COUNT: " wide
$str09 = "[Virtualization]" wide
$str10 = "[Open google maps](" wide
$str11 = "Remember password: " wide
$str12 = "Target.Browsers.Firefox" ascii
$str13 = "Modules.Keylogger" ascii
$str14 = "ClipperAddresses" ascii
$str15 = "ChromiumPswPaths" ascii
$str16 = "DetectedBankingServices" ascii
$str17 = "DetectCryptocurrencyServices" ascii
$str18 = "CheckRemoteDebuggerPresent" ascii
$str19 = "GetConnectedCamerasCount" ascii
$str20 = "costura.discord-webhook-client.dll.compressed" ascii wide
condition:
uint16( 0 ) == 0x5A4D and filesize > 1MB and ( ( #stl > 5 and 2 of ( $str* ) ) or 15 of ( $str* ) )
}
Strings (21 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $stl | text | "Stealerium" | ascii wide |
| $str01 | text | "Processe: " | wide |
| $str02 | text | "Compname: " | wide |
| $str03 | text | "Language: " | wide |
| $str04 | text | "SandBoxie: " | wide |
| $str05 | text | "== System Info ==" | wide |
| $str06 | text | "== Hardware ==" | wide |
| $str07 | text | "== Domains ==" | wide |
| $str08 | text | "WEBCAMS COUNT: " | wide |
| $str09 | text | "[Virtualization]" | wide |
| $str10 | text | "[Open google maps](" | wide |
| $str11 | text | "Remember password: " | wide |
| $str12 | text | "Target.Browsers.Firefox" | ascii |
| $str13 | text | "Modules.Keylogger" | ascii |
| $str14 | text | "ClipperAddresses" | ascii |
| $str15 | text | "ChromiumPswPaths" | ascii |
| $str16 | text | "DetectedBankingServices" | ascii |
| $str17 | text | "DetectCryptocurrencyServices" | ascii |
| $str18 | text | "CheckRemoteDebuggerPresent" | ascii |
| $str19 | text | "GetConnectedCamerasCount" | ascii |
| $str20 | text | "costura.discord-webhook-client.dll.compressed" | ascii wide |
Condition
uint16( 0 ) == 0x5A4D and filesize > 1MB and ( ( #stl > 5 and 2 of ( $str* ) ) or 15 of ( $str* ) )In plain words (Heuristic)
- The file must start with “MZ” — a Windows executable (PE).
- The file must be larger than 1MB.
- At least 2 patterns in ( $str* ) must match.
- At least 15 patterns in ( $str* ) must match.
- Pattern $stl must occur > 5 times.
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: Sekoia.io
Source repository: SEKOIA.IO Community @ a438a5901a
Licence: Detection Rule License 1.1 (repository licence)
Mirrored via YARA Forge 20260927, which prefixes rule names with the source and adds normalised meta fields.
Rule id: 165c7d3d-de7e-4d71-b94a-8ab4a0e5ddd5
Metadata
| version | 1.0 |
|---|---|
| classification | TLP:CLEAR |
Tags:FILE
Related rules
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-07-16
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-08-23
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-04-22
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-07-23
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-10-20
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-03-20
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-03-20