YARA · SEKOIA.IO Community
SEKOIA_Infostealer_Win_Enigma_Initial_Loader
Find initial loader of Enigma Stealer based on specific strings
- Author
- Sekoia.io
- Date
- 2023-01-30
- Modified
- 2024-12-19
- Score / Quality
- 75 / 80
What this rule detects
Find initial loader of Enigma Stealer based on specific strings
Targets: Windows PE.
It defines 9 patterns (9 text, 0 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
rule SEKOIA_Infostealer_Win_Enigma_Initial_Loader : FILE
{
meta:
= "Find initial loader of Enigma Stealer based on specific strings"
= "Sekoia.io"
= "664fe8de-b406-4d63-9a4b-1c350b444f00"
= "2023-01-30"
= "2024-12-19"
= "https://github.com/SEKOIA-IO/Community"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/infostealer_win_enigma_initial_loader.yar#L1-L24"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
= "03b9d7296b01e8f3fb3d12c4d80fe8a1bb0ab2fd76f33c5ce11b40729b75fb23"
= "b7687a480a2a633e7cc9a60d62f3392011712bd018ed634927419cfb4edb4a78"
= 75
= 80
= "FILE"
= "1.0"
= "TLP:CLEAR"
strings:
$str01 = "/getFile?file_id=" ascii
$str02 = "/file/bot" ascii
$str03 = "?file_id=" ascii
$str04 = "pInternetSetOptionA failed" wide
$str05 = "list_messages[file_path] failed" wide
$str06 = "iE&xit" wide
$str07 = "[GetTgFileById][GetTgRequest] reply is NULL" wide
$str08 = "Telegram request failed" wide
$str09 = "bot getted" wide
condition:
uint16( 0 ) == 0x5A4D and 4 of them
}
Strings (9 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $str01 | text | "/getFile?file_id=" | ascii |
| $str02 | text | "/file/bot" | ascii |
| $str03 | text | "?file_id=" | ascii |
| $str04 | text | "pInternetSetOptionA failed" | wide |
| $str05 | text | "list_messages[file_path] failed" | wide |
| $str06 | text | "iE&xit" | wide |
| $str07 | text | "[GetTgFileById][GetTgRequest] reply is NULL" | wide |
| $str08 | text | "Telegram request failed" | wide |
| $str09 | text | "bot getted" | wide |
Condition
uint16( 0 ) == 0x5A4D and 4 of themIn plain words (Heuristic)
- The file must start with “MZ” — a Windows executable (PE).
- At least 4 patterns in the rule 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.
References
Sample hashes
Hashes of samples the author lists in the rule's meta (look them up in your threat-intelligence platform).
- 03b9d7296b01e8f3fb3d12c4d80fe8a1bb0ab2fd76f33c5ce11b40729b75fb23
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: 664fe8de-b406-4d63-9a4b-1c350b444f00
Metadata
| version | 1.0 |
|---|---|
| classification | TLP:CLEAR |
Tags:FILE
Related rules
- 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
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-03-20