Zum Inhalt springen

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Solarmarker

Detects SolarMarker

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

Was diese Regel erkennt

Detects SolarMarker

Zugehörige Malware-Familie: Solarmarker.

Ziele: Windows-PE.

Sie definiert 11 Muster (10 Text, 1 Hex, 0 Regex).

Zusammenfassung aus den Metadaten und der Bedingung der Regel erzeugt.

Regelquelltext

malware-win-solarmarker.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Solarmarker : FILE
{
	meta:
		description = "Detects SolarMarker"
		author = "ditekSHen"
		id = "78c2f739-76b2-5a80-8b9a-6c677d578eaa"
		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#L10727-L10745"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "84182c8948c2f40439cd932885ae8b88bb677ecc9fba366f22d30e13dc4ffb68"
		score = 75
		quality = 75
		tags = "FILE"

	strings:
		$x1 = "token_type" fullword ascii
		$x2 = "request_data" fullword ascii
		$x3 = "request_timeout" fullword ascii
		$x4 = { 74 6f 6b 65 6e 73 00 66 72 6f 6d 00 74 6f 00 73 5f (66|72) }
		$s1 = "set_UseShellExecute" fullword ascii
		$s2 = "<Select>b__0" fullword ascii
		$s3 = "<get>b__e" fullword ascii
		$s4 = "<get>b__10" fullword ascii
		$s5 = "<get>b__f" fullword ascii
		$s6 = "<set>b__0" fullword ascii
		$s7 = "<set>b__1" fullword ascii

	condition:
		uint16( 0 ) == 0x5a4d and ( all of ( $x* ) and 4 of ( $s* ) )
}

Strings (11 Muster)

BezeichnerTypWertModifikatoren
$x1Text"token_type"fullword ascii
$x2Text"request_data"fullword ascii
$x3Text"request_timeout"fullword ascii
$x4Hex{ 74 6f 6b 65 6e 73 00 66 72 6f 6d 00 74 6f 00 73 5f (66|72) }
$s1Text"set_UseShellExecute"fullword ascii
$s2Text"<Select>b__0"fullword ascii
$s3Text"<get>b__e"fullword ascii
$s4Text"<get>b__10"fullword ascii
$s5Text"<get>b__f"fullword ascii
$s6Text"<set>b__0"fullword ascii
$s7Text"<set>b__1"fullword ascii

Bedingung

uint16( 0 ) == 0x5a4d and ( all of ( $x* ) and 4 of ( $s* ) )

In Worten (Heuristik)

  • Die Datei muss mit „MZ“ beginnen — eine Windows-Programmdatei (PE).
  • Alle Muster aus ( $x* ) müssen treffen.
  • Mindestens 4 Muster aus ( $s* ) müssen treffen.

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: 78c2f739-76b2-5a80-8b9a-6c677d578eaa

Tags:FILE

Weitere Solarmarker-Regeln