YARA · Embee Research
EMBEERESEARCH_Win_Solarmarker_Bytecodes
Detects bytecodes present in solarmarker Packer
- Author
- Matthew @ Embee_Research
- Date
- 2023-09-10
- Modified
- 2023-09-11
- Score / Quality
- 75 / 75
What this rule detects
Detects bytecodes present in solarmarker Packer
Associated malware family: Solarmarker.
Targets: .NET assembly.
It defines 1 patterns (0 text, 1 hex, 0 regex). YARA modules used: dotnet.
Summary generated from the rule's metadata and condition.
Rule source
Includes the imports needed to compile it on its own.
import "dotnet"
rule EMBEERESEARCH_Win_Solarmarker_Bytecodes : FILE
{
meta:
= "Detects bytecodes present in solarmarker Packer"
= "Matthew @ Embee_Research"
= "d405e7ae-f09b-5993-a510-e5e1bc289898"
= "2023-09-10"
= "2023-09-11"
= "https://github.com/embee-research/Yara-detection-rules/"
= "https://github.com/embee-research/Yara-detection-rules//blob/ac56d6f6fd2a30c8cb6e5c0455d6519210a8b0f4/Rules/win_solarmarker_bytecodes_aug_2023.yar#L3-L21"
= "N/A"
= "a433dad1e31f2e19ab5d22b6348c73fa4c874502acc20d5517d785b554754279"
= "52256184706b7173ee8e8683ac79c1b9d4773778c135e4dae255376c0a6651fb"
= 75
= 75
= "FILE"
strings:
$s1 = {8C ?? ?? ?? ?? 28 ?? ?? ?? ?? 0A 20 ?? ?? ?? ?? 13 ?? 06 11 ?? 20 ?? ?? ?? ?? 58 D1 8C ?? ?? ?? ?? 28 ?? ?? ?? ?? 0A 20 ?? ?? ?? ?? 13 ?? 06 11 ?? 20 ?? ?? ?? ?? 58 D1 8C ?? ?? ?? ?? 28 ?? ?? ?? ??}
condition:
dotnet.is_dotnet and filesize < 7000KB and $s1
}
Strings (1 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $s1 | hex | {8C ?? ?? ?? ?? 28 ?? ?? ?? ?? 0A 20 ?? ?? ?? ?? 13 ?? 06 11 ?? 20 ?? ?? ?? ?? 58 D1 8C ?? ?? ?? ?? 28 ?? ?? ?? ?? 0A 20 ?? ?? ?? ?? 13 ?? 06 11 ?? 20 ?? ?? ?? … |
Condition
dotnet.is_dotnet and filesize < 7000KB and $s1In plain words (Heuristic)
- The file must be smaller than 7000KB (a cheap guard that skips large files).
- Uses the dotnet module.
- Pattern $s1 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.
Sample hashes
Hashes of samples the author lists in the rule's meta (look them up in your threat-intelligence platform).
- a433dad1e31f2e19ab5d22b6348c73fa4c874502acc20d5517d785b554754279
Licence & attribution
Author: Matthew @ Embee_Research
Source repository: Embee Research @ ac56d6f6fd
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: d405e7ae-f09b-5993-a510-e5e1bc289898
Tags:FILE
Related rules
- MalwareEmbee Research· Matthew @ Embee_Research· 2023-12-28
- MalwareSEKOIA.IO Community· Sekoia.io· 2022-12-09
- MalwareSEKOIA.IO Community· Sekoia.io· 2022-12-09
- 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