Zum Inhalt springen

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Windealer

Detects WinDealer

MalwareWindealerditekSHen detectionBSD 2-Clause LicenseKompiliert mit YARA-X
Autor
ditekSHen
Datum
2020-11-06
Geändert
2024-11-01
Score / Qualität
75 / 73

Was diese Regel erkennt

Detects WinDealer

Zugehörige Malware-Familie: Windealer.

Ziele: Windows-PE.

Sie definiert 23 Muster (23 Text, 0 Hex, 0 Regex). Verwendete YARA-Module: pe.

Zusammenfassung aus den Metadaten und der Bedingung der Regel erzeugt.

Regelquelltext

Enthält die Imports, die zum eigenständigen Kompilieren nötig sind.

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

Strings (23 Muster)

BezeichnerTypWertModifikatoren
$d1Text"downfile"fullword ascii
$d2Text"getmypath"fullword ascii
$d3Text"content-type: monitor"fullword ascii
$d4Text"content-type: UsedType"fullword ascii
$d5Text"write command error"fullword ascii
$d6Text"C:\\WINDOWS\\system32\\kernel32.dll"fullword ascii
$l1Text"currentconfig"fullword ascii
$l2Text"remotedomain"fullword ascii
$l3Text"reserveip"fullword ascii
$l4Text"otherinfo"fullword ascii
$l5Text"filelen"fullword ascii
$l6Text"%s%s.bak"fullword wide
$l7Text"localmachine"fullword ascii
$l8Text"remoteip"fullword ascii
$l9Text"datastate"fullword ascii
$l10Text"SYSTEM\\CurrentControlSet\\Control\\Network\\{4D36E972-E325-11CE-BFC1-08002BE10318}\\%s\\Connection"fullword ascii
$s1Text"%s\\%s\\V5_History.dat"fullword wide
$s2Text"%s\\%s\\history2.dat"fullword wide
$s3Text"%s\\%s\\history.imw"fullword wide
$s4Text"%s\\%s\\main.imw"fullword wide
$s5Text"%s%d.%d.%d.%dWindows/%u"fullword ascii
$s6Text"%s\\%c_%s_tmp"fullword wide
$s7Text"%s\\%s\\main.db"fullword wide

Bedingung

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

In Worten (Heuristik)

  • Die Datei muss mit „MZ“ beginnen — eine Windows-Programmdatei (PE).
  • Mindestens 4 Muster aus ( $d* ) müssen treffen.
  • Mindestens 1 Muster aus ( $s* ) müssen treffen.
  • Mindestens 5 Muster aus ( $s* ) müssen treffen.
  • Mindestens 1 Muster aus ( $d* ) müssen treffen.
  • Mindestens 6 Muster aus ( $l* ) müssen treffen.
  • Mindestens 1 Muster aus der Regel müssen treffen.
  • Nutzt das Modul pe.
  • Prüft exportierte Funktionen oder den DLL-Namen.

Diese Regel im Browser testen

Legen Sie eine Datei ab, um sie mit dieser Regel und YARA-X als WebAssembly zu scannen. Nichts wird hochgeladen.

Datei hier ablegen oder klicken zum AuswählenLokal mit YARA-X gescannt. Dateien bis 200 MB.

Im Editor öffnen

Referenzen

Lizenz & Namensnennung

Autor: ditekSHen

Quell-Repository: ditekSHen detection @ e76c93dcde

Lizenz: BSD 2-Clause License (Repository-Lizenz)

Copyright-Hinweis: Copyright 2021 by ditekSHen (https://github.com/ditekshen/detection).

Originalregel

Gespiegelt über YARA Forge 20260927, das Regelnamen mit der Quelle präfixiert und normalisierte Meta-Felder ergänzt.

Regel-ID: d4f3b0cc-121e-5032-9721-1e2a86842fa5

Metadaten

snort_sid920264

Tags:FILE

Weitere Windealer-Regeln