YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Maze
Detects Maze ransomware
- Autor
- ditekSHen
- Fecha
- 2020-11-06
- Modificada
- 2024-11-01
- Puntuación / Calidad
- 75 / 75
Qué detecta esta regla
Detects Maze ransomware
Familia de malware asociada: Maze.
Objetivos: PE de Windows.
Define 10 patrones (9 de texto, 1 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_Maze : FILE
{
meta:
= "Detects Maze ransomware"
= "ditekSHen"
= "f5d1d3e2-1ffe-5ec6-b1ee-bded81867fb8"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L9116-L9145"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "d3ce3b43c65dfd9f59ba3c6b64e8d7687db175673cc62068caa1e1da023390c0"
= 75
= 75
= "FILE"
strings:
$x1 = "Uc32nbspacec97c98c99c100c101c102c103c104c105c106c107c108c109c110c" ascii
$s1 = "\"%s\" shadowcopy delete" wide
$s2 = "[%windir%\\system32\\wbem\\wmic" wide
$s3 = "process call create \"cmd /c start %s\"" wide
$s4 = "DECRYPT-FILES.html" fullword wide
$s5 = "Dear %s, your files" wide
$s6 = "%s! Alert! %s! Alert!" wide
$s7 = "%BASE64_PLACEHOLDER%" fullword ascii
$s8 = "-orDGorX0or" fullword ascii
$s9 = { 47 45 54 20 2f 25 73 20 48 54 54 50 2f 31 2e 31
0d 0a 55 73 65 72 2d 41 67 65 6e 74 3a 20 25 73
0d 0a 48 6f 73 74 3a 20 25 73 0d 0a 43 6f 6e 6e
65 63 74 69 6f 6e 3a 20 4b 65 65 70 2d 41 6c 69
76 65 0d 0a 0d 0a 00 50 4f 53 54 20 2f 25 73 20
48 54 54 50 2f 31 2e 31 0d 0a 55 73 65 72 2d 41
67 65 6e 74 3a 20 25 73 0d 0a 48 6f 73 74 3a 20
25 73 0d 0a 43 6f 6e 74 65 6e 74 2d 54 79 70 65
3a 20 25 73 0d 0a 43 6f 6e 74 65 6e 74 2d 4c 65
6e 67 74 68 3a 20 25 64 0d 0a 43 6f 6e 6e 65 63
74 69 6f 6e 3a 20 4b 65 65 70 2d 41 6c 69 76 65
0d 0a 0d 0a 00 0d 0a 0d 0a 00 43 6f 6e 74 65 6e
74 2d 4c 65 6e 67 74 68 3a 20 00 }
condition:
uint16( 0 ) == 0x5a4d and ( ( 1 of ( $x* ) and 3 of ( $s* ) ) or 6 of ( $s* ) )
}
Cadenas (10 patrones)
| Identificador | Tipo | Valor | Modificadores |
|---|---|---|---|
| $x1 | texto | "Uc32nbspacec97c98c99c100c101c102c103c104c105c106c107c108c109c110c" | ascii |
| $s1 | texto | "\"%s\" shadowcopy delete" | wide |
| $s2 | texto | "[%windir%\\system32\\wbem\\wmic" | wide |
| $s3 | texto | "process call create \"cmd /c start %s\"" | wide |
| $s4 | texto | "DECRYPT-FILES.html" | fullword wide |
| $s5 | texto | "Dear %s, your files" | wide |
| $s6 | texto | "%s! Alert! %s! Alert!" | wide |
| $s7 | texto | "%BASE64_PLACEHOLDER%" | fullword ascii |
| $s8 | texto | "-orDGorX0or" | fullword ascii |
| $s9 | hex | { 47 45 54 20 2f 25 73 20 48 54 54 50 2f 31 2e 31 0d 0a 55 73 65 72 2d 41 67 65 6e 74 3a 20 25 73 0d 0a 48 6f 73 74 3a 20 25 73 0d … |
Condición
uint16( 0 ) == 0x5a4d and ( ( 1 of ( $x* ) and 3 of ( $s* ) ) or 6 of ( $s* ) )En palabras sencillas (Heurística)
- El archivo debe empezar por «MZ»: un ejecutable de Windows (PE).
- Deben coincidir al menos 1 patrones de ( $x* ).
- Deben coincidir al menos 3 patrones de ( $s* ).
- Deben coincidir al menos 6 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: f5d1d3e2-1ffe-5ec6-b1ee-bded81867fb8
Etiquetas:FILE
Reglas relacionadas
- Sospechoso / huntingditekSHen detection· ditekShen· 2021-01-21
- MalwareSignature Base (Florian Roth / Nextron)· @VK_Intel· 2020-04-18
- 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