YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Miniduke
Detects MiniDuke
- Author
- ditekSHen
- Date
- 2020-11-06
- Modified
- 2024-11-01
- Score / Quality
- 75 / 75
What this rule detects
Detects MiniDuke
Associated malware family: Miniduke.
Targets: Windows PE.
It defines 13 patterns (12 text, 1 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
malware-win-miniduke.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Miniduke : FILE
{
meta:
= "Detects MiniDuke"
= "ditekSHen"
= "947cd414-d19d-5543-8961-94aef69cc94e"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L3948-L3969"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "c3ab139b4fda2ff9678ceecbdf5ac0c57536bd658f62aa9d19610028b0a5f92c"
= 75
= 75
= "FILE"
strings:
$s1 = "DefPipe" fullword ascii
$s2 = "term %5d" fullword ascii
$s3 = "pid %5d" fullword ascii
$s4 = "uptime %5d.%02dh" fullword ascii
$s5 = "login: %s\\%s" fullword ascii
$s6 = "Software\\Microsoft\\ApplicationManager" ascii
$s7 = { 69 64 6c 65 ?? 00 73 74 6f 70 ?? 00 61 63 63 65 70 74 ?? 00 63 6f 6e 6e 65 63 74 ?? 00 6c 69 73 74 65 6e ?? 00 }
$net1 = "salesappliances.com" ascii
$net2 = "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.111 Safari/537.36" fullword ascii
$net3 = "http://10." ascii
$net4 = "JiM9t8g7j8KoJkLJlKqka8dbo7q5z4v5u3o4z" ascii
$net5 = "application/octet-stream" ascii
$net6 = "Content-Disposition: form-data; name=\"%s\"; filename=\"%s\"" ascii
condition:
uint16( 0 ) == 0x5a4d and ( 5 of ( $s* ) or 4 of ( $net* ) or 7 of them )
}
Strings (13 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $s1 | text | "DefPipe" | fullword ascii |
| $s2 | text | "term %5d" | fullword ascii |
| $s3 | text | "pid %5d" | fullword ascii |
| $s4 | text | "uptime %5d.%02dh" | fullword ascii |
| $s5 | text | "login: %s\\%s" | fullword ascii |
| $s6 | text | "Software\\Microsoft\\ApplicationManager" | ascii |
| $s7 | hex | { 69 64 6c 65 ?? 00 73 74 6f 70 ?? 00 61 63 63 65 70 74 ?? 00 63 6f 6e 6e 65 63 74 ?? 00 6c 69 73 74 65 6e ?? 00 } | |
| $net1 | text | "salesappliances.com" | ascii |
| $net2 | text | "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.111 Safari/537.36" | fullword ascii |
| $net3 | text | "http://10." | ascii |
| $net4 | text | "JiM9t8g7j8KoJkLJlKqka8dbo7q5z4v5u3o4z" | ascii |
| $net5 | text | "application/octet-stream" | ascii |
| $net6 | text | "Content-Disposition: form-data; name=\"%s\"; filename=\"%s\"" | ascii |
Condition
uint16( 0 ) == 0x5a4d and ( 5 of ( $s* ) or 4 of ( $net* ) or 7 of them )In plain words (Heuristic)
- The file must start with “MZ” — a Windows executable (PE).
- At least 5 patterns in ( $s* ) must match.
- At least 4 patterns in ( $net* ) must match.
- At least 7 patterns in the rule 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: 947cd414-d19d-5543-8961-94aef69cc94e
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