YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Babuk
Detects Babuk ransomware
- Autor
- ditekSHen
- Fecha
- 2020-11-06
- Modificada
- 2024-11-01
- Puntuación / Calidad
- 75 / 75
Qué detecta esta regla
Detects Babuk ransomware
Familia de malware asociada: Babuk.
Objetivos: PE de Windows.
Define 15 patrones (14 de texto, 0 hex, 1 regex).
Resumen generado a partir de los metadatos y la condición de la regla.
Código de la regla
rule DITEKSHEN_MALWARE_Win_Babuk : FILE
{
meta:
= "Detects Babuk ransomware"
= "ditekSHen"
= "6bb7093f-bbef-5b43-b4f9-be72ae4ef319"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L3652-L3674"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "5ca5c5106747cf8f4ccd5df4ddbc78321fea3c8f533cb807a704d270eb956007"
= 75
= 75
= "FILE"
strings:
$s1 = "ecdh_pub_k.bin" wide
$s2 = "How To Restore Your Files.txt" wide
$s3 = /(babuk|babyk)\s(ransomware|locker)/ ascii nocase
$s4 = "/login.php?id=" ascii
$s5 = "http://babuk" ascii
$s6 = "bootsect.bak" fullword wide
$s7 = "Can't open file after killHolder" ascii
$s8 = "Can't OpenProcess" ascii
$s9 = "DoYouWantToHaveSexWithCuongDong" ascii
$arg1 = "-lanfirst" fullword ascii
$arg2 = "-lansecond" fullword ascii
$arg3 = "-nolan" fullword ascii
$arg4 = "shares" fullword wide
$arg5 = "paths" fullword wide
$arg6 = "gdebug" fullword wide
condition:
uint16( 0 ) == 0x5a4d and ( 3 of ( $s* ) or ( 3 of ( $arg* ) and 2 of ( $s* ) ) )
}
Cadenas (15 patrones)
| Identificador | Tipo | Valor | Modificadores |
|---|---|---|---|
| $s1 | texto | "ecdh_pub_k.bin" | wide |
| $s2 | texto | "How To Restore Your Files.txt" | wide |
| $s3 | regex | /(babuk|babyk)\s(ransomware|locker)/ | ascii nocase |
| $s4 | texto | "/login.php?id=" | ascii |
| $s5 | texto | "http://babuk" | ascii |
| $s6 | texto | "bootsect.bak" | fullword wide |
| $s7 | texto | "Can't open file after killHolder" | ascii |
| $s8 | texto | "Can't OpenProcess" | ascii |
| $s9 | texto | "DoYouWantToHaveSexWithCuongDong" | ascii |
| $arg1 | texto | "-lanfirst" | fullword ascii |
| $arg2 | texto | "-lansecond" | fullword ascii |
| $arg3 | texto | "-nolan" | fullword ascii |
| $arg4 | texto | "shares" | fullword wide |
| $arg5 | texto | "paths" | fullword wide |
| $arg6 | texto | "gdebug" | fullword wide |
Condición
uint16( 0 ) == 0x5a4d and ( 3 of ( $s* ) or ( 3 of ( $arg* ) and 2 of ( $s* ) ) )En palabras sencillas (Heurística)
- El archivo debe empezar por «MZ»: un ejecutable de Windows (PE).
- Deben coincidir al menos 3 patrones de ( $s* ).
- Deben coincidir al menos 3 patrones de ( $arg* ).
- Deben coincidir al menos 2 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: 6bb7093f-bbef-5b43-b4f9-be72ae4ef319
Etiquetas:FILE
Reglas relacionadas
- MalwareMalpedia signator rules· Felix Bilstein - yara-signator at cocacoding dot com· 2026-05-04
- MalwareMalpedia signator rules· Felix Bilstein - yara-signator at cocacoding dot com· 2024-10-31
- MalwareTrellix Advanced Research Center· TS @ McAfee ATR· 2021-01-19
- MalwareTrellix Advanced Research Center· McAfee ATR· 2021-02-19
- ARKBIRD_SOLG_RAN_Piton_Nov_2021_1Solo metadatosMalwareArkbird SOLG (DailyIOC)· Arkbird_SOLG· 2021-11-03
- MalwareditekSHen detection· ditekSHen· 2034-02-17
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06