Zum Inhalt springen

YARA · SEKOIA.IO Community

SEKOIA_Koiloader_Powershell_Reflective_Loading

Powershell script loading service.exe (related to Koi Loader)

MalwareKoiloaderSEKOIA.IO CommunityDetection Rule License 1.1Kompiliert mit YARA-X
Autor
Sekoia.io
Datum
2024-03-20
Geändert
2024-12-19
Score / Qualität
75 / 80

Was diese Regel erkennt

Powershell script loading service.exe (related to Koi Loader)

Zugehörige Malware-Familie: Koiloader.

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

Zusammenfassung aus den Metadaten und der Bedingung der Regel erzeugt.

Regelquelltext

koiloader-powershell-reflective-loading.yarDetection Rule License 1.1
rule SEKOIA_Koiloader_Powershell_Reflective_Loading : FILE
{
	meta:
		description = "Powershell script loading service.exe (related to Koi Loader)"
		author = "Sekoia.io"
		id = "9bbe4cea-3e64-4377-bf93-def9fb629734"
		date = "2024-03-20"
		modified = "2024-12-19"
		reference = "https://github.com/SEKOIA-IO/Community"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/koiloader_powershell_reflective_loading.yar#L1-L19"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "27deec01027a73129c6c8057eff1b48190c89ac18dcd7c390fc177d82a897290"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$s1 = "[Byte[]]$image" ascii fullword
		$s2 = "function GDT"
		$s3 = "function GPA"
		$s4 = "GDT @([IntPtr], [UInt32], [IntPtr], [IntPtr], [UInt32], [IntPtr]) ([IntPtr])"
		$s5 = "$marshal::GetDelegateForFunctionPointer($CTAddr, $CTDeleg)"

	condition:
		$s1 at 0 and 4 of them
}

Strings (5 Muster)

BezeichnerTypWertModifikatoren
$s1Text"[Byte[]]$image"ascii fullword
$s2Text"function GDT"
$s3Text"function GPA"
$s4Text"GDT @([IntPtr], [UInt32], [IntPtr], [IntPtr], [UInt32], [IntPtr]) ([IntPtr])"
$s5Text"$marshal::GetDelegateForFunctionPointer($CTAddr, $CTDeleg)"

Bedingung

$s1 at 0 and 4 of them

In Worten (Heuristik)

  • Mindestens 4 Muster aus der Regel müssen treffen.
  • Muster $s1 muss an Offset 0 stehen.

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: Sekoia.io

Quell-Repository: SEKOIA.IO Community @ a438a5901a

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: 9bbe4cea-3e64-4377-bf93-def9fb629734

Metadaten

version1.0
classificationTLP:CLEAR

Tags:FILE

Weitere Koiloader-Regeln