Zum Inhalt springen

YARA · Cod3nym detection-rules

COD3NYM_MAL_NET_Niximports_Loader_Jan24

Detects open-source NixImports .NET malware loader. A stealthy loader using dynamic import resolving to evade static detection

MalwareCod3nym detection-rulesDetection Rule License 1.1Kompiliert mit YARA-X
Autor
Jonathan Peters
Datum
2024-01-12
Score / Qualität
80 / 80

Was diese Regel erkennt

Detects open-source NixImports .NET malware loader. A stealthy loader using dynamic import resolving to evade static detection

Ziele: Windows-PE.

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

Zusammenfassung aus den Metadaten und der Bedingung der Regel erzeugt.

Regelquelltext

mal-net-niximports-loader-jan24.yarDetection Rule License 1.1
rule COD3NYM_MAL_NET_Niximports_Loader_Jan24 : FILE
{
	meta:
		description = "Detects open-source NixImports .NET malware loader. A stealthy loader using dynamic import resolving to evade static detection"
		author = "Jonathan Peters"
		id = "f36ad127-4c4b-5b7e-a13c-bfb9d222a438"
		date = "2024-01-12"
		modified = "2024-01-12"
		reference = "https://github.com/dr4k0nia/NixImports/tree/master"
		source_url = "https://github.com/cod3nym/detection-rules//blob/86a04c4594cb48895192aad4af164f21f568c136/yara/dotnet/mal/mal_net_niximports_loader.yar#L1-L22"
		license_url = "https://github.com/cod3nym/detection-rules//blob/86a04c4594cb48895192aad4af164f21f568c136/LICENSE.md"
		hash = "dd3f22871879b0bc4990c96d1de957848c7ed0714635bb036c73d8a989fb0b39"
		logic_hash = "e41d7f4cb46aa0baa87d3024e0550efe5058ca49d908bbd34197431c7c054e58"
		score = 80
		quality = 80
		tags = "FILE"

	strings:
		$op1 = { 1F 0A 64 06 1F 11 62 60 }
		$op2 = { 03 20 4D 5A 90 00 94 4B 2A }
		$op3 = { 20 DE 7A 1F F3 20 F7 1B 18 BC }
		$op4 = { 20 CE 1F BE 70 20 DF 1F 3E F8 14 }
		$sa1 = "OffsetToStringData" ascii
		$sa2 = "GetRuntimeMethods" ascii
		$sa3 = "netstandard" ascii

	condition:
		uint16( 0 ) == 0x5a4d and all of ( $sa* ) and 2 of ( $op* )
}

Strings (7 Muster)

BezeichnerTypWertModifikatoren
$op1Hex{ 1F 0A 64 06 1F 11 62 60 }
$op2Hex{ 03 20 4D 5A 90 00 94 4B 2A }
$op3Hex{ 20 DE 7A 1F F3 20 F7 1B 18 BC }
$op4Hex{ 20 CE 1F BE 70 20 DF 1F 3E F8 14 }
$sa1Text"OffsetToStringData"ascii
$sa2Text"GetRuntimeMethods"ascii
$sa3Text"netstandard"ascii

Bedingung

uint16( 0 ) == 0x5a4d and all of ( $sa* ) and 2 of ( $op* )

In Worten (Heuristik)

  • Die Datei muss mit „MZ“ beginnen — eine Windows-Programmdatei (PE).
  • Alle Muster aus ( $sa* ) müssen treffen.
  • Mindestens 2 Muster aus ( $op* ) 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

Proben-Hashes

Hashes der Proben, die der Autor in den Metadaten der Regel nennt (in Ihrer Threat-Intelligence-Plattform nachschlagen).

  • dd3f22871879b0bc4990c96d1de957848c7ed0714635bb036c73d8a989fb0b39

Lizenz & Namensnennung

Autor: Jonathan Peters

Quell-Repository: Cod3nym detection-rules @ 86a04c4594

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: f36ad127-4c4b-5b7e-a13c-bfb9d222a438

Tags:FILE