Aller au contenu

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Hakunamatata_Builder

Detects HakunaMatata ransomware builder

MalwareHakunamatataditekSHen 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 HakunaMatata ransomware builder

Famille de malware associée : Hakunamatata.

Cibles : PE Windows.

Elle définit 11 motifs (10 texte, 0 hex, 1 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-hakunamatata-builder.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Hakunamatata_Builder : FILE
{
	meta:
		description = "Detects HakunaMatata ransomware builder"
		author = "ditekSHen"
		id = "dbf3490f-418c-5d3b-9f9e-e9fb29d8b652"
		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#L10086-L10104"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "ac258851de38504cf63ba51fd06f8a9a3dfbe0096d199ba702e9763b5ecc43e4"
		score = 75
		quality = 73
		tags = "FILE"

	strings:
		$s1 = "ENCRYPT FILES IN PROCESS" wide
		$s2 = "#TARGET_FILES" ascii wide
		$s3 = "HAKUNA MATATA" ascii wide nocase
		$s4 = "#PRIVATE_KEY" ascii wide
		$s5 = "/target:winexe /platform:anycpu /optimize+" wide
		$s6 = "/win32icon:" fullword wide
		$s7 = "SkippedFolders" ascii
		$s8 = "RECURSIVE_DIRECTORY_LOOK(" ascii
		$s9 = "DRAW_WALLPAPER(" ascii
		$s10 = "startupKey.SetValue(MESSAGE_FILE.Split('.')[0], executablePath);" ascii
		$s11 = /\\obj\\(Debug|Release)\\Hakuna\sMatata\.pdb/ ascii

	condition:
		uint16( 0 ) == 0x5a4d and 5 of them
}

Chaînes (11 motifs)

IdentifiantTypeValeurModificateurs
$s1texte"ENCRYPT FILES IN PROCESS"wide
$s2texte"#TARGET_FILES"ascii wide
$s3texte"HAKUNA MATATA"ascii wide nocase
$s4texte"#PRIVATE_KEY"ascii wide
$s5texte"/target:winexe /platform:anycpu /optimize+"wide
$s6texte"/win32icon:"fullword wide
$s7texte"SkippedFolders"ascii
$s8texte"RECURSIVE_DIRECTORY_LOOK("ascii
$s9texte"DRAW_WALLPAPER("ascii
$s10texte"startupKey.SetValue(MESSAGE_FILE.Split('.')[0], executablePath);"ascii
$s11regex/\\obj\\(Debug|Release)\\Hakuna\sMatata\.pdb/ascii

Condition

uint16( 0 ) == 0x5a4d and 5 of them

En clair (Heuristique)

  • Le fichier doit commencer par « MZ » — un exécutable Windows (PE).
  • 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: dbf3490f-418c-5d3b-9f9e-e9fb29d8b652

Tags:FILE