Zum Inhalt springen

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Shellcodedlei

Detects shellcode downloader, executer, injector

MalwareShellcodedleiditekSHen 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 shellcode downloader, executer, injector

Zugehörige Malware-Familie: Shellcodedlei.

Ziele: Windows-PE.

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

Zusammenfassung aus den Metadaten und der Bedingung der Regel erzeugt.

Regelquelltext

malware-win-shellcodedlei.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Shellcodedlei : FILE
{
	meta:
		description = "Detects shellcode downloader, executer, injector"
		author = "ditekSHen"
		id = "62a4f141-87f8-596a-adf6-5bf9a50c9e91"
		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#L7287-L7304"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "064c17427ae6b33ffb09a14abcb924d20ead44250e8bd03070bf40869f1c812e"
		score = 75
		quality = 75
		tags = "FILE"

	strings:
		$s1 = "PPidSpoof" fullword ascii
		$s2 = "ProcHollowing" fullword ascii
		$s3 = "CreateProcess" fullword ascii
		$s4 = "DynamicCodeInject" fullword ascii
		$s5 = "PPIDDynCodeInject" fullword ascii
		$s6 = "MapAndStart" fullword ascii
		$s7 = "PPIDAPCInject" fullword ascii
		$s8 = "PPIDDLLInject" fullword ascii
		$s9 = "CopyShellcode" fullword ascii
		$s10 = "GetEntryFromBuffer" fullword ascii

	condition:
		uint16( 0 ) == 0x5a4d and filesize < 100KB and 5 of ( $s* )
}

Strings (10 Muster)

BezeichnerTypWertModifikatoren
$s1Text"PPidSpoof"fullword ascii
$s2Text"ProcHollowing"fullword ascii
$s3Text"CreateProcess"fullword ascii
$s4Text"DynamicCodeInject"fullword ascii
$s5Text"PPIDDynCodeInject"fullword ascii
$s6Text"MapAndStart"fullword ascii
$s7Text"PPIDAPCInject"fullword ascii
$s8Text"PPIDDLLInject"fullword ascii
$s9Text"CopyShellcode"fullword ascii
$s10Text"GetEntryFromBuffer"fullword ascii

Bedingung

uint16( 0 ) == 0x5a4d and filesize < 100KB and 5 of ( $s* )

In Worten (Heuristik)

  • Die Datei muss mit „MZ“ beginnen — eine Windows-Programmdatei (PE).
  • Die Datei muss kleiner als 100KB sein (eine günstige Grenze, die große Dateien ausschließt).
  • Mindestens 5 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: 62a4f141-87f8-596a-adf6-5bf9a50c9e91

Tags:FILE