YARA · SEKOIA.IO Community
SEKOIA_Strongpity_Malware
Detects obfuscation used by StrongPity
- Author
- Sekoia.io
- Date
- 2024-02-26
- Modified
- 2024-12-19
- Score / Quality
- 75 / 80
What this rule detects
Detects obfuscation used by StrongPity
Associated malware family: Strongpity.
Targets: Windows PE.
It defines 3 patterns (0 text, 3 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
strongpity-malware.yarDetection Rule License 1.1
rule SEKOIA_Strongpity_Malware : FILE
{
meta:
= "Detects obfuscation used by StrongPity"
= "Sekoia.io"
= "f19a685c-599d-42cf-a5d8-7a2375102f97"
= "2024-02-26"
= "2024-12-19"
= "https://github.com/SEKOIA-IO/Community"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/strongpity_malware.yar#L1-L21"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
= "14be5eccb4e754d6dad69cda51a924241cc75f5d758bc2d746acfe41e1684b3a"
= 75
= 80
= "FILE"
= "1.0"
= "TLP:CLEAR"
strings:
$rand_edi = {E8 ?? ?? ?? ?? 8B F8 81 E7 07 00 00 80 79 ?? 4F 83 CF F8 47 83 C7 02}
$rand_esi = {E8 ?? ?? ?? ?? 8B F0 81 E6 07 00 00 80 79 ?? 4E 83 CE F8 46 83 C6 02}
$rand_eax = {E8 ?? ?? ?? ?? 25 07 00 00 80 79 ?? 48 83 C8 F8 40 83 C0 02}
condition:
uint16be( 0 ) == 0x4d5a and #rand_edi + #rand_esi + #rand_eax > 20
}
Strings (3 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $rand_edi | hex | {E8 ?? ?? ?? ?? 8B F8 81 E7 07 00 00 80 79 ?? 4F 83 CF F8 47 83 C7 02} | |
| $rand_esi | hex | {E8 ?? ?? ?? ?? 8B F0 81 E6 07 00 00 80 79 ?? 4E 83 CE F8 46 83 C6 02} | |
| $rand_eax | hex | {E8 ?? ?? ?? ?? 25 07 00 00 80 79 ?? 48 83 C8 F8 40 83 C0 02} |
Condition
uint16be( 0 ) == 0x4d5a and #rand_edi + #rand_esi + #rand_eax > 20In plain words (Heuristic)
- The file must start with “MZ” — a Windows executable (PE).
- Pattern $rand_eax must occur > 20 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: f19a685c-599d-42cf-a5d8-7a2375102f97
Metadata
| version | 1.0 |
|---|---|
| classification | TLP:CLEAR |
Tags:FILE
Related rules
- MalwareSEKOIA.IO Community· Sekoia.io· 2023-01-16
- 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