YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Crylock
Detects CryLock ransomware
- Autor
- ditekSHen
- Fecha
- 2020-11-06
- Modificada
- 2024-11-01
- Puntuación / Calidad
- 75 / 73
Qué detecta esta regla
Detects CryLock ransomware
Familia de malware asociada: Crylock.
Objetivos: PE de Windows.
Define 25 patrones (24 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_Crylock : FILE
{
meta:
= "Detects CryLock ransomware"
= "ditekSHen"
= "296288d8-2fdd-592a-aef9-7d4853885594"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L7151-L7186"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "dde35dd2c7e89212c4562f2dcf6a78d06fbb3d31150d49e6c48f758b07f1834f"
= 75
= 73
= "FILE"
strings:
$s1 = "Encrypted by BlackRabbit. (BR-" ascii
$s2 = "{ENCRYPTENDED}" ascii
$s3 = "{ENCRYPTSTART}" ascii
$s4 = "<%UNDECRYPT_DATETIME%>" ascii
$s5 = "<%RESERVE_CONTACT%>" ascii
$s6 = "how_to_decrypt.hta" ascii wide
$s7 = "END ENCRYPT ONLY EXTENATIONS" ascii
$s8 = "END UNENCRYPT EXTENATIONS" ascii
$s9 = "END COMMANDS LIST" ascii
$s10 = "END PROCESSES KILL LIST" ascii
$s11 = "END SERVICES STOP LIST" ascii
$s12 = "END PROCESSES WHITE LIST" ascii
$s13 = "END UNENCRYPT FILES LIST" ascii
$s14 = "END UNENCRYPT FOLDERS LIST" ascii
$s15 = "Encrypted files:" ascii
$s16 = { 65 78 74 65 6e 61 74 69 6f 6e 73 00 ff ff ff ff
06 00 00 00 63 6f 6e 66 69 67 00 00 ff ff ff ff
(0a|0d 0a) 00 00 00 63 6f 6e 66 69 67 2e 74 78
74 00 00 ff ff ff ff 03 00 00 00 68 74 61 }
$p1 = "-exclude" fullword
$p2 = "-makeff" fullword
$p3 = "-full" fullword
$p4 = "-nolocal" fullword
$p5 = "-nolan" fullword
$p6 = "\" -id \"" fullword
$p7 = "\" -wid \"" fullword
$p8 = "\"runas\"" fullword
$p9 = " -f -s -t 00" fullword ascii
condition:
uint16( 0 ) == 0x5a4d and ( 3 of ( $s* ) or 6 of ( $p* ) )
}
Cadenas (25 patrones)
| Identificador | Tipo | Valor | Modificadores |
|---|---|---|---|
| $s1 | texto | "Encrypted by BlackRabbit. (BR-" | ascii |
| $s2 | texto | "{ENCRYPTENDED}" | ascii |
| $s3 | texto | "{ENCRYPTSTART}" | ascii |
| $s4 | texto | "<%UNDECRYPT_DATETIME%>" | ascii |
| $s5 | texto | "<%RESERVE_CONTACT%>" | ascii |
| $s6 | texto | "how_to_decrypt.hta" | ascii wide |
| $s7 | texto | "END ENCRYPT ONLY EXTENATIONS" | ascii |
| $s8 | texto | "END UNENCRYPT EXTENATIONS" | ascii |
| $s9 | texto | "END COMMANDS LIST" | ascii |
| $s10 | texto | "END PROCESSES KILL LIST" | ascii |
| $s11 | texto | "END SERVICES STOP LIST" | ascii |
| $s12 | texto | "END PROCESSES WHITE LIST" | ascii |
| $s13 | texto | "END UNENCRYPT FILES LIST" | ascii |
| $s14 | texto | "END UNENCRYPT FOLDERS LIST" | ascii |
| $s15 | texto | "Encrypted files:" | ascii |
| $s16 | hex | { 65 78 74 65 6e 61 74 69 6f 6e 73 00 ff ff ff ff 06 00 00 00 63 6f 6e 66 69 67 00 00 ff ff ff ff (0a|0d 0a) 00 00 00 63 6f 6e … | |
| $p1 | texto | "-exclude" | fullword |
| $p2 | texto | "-makeff" | fullword |
| $p3 | texto | "-full" | fullword |
| $p4 | texto | "-nolocal" | fullword |
| $p5 | texto | "-nolan" | fullword |
| $p6 | texto | "\" -id \"" | fullword |
| $p7 | texto | "\" -wid \"" | fullword |
| $p8 | texto | "\"runas\"" | fullword |
| $p9 | texto | " -f -s -t 00" | fullword ascii |
Condición
uint16( 0 ) == 0x5a4d and ( 3 of ( $s* ) or 6 of ( $p* ) )En palabras sencillas (Heurística)
- El archivo debe empezar por «MZ»: un ejecutable de Windows (PE).
- Deben coincidir al menos 3 patrones de ( $s* ).
- Deben coincidir al menos 6 patrones de ( $p* ).
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: 296288d8-2fdd-592a-aef9-7d4853885594
Etiquetas:FILE
Reglas relacionadas
- TELEKOM_SECURITY_Crylock_BinarySolo metadatosMalwareTelekom Security malware analysis· Thomas Barabosch, Telekom Security· 2021-06-28
- ARKBIRD_SOLG_RAN_Crylock_Oct_2020_1Solo metadatosMalwareArkbird SOLG (DailyIOC)· Arkbird_SOLG· 2020-10-14
- TELEKOM_SECURITY_Crylock_HtaSolo metadatosMalwareTelekom Security malware analysis· Thomas Barabosch, Telekom Security· 2021-06-28
- 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