Aller au contenu

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Windealer

Detects WinDealer

MalwareWindealerditekSHen 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

Detects WinDealer

Famille de malware associée : Windealer.

Cibles : PE Windows.

Elle définit 23 motifs (23 texte, 0 hex, 0 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-windealer.yarBSD 2-Clause License
import "pe"

rule DITEKSHEN_MALWARE_Win_Windealer : FILE
{
	meta:
		description = "Detects WinDealer"
		author = "ditekSHen"
		id = "d4f3b0cc-121e-5032-9721-1e2a86842fa5"
		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#L8270-L8301"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "eabc41ea69f142ee7c243cbc75ceda909a722be382ad91a01c805aef637be915"
		score = 75
		quality = 73
		tags = "FILE"
		snort_sid = "920264"

	strings:
		$d1 = "downfile" fullword ascii
		$d2 = "getmypath" fullword ascii
		$d3 = "content-type: monitor" fullword ascii
		$d4 = "content-type: UsedType" fullword ascii
		$d5 = "write command error" fullword ascii
		$d6 = "C:\\WINDOWS\\system32\\kernel32.dll" fullword ascii
		$l1 = "currentconfig" fullword ascii
		$l2 = "remotedomain" fullword ascii
		$l3 = "reserveip" fullword ascii
		$l4 = "otherinfo" fullword ascii
		$l5 = "filelen" fullword ascii
		$l6 = "%s%s.bak" fullword wide
		$l7 = "localmachine" fullword ascii
		$l8 = "remoteip" fullword ascii
		$l9 = "datastate" fullword ascii
		$l10 = "SYSTEM\\CurrentControlSet\\Control\\Network\\{4D36E972-E325-11CE-BFC1-08002BE10318}\\%s\\Connection" fullword ascii
		$s1 = "%s\\%s\\V5_History.dat" fullword wide
		$s2 = "%s\\%s\\history2.dat" fullword wide
		$s3 = "%s\\%s\\history.imw" fullword wide
		$s4 = "%s\\%s\\main.imw" fullword wide
		$s5 = "%s%d.%d.%d.%dWindows/%u" fullword ascii
		$s6 = "%s\\%c_%s_tmp" fullword wide
		$s7 = "%s\\%s\\main.db" fullword wide

	condition:
		uint16( 0 ) == 0x5a4d and ( ( 4 of ( $d* ) and 1 of ( $s* ) ) or ( 5 of ( $s* ) and 1 of ( $d* ) ) or 6 of ( $l* ) or ( pe.exports ( "DealC" ) and pe.exports ( "DealR" ) and pe.exports ( "DealS" ) and 1 of them ) )
}

Chaînes (23 motifs)

IdentifiantTypeValeurModificateurs
$d1texte"downfile"fullword ascii
$d2texte"getmypath"fullword ascii
$d3texte"content-type: monitor"fullword ascii
$d4texte"content-type: UsedType"fullword ascii
$d5texte"write command error"fullword ascii
$d6texte"C:\\WINDOWS\\system32\\kernel32.dll"fullword ascii
$l1texte"currentconfig"fullword ascii
$l2texte"remotedomain"fullword ascii
$l3texte"reserveip"fullword ascii
$l4texte"otherinfo"fullword ascii
$l5texte"filelen"fullword ascii
$l6texte"%s%s.bak"fullword wide
$l7texte"localmachine"fullword ascii
$l8texte"remoteip"fullword ascii
$l9texte"datastate"fullword ascii
$l10texte"SYSTEM\\CurrentControlSet\\Control\\Network\\{4D36E972-E325-11CE-BFC1-08002BE10318}\\%s\\Connection"fullword ascii
$s1texte"%s\\%s\\V5_History.dat"fullword wide
$s2texte"%s\\%s\\history2.dat"fullword wide
$s3texte"%s\\%s\\history.imw"fullword wide
$s4texte"%s\\%s\\main.imw"fullword wide
$s5texte"%s%d.%d.%d.%dWindows/%u"fullword ascii
$s6texte"%s\\%c_%s_tmp"fullword wide
$s7texte"%s\\%s\\main.db"fullword wide

Condition

uint16( 0 ) == 0x5a4d and ( ( 4 of ( $d* ) and 1 of ( $s* ) ) or ( 5 of ( $s* ) and 1 of ( $d* ) ) or 6 of ( $l* ) or ( pe.exports ( "DealC" ) and pe.exports ( "DealR" ) and pe.exports ( "DealS" ) and 1 of them ) )

En clair (Heuristique)

  • Le fichier doit commencer par « MZ » — un exécutable Windows (PE).
  • Au moins 4 motifs de ( $d* ) doivent être trouvés.
  • Au moins 1 motifs de ( $s* ) doivent être trouvés.
  • Au moins 5 motifs de ( $s* ) doivent être trouvés.
  • Au moins 1 motifs de ( $d* ) doivent être trouvés.
  • Au moins 6 motifs de ( $l* ) doivent être trouvés.
  • Au moins 1 motifs de la règle 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: d4f3b0cc-121e-5032-9721-1e2a86842fa5

Métadonnées

snort_sid920264

Tags:FILE

Plus de règles Windealer