YARA · SEKOIA.IO Community
SEKOIA_Emmenhtal_Strings_Hta_Exe
Emmenhtal Loader string
- Author
- Sekoia.io
- Date
- 2024-09-06
- Modified
- 2024-12-19
- Score / Quality
- 75 / 80
What this rule detects
Emmenhtal Loader string
Targets: Windows PE.
It defines 5 patterns (4 text, 0 hex, 1 regex).
Summary generated from the rule's metadata and condition.
Rule source
emmenhtal-strings-hta-exe.yarDetection Rule License 1.1
rule SEKOIA_Emmenhtal_Strings_Hta_Exe : FILE
{
meta:
= "Emmenhtal Loader string"
= "Sekoia.io"
= "64e08610-e8a4-4edd-8f6b-d4e8d2b47d87"
= "2024-09-06"
= "2024-12-19"
= "https://github.com/SEKOIA-IO/Community"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/emmenhtal_strings_hta_exe.yar#L1-L21"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
= "e86a22f1c73b85678e64341427c7193ba65903f3c0f29af2e65d7c56d833d912"
= "93f85a4ccb58c6aeb664c4c843ff80a4ab7b4308a944537f7ebe087515a61659"
= 75
= 80
= "FILE"
= "1.0"
= "TLP:CLEAR"
strings:
$char = / = String\.fromCharCode\([a-zA-Z]{2,4},[a-zA-Z]{2,4},/
$var = "var "
$eval = "eval("
$script1 = "<script>"
$script2 = "</script>MZ"
condition:
uint16be( 0 ) == 0x4d5a and all of them and $var in ( @script1 .. @script1 + 2000 ) and $char in ( @var .. @var + 100 )
}
Strings (5 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $char | regex | / = String\.fromCharCode\([a-zA-Z]{2,4},[a-zA-Z]{2,4},/ | |
| $var | text | "var " | |
| $eval | text | "eval(" | |
| $script1 | text | "<script>" | |
| $script2 | text | "</script>MZ" |
Condition
uint16be( 0 ) == 0x4d5a and all of them and $var in ( @script1 .. @script1 + 2000 ) and $char in ( @var .. @var + 100 )In plain words (Heuristic)
- The file must start with “MZ” — a Windows executable (PE).
- All patterns in the rule must match.
- Pattern $var must be found within the range @script1 .. @script1 + 2000.
- Pattern $char must be found within the range @var .. @var + 100.
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
Sample hashes
Hashes of samples the author lists in the rule's meta (look them up in your threat-intelligence platform).
- e86a22f1c73b85678e64341427c7193ba65903f3c0f29af2e65d7c56d833d912
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: 64e08610-e8a4-4edd-8f6b-d4e8d2b47d87
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