Zum Inhalt springen

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Spectre

Detects Spectre infostealer

MalwareSpectreditekSHen 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 Spectre infostealer

Zugehörige Malware-Familie: Spectre.

Ziele: Windows-PE.

Sie definiert 7 Muster (7 Text, 0 Hex, 0 Regex).

Zusammenfassung aus den Metadaten und der Bedingung der Regel erzeugt.

Regelquelltext

malware-win-spectre.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Spectre : FILE
{
	meta:
		description = "Detects Spectre infostealer"
		author = "ditekSHen"
		id = "43b32900-8dff-5a95-bcff-d6bd17703476"
		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#L8109-L8124"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "ee041928ab5010fd5a06538f9a7cf9c72e44903fdb05f13b12362af0b326fd6f"
		score = 75
		quality = 75
		tags = "FILE"
		snort_sid = "920233-920234"

	strings:
		$s1 = "\\../../../json.h" wide
		$s2 = "static_cast<std::size_t>(index) < kCachedPowers.size()" fullword wide
		$s3 = " cmd.exe" fullword wide
		$s4 = "m_it.object_iterator != m_object->m_value.object->end()" fullword wide
		$h1 = "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:40.0) Gecko/20100101 Firefox/40.1" fullword wide
		$h2 = "----974767299852498929531610575" ascii wide
		$h3 = "Content-Disposition: form-data; name=\"file\"; filename=\"" fullword ascii

	condition:
		( uint16( 0 ) == 0x5a4d and ( ( all of ( $s* ) and 1 of ( $h* ) ) or ( all of ( $h* ) and 2 of ( $s* ) ) ) ) or ( 6 of them )
}

Strings (7 Muster)

BezeichnerTypWertModifikatoren
$s1Text"\\../../../json.h"wide
$s2Text"static_cast<std::size_t>(index) < kCachedPowers.size()"fullword wide
$s3Text" cmd.exe"fullword wide
$s4Text"m_it.object_iterator != m_object->m_value.object->end()"fullword wide
$h1Text"Mozilla/5.0 (Windows NT 6.1; WOW64; rv:40.0) Gecko/20100101 Firefox/40.1"fullword wide
$h2Text"----974767299852498929531610575"ascii wide
$h3Text"Content-Disposition: form-data; name=\"file\"; filename=\""fullword ascii

Bedingung

( uint16( 0 ) == 0x5a4d and ( ( all of ( $s* ) and 1 of ( $h* ) ) or ( all of ( $h* ) and 2 of ( $s* ) ) ) ) or ( 6 of them )

In Worten (Heuristik)

  • Die Datei muss mit „MZ“ beginnen — eine Windows-Programmdatei (PE).
  • Alle Muster aus ( $s* ) müssen treffen.
  • Alle Muster aus ( $h* ) müssen treffen.
  • Mindestens 1 Muster aus ( $h* ) müssen treffen.
  • Mindestens 2 Muster aus ( $s* ) müssen treffen.
  • Mindestens 6 Muster aus der Regel 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: 43b32900-8dff-5a95-bcff-d6bd17703476

Metadaten

snort_sid920233-920234

Tags:FILE