Saltar al contenido

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Cryptolocker

Detects Cryptolocker ransomware variants (Betarasite)

MalwareCryptolockerditekSHen 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 Cryptolocker ransomware variants (Betarasite)

Familia de malware asociada: Cryptolocker.

Objetivos: PE de Windows.

Define 15 patrones (15 de texto, 0 hex, 0 regex).

Resumen generado a partir de los metadatos y la condición de la regla.

Código de la regla

malware-win-cryptolocker.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Cryptolocker : FILE
{
	meta:
		description = "Detects Cryptolocker ransomware variants (Betarasite)"
		author = "ditekSHen"
		id = "4c6d714d-1fb1-55ce-8022-40f6f634e2cd"
		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#L4730-L4752"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "e1700e8ace338c25119305878e8bc52210506bd42183007985ba9601abdab87b"
		score = 75
		quality = 73
		tags = "FILE"

	strings:
		$x1 = "CryptoLocker" fullword wide
		$x2 = ".betarasite" fullword wide
		$x3 = "CMSTPBypass" fullword ascii
		$s1 = "CommandToExecute" fullword ascii
		$s2 = "SetInfFile" fullword ascii
		$s3 = "SchoolPrject1" ascii
		$s4 = "$730d5f64-bd57-47c1-9af4-d20aec714d02" fullword ascii
		$s5 = "Encrypt" fullword ascii
		$s6 = "Invalide Key! Please Try Again." fullword wide
		$s7 = "RegAsm" fullword wide
		$s8 = "Your key will be destroyed" wide
		$s9 = "encrypted using RC4 and RSA-2048" wide
		$c1 = "https://coinbase.com" fullword wide
		$c2 = "https://localbictoins.com" fullword wide
		$c3 = "https://bitpanda.com" fullword wide

	condition:
		uint16( 0 ) == 0x5a4d and ( all of ( $x* ) or all of ( $s* ) or ( 2 of ( $x* ) and 5 of ( $s* ) ) or ( all of ( $c* ) and 1 of ( $x* ) and 2 of ( $s* ) ) )
}

Cadenas (15 patrones)

IdentificadorTipoValorModificadores
$x1texto"CryptoLocker"fullword wide
$x2texto".betarasite"fullword wide
$x3texto"CMSTPBypass"fullword ascii
$s1texto"CommandToExecute"fullword ascii
$s2texto"SetInfFile"fullword ascii
$s3texto"SchoolPrject1"ascii
$s4texto"$730d5f64-bd57-47c1-9af4-d20aec714d02"fullword ascii
$s5texto"Encrypt"fullword ascii
$s6texto"Invalide Key! Please Try Again."fullword wide
$s7texto"RegAsm"fullword wide
$s8texto"Your key will be destroyed"wide
$s9texto"encrypted using RC4 and RSA-2048"wide
$c1texto"https://coinbase.com"fullword wide
$c2texto"https://localbictoins.com"fullword wide
$c3texto"https://bitpanda.com"fullword wide

Condición

uint16( 0 ) == 0x5a4d and ( all of ( $x* ) or all of ( $s* ) or ( 2 of ( $x* ) and 5 of ( $s* ) ) or ( all of ( $c* ) and 1 of ( $x* ) 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 ( $x* ).
  • Deben coincidir todos los patrones de ( $s* ).
  • Deben coincidir todos los patrones de ( $c* ).
  • Deben coincidir al menos 2 patrones de ( $x* ).
  • Deben coincidir al menos 5 patrones de ( $s* ).
  • Deben coincidir al menos 1 patrones de ( $x* ).
  • 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.

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: 4c6d714d-1fb1-55ce-8022-40f6f634e2cd

Etiquetas:FILE