YARA · SEKOIA.IO Community
SEKOIA_Infostealer_Win_Enigma_Stealer_Module
Find stealer module of Enigma Stealer based on specific strings
- Author
- Sekoia.io
- Date
- 2023-01-30
- Modified
- 2024-12-19
- Score / Quality
- 75 / 78
What this rule detects
Find stealer module of Enigma Stealer based on specific strings
Targets: Windows PE.
It defines 12 patterns (12 text, 0 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
rule SEKOIA_Infostealer_Win_Enigma_Stealer_Module : FILE
{
meta:
= "Find stealer module of Enigma Stealer based on specific strings"
= "Sekoia.io"
= "664fe8de-b406-4d63-9a4b-1c350b444f02"
= "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_stealer_module.yar#L1-L28"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
= "4d2fb518c9e23c5c70e70095ba3b63580cafc4b03f7e6dce2931c54895f13b2c"
= "0a6615d65867a160e1c87fbcfe30090d44d7f5c25b3a904f8719be7b385b14bb"
= 75
= 78
= "FILE"
= "1.0"
= "TLP:CLEAR"
strings:
$eni01 = "enigma.common" nocase ascii wide
$eni02 = "--ENIGMA STEALER--" wide
$str01 = "SELECT * FROM Win32_PnPEntity WHERE (PNPClass = 'Image' OR PNPClass = 'Camera')" wide
$str02 = "/C chcp 65001 && netsh wlan show profile | findstr All" wide
$str03 = "/C chcp 65001 && netsh wlan show networks mode=bssid" wide
$str04 = "[Open google maps]" wide
$str05 = "Stealerium.Target." ascii
$str06 = "--- ClipperBCH ---" wide
$str07 = "//setting[@name='Username']/value" wide
$str08 = "Stealer >> Failed recursive remove directory with passwords" wide
$str09 = "[a-zA-Z0-9]{24}\\.[a-zA-Z0-9]{6}\\.[a-zA-Z0-9_\\-]{27}|mfa\\.[a-zA-Z0-9_\\-]{84}" wide
$str10 = "^(5018|5020|5038|6304|6759|6761|6763)[0-9]{8,15}$" wide
condition:
uint16( 0 ) == 0x5A4D and 1 of ( $eni* ) and 4 of ( $str* )
}
Strings (12 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $eni01 | text | "enigma.common" | nocase ascii wide |
| $eni02 | text | "--ENIGMA STEALER--" | wide |
| $str01 | text | "SELECT * FROM Win32_PnPEntity WHERE (PNPClass = 'Image' OR PNPClass = 'Camera')" | wide |
| $str02 | text | "/C chcp 65001 && netsh wlan show profile | findstr All" | wide |
| $str03 | text | "/C chcp 65001 && netsh wlan show networks mode=bssid" | wide |
| $str04 | text | "[Open google maps]" | wide |
| $str05 | text | "Stealerium.Target." | ascii |
| $str06 | text | "--- ClipperBCH ---" | wide |
| $str07 | text | "//setting[@name='Username']/value" | wide |
| $str08 | text | "Stealer >> Failed recursive remove directory with passwords" | wide |
| $str09 | text | "[a-zA-Z0-9]{24}\\.[a-zA-Z0-9]{6}\\.[a-zA-Z0-9_\\-]{27}|mfa\\.[a-zA-Z0-9_\\-]{84}" | wide |
| $str10 | text | "^(5018|5020|5038|6304|6759|6761|6763)[0-9]{8,15}$" | wide |
Condition
uint16( 0 ) == 0x5A4D and 1 of ( $eni* ) and 4 of ( $str* )In plain words (Heuristic)
- The file must start with “MZ” — a Windows executable (PE).
- At least 1 patterns in ( $eni* ) must match.
- At least 4 patterns in ( $str* ) 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).
- 4d2fb518c9e23c5c70e70095ba3b63580cafc4b03f7e6dce2931c54895f13b2c
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-1c350b444f02
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