YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Bhunt
Detects BHunt infostealer
- Autor
- ditekSHen
- Fecha
- 2020-11-06
- Modificada
- 2024-11-01
- Puntuación / Calidad
- 75 / 75
Qué detecta esta regla
Detects BHunt infostealer
Familia de malware asociada: Bhunt.
Objetivos: PE de Windows.
Define 14 patrones (14 de texto, 0 hex, 0 regex).
Resumen generado a partir de los metadatos y la condición de la regla.
Código de la regla
rule DITEKSHEN_MALWARE_Win_Bhunt : FILE
{
meta:
= "Detects BHunt infostealer"
= "ditekSHen"
= "4c699f10-64a0-5e3c-af00-e08ebe1c6830"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L9212-L9233"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "ca0a7e6898047fa3b369125a4402e2beffd328a5db47b1d5dd5914a86d6f0073"
= 75
= 75
= "FILE"
strings:
$x1 = "BHUNT.Resources.resources" fullword ascii
$x2 = "//minecraftsquid.hopto.org/" wide
$s1 = "chaos_crew" ascii wide
$s2 = "golden7" ascii wide
$s3 = "mrpropper" ascii wide
$s4 = "/ifo.php?" ascii wide
$s5 = "bonanza=:=" ascii wide
$s6 = "blackjack=:=" ascii wide
$s7 = "SendPostData" fullword ascii
$c1 = "cmd /c REG ADD" wide
$c2 = "taskkill /F /IM" wide
$c3 = "cmd.exe /c wmic" wide
$g1 = "$ca9a291d-266c-41dc-9f1c-93cfe0dcac16" fullword ascii
$g2 = "$6d0feb35-213d-4b9f-afc7-06d168cfcb5e" fullword ascii
condition:
uint16( 0 ) == 0x5a4d and ( all of ( $x* ) or ( 1 of ( $x* ) and ( 5 of ( $s* ) or 2 of ( $c* ) ) ) or ( 6 of ( $s* ) and 2 of ( $c* ) ) or ( all of ( $g* ) and 2 of them ) )
}
Cadenas (14 patrones)
| Identificador | Tipo | Valor | Modificadores |
|---|---|---|---|
| $x1 | texto | "BHUNT.Resources.resources" | fullword ascii |
| $x2 | texto | "//minecraftsquid.hopto.org/" | wide |
| $s1 | texto | "chaos_crew" | ascii wide |
| $s2 | texto | "golden7" | ascii wide |
| $s3 | texto | "mrpropper" | ascii wide |
| $s4 | texto | "/ifo.php?" | ascii wide |
| $s5 | texto | "bonanza=:=" | ascii wide |
| $s6 | texto | "blackjack=:=" | ascii wide |
| $s7 | texto | "SendPostData" | fullword ascii |
| $c1 | texto | "cmd /c REG ADD" | wide |
| $c2 | texto | "taskkill /F /IM" | wide |
| $c3 | texto | "cmd.exe /c wmic" | wide |
| $g1 | texto | "$ca9a291d-266c-41dc-9f1c-93cfe0dcac16" | fullword ascii |
| $g2 | texto | "$6d0feb35-213d-4b9f-afc7-06d168cfcb5e" | fullword ascii |
Condición
uint16( 0 ) == 0x5a4d and ( all of ( $x* ) or ( 1 of ( $x* ) and ( 5 of ( $s* ) or 2 of ( $c* ) ) ) or ( 6 of ( $s* ) and 2 of ( $c* ) ) or ( all of ( $g* ) and 2 of them ) )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 todos los patrones de ( $g* ).
- Deben coincidir al menos 1 patrones de ( $x* ).
- Deben coincidir al menos 5 patrones de ( $s* ).
- Deben coincidir al menos 2 patrones de ( $c* ).
- Deben coincidir al menos 6 patrones de ( $s* ).
- Deben coincidir al menos 2 patrones de la regla.
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: 4c699f10-64a0-5e3c-af00-e08ebe1c6830
Etiquetas:FILE
Reglas relacionadas
- 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
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06