YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Rietspoof
Rietspoof payload
- 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
rule DITEKSHEN_MALWARE_Win_Rietspoof : FILE
{
meta:
= "Rietspoof payload"
= "ditekSHen"
= "b2d94705-ca59-56ae-8471-2c6895d355dc"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L1110-L1140"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "d1d9baab83c904d1e8dcd7aeacdabfc79c1acee67006793c2240a42ebf9c62b2"
= 75
= 73
= "FILE"
= "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)
| Identificador | Tipo | Valor | Modificadores |
|---|---|---|---|
| $c1 | texto | "%s%s%s USER: user" | fullword ascii |
| $c2 | texto | "cmd /c %s" | fullword ascii |
| $c3 | texto | "CreateObject(\"Scripting.FileSystemObject\").DeleteFile(" | ascii |
| $c4 | texto | "WScript.Quit" | fullword ascii |
| $c5 | texto | "CPU: %s(%d)" | fullword ascii |
| $c6 | texto | "RAM: %lld Mb" | fullword ascii |
| $c7 | texto | "data.dat" | fullword ascii |
| $c8 | texto | "%s%s%s USER:" | ascii |
| $v1_1 | texto | ".vbs" | ascii |
| $v1_2 | texto | "HELLO" | ascii |
| $v1_3 | texto | "Wscript.Sleep" | ascii |
| $v1_4 | texto | "User-agent:Mozilla/5.0 (Windows; U;" | ascii |
| $v2_1 | texto | "Xjoepxt!" | ascii |
| $v2_2 | texto | "Content-MD5:%s" | fullword ascii |
| $v2_3 | texto | "M9h5an8f8zTjnyTwQVh6hYBdYsMqHiAz" | fullword ascii |
| $v2_4 | texto | "GET /%s?%s HTTP/1.1" | fullword ascii |
| $v2_5 | texto | "GET /?%s HTTP/1.1" | fullword ascii |
| $pdb1 | texto | "\\techloader\\loader\\loader.odb" | ascii wide |
| $pdb2 | texto | "\\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.
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: b2d94705-ca59-56ae-8471-2c6895d355dc
Metadatos
| clamav_sig | MALWARE.Win.Trojan.Rietspoof |
|---|
Etiquetas:FILE
Reglas relacionadas
- MalwareTrellix Advanced Research Center· Marc Rivero | McAfee ATR Team· 2026-09-01
- 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
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06