Saltar al contenido

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Purge

Detects Purge ransomware

MalwarePurgeditekSHen detectionBSD 2-Clause LicenseCompila con YARA-X
Autor
ditekSHen
Fecha
2020-11-06
Modificada
2024-11-01
Puntuación / Calidad
75 / 75

Qué detecta esta regla

Detects Purge ransomware

Familia de malware asociada: Purge.

Objetivos: PE de Windows.

Define 16 patrones (16 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-purge.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Purge : FILE
{
	meta:
		description = "Detects Purge ransomware"
		author = "ditekSHen"
		id = "b3fb9f38-ce12-5e0e-8908-3379b5da3497"
		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#L5178-L5201"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "83d13eca69bc99539e47d6d29689edf2a4fcd2260c6e909582126a490eef8115"
		score = 75
		quality = 75
		tags = "FILE"

	strings:
		$n1 = "imagesave/imagesize.php" ascii
		$n2 = "imageinfo.html" ascii
		$n3 = "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0)" ascii
		$n4 = "Content-Type: application/x-www-form-urlencoded" ascii
		$m1 = "YOUR_ID: %x%x" wide
		$m2 = "Specially for your PC was generated personal" wide
		$m3 = "which is on our Secret Server" wide
		$m4 = "wait for a miracle and get your price" wide
		$s1 = "%s\\SpyHunter Remove Ransomware" wide
		$s2 = "$recycle.bin" fullword wide
		$s3 = "TheEnd" fullword wide
		$s4 = "%s\\HELP_DECRYPT_YOUR_FILES.TXT" fullword wide
		$s5 = "%s.id_%x%x_email_" wide
		$s6 = "scmd" fullword wide
		$s7 = "process call create \"%s\"" wide
		$s8 = "FinishEnds" fullword ascii

	condition:
		uint16( 0 ) == 0x5a4d and ( all of ( $s* ) or all of ( $n* ) or 2 of ( $m* ) or ( 3 of ( $s* ) and ( 1 of ( $n* ) or 1 of ( $m* ) ) ) )
}

Cadenas (16 patrones)

IdentificadorTipoValorModificadores
$n1texto"imagesave/imagesize.php"ascii
$n2texto"imageinfo.html"ascii
$n3texto"Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0)"ascii
$n4texto"Content-Type: application/x-www-form-urlencoded"ascii
$m1texto"YOUR_ID: %x%x"wide
$m2texto"Specially for your PC was generated personal"wide
$m3texto"which is on our Secret Server"wide
$m4texto"wait for a miracle and get your price"wide
$s1texto"%s\\SpyHunter Remove Ransomware"wide
$s2texto"$recycle.bin"fullword wide
$s3texto"TheEnd"fullword wide
$s4texto"%s\\HELP_DECRYPT_YOUR_FILES.TXT"fullword wide
$s5texto"%s.id_%x%x_email_"wide
$s6texto"scmd"fullword wide
$s7texto"process call create \"%s\""wide
$s8texto"FinishEnds"fullword ascii

Condición

uint16( 0 ) == 0x5a4d and ( all of ( $s* ) or all of ( $n* ) or 2 of ( $m* ) or ( 3 of ( $s* ) and ( 1 of ( $n* ) or 1 of ( $m* ) ) ) )

En palabras sencillas (Heurística)

  • El archivo debe empezar por «MZ»: un ejecutable de Windows (PE).
  • Deben coincidir todos los patrones de ( $s* ).
  • Deben coincidir todos los patrones de ( $n* ).
  • Deben coincidir al menos 2 patrones de ( $m* ).
  • Deben coincidir al menos 3 patrones de ( $s* ).
  • Deben coincidir al menos 1 patrones de ( $n* ).
  • Deben coincidir al menos 1 patrones de ( $m* ).

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: b3fb9f38-ce12-5e0e-8908-3379b5da3497

Etiquetas:FILE