Aller au contenu

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Fpspy

FPSpy

MalwareFpspyditekSHen detectionBSD 2-Clause LicenseCompile avec YARA-X
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.

malware-win-fpspy.yarBSD 2-Clause License
import "pe"

rule DITEKSHEN_MALWARE_Win_Fpspy : FILE
{
	meta:
		description = "FPSpy"
		author = "ditekshen"
		id = "39d3be12-1b06-57b1-b3c2-2cbd13a17b03"
		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#L11887-L11916"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "c26736c7f056f3d13c58e724fda601e88468e2386852b072a37c6646fb5ef8f9"
		score = 75
		quality = 73
		tags = "FILE"
		clamav1 = "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)

IdentifiantTypeValeurModificateurs
$f1texte"[Analys_Spy]"wide
$f2texte"[DeletePoorDll]"wide
$f3texte"[DownloadProc]"wide
$f4texte"[DragWarp]"wide
$f5texte"[GetCoolDir]"wide
$f6texte"[JackSleep]"wide
$f7texte"[KillCmdExe]"wide
$f8texte"[PsDownProc]"wide
$f9texte"[PsUpProc]"wide
$f10texte"[ReadFileFromPacket]"wide
$f11texte"[RemoteDropExec]"wide
$f12texte"[RemoteExec]"wide
$f13texte"[RemoteInject]"wide
$f14texte"[SendHttpForUpload]"wide
$s1texte"MazeFunc"fullword ascii
$s2regex/(Exit|Update|Drop)_EVT/fullword ascii
$s3texte"Key.dat"fullword ascii
$s4texte"%sSysInfo_%02d_%02d_%02d.txt"fullword ascii
$s5texte"cmd /c systeminfo >> %s"fullword ascii
$s6texte"Content-Disposition: form-data; name=\"MAX_FILE_SIZE\""fullword ascii
$s7texte"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é.

Déposez un fichier ici ou cliquez pour choisirScanné localement avec YARA-X. Fichiers jusqu’à 200 Mo.

Ouvrir dans l’éditeur

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).

Règle d’origine

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

clamav1MALWARE.Win.Trojan.FPSpy

Tags:FILE