Aller au contenu

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Rietspoof

Rietspoof payload

MalwareRietspoofditekSHen 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

Rietspoof payload

Famille de malware associée : Rietspoof.

Cibles : PE Windows.

Elle définit 19 motifs (19 texte, 0 hex, 0 regex).

Résumé généré à partir des métadonnées et de la condition de la règle.

Source de la règle

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* ) ) )
}

Chaînes (19 motifs)

IdentifiantTypeValeurModificateurs
$c1texte"%s%s%s USER: user"fullword ascii
$c2texte"cmd /c %s"fullword ascii
$c3texte"CreateObject(\"Scripting.FileSystemObject\").DeleteFile("ascii
$c4texte"WScript.Quit"fullword ascii
$c5texte"CPU: %s(%d)"fullword ascii
$c6texte"RAM: %lld Mb"fullword ascii
$c7texte"data.dat"fullword ascii
$c8texte"%s%s%s USER:"ascii
$v1_1texte".vbs"ascii
$v1_2texte"HELLO"ascii
$v1_3texte"Wscript.Sleep"ascii
$v1_4texte"User-agent:Mozilla/5.0 (Windows; U;"ascii
$v2_1texte"Xjoepxt!"ascii
$v2_2texte"Content-MD5:%s"fullword ascii
$v2_3texte"M9h5an8f8zTjnyTwQVh6hYBdYsMqHiAz"fullword ascii
$v2_4texte"GET /%s?%s HTTP/1.1"fullword ascii
$v2_5texte"GET /?%s HTTP/1.1"fullword ascii
$pdb1texte"\\techloader\\loader\\loader.odb"ascii wide
$pdb2texte"\\loader\\Release\\loader_v1.0.pdb"ascii wide

Condition

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

En clair (Heuristique)

  • Le fichier doit commencer par « MZ » — un exécutable Windows (PE).
  • Au moins 7 motifs de ( $c* ) doivent être trouvés.
  • Au moins 3 motifs de ( $v* ) doivent être trouvés.
  • Au moins 1 motifs de ( $pdb* ) doivent être trouvés.

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

Métadonnées

clamav_sigMALWARE.Win.Trojan.Rietspoof

Tags:FILE