YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Hive
Detects Hive ransomware
- 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:
= "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 ) )
}
Chaînes (30 motifs)
| Identifiant | Type | Valeur | Modificateurs |
|---|---|---|---|
| $url1 | texte | "http://hivecust" | ascii |
| $url2 | texte | "http://hiveleakdb" | ascii |
| $s1 | texte | "encrypt_files.go" | ascii |
| $s2 | texte | "erase_key.go" | ascii |
| $s3 | texte | "kill_processes.go" | ascii |
| $s4 | texte | "remove_shadow_copies.go" | ascii |
| $s5 | texte | "stop_services_windows.go" | ascii |
| $s6 | texte | "remove_itself_windows.go" | ascii |
| $x1 | texte | "/encryptor/" | ascii |
| $x2 | texte | "HOW_TO_DECRYPT.txt" | ascii |
| $x3 | texte | "FilesEncrypted" | fullword ascii |
| $x4 | texte | "EncryptionStarted" | fullword ascii |
| $x5 | texte | "encryptFilesGroup" | fullword ascii |
| $x6 | texte | "Your data will be undecryptable" | ascii |
| $x7 | texte | "- Do not fool yourself. Encryption has perfect secrecy" | ascii |
| $v1_1 | texte | ".EncryptFiles." | ascii |
| $v1_2 | texte | ".EncryptFilename." | ascii |
| $v1_3 | texte | ")*struct { F uintptr; .autotmp_14 string }" | ascii |
| $v1_4 | texte | "D*struct { F uintptr; data *[]uint8; seed *uint8; fnc *main.decFunc }" | ascii |
| $v1_5 | texte | "golang.org/x/sys/windows.getSystemWindowsDirectory" | ascii |
| $v1_6 | texte | "path/filepath.WalkDir" | ascii |
| $v2_1 | texte | "taskkill /f /im" | ascii |
| $v2_2 | texte | "schtasks /delete /tn" | ascii |
| $v2_3 | texte | "encfile.txt" | ascii |
| $v2_4 | texte | "README.html" | ascii |
| $v2_5 | texte | "total encrypt %v/%v" | ascii |
| $v2_6 | texte | "<b>ITSSHOWKEY</b>" | ascii |
| $v2_7 | texte | "Recovery your files." | ascii |
| $v2_8 | texte | "yaml:\"send_host\"" | ascii |
| $v2_9 | texte | "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.
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).
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
Règles liées
- Suspect / chasseditekSHen 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