Aller au contenu

YARA · Trellix Advanced Research Center

TRELLIX_ARC_Ransom_Mespinoza

rule to detect Mespinoza ransomware

MalwareRansom Win MespinozaTrellix Advanced Research CenterApache License 2.0Compile avec YARA-X
Auteur
Christiaan Beek @ McAfee ATR
Date
2020-11-24
Score / Qualité
75 / 70

Ce que détecte cette règle

rule to detect Mespinoza ransomware

Famille de malware associée : Ransom Win Mespinoza.

Cibles : PE Windows.

Elle définit 9 motifs (6 texte, 3 hex, 0 regex). Modules YARA utilisés : pe.

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

Source de la règle

Inclut les imports nécessaires pour la compiler seule.

ransom-mespinoza.yarApache License 2.0
import "pe"

rule TRELLIX_ARC_Ransom_Mespinoza : FILE
{
	meta:
		description = "rule to detect Mespinoza ransomware"
		author = "Christiaan Beek @ McAfee ATR"
		id = "70a76bc4-e0cb-5caa-bb64-1a732349d2ce"
		date = "2020-11-24"
		modified = "2020-11-24"
		reference = "https://github.com/advanced-threat-research/Yara-Rules/"
		source_url = "https://github.com/advanced-threat-research/Yara-Rules//blob/1919562a59f190bda60c982424f6a24c542ee3e0/ransomware/Ransom_Mespinoza.yar#L3-L27"
		license_url = "https://github.com/advanced-threat-research/Yara-Rules//blob/1919562a59f190bda60c982424f6a24c542ee3e0/LICENSE"
		hash = "e9662b468135f758a9487a1be50159ef57f3050b753de2915763b4ed78839ead"
		hash = "48355bd2a57d92e017bdada911a4b31aa7225c0b12231c9cbda6717616abaea3"
		hash = "e4287e9708a73ce6a9b7a3e7c72462b01f7cc3c595d972cf2984185ac1a3a4a8"
		logic_hash = "e245fb9a71d86209690a6f4c7aa38c10dbd32cda2ea3ecde08d0d94e896381cb"
		score = 75
		quality = 70
		tags = "FILE"
		malware_family = "ransom_Win_Mespinoza"

	strings:
		$s1 = "update.bat" fullword ascii
		$s2 = "protonmail.com" fullword ascii
		$s3 = "Every byte on any types of your devices was encrypted." fullword ascii
		$s4 = "To get all your data back contact us:" fullword ascii
		$s5 = "What to do to get all data back?" fullword ascii
		$s6 = "Don't try to use backups because it were encrypted too." fullword ascii
		$op0 = { 83 f8 4b 75 9e 0f be 46 ff 8d 4d e0 ff 34 85 50 }
		$op1 = { c6 05 34 9b 47 00 00 e8 1f 0c 03 00 59 c3 cc cc }
		$op2 = { e8 ef c5 fe ff b8 ff ff ff 7f eb 76 8b 4d 0c 85 }

	condition:
		( uint16( 0 ) == 0x5a4d and filesize < 600KB and pe.imphash ( ) == "b5e8bd2552848bb7bf2f28228d014742" and ( 8 of them ) and 2 of ( $op* ) ) or ( all of them )
}

Chaînes (9 motifs)

IdentifiantTypeValeurModificateurs
$s1texte"update.bat"fullword ascii
$s2texte"protonmail.com"fullword ascii
$s3texte"Every byte on any types of your devices was encrypted."fullword ascii
$s4texte"To get all your data back contact us:"fullword ascii
$s5texte"What to do to get all data back?"fullword ascii
$s6texte"Don't try to use backups because it were encrypted too."fullword ascii
$op0hex{ 83 f8 4b 75 9e 0f be 46 ff 8d 4d e0 ff 34 85 50 }
$op1hex{ c6 05 34 9b 47 00 00 e8 1f 0c 03 00 59 c3 cc cc }
$op2hex{ e8 ef c5 fe ff b8 ff ff ff 7f eb 76 8b 4d 0c 85 }

Condition

( uint16( 0 ) == 0x5a4d and filesize < 600KB and pe.imphash ( ) == "b5e8bd2552848bb7bf2f28228d014742" and ( 8 of them ) and 2 of ( $op* ) ) or ( all of them )

En clair (Heuristique)

  • Le fichier doit commencer par « MZ » — un exécutable Windows (PE).
  • Le fichier doit faire moins de 600KB (garde-fou peu coûteux qui écarte les gros fichiers).
  • Tous les motifs de la règle doivent être trouvés.
  • Au moins 8 motifs de la règle doivent être trouvés.
  • Au moins 2 motifs de ( $op* ) doivent être trouvés.
  • Utilise le module pe.
  • Vérifie le hash des imports PE (imphash).

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

Hashes d’échantillons

Hashes des échantillons listés par l’auteur dans les métadonnées de la règle (à rechercher dans votre plateforme de threat intelligence).

  • e9662b468135f758a9487a1be50159ef57f3050b753de2915763b4ed78839ead
  • 48355bd2a57d92e017bdada911a4b31aa7225c0b12231c9cbda6717616abaea3
  • e4287e9708a73ce6a9b7a3e7c72462b01f7cc3c595d972cf2984185ac1a3a4a8

Licence et attribution

Auteur : Christiaan Beek @ McAfee ATR

Dépôt source : Trellix Advanced Research Center @ 1919562a59

Licence : Apache License 2.0 (licence du dépôt)

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: 70a76bc4-e0cb-5caa-bb64-1a732349d2ce

Métadonnées

malware_familyransom_Win_Mespinoza

Tags:FILE