YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Dlinjector02
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: Dlinjector02.
Targets: Windows PE.
It defines 10 patterns (10 text, 0 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
malware-win-dlinjector02.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Dlinjector02 : FILE
{
meta:
= "Detects downloader injector"
= "ditekSHen"
= "ce2c418d-18e4-579c-9828-94e294385846"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L6017-L6034"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "76d185cfcbc7f4996c2fb5c7c1ba4eb20b32d322d8ff47594283a4ca3e573a0b"
= 75
= 75
= "FILE"
strings:
$x1 = "In$J$ct0r" fullword wide
$x2 = "%InJ%ector%" fullword wide
$a1 = "WriteProcessMemory" fullword wide
$a2 = "URLDownloadToFileA" fullword ascii
$a3 = "Wow64SetThreadContext" fullword wide
$a4 = "VirtualAllocEx" fullword wide
$s1 = "RunPE" fullword wide
$s2 = "SETTINGS" fullword wide
$s3 = "net.pipe" fullword wide
$s4 = "vsmacros" fullword wide
condition:
uint16( 0 ) == 0x5a4d and ( 1 of ( $x* ) or ( all of ( $a* ) and 3 of ( $s* ) ) )
}
Strings (10 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $x1 | text | "In$J$ct0r" | fullword wide |
| $x2 | text | "%InJ%ector%" | fullword wide |
| $a1 | text | "WriteProcessMemory" | fullword wide |
| $a2 | text | "URLDownloadToFileA" | fullword ascii |
| $a3 | text | "Wow64SetThreadContext" | fullword wide |
| $a4 | text | "VirtualAllocEx" | fullword wide |
| $s1 | text | "RunPE" | fullword wide |
| $s2 | text | "SETTINGS" | fullword wide |
| $s3 | text | "net.pipe" | fullword wide |
| $s4 | text | "vsmacros" | fullword wide |
Condition
uint16( 0 ) == 0x5a4d and ( 1 of ( $x* ) or ( all of ( $a* ) and 3 of ( $s* ) ) )In plain words (Heuristic)
- The file must start with “MZ” — a Windows executable (PE).
- All patterns in ( $a* ) must match.
- At least 1 patterns in ( $x* ) must match.
- At least 3 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: ce2c418d-18e4-579c-9828-94e294385846
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