Zum Inhalt springen

YARA · Signature Base (Florian Roth / Nextron)

SIGNATURE_BASE_SUSP_PS1_JAB_Pattern_Jun22_1

Detects suspicious UTF16 and Base64 encoded PowerShell code that starts with a $ sign and a single char variable

Verdächtig / HuntingSignature Base (Florian Roth / Nextron)Detection Rule License 1.1Kompiliert mit YARA-X
Autor
Florian Roth (Nextron Systems)
Datum
2022-06-10
Geändert
2023-12-05
Score / Qualität
70 / 85

Was diese Regel erkennt

Detects suspicious UTF16 and Base64 encoded PowerShell code that starts with a $ sign and a single char variable

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

Zusammenfassung aus den Metadaten und der Bedingung der Regel erzeugt.

Regelquelltext

susp-ps1-jab-pattern-jun22-1.yarDetection Rule License 1.1
rule SIGNATURE_BASE_SUSP_PS1_JAB_Pattern_Jun22_1 : FILE
{
	meta:
		description = "Detects suspicious UTF16 and Base64 encoded PowerShell code that starts with a $ sign and a single char variable"
		author = "Florian Roth (Nextron Systems)"
		id = "9ecca7d9-3b63-5615-a223-5efa1c53510e"
		date = "2022-06-10"
		modified = "2023-12-05"
		reference = "Internal Research"
		source_url = "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/yara/gen_susp_ps_jab.yar#L2-L29"
		license_url = "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/LICENSE"
		logic_hash = "9ad61dca5c945ed87642668e3b834b12c813af244437903a5abb5c69459b9456"
		score = 70
		quality = 85
		tags = "FILE"

	strings:
		$xc1 = { 4a 41 42 ?? 41 43 41 41 50 51 41 67 41 }
		$xc2 = { 4a 00 41 00 42 00 ?? 00 41 00 43 00 41 00 41 00 50 00 51 00 41 00 67 00 41 }
		$xc3 = { 4a 41 42 ?? 41 44 30 41 }
		$xc4 = { 4a 00 41 00 42 00 ?? 00 41 00 44 00 30 00 41 }

	condition:
		filesize < 30MB and 1 of them
}

Strings (4 Muster)

BezeichnerTypWertModifikatoren
$xc1Hex{ 4a 41 42 ?? 41 43 41 41 50 51 41 67 41 }
$xc2Hex{ 4a 00 41 00 42 00 ?? 00 41 00 43 00 41 00 41 00 50 00 51 00 41 00 67 00 41 }
$xc3Hex{ 4a 41 42 ?? 41 44 30 41 }
$xc4Hex{ 4a 00 41 00 42 00 ?? 00 41 00 44 00 30 00 41 }

Bedingung

filesize < 30MB and 1 of them

In Worten (Heuristik)

  • Die Datei muss kleiner als 30MB sein (eine günstige Grenze, die große Dateien ausschließt).
  • Mindestens 1 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

Lizenz & Namensnennung

Autor: Florian Roth (Nextron Systems)

Quell-Repository: Signature Base (Florian Roth / Nextron) @ 94a1c48d7a

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: 9ecca7d9-3b63-5615-a223-5efa1c53510e

Tags:FILE