Aller au contenu

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Legionlocker

Detects LegionLocker ransomware

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

Ce que détecte cette règle

Detects LegionLocker ransomware

Famille de malware associée : Legionlocker.

Cibles : PE Windows.

Elle définit 11 motifs (11 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-legionlocker.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Legionlocker : FILE
{
	meta:
		description = "Detects LegionLocker ransomware"
		author = "ditekSHen"
		id = "4e5c50d0-808e-5adb-bce9-804ddf66ca61"
		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#L5111-L5129"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "2da897b5603415f14fff134b3a94d77e6963da79e117d26ba16e6b04e45f4045"
		score = 75
		quality = 75
		tags = "FILE"

	strings:
		$m1 = "+Do not run task manager, powershell, cmd etc." ascii wide
		$m2 = "3 hours your files will be deleted." ascii wide
		$m3 = "files have been encrypted by Legion Locker" ascii wide
		$s1 = "passwordBytes" fullword ascii
		$s2 = "_start_enc_" ascii
		$s3 = "_del_desktop_" ascii
		$s4 = "Processhacker" wide
		$s5 = "/k color 47 && del /f /s /q %userprofile%\\" wide
		$s6 = "Submit code" fullword wide
		$pdb1 = "\\obj\\Debug\\LegionLocker.pdb" ascii
		$pdb2 = "\\obj\\Release\\LegionLocker.pdb" ascii

	condition:
		uint16( 0 ) == 0x5a4d and ( 1 of ( $m* ) or 1 of ( $pdb* ) or 4 of ( $s* ) )
}

Chaînes (11 motifs)

IdentifiantTypeValeurModificateurs
$m1texte"+Do not run task manager, powershell, cmd etc."ascii wide
$m2texte"3 hours your files will be deleted."ascii wide
$m3texte"files have been encrypted by Legion Locker"ascii wide
$s1texte"passwordBytes"fullword ascii
$s2texte"_start_enc_"ascii
$s3texte"_del_desktop_"ascii
$s4texte"Processhacker"wide
$s5texte"/k color 47 && del /f /s /q %userprofile%\\"wide
$s6texte"Submit code"fullword wide
$pdb1texte"\\obj\\Debug\\LegionLocker.pdb"ascii
$pdb2texte"\\obj\\Release\\LegionLocker.pdb"ascii

Condition

uint16( 0 ) == 0x5a4d and ( 1 of ( $m* ) or 1 of ( $pdb* ) or 4 of ( $s* ) )

En clair (Heuristique)

  • Le fichier doit commencer par « MZ » — un exécutable Windows (PE).
  • Au moins 1 motifs de ( $m* ) doivent être trouvés.
  • Au moins 1 motifs de ( $pdb* ) doivent être trouvés.
  • Au moins 4 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: 4e5c50d0-808e-5adb-bce9-804ddf66ca61

Tags:FILE