YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Masslogger
MassLogger keylogger payload
- Author
- ditekSHen
- Date
- 2020-11-06
- Modified
- 2024-11-01
- Score / Quality
- 75 / 73
What this rule detects
MassLogger keylogger payload
Associated malware family: Masslogger.
Targets: Windows PE.
It defines 22 patterns (22 text, 0 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
malware-win-masslogger.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Masslogger : FILE
{
meta:
= "MassLogger keylogger payload"
= "ditekSHen"
= "9181b89a-2ce8-59b6-9703-c01a8471b8d6"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L905-L934"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "7d8bbefa71a1eb20cd9d029bd516d6c37e39cfa053ed0617eace200d210d9b58"
= 75
= 73
= "FILE"
strings:
$s1 = "MassLogger v" ascii wide
$s2 = "MassLogger Started:" ascii wide
$s3 = "MassLogger Process:" ascii wide
$s4 = "/panel/upload.php" wide
$s5 = "ftp://" wide
$s6 = "\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}" fullword wide
$s7 = "^(.*/)?([^/\\\\.]+/\\\\.\\\\./)(.+)$" fullword wide
$s8 = "Bot Killer" ascii
$s9 = "Keylogger And Clipboard" ascii
$c1 = "costura.ionic.zip.reduced.dll.compressed" fullword ascii
$c2 = "CHECKvUNIQUEq" fullword ascii
$c3 = "HOOK/MEMORY6" fullword ascii
$c4 = "Massfile" ascii wide
$c5 = "Fz=[0-9]*'skips*" fullword ascii
$c6 = ":=65535zO" fullword ascii
$c7 = "!$!%!&!'!(!)!*!.!/!0!4!" fullword ascii
$c8 = "5!9!:!<!>!@!E!G!J!K!L!N!O!P!`!" fullword ascii
$c9 = "dllToLoad" fullword ascii
$c10 = "set_CreateNoWindow" fullword ascii
$c11 = "FtpWebRequest" fullword ascii
$c12 = "encryptedUsername" fullword ascii
$c13 = "encryptedPassword" fullword ascii
condition:
( uint16( 0 ) == 0x5a4d and 9 of ( $c* ) ) or ( 5 of ( $s* ) or 9 of ( $c* ) )
}
Strings (22 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $s1 | text | "MassLogger v" | ascii wide |
| $s2 | text | "MassLogger Started:" | ascii wide |
| $s3 | text | "MassLogger Process:" | ascii wide |
| $s4 | text | "/panel/upload.php" | wide |
| $s5 | text | "ftp://" | wide |
| $s6 | text | "\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}" | fullword wide |
| $s7 | text | "^(.*/)?([^/\\\\.]+/\\\\.\\\\./)(.+)$" | fullword wide |
| $s8 | text | "Bot Killer" | ascii |
| $s9 | text | "Keylogger And Clipboard" | ascii |
| $c1 | text | "costura.ionic.zip.reduced.dll.compressed" | fullword ascii |
| $c2 | text | "CHECKvUNIQUEq" | fullword ascii |
| $c3 | text | "HOOK/MEMORY6" | fullword ascii |
| $c4 | text | "Massfile" | ascii wide |
| $c5 | text | "Fz=[0-9]*'skips*" | fullword ascii |
| $c6 | text | ":=65535zO" | fullword ascii |
| $c7 | text | "!$!%!&!'!(!)!*!.!/!0!4!" | fullword ascii |
| $c8 | text | "5!9!:!<!>!@!E!G!J!K!L!N!O!P!`!" | fullword ascii |
| $c9 | text | "dllToLoad" | fullword ascii |
| $c10 | text | "set_CreateNoWindow" | fullword ascii |
| $c11 | text | "FtpWebRequest" | fullword ascii |
| $c12 | text | "encryptedUsername" | fullword ascii |
| $c13 | text | "encryptedPassword" | fullword ascii |
Condition
( uint16( 0 ) == 0x5a4d and 9 of ( $c* ) ) or ( 5 of ( $s* ) or 9 of ( $c* ) )In plain words (Heuristic)
- The file must start with “MZ” — a Windows executable (PE).
- At least 9 patterns in ( $c* ) must match.
- 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.
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: 9181b89a-2ce8-59b6-9703-c01a8471b8d6
Tags:FILE
Related rules
- MalwareCAPE Sandbox (CAPEv2)· kevoreilly· 2020-10-20
- 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