YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Shellcodedlei
Detects shellcode downloader, executer, injector
- Author
- ditekSHen
- Date
- 2020-11-06
- Modified
- 2024-11-01
- Score / Quality
- 75 / 75
What this rule detects
Detects shellcode downloader, executer, injector
Associated malware family: Shellcodedlei.
Targets: Windows PE.
It defines 10 patterns (10 text, 0 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
rule DITEKSHEN_MALWARE_Win_Shellcodedlei : FILE
{
meta:
= "Detects shellcode downloader, executer, injector"
= "ditekSHen"
= "62a4f141-87f8-596a-adf6-5bf9a50c9e91"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L7287-L7304"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "064c17427ae6b33ffb09a14abcb924d20ead44250e8bd03070bf40869f1c812e"
= 75
= 75
= "FILE"
strings:
$s1 = "PPidSpoof" fullword ascii
$s2 = "ProcHollowing" fullword ascii
$s3 = "CreateProcess" fullword ascii
$s4 = "DynamicCodeInject" fullword ascii
$s5 = "PPIDDynCodeInject" fullword ascii
$s6 = "MapAndStart" fullword ascii
$s7 = "PPIDAPCInject" fullword ascii
$s8 = "PPIDDLLInject" fullword ascii
$s9 = "CopyShellcode" fullword ascii
$s10 = "GetEntryFromBuffer" fullword ascii
condition:
uint16( 0 ) == 0x5a4d and filesize < 100KB and 5 of ( $s* )
}
Strings (10 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $s1 | text | "PPidSpoof" | fullword ascii |
| $s2 | text | "ProcHollowing" | fullword ascii |
| $s3 | text | "CreateProcess" | fullword ascii |
| $s4 | text | "DynamicCodeInject" | fullword ascii |
| $s5 | text | "PPIDDynCodeInject" | fullword ascii |
| $s6 | text | "MapAndStart" | fullword ascii |
| $s7 | text | "PPIDAPCInject" | fullword ascii |
| $s8 | text | "PPIDDLLInject" | fullword ascii |
| $s9 | text | "CopyShellcode" | fullword ascii |
| $s10 | text | "GetEntryFromBuffer" | fullword ascii |
Condition
uint16( 0 ) == 0x5a4d and filesize < 100KB and 5 of ( $s* )In plain words (Heuristic)
- The file must start with “MZ” — a Windows executable (PE).
- The file must be smaller than 100KB (a cheap guard that skips large files).
- At least 5 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.
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: 62a4f141-87f8-596a-adf6-5bf9a50c9e91
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