YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Fpspy
FPSpy
- Auteur
- ditekshen
- Date
- 2020-11-06
- Modifiée
- 2024-11-01
- Score / Qualité
- 75 / 73
Ce que détecte cette règle
FPSpy
Famille de malware associée : Fpspy.
Cibles : PE Windows.
Elle définit 21 motifs (20 texte, 0 hex, 1 regex). Modules YARA utilisés : pe.
Résumé généré à partir des métadonnées et de la condition de la règle.
Source de la règle
Inclut les imports nécessaires pour la compiler seule.
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* ) ) )
}
Chaînes (21 motifs)
| Identifiant | Type | Valeur | Modificateurs |
|---|---|---|---|
| $f1 | texte | "[Analys_Spy]" | wide |
| $f2 | texte | "[DeletePoorDll]" | wide |
| $f3 | texte | "[DownloadProc]" | wide |
| $f4 | texte | "[DragWarp]" | wide |
| $f5 | texte | "[GetCoolDir]" | wide |
| $f6 | texte | "[JackSleep]" | wide |
| $f7 | texte | "[KillCmdExe]" | wide |
| $f8 | texte | "[PsDownProc]" | wide |
| $f9 | texte | "[PsUpProc]" | wide |
| $f10 | texte | "[ReadFileFromPacket]" | wide |
| $f11 | texte | "[RemoteDropExec]" | wide |
| $f12 | texte | "[RemoteExec]" | wide |
| $f13 | texte | "[RemoteInject]" | wide |
| $f14 | texte | "[SendHttpForUpload]" | wide |
| $s1 | texte | "MazeFunc" | fullword ascii |
| $s2 | regex | /(Exit|Update|Drop)_EVT/ | fullword ascii |
| $s3 | texte | "Key.dat" | fullword ascii |
| $s4 | texte | "%sSysInfo_%02d_%02d_%02d.txt" | fullword ascii |
| $s5 | texte | "cmd /c systeminfo >> %s" | fullword ascii |
| $s6 | texte | "Content-Disposition: form-data; name=\"MAX_FILE_SIZE\"" | fullword ascii |
| $s7 | texte | "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* ) ) )En clair (Heuristique)
- Le fichier doit commencer par « MZ » — un exécutable Windows (PE).
- Au moins 2 motifs de ( $f* ) doivent être trouvés.
- Au moins 1 motifs de ( $s* ) doivent être trouvés.
- Au moins 6 motifs de ( $f* ) doivent être trouvés.
- Au moins 5 motifs de ( $s* ) doivent être trouvés.
- Au moins 1 motifs de ( $f* ) doivent être trouvés.
- Au moins 8 motifs de ( $f* ) doivent être trouvés.
- Utilise le module pe.
- Vérifie des fonctions exportées ou le nom de la DLL.
Tester cette règle dans votre navigateur
Déposez un fichier pour le scanner avec cette règle grâce à YARA-X compilé en WebAssembly. Rien n’est envoyé.
Références
Licence et attribution
Auteur : ditekshen
Dépôt source : ditekSHen detection @ e76c93dcde
Licence : BSD 2-Clause License (licence du dépôt)
Mention de copyright : Copyright 2021 by ditekSHen (https://github.com/ditekshen/detection).
Reprise via YARA Forge 20260927, qui préfixe les noms de règles par la source et ajoute des champs meta normalisés.
Identifiant de règle: 39d3be12-1b06-57b1-b3c2-2cbd13a17b03
Métadonnées
| clamav1 | MALWARE.Win.Trojan.FPSpy |
|---|
Tags:FILE
Règles liées
- APT / acteurSEKOIA.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