Skip to content

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Masslogger

MassLogger keylogger payload

MalwareMassloggerditekSHen detectionBSD 2-Clause LicenseCompiles with YARA-X
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:
		description = "MassLogger keylogger payload"
		author = "ditekSHen"
		id = "9181b89a-2ce8-59b6-9703-c01a8471b8d6"
		date = "2020-11-06"
		modified = "2024-11-01"
		reference = "https://github.com/ditekshen/detection"
		source_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L905-L934"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "7d8bbefa71a1eb20cd9d029bd516d6c37e39cfa053ed0617eace200d210d9b58"
		score = 75
		quality = 73
		tags = "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)

IdentifierTypeValueModifiers
$s1text"MassLogger v"ascii wide
$s2text"MassLogger Started:"ascii wide
$s3text"MassLogger Process:"ascii wide
$s4text"/panel/upload.php"wide
$s5text"ftp://"wide
$s6text"\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}"fullword wide
$s7text"^(.*/)?([^/\\\\.]+/\\\\.\\\\./)(.+)$"fullword wide
$s8text"Bot Killer"ascii
$s9text"Keylogger And Clipboard"ascii
$c1text"costura.ionic.zip.reduced.dll.compressed"fullword ascii
$c2text"CHECKvUNIQUEq"fullword ascii
$c3text"HOOK/MEMORY6"fullword ascii
$c4text"Massfile"ascii wide
$c5text"Fz=[0-9]*'skips*"fullword ascii
$c6text":=65535zO"fullword ascii
$c7text"!$!%!&!'!(!)!*!.!/!0!4!"fullword ascii
$c8text"5!9!:!<!>!@!E!G!J!K!L!N!O!P!`!"fullword ascii
$c9text"dllToLoad"fullword ascii
$c10text"set_CreateNoWindow"fullword ascii
$c11text"FtpWebRequest"fullword ascii
$c12text"encryptedUsername"fullword ascii
$c13text"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.

Open in editor

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).

Original rule

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