YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Blackcat
Detects BlackCat ransomware
- Autor
- ditekSHen
- Fecha
- 2020-11-06
- Modificada
- 2024-11-01
- Puntuación / Calidad
- 75 / 75
Qué detecta esta regla
Detects BlackCat ransomware
Familia de malware asociada: Blackcat.
Objetivos: PE de Windows.
Define 13 patrones (11 de texto, 0 hex, 2 regex).
Resumen generado a partir de los metadatos y la condición de la regla.
Código de la regla
rule DITEKSHEN_MALWARE_Win_Blackcat : FILE
{
meta:
= "Detects BlackCat ransomware"
= "ditekSHen"
= "b6831d84-40d7-52ae-8c4d-30b087b0007b"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L9267-L9289"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "cd76e5b87f33d91c17fd032417583c3f68d0e310aaf6f08e26ec5d53844ed9d2"
= 75
= 75
= "FILE"
strings:
$x1 = "{\"config_id\":\"\",\"public_key\":\"MIIBIjANBgkqhkiG9w0BAQEFAAO" ascii
$x2 = "C:\\Users\\Public\\All Usersdeploy_note_and_image_for_all_users=" fullword ascii
$s1 = "encrypt_app::windows" ascii
$s2 = /locker::core::os::windows::(desktop_note|self_propagation|privilege_escalation|psexec|shadow_copy)/ ascii
$s3 = "uac_bypass::shell_exec=" ascii
$s4 = "-u-p-s-d-f-cpropagate::attempt=" ascii
$s5 = "masquerade_peb" ascii
$s6 = "RECOVER-${EXTENSION}-FILES.txt" ascii
$s7 = ".onion/?access-key=${ACCESS_KEY}" ascii
$s8 = "-vm-killno-vm-snapshot-killno-vm-kill-" ascii
$s9 = "esxi_vm_killenable_esxi_vm_snapshot_killstrict_" ascii
$s10 = /enum_(shares|servers)_sync::ok/ fullword ascii
$s11 = "hidden_partitions::mount_all::mounting=" ascii
condition:
( uint16( 0 ) == 0x5a4d or uint16( 0 ) == 0x457f ) and ( all of ( $x* ) or 5 of ( $s* ) or ( 1 of ( $x* ) and 3 of ( $s* ) ) )
}
Cadenas (13 patrones)
| Identificador | Tipo | Valor | Modificadores |
|---|---|---|---|
| $x1 | texto | "{\"config_id\":\"\",\"public_key\":\"MIIBIjANBgkqhkiG9w0BAQEFAAO" | ascii |
| $x2 | texto | "C:\\Users\\Public\\All Usersdeploy_note_and_image_for_all_users=" | fullword ascii |
| $s1 | texto | "encrypt_app::windows" | ascii |
| $s2 | regex | /locker::core::os::windows::(desktop_note|self_propagation|privilege_escalation|psexec|shadow_copy)/ | ascii |
| $s3 | texto | "uac_bypass::shell_exec=" | ascii |
| $s4 | texto | "-u-p-s-d-f-cpropagate::attempt=" | ascii |
| $s5 | texto | "masquerade_peb" | ascii |
| $s6 | texto | "RECOVER-${EXTENSION}-FILES.txt" | ascii |
| $s7 | texto | ".onion/?access-key=${ACCESS_KEY}" | ascii |
| $s8 | texto | "-vm-killno-vm-snapshot-killno-vm-kill-" | ascii |
| $s9 | texto | "esxi_vm_killenable_esxi_vm_snapshot_killstrict_" | ascii |
| $s10 | regex | /enum_(shares|servers)_sync::ok/ | fullword ascii |
| $s11 | texto | "hidden_partitions::mount_all::mounting=" | ascii |
Condición
( uint16( 0 ) == 0x5a4d or uint16( 0 ) == 0x457f ) and ( all of ( $x* ) or 5 of ( $s* ) or ( 1 of ( $x* ) and 3 of ( $s* ) ) )En palabras sencillas (Heurística)
- El archivo debe empezar por «MZ»: un ejecutable de Windows (PE).
- Deben coincidir todos los patrones de ( $x* ).
- Deben coincidir al menos 5 patrones de ( $s* ).
- Deben coincidir al menos 1 patrones de ( $x* ).
- Deben coincidir al menos 3 patrones de ( $s* ).
Prueba esta regla en tu navegador
Arrastra un archivo para escanearlo con esta regla usando YARA-X compilado a WebAssembly. No se sube nada.
Referencias
Licencia y atribución
Autor: ditekSHen
Repositorio de origen: ditekSHen detection @ e76c93dcde
Licencia: BSD 2-Clause License (licencia del repositorio)
Aviso de copyright: Copyright 2021 by ditekSHen (https://github.com/ditekshen/detection).
Obtenida a través de YARA Forge 20260927, que añade a los nombres el prefijo de la fuente y campos meta normalizados.
Id de la regla: b6831d84-40d7-52ae-8c4d-30b087b0007b
Etiquetas:FILE
Reglas relacionadas
- Sospechoso / huntingditekSHen detection· ditekShen· 2021-01-21
- MalwareSEKOIA.IO Community· Sekoia.io· 2022-01-19
- MalwareMalpedia signator rules· Felix Bilstein - yara-signator at cocacoding dot com· 2026-05-04
- MalwareTrellix Advanced Research Center· Trellix ATR· 2022-01-06
- MalwareditekSHen detection· ditekSHen· 2034-02-17
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06