Aller au contenu

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Hive

Detects Hive ransomware

MalwareHiveditekSHen 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 Hive ransomware

Famille de malware associée : Hive.

Cibles : PE Windows.

Elle définit 30 motifs (30 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-hive.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Hive : FILE
{
	meta:
		description = "Detects Hive ransomware"
		author = "ditekSHen"
		id = "7b79dc54-01c7-5667-acf5-a32cd7a45b54"
		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#L6610-L6647"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "14c20ff2fa62d80eed0f4f364e24d93d493d4f3b47f664983714940afa74046f"
		score = 75
		quality = 73
		tags = "FILE"

	strings:
		$url1 = "http://hivecust" ascii
		$url2 = "http://hiveleakdb" ascii
		$s1 = "encrypt_files.go" ascii
		$s2 = "erase_key.go" ascii
		$s3 = "kill_processes.go" ascii
		$s4 = "remove_shadow_copies.go" ascii
		$s5 = "stop_services_windows.go" ascii
		$s6 = "remove_itself_windows.go" ascii
		$x1 = "/encryptor/" ascii
		$x2 = "HOW_TO_DECRYPT.txt" ascii
		$x3 = "FilesEncrypted" fullword ascii
		$x4 = "EncryptionStarted" fullword ascii
		$x5 = "encryptFilesGroup" fullword ascii
		$x6 = "Your data will be undecryptable" ascii
		$x7 = "- Do not fool yourself. Encryption has perfect secrecy" ascii
		$v1_1 = ".EncryptFiles." ascii
		$v1_2 = ".EncryptFilename." ascii
		$v1_3 = ")*struct { F uintptr; .autotmp_14 string }" ascii
		$v1_4 = "D*struct { F uintptr; data *[]uint8; seed *uint8; fnc *main.decFunc }" ascii
		$v1_5 = "golang.org/x/sys/windows.getSystemWindowsDirectory" ascii
		$v1_6 = "path/filepath.WalkDir" ascii
		$v2_1 = "taskkill /f /im" ascii
		$v2_2 = "schtasks /delete /tn" ascii
		$v2_3 = "encfile.txt" ascii
		$v2_4 = "README.html" ascii
		$v2_5 = "total encrypt %v/%v" ascii
		$v2_6 = "<b>ITSSHOWKEY</b>" ascii
		$v2_7 = "Recovery your files." ascii
		$v2_8 = "yaml:\"send_host\"" ascii
		$v2_9 = "yaml:\"ignore_dir\"" ascii

	condition:
		uint16( 0 ) == 0x5a4d and ( all of ( $url* ) or all of ( $s* ) or 4 of ( $x* ) or 5 of ( $v1* ) or 5 of ( $v2* ) or ( 4 of ( $v2* ) and #v2_1 > 10 ) )
}

Chaînes (30 motifs)

IdentifiantTypeValeurModificateurs
$url1texte"http://hivecust"ascii
$url2texte"http://hiveleakdb"ascii
$s1texte"encrypt_files.go"ascii
$s2texte"erase_key.go"ascii
$s3texte"kill_processes.go"ascii
$s4texte"remove_shadow_copies.go"ascii
$s5texte"stop_services_windows.go"ascii
$s6texte"remove_itself_windows.go"ascii
$x1texte"/encryptor/"ascii
$x2texte"HOW_TO_DECRYPT.txt"ascii
$x3texte"FilesEncrypted"fullword ascii
$x4texte"EncryptionStarted"fullword ascii
$x5texte"encryptFilesGroup"fullword ascii
$x6texte"Your data will be undecryptable"ascii
$x7texte"- Do not fool yourself. Encryption has perfect secrecy"ascii
$v1_1texte".EncryptFiles."ascii
$v1_2texte".EncryptFilename."ascii
$v1_3texte")*struct { F uintptr; .autotmp_14 string }"ascii
$v1_4texte"D*struct { F uintptr; data *[]uint8; seed *uint8; fnc *main.decFunc }"ascii
$v1_5texte"golang.org/x/sys/windows.getSystemWindowsDirectory"ascii
$v1_6texte"path/filepath.WalkDir"ascii
$v2_1texte"taskkill /f /im"ascii
$v2_2texte"schtasks /delete /tn"ascii
$v2_3texte"encfile.txt"ascii
$v2_4texte"README.html"ascii
$v2_5texte"total encrypt %v/%v"ascii
$v2_6texte"<b>ITSSHOWKEY</b>"ascii
$v2_7texte"Recovery your files."ascii
$v2_8texte"yaml:\"send_host\""ascii
$v2_9texte"yaml:\"ignore_dir\""ascii

Condition

uint16( 0 ) == 0x5a4d and ( all of ( $url* ) or all of ( $s* ) or 4 of ( $x* ) or 5 of ( $v1* ) or 5 of ( $v2* ) or ( 4 of ( $v2* ) and #v2_1 > 10 ) )

En clair (Heuristique)

  • Le fichier doit commencer par « MZ » — un exécutable Windows (PE).
  • Tous les motifs de ( $url* ) doivent être trouvés.
  • Tous les motifs de ( $s* ) doivent être trouvés.
  • Au moins 4 motifs de ( $x* ) doivent être trouvés.
  • Au moins 5 motifs de ( $v1* ) doivent être trouvés.
  • Au moins 5 motifs de ( $v2* ) doivent être trouvés.
  • Au moins 4 motifs de ( $v2* ) doivent être trouvés.
  • Le motif $v2_1 doit apparaître > 10 fois.

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: 7b79dc54-01c7-5667-acf5-a32cd7a45b54

Tags:FILE

Plus de règles Hive