Aller au contenu

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Babuk

Detects Babuk ransomware

MalwareBabukditekSHen 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 Babuk ransomware

Famille de malware associée : Babuk.

Cibles : PE Windows.

Elle définit 15 motifs (14 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-babuk.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Babuk : FILE
{
	meta:
		description = "Detects Babuk ransomware"
		author = "ditekSHen"
		id = "6bb7093f-bbef-5b43-b4f9-be72ae4ef319"
		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#L3652-L3674"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "5ca5c5106747cf8f4ccd5df4ddbc78321fea3c8f533cb807a704d270eb956007"
		score = 75
		quality = 75
		tags = "FILE"

	strings:
		$s1 = "ecdh_pub_k.bin" wide
		$s2 = "How To Restore Your Files.txt" wide
		$s3 = /(babuk|babyk)\s(ransomware|locker)/ ascii nocase
		$s4 = "/login.php?id=" ascii
		$s5 = "http://babuk" ascii
		$s6 = "bootsect.bak" fullword wide
		$s7 = "Can't open file after killHolder" ascii
		$s8 = "Can't OpenProcess" ascii
		$s9 = "DoYouWantToHaveSexWithCuongDong" ascii
		$arg1 = "-lanfirst" fullword ascii
		$arg2 = "-lansecond" fullword ascii
		$arg3 = "-nolan" fullword ascii
		$arg4 = "shares" fullword wide
		$arg5 = "paths" fullword wide
		$arg6 = "gdebug" fullword wide

	condition:
		uint16( 0 ) == 0x5a4d and ( 3 of ( $s* ) or ( 3 of ( $arg* ) and 2 of ( $s* ) ) )
}

Chaînes (15 motifs)

IdentifiantTypeValeurModificateurs
$s1texte"ecdh_pub_k.bin"wide
$s2texte"How To Restore Your Files.txt"wide
$s3regex/(babuk|babyk)\s(ransomware|locker)/ascii nocase
$s4texte"/login.php?id="ascii
$s5texte"http://babuk"ascii
$s6texte"bootsect.bak"fullword wide
$s7texte"Can't open file after killHolder"ascii
$s8texte"Can't OpenProcess"ascii
$s9texte"DoYouWantToHaveSexWithCuongDong"ascii
$arg1texte"-lanfirst"fullword ascii
$arg2texte"-lansecond"fullword ascii
$arg3texte"-nolan"fullword ascii
$arg4texte"shares"fullword wide
$arg5texte"paths"fullword wide
$arg6texte"gdebug"fullword wide

Condition

uint16( 0 ) == 0x5a4d and ( 3 of ( $s* ) or ( 3 of ( $arg* ) and 2 of ( $s* ) ) )

En clair (Heuristique)

  • Le fichier doit commencer par « MZ » — un exécutable Windows (PE).
  • Au moins 3 motifs de ( $s* ) doivent être trouvés.
  • Au moins 3 motifs de ( $arg* ) doivent être trouvés.
  • Au moins 2 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: 6bb7093f-bbef-5b43-b4f9-be72ae4ef319

Tags:FILE

Plus de règles Babuk