Aller au contenu

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Masslogger

MassLogger keylogger payload

MalwareMassloggerditekSHen detectionBSD 2-Clause LicenseCompile avec YARA-X
Auteur
ditekSHen
Date
2020-11-06
Modifiée
2024-11-01
Score / Qualité
75 / 73

Ce que détecte cette règle

MassLogger keylogger payload

Famille de malware associée : Masslogger.

Cibles : PE Windows.

Elle définit 22 motifs (22 texte, 0 hex, 0 regex).

Résumé généré à partir des métadonnées et de la condition de la règle.

Source de la règle

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* ) )
}

Chaînes (22 motifs)

IdentifiantTypeValeurModificateurs
$s1texte"MassLogger v"ascii wide
$s2texte"MassLogger Started:"ascii wide
$s3texte"MassLogger Process:"ascii wide
$s4texte"/panel/upload.php"wide
$s5texte"ftp://"wide
$s6texte"\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}"fullword wide
$s7texte"^(.*/)?([^/\\\\.]+/\\\\.\\\\./)(.+)$"fullword wide
$s8texte"Bot Killer"ascii
$s9texte"Keylogger And Clipboard"ascii
$c1texte"costura.ionic.zip.reduced.dll.compressed"fullword ascii
$c2texte"CHECKvUNIQUEq"fullword ascii
$c3texte"HOOK/MEMORY6"fullword ascii
$c4texte"Massfile"ascii wide
$c5texte"Fz=[0-9]*'skips*"fullword ascii
$c6texte":=65535zO"fullword ascii
$c7texte"!$!%!&!'!(!)!*!.!/!0!4!"fullword ascii
$c8texte"5!9!:!<!>!@!E!G!J!K!L!N!O!P!`!"fullword ascii
$c9texte"dllToLoad"fullword ascii
$c10texte"set_CreateNoWindow"fullword ascii
$c11texte"FtpWebRequest"fullword ascii
$c12texte"encryptedUsername"fullword ascii
$c13texte"encryptedPassword"fullword ascii

Condition

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

En clair (Heuristique)

  • Le fichier doit commencer par « MZ » — un exécutable Windows (PE).
  • Au moins 9 motifs de ( $c* ) doivent être trouvés.
  • Au moins 5 motifs de ( $s* ) doivent être trouvés.

Tester cette règle dans votre navigateur

Déposez un fichier pour le scanner avec cette règle grâce à YARA-X compilé en WebAssembly. Rien n’est envoyé.

Déposez un fichier ici ou cliquez pour choisirScanné localement avec YARA-X. Fichiers jusqu’à 200 Mo.

Ouvrir dans l’éditeur

Références

Licence et attribution

Auteur : ditekSHen

Dépôt source : ditekSHen detection @ e76c93dcde

Licence : BSD 2-Clause License (licence du dépôt)

Mention de copyright : Copyright 2021 by ditekSHen (https://github.com/ditekshen/detection).

Règle d’origine

Reprise via YARA Forge 20260927, qui préfixe les noms de règles par la source et ajoute des champs meta normalisés.

Identifiant de règle: 9181b89a-2ce8-59b6-9703-c01a8471b8d6

Tags:FILE