Saltar al contenido

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Rietspoof

Rietspoof payload

MalwareRietspoofditekSHen 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

Rietspoof payload

Familia de malware asociada: Rietspoof.

Objetivos: PE de Windows.

Define 19 patrones (19 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-rietspoof.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Rietspoof : FILE
{
	meta:
		description = "Rietspoof payload"
		author = "ditekSHen"
		id = "b2d94705-ca59-56ae-8471-2c6895d355dc"
		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#L1110-L1140"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "d1d9baab83c904d1e8dcd7aeacdabfc79c1acee67006793c2240a42ebf9c62b2"
		score = 75
		quality = 73
		tags = "FILE"
		clamav_sig = "MALWARE.Win.Trojan.Rietspoof"

	strings:
		$c1 = "%s%s%s USER: user" fullword ascii
		$c2 = "cmd /c %s" fullword ascii
		$c3 = "CreateObject(\"Scripting.FileSystemObject\").DeleteFile(" ascii
		$c4 = "WScript.Quit" fullword ascii
		$c5 = "CPU: %s(%d)" fullword ascii
		$c6 = "RAM: %lld Mb" fullword ascii
		$c7 = "data.dat" fullword ascii
		$c8 = "%s%s%s USER:" ascii
		$v1_1 = ".vbs" ascii
		$v1_2 = "HELLO" ascii
		$v1_3 = "Wscript.Sleep" ascii
		$v1_4 = "User-agent:Mozilla/5.0 (Windows; U;" ascii
		$v2_1 = "Xjoepxt!" ascii
		$v2_2 = "Content-MD5:%s" fullword ascii
		$v2_3 = "M9h5an8f8zTjnyTwQVh6hYBdYsMqHiAz" fullword ascii
		$v2_4 = "GET /%s?%s HTTP/1.1" fullword ascii
		$v2_5 = "GET /?%s HTTP/1.1" fullword ascii
		$pdb1 = "\\techloader\\loader\\loader.odb" ascii wide
		$pdb2 = "\\loader\\Release\\loader_v1.0.pdb" ascii wide

	condition:
		uint16( 0 ) == 0x5a4d and ( 7 of ( $c* ) and ( 3 of ( $v* ) or 1 of ( $pdb* ) ) )
}

Cadenas (19 patrones)

IdentificadorTipoValorModificadores
$c1texto"%s%s%s USER: user"fullword ascii
$c2texto"cmd /c %s"fullword ascii
$c3texto"CreateObject(\"Scripting.FileSystemObject\").DeleteFile("ascii
$c4texto"WScript.Quit"fullword ascii
$c5texto"CPU: %s(%d)"fullword ascii
$c6texto"RAM: %lld Mb"fullword ascii
$c7texto"data.dat"fullword ascii
$c8texto"%s%s%s USER:"ascii
$v1_1texto".vbs"ascii
$v1_2texto"HELLO"ascii
$v1_3texto"Wscript.Sleep"ascii
$v1_4texto"User-agent:Mozilla/5.0 (Windows; U;"ascii
$v2_1texto"Xjoepxt!"ascii
$v2_2texto"Content-MD5:%s"fullword ascii
$v2_3texto"M9h5an8f8zTjnyTwQVh6hYBdYsMqHiAz"fullword ascii
$v2_4texto"GET /%s?%s HTTP/1.1"fullword ascii
$v2_5texto"GET /?%s HTTP/1.1"fullword ascii
$pdb1texto"\\techloader\\loader\\loader.odb"ascii wide
$pdb2texto"\\loader\\Release\\loader_v1.0.pdb"ascii wide

Condición

uint16( 0 ) == 0x5a4d and ( 7 of ( $c* ) and ( 3 of ( $v* ) or 1 of ( $pdb* ) ) )

En palabras sencillas (Heurística)

  • El archivo debe empezar por «MZ»: un ejecutable de Windows (PE).
  • Deben coincidir al menos 7 patrones de ( $c* ).
  • Deben coincidir al menos 3 patrones de ( $v* ).
  • Deben coincidir al menos 1 patrones de ( $pdb* ).

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: b2d94705-ca59-56ae-8471-2c6895d355dc

Metadatos

clamav_sigMALWARE.Win.Trojan.Rietspoof

Etiquetas:FILE