YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Dlinjector01
Detects specific downloader injector shellcode
- Author
- ditekSHen
- Date
- 2020-11-06
- Modified
- 2024-11-01
- Score / Quality
- 75 / 75
What this rule detects
Detects specific downloader injector shellcode
Associated malware family: Dlinjector01.
Targets: Windows PE.
It defines 13 patterns (7 text, 6 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
malware-win-dlinjector01.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Dlinjector01 : FILE
{
meta:
= "Detects specific downloader injector shellcode"
= "ditekSHen"
= "c5e0946c-3e15-5ebc-b1b5-3f00566dc5cd"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L5995-L6015"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "5c13af5fdbb2e8a27103d9502126a82d0bff15d9a269b22e4279b5b459d50e2d"
= 75
= 75
= "FILE"
strings:
$s1 = "process call create \"%s\"" ascii wide
$s2 = "\\REGISTRY\\MACHINE\\System\\CurrentControlSet\\Enum\\" ascii wide
$s3 = "%systemroot%\\system32\\ntdll.dll" ascii wide
$s4 = "qemu-ga.exe" ascii wide
$s5 = "prl_tools.exe" ascii wide
$s6 = "vboxservice.exe" ascii wide
$o1 = { 75 04 74 02 38 6e 8b 34 24 83 c4 04 eb 0a 08 81 }
$o2 = { 16 f8 f7 ba f0 3d 87 c7 95 13 b7 64 22 be e1 59 }
$o3 = { 8b 0c 24 83 c4 04 eb 05 ea f2 eb ef 05 e8 ad fe }
$o4 = { eb 05 1d 51 eb f5 ce e8 80 fd ff ff 77 a1 f4 cd }
$o5 = { eb 05 6e 33 eb f5 73 e8 64 f6 ff ff 77 a1 f4 77 }
$o6 = { 59 eb 05 fd 98 eb f4 50 e8 d5 f5 ff ff 3b b9 00 }
$o7 = "bYkoDA7G" fullword ascii
condition:
( uint16( 0 ) == 0x5a4d and all of ( $o* ) ) or ( all of ( $s* ) )
}
Strings (13 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $s1 | text | "process call create \"%s\"" | ascii wide |
| $s2 | text | "\\REGISTRY\\MACHINE\\System\\CurrentControlSet\\Enum\\" | ascii wide |
| $s3 | text | "%systemroot%\\system32\\ntdll.dll" | ascii wide |
| $s4 | text | "qemu-ga.exe" | ascii wide |
| $s5 | text | "prl_tools.exe" | ascii wide |
| $s6 | text | "vboxservice.exe" | ascii wide |
| $o1 | hex | { 75 04 74 02 38 6e 8b 34 24 83 c4 04 eb 0a 08 81 } | |
| $o2 | hex | { 16 f8 f7 ba f0 3d 87 c7 95 13 b7 64 22 be e1 59 } | |
| $o3 | hex | { 8b 0c 24 83 c4 04 eb 05 ea f2 eb ef 05 e8 ad fe } | |
| $o4 | hex | { eb 05 1d 51 eb f5 ce e8 80 fd ff ff 77 a1 f4 cd } | |
| $o5 | hex | { eb 05 6e 33 eb f5 73 e8 64 f6 ff ff 77 a1 f4 77 } | |
| $o6 | hex | { 59 eb 05 fd 98 eb f4 50 e8 d5 f5 ff ff 3b b9 00 } | |
| $o7 | text | "bYkoDA7G" | fullword ascii |
Condition
( uint16( 0 ) == 0x5a4d and all of ( $o* ) ) or ( all of ( $s* ) )In plain words (Heuristic)
- The file must start with “MZ” — a Windows executable (PE).
- All patterns in ( $o* ) must match.
- All patterns in ( $s* ) 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.
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: c5e0946c-3e15-5ebc-b1b5-3f00566dc5cd
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