YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Dllhijacker02
Detects ServiceCrt / DllHijacker03 IronTiger / LuckyMouse / APT27 malware
- Author
- ditekSHen
- Date
- 2020-11-06
- Modified
- 2024-11-01
- Score / Quality
- 75 / 75
What this rule detects
Detects ServiceCrt / DllHijacker03 IronTiger / LuckyMouse / APT27 malware
Associated malware family: Dllhijacker02.
Targets: Windows PE.
It defines 8 patterns (2 text, 6 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
rule DITEKSHEN_MALWARE_Win_Dllhijacker02 : FILE
{
meta:
= "Detects ServiceCrt / DllHijacker03 IronTiger / LuckyMouse / APT27 malware"
= "ditekSHen"
= "de5eee06-570a-5ec3-9e1b-13de4c4f260f"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L5512-L5527"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "d4eb236256c413d4d3223cc897783f5631c7798c0f3280e72d8c8504438fcaf9"
= 75
= 75
= "FILE"
strings:
$s1 = "ServiceCrtMain" fullword ascii
$s2 = "mpsvc.dll" fullword ascii
$o1 = { 84 db 0f 85 4c ff ff ff e8 14 06 00 00 8b f0 83 }
$o2 = { f7 c1 00 ff ff ff 75 c5 eb 13 0f ba 25 10 20 01 }
$o3 = { 8d 04 b1 8b d9 89 45 fc 8d 34 b9 a1 18 20 01 10 }
$o4 = { b0 01 c3 68 b8 2c 01 10 e8 83 ff ff ff c7 04 24 }
$o5 = { eb 34 66 0f 12 0d 00 fe 00 10 f2 0f 59 c1 ba cc }
$o6 = { 73 c7 dc 0d 4c ff 00 10 eb bf dd 05 34 ff 00 10 }
condition:
uint16( 0 ) == 0x5a4d and all of ( $s* ) and 5 of ( $o* )
}
Strings (8 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $s1 | text | "ServiceCrtMain" | fullword ascii |
| $s2 | text | "mpsvc.dll" | fullword ascii |
| $o1 | hex | { 84 db 0f 85 4c ff ff ff e8 14 06 00 00 8b f0 83 } | |
| $o2 | hex | { f7 c1 00 ff ff ff 75 c5 eb 13 0f ba 25 10 20 01 } | |
| $o3 | hex | { 8d 04 b1 8b d9 89 45 fc 8d 34 b9 a1 18 20 01 10 } | |
| $o4 | hex | { b0 01 c3 68 b8 2c 01 10 e8 83 ff ff ff c7 04 24 } | |
| $o5 | hex | { eb 34 66 0f 12 0d 00 fe 00 10 f2 0f 59 c1 ba cc } | |
| $o6 | hex | { 73 c7 dc 0d 4c ff 00 10 eb bf dd 05 34 ff 00 10 } |
Condition
uint16( 0 ) == 0x5a4d and all of ( $s* ) and 5 of ( $o* )In plain words (Heuristic)
- The file must start with “MZ” — a Windows executable (PE).
- All patterns in ( $s* ) must match.
- At least 5 patterns in ( $o* ) 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
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: de5eee06-570a-5ec3-9e1b-13de4c4f260f
Tags:FILE
Related rules
- MalwareditekSHen detection· ditekSHen· 2034-02-17
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06