YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Dlinjector04
Detects downloader / injector
- Author
- ditekSHen
- Date
- 2020-11-06
- Modified
- 2024-11-01
- Score / Quality
- 75 / 75
What this rule detects
Detects downloader / injector
Associated malware family: Dlinjector04.
Targets: Windows PE.
It defines 14 patterns (14 text, 0 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
malware-win-dlinjector04.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Dlinjector04 : FILE
{
meta:
= "Detects downloader / injector"
= "ditekSHen"
= "fe423aee-6ff4-5fd0-9fa2-51dd0c27f54b"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L7769-L7790"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "ab9a047e53dec2cc5986522636783b5cb8aae7fc0297292d017ec22ee5750cce"
= 75
= 75
= "FILE"
strings:
$s1 = "Runner" fullword ascii
$s2 = "DownloadPayload" fullword ascii
$s3 = "RunOnStartup" fullword ascii
$a1 = "Antis" fullword ascii
$a2 = "antiVM" fullword ascii
$a3 = "antiSandbox" fullword ascii
$a4 = "antiDebug" fullword ascii
$a5 = "antiEmulator" fullword ascii
$a6 = "enablePersistence" fullword ascii
$a7 = "enableFakeError" fullword ascii
$a8 = "DetectVirtualMachine" fullword ascii
$a9 = "DetectSandboxie" fullword ascii
$a10 = "DetectDebugger" fullword ascii
$a11 = "CheckEmulator" fullword ascii
condition:
uint16( 0 ) == 0x5a4d and ( ( all of ( $s* ) and 5 of ( $a* ) ) or 10 of ( $a* ) )
}
Strings (14 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $s1 | text | "Runner" | fullword ascii |
| $s2 | text | "DownloadPayload" | fullword ascii |
| $s3 | text | "RunOnStartup" | fullword ascii |
| $a1 | text | "Antis" | fullword ascii |
| $a2 | text | "antiVM" | fullword ascii |
| $a3 | text | "antiSandbox" | fullword ascii |
| $a4 | text | "antiDebug" | fullword ascii |
| $a5 | text | "antiEmulator" | fullword ascii |
| $a6 | text | "enablePersistence" | fullword ascii |
| $a7 | text | "enableFakeError" | fullword ascii |
| $a8 | text | "DetectVirtualMachine" | fullword ascii |
| $a9 | text | "DetectSandboxie" | fullword ascii |
| $a10 | text | "DetectDebugger" | fullword ascii |
| $a11 | text | "CheckEmulator" | fullword ascii |
Condition
uint16( 0 ) == 0x5a4d and ( ( all of ( $s* ) and 5 of ( $a* ) ) or 10 of ( $a* ) )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 ( $a* ) must match.
- At least 10 patterns in ( $a* ) 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: fe423aee-6ff4-5fd0-9fa2-51dd0c27f54b
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