YARA · SEKOIA.IO Community
SEKOIA_Infostealer_Win_Solarmarker_Dll
Finds SolarMarker DLL based on characteristic strings
- Author
- Sekoia.io
- Date
- 2022-12-09
- Modified
- 2024-12-19
- Score / Quality
- 75 / 80
What this rule detects
Finds SolarMarker DLL based on characteristic strings
Associated malware family: Solarmarker.
Targets: Windows PE.
It defines 11 patterns (11 text, 0 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
infostealer-win-solarmarker-dll.yarDetection Rule License 1.1
rule SEKOIA_Infostealer_Win_Solarmarker_Dll : FILE
{
meta:
= "Finds SolarMarker DLL based on characteristic strings"
= "Sekoia.io"
= "a2fe7f09-7134-4054-ba40-5ea66785a26c"
= "2022-12-09"
= "2024-12-19"
= "https://github.com/SEKOIA-IO/Community"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/infostealer_win_solarmarker_dll.yar#L1-L28"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
= "5be0a95adb7e486cdec5f0e8433afed41516fc1a990e1d1ba00db7e8fb32dbbb"
= 75
= 80
= "FILE"
= "1.0"
= "TLP:CLEAR"
strings:
$zka = "zkabsr" wide
$str0 = "set_PersistKeyInCsp" ascii
$str1 = "get_IV" ascii
$str2 = "get_MachineName" ascii
$str3 = "get_Current" ascii
$str4 = "ps_script" ascii
$str5 = "request_data" ascii
$str6 = "WindowsBuiltInRole" ascii
$str7 = "DllImportAttribute" ascii
$str8 = "get_BlockSize" ascii
$str9 = "GetRequestStream" ascii
condition:
uint16( 0 ) == 0x5A4D and ( ( $zka and 3 of ( $str* ) ) or ( all of ( $str* ) ) ) and filesize < 1MB
}
Strings (11 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $zka | text | "zkabsr" | wide |
| $str0 | text | "set_PersistKeyInCsp" | ascii |
| $str1 | text | "get_IV" | ascii |
| $str2 | text | "get_MachineName" | ascii |
| $str3 | text | "get_Current" | ascii |
| $str4 | text | "ps_script" | ascii |
| $str5 | text | "request_data" | ascii |
| $str6 | text | "WindowsBuiltInRole" | ascii |
| $str7 | text | "DllImportAttribute" | ascii |
| $str8 | text | "get_BlockSize" | ascii |
| $str9 | text | "GetRequestStream" | ascii |
Condition
uint16( 0 ) == 0x5A4D and ( ( $zka and 3 of ( $str* ) ) or ( all of ( $str* ) ) ) and filesize < 1MBIn plain words (Heuristic)
- The file must start with “MZ” — a Windows executable (PE).
- The file must be smaller than 1MB (a cheap guard that skips large files).
- All patterns in ( $str* ) must match.
- At least 3 patterns in ( $str* ) must match.
- Pattern $zka must be present.
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: a2fe7f09-7134-4054-ba40-5ea66785a26c
Metadata
| version | 1.0 |
|---|---|
| classification | TLP:CLEAR |
Tags:FILE
Related rules
- MalwareSEKOIA.IO Community· Sekoia.io· 2022-12-09
- MalwareEmbee Research· Matthew @ Embee_Research· 2023-12-28
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- RUSSIANPANDA_Solarmarker_Loader_PS2EXEMetadata onlyMalwareRussianPanda· RussianPanda· 2024-01-04
- RUSSIANPANDA_SolardropperMetadata onlyMalwareRussianPanda· RussianPanda· 2023-06-22
- RUSSIANPANDA_Solarmarker_LoaderMetadata onlyMalwareRussianPanda· RussianPanda· 2024-01-04
- RUSSIANPANDA_Solarmarker_First_Stage_PayloadMetadata onlyMalwareRussianPanda· RussianPanda· 2024-01-30
- Suspicious / huntingEmbee Research· Matthew @ Embee_Research· 2023-09-10