Zum Inhalt springen

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Hive

Detects Hive ransomware

MalwareHiveditekSHen detectionBSD 2-Clause LicenseKompiliert mit YARA-X
Autor
ditekSHen
Datum
2020-11-06
Geändert
2024-11-01
Score / Qualität
75 / 73

Was diese Regel erkennt

Detects Hive ransomware

Zugehörige Malware-Familie: Hive.

Ziele: Windows-PE.

Sie definiert 30 Muster (30 Text, 0 Hex, 0 Regex).

Zusammenfassung aus den Metadaten und der Bedingung der Regel erzeugt.

Regelquelltext

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 ) )
}

Strings (30 Muster)

BezeichnerTypWertModifikatoren
$url1Text"http://hivecust"ascii
$url2Text"http://hiveleakdb"ascii
$s1Text"encrypt_files.go"ascii
$s2Text"erase_key.go"ascii
$s3Text"kill_processes.go"ascii
$s4Text"remove_shadow_copies.go"ascii
$s5Text"stop_services_windows.go"ascii
$s6Text"remove_itself_windows.go"ascii
$x1Text"/encryptor/"ascii
$x2Text"HOW_TO_DECRYPT.txt"ascii
$x3Text"FilesEncrypted"fullword ascii
$x4Text"EncryptionStarted"fullword ascii
$x5Text"encryptFilesGroup"fullword ascii
$x6Text"Your data will be undecryptable"ascii
$x7Text"- Do not fool yourself. Encryption has perfect secrecy"ascii
$v1_1Text".EncryptFiles."ascii
$v1_2Text".EncryptFilename."ascii
$v1_3Text")*struct { F uintptr; .autotmp_14 string }"ascii
$v1_4Text"D*struct { F uintptr; data *[]uint8; seed *uint8; fnc *main.decFunc }"ascii
$v1_5Text"golang.org/x/sys/windows.getSystemWindowsDirectory"ascii
$v1_6Text"path/filepath.WalkDir"ascii
$v2_1Text"taskkill /f /im"ascii
$v2_2Text"schtasks /delete /tn"ascii
$v2_3Text"encfile.txt"ascii
$v2_4Text"README.html"ascii
$v2_5Text"total encrypt %v/%v"ascii
$v2_6Text"<b>ITSSHOWKEY</b>"ascii
$v2_7Text"Recovery your files."ascii
$v2_8Text"yaml:\"send_host\""ascii
$v2_9Text"yaml:\"ignore_dir\""ascii

Bedingung

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 ) )

In Worten (Heuristik)

  • Die Datei muss mit „MZ“ beginnen — eine Windows-Programmdatei (PE).
  • Alle Muster aus ( $url* ) müssen treffen.
  • Alle Muster aus ( $s* ) müssen treffen.
  • Mindestens 4 Muster aus ( $x* ) müssen treffen.
  • Mindestens 5 Muster aus ( $v1* ) müssen treffen.
  • Mindestens 5 Muster aus ( $v2* ) müssen treffen.
  • Mindestens 4 Muster aus ( $v2* ) müssen treffen.
  • Muster $v2_1 muss > 10-mal vorkommen.

Diese Regel im Browser testen

Legen Sie eine Datei ab, um sie mit dieser Regel und YARA-X als WebAssembly zu scannen. Nichts wird hochgeladen.

Datei hier ablegen oder klicken zum AuswählenLokal mit YARA-X gescannt. Dateien bis 200 MB.

Im Editor öffnen

Referenzen

Lizenz & Namensnennung

Autor: ditekSHen

Quell-Repository: ditekSHen detection @ e76c93dcde

Lizenz: BSD 2-Clause License (Repository-Lizenz)

Copyright-Hinweis: Copyright 2021 by ditekSHen (https://github.com/ditekshen/detection).

Originalregel

Gespiegelt über YARA Forge 20260927, das Regelnamen mit der Quelle präfixiert und normalisierte Meta-Felder ergänzt.

Regel-ID: 7b79dc54-01c7-5667-acf5-a32cd7a45b54

Tags:FILE

Weitere Hive-Regeln