YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Doejocrypt
Detects DoejoCrypt / DearCry ransomware
- Autor
- ditekSHen
- Fecha
- 2020-11-06
- Modificada
- 2024-11-01
- Puntuación / Calidad
- 75 / 75
Qué detecta esta regla
Detects DoejoCrypt / DearCry ransomware
Familia de malware asociada: Doejocrypt.
Objetivos: PE de Windows.
Define 9 patrones (6 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_Doejocrypt : FILE
{
meta:
= "Detects DoejoCrypt / DearCry ransomware"
= "ditekSHen"
= "2c90f8e7-ced4-56da-ab8d-61b5ba63dacd"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L4977-L4993"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "f8a3897de9522340799a59e3e755c323b0defaab73a9030b6b69a1a82c05dcd0"
= 75
= 75
= "FILE"
strings:
$s1 = "DEARCRY!" fullword ascii
$s2 = ".CRYPT" fullword ascii
$s3 = "\\EncryptFile -svcV2\\" ascii
$s4 = "please send me the following hash!" ascii
$s5 = "dear!!!" fullword ascii
$s6 = "/readme.txt" fullword ascii
$o1 = { c3 8b 65 e8 c7 45 fc fe ff ff ff 8b b5 f4 e9 ff }
$o2 = { 0f 8c 27 ff ff ff 33 db 57 e8 7b 36 00 00 eb 0a }
$o3 = { 0f 8c 2a ff ff ff 53 57 e8 b7 42 00 00 8b 4c 24 }
condition:
uint16( 0 ) == 0x5a4d and 4 of ( $s* ) or ( all of ( $o* ) and ( 2 of ( $s* ) ) )
}
Cadenas (9 patrones)
| Identificador | Tipo | Valor | Modificadores |
|---|---|---|---|
| $s1 | texto | "DEARCRY!" | fullword ascii |
| $s2 | texto | ".CRYPT" | fullword ascii |
| $s3 | texto | "\\EncryptFile -svcV2\\" | ascii |
| $s4 | texto | "please send me the following hash!" | ascii |
| $s5 | texto | "dear!!!" | fullword ascii |
| $s6 | texto | "/readme.txt" | fullword ascii |
| $o1 | hex | { c3 8b 65 e8 c7 45 fc fe ff ff ff 8b b5 f4 e9 ff } | |
| $o2 | hex | { 0f 8c 27 ff ff ff 33 db 57 e8 7b 36 00 00 eb 0a } | |
| $o3 | hex | { 0f 8c 2a ff ff ff 53 57 e8 b7 42 00 00 8b 4c 24 } |
Condición
uint16( 0 ) == 0x5a4d and 4 of ( $s* ) or ( all of ( $o* ) and ( 2 of ( $s* ) ) )En palabras sencillas (Heurística)
- El archivo debe empezar por «MZ»: un ejecutable de Windows (PE).
- Deben coincidir todos los patrones de ( $o* ).
- Deben coincidir al menos 4 patrones de ( $s* ).
- Deben coincidir al menos 2 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: 2c90f8e7-ced4-56da-ab8d-61b5ba63dacd
Etiquetas:FILE
Reglas relacionadas
- Sospechoso / huntingditekSHen detection· ditekShen· 2021-01-21
- 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