YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Blackmatter
Detects BlackMatter ransomware
- Autor
- ditekSHen
- Fecha
- 2020-11-06
- Modificada
- 2024-11-01
- Puntuación / Calidad
- 75 / 75
Qué detecta esta regla
Detects BlackMatter ransomware
Familia de malware asociada: Blackmatter.
Objetivos: PE de Windows.
Define 9 patrones (3 de texto, 6 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_Blackmatter : FILE
{
meta:
= "Detects BlackMatter ransomware"
= "ditekSHen"
= "8883e652-edab-5cbf-a4fa-963b437447d9"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L7748-L7767"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "4558002b424f7102f67fc44dfc37ac20f6013e25ae827c6aee0fc37231e2fa72"
= 75
= 75
= "FILE"
strings:
$s1 = "C:\\Windows\\System32\\*.drv" fullword wide
$s2 = "NYbr-Vk@" fullword ascii
$s3 = ":7:=:H:Q:W:\\:b:&;O;^;v;" fullword ascii
$o1 = { b0 34 aa fe c0 e2 fb b9 03 }
$o2 = { fe 00 ff 75 08 ff 75 0c ff b5 d8 fe ff ff ff b5 }
$o3 = { 6a 00 ff 75 0c ff b5 d8 fe ff ff ff b5 dc fe ff }
$o4 = { ff 75 08 ff 75 0c ff b5 d8 fe ff ff ff b5 dc fe }
$o5 = { 53 56 57 8d 85 70 ff ff ff 83 c0 0f 83 e0 f0 89 }
$o6 = { c7 85 68 ff ff ff 00 04 00 00 8b 85 6c ff ff ff }
condition:
uint16( 0 ) == 0x5a4d and ( all of ( $s* ) and all of ( $o* ) )
}
Cadenas (9 patrones)
| Identificador | Tipo | Valor | Modificadores |
|---|---|---|---|
| $s1 | texto | "C:\\Windows\\System32\\*.drv" | fullword wide |
| $s2 | texto | "NYbr-Vk@" | fullword ascii |
| $s3 | texto | ":7:=:H:Q:W:\\:b:&;O;^;v;" | fullword ascii |
| $o1 | hex | { b0 34 aa fe c0 e2 fb b9 03 } | |
| $o2 | hex | { fe 00 ff 75 08 ff 75 0c ff b5 d8 fe ff ff ff b5 } | |
| $o3 | hex | { 6a 00 ff 75 0c ff b5 d8 fe ff ff ff b5 dc fe ff } | |
| $o4 | hex | { ff 75 08 ff 75 0c ff b5 d8 fe ff ff ff b5 dc fe } | |
| $o5 | hex | { 53 56 57 8d 85 70 ff ff ff 83 c0 0f 83 e0 f0 89 } | |
| $o6 | hex | { c7 85 68 ff ff ff 00 04 00 00 8b 85 6c ff ff ff } |
Condición
uint16( 0 ) == 0x5a4d and ( all of ( $s* ) and all of ( $o* ) )En palabras sencillas (Heurística)
- El archivo debe empezar por «MZ»: un ejecutable de Windows (PE).
- Deben coincidir todos los patrones de ( $s* ).
- Deben coincidir todos los patrones de ( $o* ).
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: 8883e652-edab-5cbf-a4fa-963b437447d9
Etiquetas:FILE
Reglas relacionadas
- MalwareMalpedia signator rules· Felix Bilstein - yara-signator at cocacoding dot com· 2026-05-04
- MalwareSEKOIA.IO Community· Sekoia.io· 2021-08-03
- 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