Zum Inhalt springen

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Masslogger

MassLogger keylogger payload

MalwareMassloggerditekSHen detectionBSD 2-Clause LicenseKompiliert mit YARA-X
Autor
ditekSHen
Datum
2020-11-06
Geändert
2024-11-01
Score / Qualität
75 / 73

Was diese Regel erkennt

MassLogger keylogger payload

Zugehörige Malware-Familie: Masslogger.

Ziele: Windows-PE.

Sie definiert 22 Muster (22 Text, 0 Hex, 0 Regex).

Zusammenfassung aus den Metadaten und der Bedingung der Regel erzeugt.

Regelquelltext

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

BezeichnerTypWertModifikatoren
$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

Bedingung

( uint16( 0 ) == 0x5a4d and 9 of ( $c* ) ) or ( 5 of ( $s* ) or 9 of ( $c* ) )

In Worten (Heuristik)

  • Die Datei muss mit „MZ“ beginnen — eine Windows-Programmdatei (PE).
  • Mindestens 9 Muster aus ( $c* ) müssen treffen.
  • Mindestens 5 Muster aus ( $s* ) müssen treffen.

Diese Regel im Browser testen

Legen Sie eine Datei ab, um sie mit dieser Regel und YARA-X als WebAssembly zu scannen. Nichts wird hochgeladen.

Datei hier ablegen oder klicken zum AuswählenLokal mit YARA-X gescannt. Dateien bis 200 MB.

Im Editor öffnen

Referenzen

Lizenz & Namensnennung

Autor: ditekSHen

Quell-Repository: ditekSHen detection @ e76c93dcde

Lizenz: BSD 2-Clause License (Repository-Lizenz)

Copyright-Hinweis: Copyright 2021 by ditekSHen (https://github.com/ditekshen/detection).

Originalregel

Gespiegelt über YARA Forge 20260927, das Regelnamen mit der Quelle präfixiert und normalisierte Meta-Felder ergänzt.

Regel-ID: 9181b89a-2ce8-59b6-9703-c01a8471b8d6

Tags:FILE