Zum Inhalt springen

YARA · Signature Base (Florian Roth / Nextron)

SIGNATURE_BASE_MSIL_SUSP_OBFUSC_Xorstringsnet

Detects XorStringsNET string encryption, and other obfuscators derived from it

Verdächtig / HuntingSignature Base (Florian Roth / Nextron)Detection Rule License 1.1Kompiliert mit YARA-X
Autor
dr4k0nia
Datum
2023-03-26
Geändert
2023-12-05
Score / Qualität
75 / 85

Was diese Regel erkennt

Detects XorStringsNET string encryption, and other obfuscators derived from it

Ziele: Windows-PE.

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

Zusammenfassung aus den Metadaten und der Bedingung der Regel erzeugt.

Regelquelltext

msil-susp-obfusc-xorstringsnet.yarDetection Rule License 1.1
rule SIGNATURE_BASE_MSIL_SUSP_OBFUSC_Xorstringsnet : FILE
{
	meta:
		description = "Detects XorStringsNET string encryption, and other obfuscators derived from it"
		author = "dr4k0nia"
		id = "f0724ca6-4bfe-5b88-9396-a58aa7461fd6"
		date = "2023-03-26"
		modified = "2023-12-05"
		reference = "https://github.com/dr4k0nia/yara-rules"
		source_url = "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/yara/gen_net_xorstrings.yar#L2-L27"
		license_url = "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/LICENSE"
		logic_hash = "6d023a80bd8f5709721c3ace8a7230b847ca4bd2a1aff502a25333ffc8bf75ca"
		score = 75
		quality = 85
		tags = "FILE"
		version = "1.0"

	strings:
		$pattern = { 06 1E 58 07 8E 69 FE 17 }
		$a1 = "_CorDllMain" ascii
		$a2 = "_CorExeMain" ascii
		$a3 = "mscorlib" ascii fullword
		$a4 = ".cctor" ascii fullword
		$a5 = "System.Private.Corlib" ascii
		$a6 = "<Module>" ascii fullword
		$a7 = "<PrivateImplementationsDetails{" ascii

	condition:
		uint16( 0 ) == 0x5a4d and filesize < 25MB and $pattern and 2 of ( $a* )
}

Strings (8 Muster)

BezeichnerTypWertModifikatoren
$patternHex{ 06 1E 58 07 8E 69 FE 17 }
$a1Text"_CorDllMain"ascii
$a2Text"_CorExeMain"ascii
$a3Text"mscorlib"ascii fullword
$a4Text".cctor"ascii fullword
$a5Text"System.Private.Corlib"ascii
$a6Text"<Module>"ascii fullword
$a7Text"<PrivateImplementationsDetails{"ascii

Bedingung

uint16( 0 ) == 0x5a4d and filesize < 25MB and $pattern and 2 of ( $a* )

In Worten (Heuristik)

  • Die Datei muss mit „MZ“ beginnen — eine Windows-Programmdatei (PE).
  • Die Datei muss kleiner als 25MB sein (eine günstige Grenze, die große Dateien ausschließt).
  • Mindestens 2 Muster aus ( $a* ) müssen treffen.
  • Muster $pattern muss vorhanden sein.

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: dr4k0nia

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: f0724ca6-4bfe-5b88-9396-a58aa7461fd6

Metadaten

version1.0

Tags:FILE