Zum Inhalt springen

YARA · SEKOIA.IO Community

SEKOIA_Infostealer_Win_Xehook_Str

Finds XehookStealer standalone samples based on specific strings.

GenerischSEKOIA.IO CommunityDetection Rule License 1.1Kompiliert mit YARA-X
Autor
Sekoia.io
Datum
2024-06-12
Geändert
2024-12-19
Score / Qualität
75 / 80

Was diese Regel erkennt

Finds XehookStealer standalone samples based on specific strings.

Ziele: Windows-PE.

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

Zusammenfassung aus den Metadaten und der Bedingung der Regel erzeugt.

Regelquelltext

infostealer-win-xehook-str.yarDetection Rule License 1.1
rule SEKOIA_Infostealer_Win_Xehook_Str : FILE
{
	meta:
		description = "Finds XehookStealer standalone samples based on specific strings."
		author = "Sekoia.io"
		id = "fa76988d-f0a2-4fc2-a122-c104fd585f34"
		date = "2024-06-12"
		modified = "2024-12-19"
		reference = "https://github.com/SEKOIA-IO/Community"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/infostealer_win_xehook_str.yar#L1-L32"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "543ec3b523e5f00d3c285e453c8d11f3d5c7778b2986b7fe03f2d62ff18c2778"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$str01 = "xehook" ascii
		$str02 = "Classes.LogRecord" ascii
		$str03 = "__  _____| |__   ___   ___ | | __" wide
		$str04 = "\\ \\/ / _ \\ '_ \\ / _ \\ / _ \\| |/ /" wide
		$str05 = " >  <  __/ | | | (_) | (_) |   <" wide
		$str06 = "/_/\\_\\___|_| |_|\\___/ \\___/|_|\\_\\" wide
		$str07 = "https://t.me/xehook" wide
		$str08 = "About PC.txt" wide
		$str09 = "Browser: {4} v{5} ({6})" wide
		$str10 = "http://ip-api.com/json/?fields=11827" wide
		$str11 = "{0}gate.php?id={1}&build={2}&passwords={3}&cookies={4}" wide
		$str12 = "getjson.php?id=" wide
		$com01 = "CheckRemoteDebuggerPresent" ascii
		$com02 = "get_CurrentThread" ascii
		$com03 = "get_InstalledInputLanguages" ascii
		$com04 = "get_Ticks" ascii
		$com05 = "System.Security.Cryptography" ascii

	condition:
		uint16( 0 ) == 0x5A4D and 2 of ( $str* ) and 4 of ( $com* )
}

Strings (17 Muster)

BezeichnerTypWertModifikatoren
$str01Text"xehook"ascii
$str02Text"Classes.LogRecord"ascii
$str03Text"__ _____| |__ ___ ___ | | __"wide
$str04Text"\\ \\/ / _ \\ '_ \\ / _ \\ / _ \\| |/ /"wide
$str05Text" > < __/ | | | (_) | (_) | <"wide
$str06Text"/_/\\_\\___|_| |_|\\___/ \\___/|_|\\_\\"wide
$str07Text"https://t.me/xehook"wide
$str08Text"About PC.txt"wide
$str09Text"Browser: {4} v{5} ({6})"wide
$str10Text"http://ip-api.com/json/?fields=11827"wide
$str11Text"{0}gate.php?id={1}&build={2}&passwords={3}&cookies={4}"wide
$str12Text"getjson.php?id="wide
$com01Text"CheckRemoteDebuggerPresent"ascii
$com02Text"get_CurrentThread"ascii
$com03Text"get_InstalledInputLanguages"ascii
$com04Text"get_Ticks"ascii
$com05Text"System.Security.Cryptography"ascii

Bedingung

uint16( 0 ) == 0x5A4D and 2 of ( $str* ) and 4 of ( $com* )

In Worten (Heuristik)

  • Die Datei muss mit „MZ“ beginnen — eine Windows-Programmdatei (PE).
  • Mindestens 2 Muster aus ( $str* ) müssen treffen.
  • Mindestens 4 Muster aus ( $com* ) 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: Sekoia.io

Quell-Repository: SEKOIA.IO Community @ a438a5901a

Lizenz: Detection Rule License 1.1 (Repository-Lizenz)

Originalregel

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

Regel-ID: fa76988d-f0a2-4fc2-a122-c104fd585f34

Metadaten

version1.0
classificationTLP:CLEAR

Tags:FILE