YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_PYSA
Detects PYSA/Mespinoza ransomware
- Autor
- ditekSHen
- Fecha
- 2020-11-06
- Modificada
- 2024-11-01
- Puntuación / Calidad
- 75 / 75
Qué detecta esta regla
Detects PYSA/Mespinoza ransomware
Familia de malware asociada: PYSA.
Objetivos: PE de Windows.
Define 8 patrones (5 de texto, 3 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_PYSA : FILE
{
meta:
= "Detects PYSA/Mespinoza ransomware"
= "ditekSHen"
= "3a3fad6a-46bc-51dc-9723-4412034ca442"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L2080-L2100"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "e614b827bd8d065e94852fed01497c785bf90c52c3624aff9939b3f40ecf96a4"
= 75
= 75
= "FILE"
= "MALWARE.Win.Ransomware.PYSA"
strings:
$s1 = "%s\\Readme.README" fullword wide
$s2 = "Every byte on any types of your devices was encrypted" ascii
$s3 = { 6c 65 67 61 6c 6e 6f 74 69 63 65 74 65 78 74 00 (50|70) (59|79) (53|73) (41|61) }
$s4 = { 6c 65 67 61 6c 6e 6f 74 69 63 65 63 61 70 74 69 6f 6e 00 00 (50|70) (59|79) (53|73) (41|61) }
$s5 = { 2e 62 61 74 00 00 6f 70 65 6e 00 00 00 00 53
4f 46 54 57 41 52 45 5c 4d 69 63 72 6f 73 6f
66 74 5c 57 69 6e 64 6f 77 73 5c 43 75 72 72
65 6e 74 56 65 72 73 69 6f 6e 5c 50 6f 6c 69
63 69 65 73 5c 53 79 73 74 65 6d 00 00 00 }
$f1 = ".?AVPK_EncryptorFilter@CryptoPP@@" ascii
$f2 = ".?AV?$TF_EncryptorImpl@" ascii
$f3 = "@VTF_EncryptorBase@CryptoPP@@" ascii
condition:
uint16( 0 ) == 0x5a4d and all of ( $f* ) and 3 of ( $s* )
}
Cadenas (8 patrones)
| Identificador | Tipo | Valor | Modificadores |
|---|---|---|---|
| $s1 | texto | "%s\\Readme.README" | fullword wide |
| $s2 | texto | "Every byte on any types of your devices was encrypted" | ascii |
| $s3 | hex | { 6c 65 67 61 6c 6e 6f 74 69 63 65 74 65 78 74 00 (50|70) (59|79) (53|73) (41|61) } | |
| $s4 | hex | { 6c 65 67 61 6c 6e 6f 74 69 63 65 63 61 70 74 69 6f 6e 00 00 (50|70) (59|79) (53|73) (41|61) } | |
| $s5 | hex | { 2e 62 61 74 00 00 6f 70 65 6e 00 00 00 00 53 4f 46 54 57 41 52 45 5c 4d 69 63 72 6f 73 6f 66 74 5c 57 69 6e 64 6f 77 73 5c 43 … | |
| $f1 | texto | ".?AVPK_EncryptorFilter@CryptoPP@@" | ascii |
| $f2 | texto | ".?AV?$TF_EncryptorImpl@" | ascii |
| $f3 | texto | "@VTF_EncryptorBase@CryptoPP@@" | ascii |
Condición
uint16( 0 ) == 0x5a4d and all of ( $f* ) and 3 of ( $s* )En palabras sencillas (Heurística)
- El archivo debe empezar por «MZ»: un ejecutable de Windows (PE).
- Deben coincidir todos los patrones de ( $f* ).
- Deben coincidir al menos 3 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: 3a3fad6a-46bc-51dc-9723-4412034ca442
Metadatos
| clamav_sig | MALWARE.Win.Ransomware.PYSA |
|---|
Etiquetas:FILE
Reglas relacionadas
- ARKBIRD_SOLG_RAN_PYSA_Sept_2021_1Solo metadatosMalwareArkbird SOLG (DailyIOC)· Arkbird_SOLG· 2021-09-23
- 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