YARA · BlackBerry Research & Intelligence (via Open-Source-YARA-rules)
BLACKBERRY_Mal_Win32_Chaosransomware_2022
Detects Ransomware Built by Chaos Ransomware Builder
- Autor
- BlackBerry Threat Research
- Fecha
- 2022-05-10
- Modificada
- 2022-07-07
- Puntuación / Calidad
- 75 / 83
Qué detecta esta regla
Detects Ransomware Built by Chaos Ransomware Builder
Objetivos: PE de Windows.
Define 7 patrones (5 de texto, 2 hex, 0 regex). Módulos YARA usados: pe.
YARA-X dice: warning[text_as_hex]: hex pattern could be written as text literal
Resumen generado a partir de los metadatos y la condición de la regla.
Código de la regla
Incluye los imports necesarios para compilarla por sí sola.
import "pe"
rule BLACKBERRY_Mal_Win32_Chaosransomware_2022 : FILE
{
meta:
= "Detects Ransomware Built by Chaos Ransomware Builder"
= "BlackBerry Threat Research"
= "1fc57dd4-f020-5eb6-8e60-2bce3edfc512"
= "2022-05-10"
= "2022-07-07"
= "https://blogs.blackberry.com/en/2022/05/yashma-ransomware-tracing-the-chaos-family-tree"
= "https://github.com/mikesxrs/Open-Source-YARA-rules/blob/ec0056f767db98bf6d5fd63877ad51fb54d350e9/Blackberry/Mal_Win32_ChaosRansomware_2022.yar#L3-L45"
= "N/A"
= "d466570965e22b1bb0f1ca30c725d553d7ccf9e25ce2b546f105002260b1d526"
= 75
= 83
= "FILE"
= "This Yara rule is provided under the Apache License 2.0 (https://www.apache.org/licenses/LICENSE-2.0) and open to any user or organization, as long as you use it under this license and ensure originator credit in any derivative to The BlackBerry Research & Intelligence Team"
strings:
$x1 = "Encrypt" ascii wide
$x2 = "(?:[13]{1}[a-km-zA-HJ-NP-Z1-9]{26,33}|bc1[a-z0-9]{39,59})" ascii wide
$x3 = "read" ascii wide
$r1 = { 20 76 69 72 75 73 }
$r2 = { 72 00 61 00 6e 00 73 00 6f 00 6d 00 77 00 61 00 72 00 65 }
$z0 = "deleteShadowCopies" ascii wide
$z1 = "shadowcopy" ascii wide
condition:
uint16( 0 ) == 0x5a4d and filesize < 35KB and pe.imphash ( ) == "f34d5f2d4577ed6d9ceec516c1f5a744" and pe.number_of_sections == 3 and ( ( all of ( $x* ) ) and ( 1 of ( $r* ) ) and ( 1 of ( $z* ) ) )
}
Cadenas (7 patrones)
| Identificador | Tipo | Valor | Modificadores |
|---|---|---|---|
| $x1 | texto | "Encrypt" | ascii wide |
| $x2 | texto | "(?:[13]{1}[a-km-zA-HJ-NP-Z1-9]{26,33}|bc1[a-z0-9]{39,59})" | ascii wide |
| $x3 | texto | "read" | ascii wide |
| $r1 | hex | { 20 76 69 72 75 73 } | |
| $r2 | hex | { 72 00 61 00 6e 00 73 00 6f 00 6d 00 77 00 61 00 72 00 65 } | |
| $z0 | texto | "deleteShadowCopies" | ascii wide |
| $z1 | texto | "shadowcopy" | ascii wide |
Condición
uint16( 0 ) == 0x5a4d and filesize < 35KB and pe.imphash ( ) == "f34d5f2d4577ed6d9ceec516c1f5a744" and pe.number_of_sections == 3 and ( ( all of ( $x* ) ) and ( 1 of ( $r* ) ) and ( 1 of ( $z* ) ) )En palabras sencillas (Heurística)
- El archivo debe empezar por «MZ»: un ejecutable de Windows (PE).
- El archivo debe ocupar menos de 35KB (un límite barato que descarta archivos grandes).
- Deben coincidir todos los patrones de ( $x* ).
- Deben coincidir al menos 1 patrones de ( $r* ).
- Deben coincidir al menos 1 patrones de ( $z* ).
- Usa el módulo pe.
- Comprueba el hash de importaciones PE (imphash).
- Comprueba secciones PE (nombres, número o propiedades).
Prueba esta regla en tu navegador
Arrastra un archivo para escanearlo con esta regla usando YARA-X compilado a WebAssembly. No se sube nada.
Licencia y atribución
Autor: BlackBerry Threat Research
Repositorio de origen: BlackBerry Research & Intelligence (via Open-Source-YARA-rules) @ ec0056f767
Licencia: Apache License 2.0 (indicada en los metadatos de la regla)
“This Yara rule is provided under the Apache License 2.0 (https://www.apache.org/licenses/LICENSE-2.0) and open to any user or organization, as long as you use it under this license and ensure originator credit in any derivative to The BlackBerry Research & Intelligence Team”
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: 1fc57dd4-f020-5eb6-8e60-2bce3edfc512
Etiquetas:FILE
Reglas relacionadas
- MalwareBlackBerry Research & Intelligence (via Open-Source-YARA-rules)· BlackBerry Threat Research· 2022-05-10
- MalwareBlackBerry Research & Intelligence (via Open-Source-YARA-rules)· BlackBerry Threat Research· 2022-05-10