YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Hive
Detects Hive ransomware
- 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:
= "Detects Hive ransomware"
= "ditekSHen"
= "7b79dc54-01c7-5667-acf5-a32cd7a45b54"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L6610-L6647"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "14c20ff2fa62d80eed0f4f364e24d93d493d4f3b47f664983714940afa74046f"
= 75
= 73
= "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)
| Bezeichner | Typ | Wert | Modifikatoren |
|---|---|---|---|
| $url1 | Text | "http://hivecust" | ascii |
| $url2 | Text | "http://hiveleakdb" | ascii |
| $s1 | Text | "encrypt_files.go" | ascii |
| $s2 | Text | "erase_key.go" | ascii |
| $s3 | Text | "kill_processes.go" | ascii |
| $s4 | Text | "remove_shadow_copies.go" | ascii |
| $s5 | Text | "stop_services_windows.go" | ascii |
| $s6 | Text | "remove_itself_windows.go" | ascii |
| $x1 | Text | "/encryptor/" | ascii |
| $x2 | Text | "HOW_TO_DECRYPT.txt" | ascii |
| $x3 | Text | "FilesEncrypted" | fullword ascii |
| $x4 | Text | "EncryptionStarted" | fullword ascii |
| $x5 | Text | "encryptFilesGroup" | fullword ascii |
| $x6 | Text | "Your data will be undecryptable" | ascii |
| $x7 | Text | "- Do not fool yourself. Encryption has perfect secrecy" | ascii |
| $v1_1 | Text | ".EncryptFiles." | ascii |
| $v1_2 | Text | ".EncryptFilename." | ascii |
| $v1_3 | Text | ")*struct { F uintptr; .autotmp_14 string }" | ascii |
| $v1_4 | Text | "D*struct { F uintptr; data *[]uint8; seed *uint8; fnc *main.decFunc }" | ascii |
| $v1_5 | Text | "golang.org/x/sys/windows.getSystemWindowsDirectory" | ascii |
| $v1_6 | Text | "path/filepath.WalkDir" | ascii |
| $v2_1 | Text | "taskkill /f /im" | ascii |
| $v2_2 | Text | "schtasks /delete /tn" | ascii |
| $v2_3 | Text | "encfile.txt" | ascii |
| $v2_4 | Text | "README.html" | ascii |
| $v2_5 | Text | "total encrypt %v/%v" | ascii |
| $v2_6 | Text | "<b>ITSSHOWKEY</b>" | ascii |
| $v2_7 | Text | "Recovery your files." | ascii |
| $v2_8 | Text | "yaml:\"send_host\"" | ascii |
| $v2_9 | Text | "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.
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).
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
Verwandte Regeln
- Verdächtig / HuntingditekSHen detection· ditekSHen· 2021-01-21
- MalwareMalpedia signator rules· Felix Bilstein - yara-signator at cocacoding dot com· 2026-05-04
- MalwareditekSHen detection· ditekSHen· 2034-02-17
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06