YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Fakewmi
FakeWMI payload
- Author
- ditekSHen
- Date
- 2020-11-06
- Modified
- 2024-11-01
- Score / Quality
- 75 / 75
What this rule detects
FakeWMI payload
Associated malware family: Fakewmi.
Targets: Windows PE.
It defines 9 patterns (9 text, 0 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
malware-win-fakewmi.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Fakewmi : FILE
{
meta:
= "FakeWMI payload"
= "ditekSHen"
= "689bc207-2bc6-50de-80d6-d1ba0a26b264"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L1047-L1064"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "627886cdd01f5f02e454ef284c77c87eb027ee33f6a51536758fb7f095271a40"
= 75
= 75
= "FILE"
= "MALWARE.Win.Trojan.Fakewmi"
strings:
$s1 = "-BEGIN RSA PUBLIC KEY-" ascii
$s2 = ".exe|" ascii
$s3 = "cmd /c wmic " ascii
$s4 = "cmd /c sc " ascii
$s5 = "schtasks" ascii
$s6 = "taskkill" ascii
$s7 = "findstr" ascii
$s8 = "netsh interface" ascii
$s9 = "CreateService" ascii
condition:
uint16( 0 ) == 0x5a4d and ( all of ( $s* ) and #s2 > 10 )
}
Strings (9 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $s1 | text | "-BEGIN RSA PUBLIC KEY-" | ascii |
| $s2 | text | ".exe|" | ascii |
| $s3 | text | "cmd /c wmic " | ascii |
| $s4 | text | "cmd /c sc " | ascii |
| $s5 | text | "schtasks" | ascii |
| $s6 | text | "taskkill" | ascii |
| $s7 | text | "findstr" | ascii |
| $s8 | text | "netsh interface" | ascii |
| $s9 | text | "CreateService" | ascii |
Condition
uint16( 0 ) == 0x5a4d and ( all of ( $s* ) and #s2 > 10 )In plain words (Heuristic)
- The file must start with “MZ” — a Windows executable (PE).
- All patterns in ( $s* ) must match.
- Pattern $s2 must occur > 10 times.
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: 689bc207-2bc6-50de-80d6-d1ba0a26b264
Metadata
| clamav_sig | MALWARE.Win.Trojan.Fakewmi |
|---|
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