Zum Inhalt springen

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Dlinjector01

Detects specific downloader injector shellcode

MalwareDlinjector01ditekSHen 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 specific downloader injector shellcode

Zugehörige Malware-Familie: Dlinjector01.

Ziele: Windows-PE.

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

Zusammenfassung aus den Metadaten und der Bedingung der Regel erzeugt.

Regelquelltext

malware-win-dlinjector01.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Dlinjector01 : FILE
{
	meta:
		description = "Detects specific downloader injector shellcode"
		author = "ditekSHen"
		id = "c5e0946c-3e15-5ebc-b1b5-3f00566dc5cd"
		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#L5995-L6015"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "5c13af5fdbb2e8a27103d9502126a82d0bff15d9a269b22e4279b5b459d50e2d"
		score = 75
		quality = 75
		tags = "FILE"

	strings:
		$s1 = "process call create \"%s\"" ascii wide
		$s2 = "\\REGISTRY\\MACHINE\\System\\CurrentControlSet\\Enum\\" ascii wide
		$s3 = "%systemroot%\\system32\\ntdll.dll" ascii wide
		$s4 = "qemu-ga.exe" ascii wide
		$s5 = "prl_tools.exe" ascii wide
		$s6 = "vboxservice.exe" ascii wide
		$o1 = { 75 04 74 02 38 6e 8b 34 24 83 c4 04 eb 0a 08 81 }
		$o2 = { 16 f8 f7 ba f0 3d 87 c7 95 13 b7 64 22 be e1 59 }
		$o3 = { 8b 0c 24 83 c4 04 eb 05 ea f2 eb ef 05 e8 ad fe }
		$o4 = { eb 05 1d 51 eb f5 ce e8 80 fd ff ff 77 a1 f4 cd }
		$o5 = { eb 05 6e 33 eb f5 73 e8 64 f6 ff ff 77 a1 f4 77 }
		$o6 = { 59 eb 05 fd 98 eb f4 50 e8 d5 f5 ff ff 3b b9 00 }
		$o7 = "bYkoDA7G" fullword ascii

	condition:
		( uint16( 0 ) == 0x5a4d and all of ( $o* ) ) or ( all of ( $s* ) )
}

Strings (13 Muster)

BezeichnerTypWertModifikatoren
$s1Text"process call create \"%s\""ascii wide
$s2Text"\\REGISTRY\\MACHINE\\System\\CurrentControlSet\\Enum\\"ascii wide
$s3Text"%systemroot%\\system32\\ntdll.dll"ascii wide
$s4Text"qemu-ga.exe"ascii wide
$s5Text"prl_tools.exe"ascii wide
$s6Text"vboxservice.exe"ascii wide
$o1Hex{ 75 04 74 02 38 6e 8b 34 24 83 c4 04 eb 0a 08 81 }
$o2Hex{ 16 f8 f7 ba f0 3d 87 c7 95 13 b7 64 22 be e1 59 }
$o3Hex{ 8b 0c 24 83 c4 04 eb 05 ea f2 eb ef 05 e8 ad fe }
$o4Hex{ eb 05 1d 51 eb f5 ce e8 80 fd ff ff 77 a1 f4 cd }
$o5Hex{ eb 05 6e 33 eb f5 73 e8 64 f6 ff ff 77 a1 f4 77 }
$o6Hex{ 59 eb 05 fd 98 eb f4 50 e8 d5 f5 ff ff 3b b9 00 }
$o7Text"bYkoDA7G"fullword ascii

Bedingung

( uint16( 0 ) == 0x5a4d and all of ( $o* ) ) or ( all of ( $s* ) )

In Worten (Heuristik)

  • Die Datei muss mit „MZ“ beginnen — eine Windows-Programmdatei (PE).
  • Alle Muster aus ( $o* ) müssen treffen.
  • Alle Muster aus ( $s* ) 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: c5e0946c-3e15-5ebc-b1b5-3f00566dc5cd

Tags:FILE