YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Fpspy
FPSpy
- Autor
- ditekshen
- Fecha
- 2020-11-06
- Modificada
- 2024-11-01
- Puntuación / Calidad
- 75 / 73
Qué detecta esta regla
FPSpy
Familia de malware asociada: Fpspy.
Objetivos: PE de Windows.
Define 21 patrones (20 de texto, 0 hex, 1 regex). Módulos YARA usados: pe.
Resumen generado a partir de los metadatos y la condición de la regla.
Código de la regla
Incluye los imports necesarios para compilarla por sí sola.
import "pe"
rule DITEKSHEN_MALWARE_Win_Fpspy : FILE
{
meta:
= "FPSpy"
= "ditekshen"
= "39d3be12-1b06-57b1-b3c2-2cbd13a17b03"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L11887-L11916"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "c26736c7f056f3d13c58e724fda601e88468e2386852b072a37c6646fb5ef8f9"
= 75
= 73
= "FILE"
= "MALWARE.Win.Trojan.FPSpy"
strings:
$f1 = "[Analys_Spy]" wide
$f2 = "[DeletePoorDll]" wide
$f3 = "[DownloadProc]" wide
$f4 = "[DragWarp]" wide
$f5 = "[GetCoolDir]" wide
$f6 = "[JackSleep]" wide
$f7 = "[KillCmdExe]" wide
$f8 = "[PsDownProc]" wide
$f9 = "[PsUpProc]" wide
$f10 = "[ReadFileFromPacket]" wide
$f11 = "[RemoteDropExec]" wide
$f12 = "[RemoteExec]" wide
$f13 = "[RemoteInject]" wide
$f14 = "[SendHttpForUpload]" wide
$s1 = "MazeFunc" fullword ascii
$s2 = /(Exit|Update|Drop)_EVT/ fullword ascii
$s3 = "Key.dat" fullword ascii
$s4 = "%sSysInfo_%02d_%02d_%02d.txt" fullword ascii
$s5 = "cmd /c systeminfo >> %s" fullword ascii
$s6 = "Content-Disposition: form-data; name=\"MAX_FILE_SIZE\"" fullword ascii
$s7 = "FPSpy" fullword wide
condition:
uint16( 0 ) == 0x5a4d and ( ( pe.exports ( "MazeFunc" ) and 2 of ( $f* ) and 1 of ( $s* ) ) or ( 6 of ( $f* ) and 1 of ( $s* ) ) or ( 5 of ( $s* ) and 1 of ( $f* ) ) or ( 8 of ( $f* ) ) )
}
Cadenas (21 patrones)
| Identificador | Tipo | Valor | Modificadores |
|---|---|---|---|
| $f1 | texto | "[Analys_Spy]" | wide |
| $f2 | texto | "[DeletePoorDll]" | wide |
| $f3 | texto | "[DownloadProc]" | wide |
| $f4 | texto | "[DragWarp]" | wide |
| $f5 | texto | "[GetCoolDir]" | wide |
| $f6 | texto | "[JackSleep]" | wide |
| $f7 | texto | "[KillCmdExe]" | wide |
| $f8 | texto | "[PsDownProc]" | wide |
| $f9 | texto | "[PsUpProc]" | wide |
| $f10 | texto | "[ReadFileFromPacket]" | wide |
| $f11 | texto | "[RemoteDropExec]" | wide |
| $f12 | texto | "[RemoteExec]" | wide |
| $f13 | texto | "[RemoteInject]" | wide |
| $f14 | texto | "[SendHttpForUpload]" | wide |
| $s1 | texto | "MazeFunc" | fullword ascii |
| $s2 | regex | /(Exit|Update|Drop)_EVT/ | fullword ascii |
| $s3 | texto | "Key.dat" | fullword ascii |
| $s4 | texto | "%sSysInfo_%02d_%02d_%02d.txt" | fullword ascii |
| $s5 | texto | "cmd /c systeminfo >> %s" | fullword ascii |
| $s6 | texto | "Content-Disposition: form-data; name=\"MAX_FILE_SIZE\"" | fullword ascii |
| $s7 | texto | "FPSpy" | fullword wide |
Condición
uint16( 0 ) == 0x5a4d and ( ( pe.exports ( "MazeFunc" ) and 2 of ( $f* ) and 1 of ( $s* ) ) or ( 6 of ( $f* ) and 1 of ( $s* ) ) or ( 5 of ( $s* ) and 1 of ( $f* ) ) or ( 8 of ( $f* ) ) )En palabras sencillas (Heurística)
- El archivo debe empezar por «MZ»: un ejecutable de Windows (PE).
- Deben coincidir al menos 2 patrones de ( $f* ).
- Deben coincidir al menos 1 patrones de ( $s* ).
- Deben coincidir al menos 6 patrones de ( $f* ).
- Deben coincidir al menos 5 patrones de ( $s* ).
- Deben coincidir al menos 1 patrones de ( $f* ).
- Deben coincidir al menos 8 patrones de ( $f* ).
- Usa el módulo pe.
- Comprueba funciones exportadas o el nombre de la DLL.
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: 39d3be12-1b06-57b1-b3c2-2cbd13a17b03
Metadatos
| clamav1 | MALWARE.Win.Trojan.FPSpy |
|---|
Etiquetas:FILE
Reglas relacionadas
- APT / actorSEKOIA.IO Community· Sekoia.io· 2024-09-27
- 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
- MalwareditekSHen detection· ditekshen· 2020-11-06