YARA · Embee Research
EMBEERESEARCH_Win_Emotet_String_Patterns_Oct_2022
Detection of string hashing routines observed in emotet
- Author
- Embee_Research @ HuntressLabs
- Date
- 2022-10-14
- Modified
- 2023-10-18
- Score / Quality
- 75 / 75
What this rule detects
Detection of string hashing routines observed in emotet
Associated malware family: Emotet.
Targets: Windows PE.
It defines 4 patterns (0 text, 4 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
win-emotet-string-patterns-oct-2022.yarDetection Rule License 1.1
rule EMBEERESEARCH_Win_Emotet_String_Patterns_Oct_2022 : FILE
{
meta:
= "Detection of string hashing routines observed in emotet"
= "Embee_Research @ HuntressLabs"
= "fd9c3133-95dc-5dd8-9e94-ed85ad8e1fc7"
= "2022-10-14"
= "2023-10-18"
= "https://github.com/embee-research/Yara-detection-rules/"
= "https://github.com/embee-research/Yara-detection-rules//blob/ac56d6f6fd2a30c8cb6e5c0455d6519210a8b0f4/Rules/2022/win_emotet_string_patterns_oct_2022.yar#L1-L19"
= "N/A"
= "36f4a3fed124b8c25711f706c5b4f1c9b0801c2105cf86077b8c002dd70a6fbc"
= 75
= 75
= "FILE"
strings:
$em1 = {45 33 f6 4c 8b d0 48 85 c0 74 64 48 8d 14 b3 4c 8b c0 45 8b de 4c 8b ca 4c 2b cb 49 83 c1 03 49 c1 e9 02 48 3b da 4d 0f 47 ce}
$em2 = {8b cd 49 ff c3 33 0b 48 8d 5b 04 0f b6 c1 66 41 89 00 0f b7 c1 c1 e9 10 66 c1 e8 08 4d 8d 40 08 66 41 89 40 fa 0f b6 c1 66 c1 e9 08 66 41 89 40 fc 66 41 89 48 fe 4d 3b d9}
$em3 = {49 ff c3 33 0b 48 8d 5b 04 0f b6 c1 66 41 89 00}
$em4 = {8b cb 41 8b d0 d3 e2 41 8b cb d3 e0 03 d0 41 0f be c1 03 d0 41 2b d0 49 ff c2 44 8b c2}
condition:
uint16( 0 ) == 0x5a4d and ( any of them )
}
Strings (4 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $em1 | hex | {45 33 f6 4c 8b d0 48 85 c0 74 64 48 8d 14 b3 4c 8b c0 45 8b de 4c 8b ca 4c 2b cb 49 83 c1 03 49 c1 e9 02 48 3b da 4d 0f 47 ce} | |
| $em2 | hex | {8b cd 49 ff c3 33 0b 48 8d 5b 04 0f b6 c1 66 41 89 00 0f b7 c1 c1 e9 10 66 c1 e8 08 4d 8d 40 08 66 41 89 40 fa 0f b6 c1 66 c1 e9 08 66 41 89 40 fc 66 41 89 48 … | |
| $em3 | hex | {49 ff c3 33 0b 48 8d 5b 04 0f b6 c1 66 41 89 00} | |
| $em4 | hex | {8b cb 41 8b d0 d3 e2 41 8b cb d3 e0 03 d0 41 0f be c1 03 d0 41 2b d0 49 ff c2 44 8b c2} |
Condition
uint16( 0 ) == 0x5a4d and ( any of them )In plain words (Heuristic)
- The file must start with “MZ” — a Windows executable (PE).
- At least one pattern 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.
Drop a file here or click to chooseScanned locally with YARA-X. Files up to 200 MB.
Licence & attribution
Author: Embee_Research @ HuntressLabs
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: fd9c3133-95dc-5dd8-9e94-ed85ad8e1fc7
Tags:FILE
Related rules
- MalwareSignature Base (Florian Roth / Nextron)· press inquiries <info@bka.de>, technical contact <info@mh…· 2021-03-23
- MalwareSignature Base (Florian Roth / Nextron)· press inquiries <info@bka.de>, technical contact <info@mh…· 2021-03-23
- MalwareSignature Base (Florian Roth / Nextron)· Florian Roth (Nextron Systems)· 2020-01-29
- MalwareCAPE Sandbox (CAPEv2)· kevoreilly· 2022-05-31
- MalwareCAPE Sandbox (CAPEv2)· kevoreilly· 2022-03-31
- MalwareTrellix Advanced Research Center· Marc Rivero | McAfee ATR Team· 2020-07-21
- ARKBIRD_SOLG_MAL_Emotet_Nov_2021_1Metadata onlyMalwareArkbird SOLG (DailyIOC)· Arkbird_SOLG· 2021-11-15
- SECUINFRA_MALWARE_Emotet_Onenote_Delivery_Wsf_Mar23Metadata onlyMalwareSecuInfra Falcon Team· SECUINFRA Falcon Team (@SI_FalconTeam)· 2023-03-16