YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Romcom_Dropper
Hunt for RomCom worker
- Author
- ditekShen
- Date
- 2020-11-06
- Modified
- 2024-11-01
- Score / Quality
- 75 / 75
What this rule detects
Hunt for RomCom worker
Associated malware family: Romcom.
Targets: Windows PE.
It defines 4 patterns (4 text, 0 hex, 0 regex). YARA modules used: pe.
Summary generated from the rule's metadata and condition.
Rule source
Includes the imports needed to compile it on its own.
import "pe"
rule DITEKSHEN_MALWARE_Win_Romcom_Dropper : FILE
{
meta:
= "Hunt for RomCom worker"
= "ditekShen"
= "1b77122d-95d7-535d-897e-b542da17f499"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L10324-L10335"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "89f62f71e5870c1e5d14bc32dd3508da620f5fa85494251c69682eb09d630029"
= 75
= 75
= "FILE"
strings:
$s1 = "\\REGISTRY\\MACHINE\\SOFTWARE\\Classes" wide nocase
$s2 = "\\REGISTRY\\USER" wide nocase
$s3 = "BINARY" fullword wide
$s4 = "POST" fullword wide
condition:
uint16( 0 ) == 0x5a4d and pe.is_dll ( ) and pe.number_of_exports == 1 and pe.exports ( "Main" ) and 3 of them
}
Strings (4 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $s1 | text | "\\REGISTRY\\MACHINE\\SOFTWARE\\Classes" | wide nocase |
| $s2 | text | "\\REGISTRY\\USER" | wide nocase |
| $s3 | text | "BINARY" | fullword wide |
| $s4 | text | "POST" | fullword wide |
Condition
uint16( 0 ) == 0x5a4d and pe.is_dll ( ) and pe.number_of_exports == 1 and pe.exports ( "Main" ) and 3 of themIn plain words (Heuristic)
- The file must start with “MZ” — a Windows executable (PE).
- At least 3 patterns in the rule must match.
- Uses the pe module.
- Checks exported functions or the DLL name.
- Requires a DLL.
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
Licence & attribution
Author: ditekShen
Source repository: ditekSHen detection @ e76c93dcde
Licence: BSD 2-Clause License (repository licence)
Copyright notice: Copyright 2021 by ditekSHen (https://github.com/ditekshen/detection).
Mirrored via YARA Forge 20260927, which prefixes rule names with the source and adds normalised meta fields.
Rule id: 1b77122d-95d7-535d-897e-b542da17f499
Tags:FILE
Related rules
- MalwareditekSHen detection· ditekShen· 2020-11-06
- MalwareditekSHen detection· ditekShen· 2020-11-06
- MalwareSEKOIA.IO Community· Sekoia.io· 2022-11-04
- MalwareSEKOIA.IO Community· Sekoia.io· 2022-11-04
- MalwareditekSHen detection· ditekShen· 2020-11-06
- MalwareditekSHen detection· ditekShen· 2020-11-06
- MalwareditekSHen detection· ditekShen· 2020-11-06
- MalwareditekSHen detection· ditekShen· 2020-11-06