Aller au contenu

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Medusalocker

Detects MedusaLocker ransomware

MalwareMedusalockerditekSHen 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

Detects MedusaLocker ransomware

Famille de malware associée : Medusalocker.

Cibles : PE Windows.

Elle définit 20 motifs (18 texte, 2 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-medusalocker.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Medusalocker : FILE
{
	meta:
		description = "Detects MedusaLocker ransomware"
		author = "ditekshen"
		id = "06b7645f-228d-5ec1-9b82-88caee447a5c"
		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#L2506-L2537"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "0e2a0a9f12f550a5c6a11731710e0dc2c2e26d17f43d2385bf6e298518631771"
		score = 75
		quality = 73
		tags = "FILE"
		clamav_sig = "MALWARE.Win.Ransomware.MedusaLocker"

	strings:
		$x1 = "\\MedusaLockerInfo\\MedusaLockerProject\\MedusaLocker\\Release\\MedusaLocker.pdb" ascii
		$x2 = "SOFTWARE\\Medusa" wide
		$x3 = "=?utf-8?B?0RFQctTF0YDQcNC60IXQvdC+IEludGVybmV0IED4cGxvseVyIDEz?=" ascii
		$s1 = "Recovery_Instructions.mht" fullword wide
		$s2 = "README_LOCK.TXT" fullword wide
		$s3 = "C:\\Users\\Public\\Desktop" wide
		$s4 = "[LOCKER] " wide
		$s5 = "TmV3LUl0ZW0gJ2" ascii
		$s6 = "<HEAD>=20" ascii
		$s7 = "LIST OF ENCRYPTED FILES" ascii
		$s8 = "KEY.FILE" ascii
		$cmd1 = { 2f 00 63 00 20 00 64 00 65 00 6c 00 20 00 00 00 20 00 3e 00 3e 00 20 00 4e 00 55 00 4c 00 }
		$cmd2 = "vssadmin.exe delete" wide nocase
		$cmd3 = "bcdedit.exe /set {default}" wide
		$cmd4 = "wbadmin delete systemstatebackup" wide nocase
		$mut1 = "{8761ABBD-7F85-42EE-B272-A76179687C63}" fullword wide
		$mut2 = "{3E5FC7F9-9A51-4367-9063-A120244FBEC7}" fullword wide
		$mut3 = "{6EDD6D74-C007-4E75-B76A-E5740995E24C}" fullword wide
		$ext1 = { 2e 00 52 00 65 00 61 00 64 00 49 00 6e 00 73 00 
                  74 00 72 00 75 00 63 00 74 00 69 00 6f 00 6e 00
                  73 00 00 00 00 00 00 00 2e 00 6b 00 65 00 76 00
                  65 00 72 00 73 00 65 00 6e }
		$ext2 = ".exe,.dll,.sys,.ini,.lnk,.rdp,.encrypted" fullword ascii

	condition:
		uint16( 0 ) == 0x5a4d and ( 2 of ( $x* ) or ( 1 of ( $x* ) and ( 4 of ( $s* ) or 1 of ( $mut* ) ) ) or 6 of ( $s* ) or ( 1 of ( $mut* ) and 2 of ( $cmd* ) ) or ( 1 of ( $ext* ) and 5 of them ) )
}

Chaînes (20 motifs)

IdentifiantTypeValeurModificateurs
$x1texte"\\MedusaLockerInfo\\MedusaLockerProject\\MedusaLocker\\Release\\MedusaLocker.pdb"ascii
$x2texte"SOFTWARE\\Medusa"wide
$x3texte"=?utf-8?B?0RFQctTF0YDQcNC60IXQvdC+IEludGVybmV0IED4cGxvseVyIDEz?="ascii
$s1texte"Recovery_Instructions.mht"fullword wide
$s2texte"README_LOCK.TXT"fullword wide
$s3texte"C:\\Users\\Public\\Desktop"wide
$s4texte"[LOCKER] "wide
$s5texte"TmV3LUl0ZW0gJ2"ascii
$s6texte"<HEAD>=20"ascii
$s7texte"LIST OF ENCRYPTED FILES"ascii
$s8texte"KEY.FILE"ascii
$cmd1hex{ 2f 00 63 00 20 00 64 00 65 00 6c 00 20 00 00 00 20 00 3e 00 3e 00 20 00 4e 00 55 00 4c 00 }
$cmd2texte"vssadmin.exe delete"wide nocase
$cmd3texte"bcdedit.exe /set {default}"wide
$cmd4texte"wbadmin delete systemstatebackup"wide nocase
$mut1texte"{8761ABBD-7F85-42EE-B272-A76179687C63}"fullword wide
$mut2texte"{3E5FC7F9-9A51-4367-9063-A120244FBEC7}"fullword wide
$mut3texte"{6EDD6D74-C007-4E75-B76A-E5740995E24C}"fullword wide
$ext1hex{ 2e 00 52 00 65 00 61 00 64 00 49 00 6e 00 73 00 74 00 72 00 75 00 63 00 74 00 69 00 6f 00 6e 00 73 00 00 00 00 00 00 00 2 …
$ext2texte".exe,.dll,.sys,.ini,.lnk,.rdp,.encrypted"fullword ascii

Condition

uint16( 0 ) == 0x5a4d and ( 2 of ( $x* ) or ( 1 of ( $x* ) and ( 4 of ( $s* ) or 1 of ( $mut* ) ) ) or 6 of ( $s* ) or ( 1 of ( $mut* ) and 2 of ( $cmd* ) ) or ( 1 of ( $ext* ) and 5 of them ) )

En clair (Heuristique)

  • Le fichier doit commencer par « MZ » — un exécutable Windows (PE).
  • Au moins 2 motifs de ( $x* ) doivent être trouvés.
  • Au moins 1 motifs de ( $x* ) doivent être trouvés.
  • Au moins 4 motifs de ( $s* ) doivent être trouvés.
  • Au moins 1 motifs de ( $mut* ) doivent être trouvés.
  • Au moins 6 motifs de ( $s* ) doivent être trouvés.
  • Au moins 2 motifs de ( $cmd* ) doivent être trouvés.
  • Au moins 1 motifs de ( $ext* ) doivent être trouvés.
  • Au moins 5 motifs de la règle 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: 06b7645f-228d-5ec1-9b82-88caee447a5c

Métadonnées

clamav_sigMALWARE.Win.Ransomware.MedusaLocker

Tags:FILE

Plus de règles Medusalocker