Saltar al contenido

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Crylock

Detects CryLock ransomware

MalwareCrylockditekSHen detectionBSD 2-Clause LicenseCompila con YARA-X
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

malware-win-crylock.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Crylock : FILE
{
	meta:
		description = "Detects CryLock ransomware"
		author = "ditekSHen"
		id = "296288d8-2fdd-592a-aef9-7d4853885594"
		date = "2020-11-06"
		modified = "2024-11-01"
		reference = "https://github.com/ditekshen/detection"
		source_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L7151-L7186"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "dde35dd2c7e89212c4562f2dcf6a78d06fbb3d31150d49e6c48f758b07f1834f"
		score = 75
		quality = 73
		tags = "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)

IdentificadorTipoValorModificadores
$s1texto"Encrypted by BlackRabbit. (BR-"ascii
$s2texto"{ENCRYPTENDED}"ascii
$s3texto"{ENCRYPTSTART}"ascii
$s4texto"<%UNDECRYPT_DATETIME%>"ascii
$s5texto"<%RESERVE_CONTACT%>"ascii
$s6texto"how_to_decrypt.hta"ascii wide
$s7texto"END ENCRYPT ONLY EXTENATIONS"ascii
$s8texto"END UNENCRYPT EXTENATIONS"ascii
$s9texto"END COMMANDS LIST"ascii
$s10texto"END PROCESSES KILL LIST"ascii
$s11texto"END SERVICES STOP LIST"ascii
$s12texto"END PROCESSES WHITE LIST"ascii
$s13texto"END UNENCRYPT FILES LIST"ascii
$s14texto"END UNENCRYPT FOLDERS LIST"ascii
$s15texto"Encrypted files:"ascii
$s16hex{ 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 …
$p1texto"-exclude"fullword
$p2texto"-makeff"fullword
$p3texto"-full"fullword
$p4texto"-nolocal"fullword
$p5texto"-nolan"fullword
$p6texto"\" -id \""fullword
$p7texto"\" -wid \""fullword
$p8texto"\"runas\""fullword
$p9texto" -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.

Arrastra un archivo aquí o haz clic para elegirSe escanea en local con YARA-X. Archivos de hasta 200 MB.

Abrir en el editor

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).

Regla original

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

Más reglas de Crylock