Aller au contenu

YARA · SEKOIA.IO Community

SEKOIA_Koiloader_Powershell_Reflective_Loading

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

MalwareKoiloaderSEKOIA.IO CommunityDetection Rule License 1.1Compile avec YARA-X
Auteur
Sekoia.io
Date
2024-03-20
Modifiée
2024-12-19
Score / Qualité
75 / 80

Ce que détecte cette règle

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

Famille de malware associée : Koiloader.

Elle définit 5 motifs (5 texte, 0 hex, 0 regex).

Résumé généré à partir des métadonnées et de la condition de la règle.

Source de la règle

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
}

Chaînes (5 motifs)

IdentifiantTypeValeurModificateurs
$s1texte"[Byte[]]$image"ascii fullword
$s2texte"function GDT"
$s3texte"function GPA"
$s4texte"GDT @([IntPtr], [UInt32], [IntPtr], [IntPtr], [UInt32], [IntPtr]) ([IntPtr])"
$s5texte"$marshal::GetDelegateForFunctionPointer($CTAddr, $CTDeleg)"

Condition

$s1 at 0 and 4 of them

En clair (Heuristique)

  • Au moins 4 motifs de la règle doivent être trouvés.
  • Le motif $s1 doit se trouver à l’offset 0.

Tester cette règle dans votre navigateur

Déposez un fichier pour le scanner avec cette règle grâce à YARA-X compilé en WebAssembly. Rien n’est envoyé.

Déposez un fichier ici ou cliquez pour choisirScanné localement avec YARA-X. Fichiers jusqu’à 200 Mo.

Ouvrir dans l’éditeur

Références

Licence et attribution

Auteur : Sekoia.io

Dépôt source : SEKOIA.IO Community @ a438a5901a

Licence : Detection Rule License 1.1 (licence du dépôt)

Règle d’origine

Reprise via YARA Forge 20260927, qui préfixe les noms de règles par la source et ajoute des champs meta normalisés.

Identifiant de règle: 9bbe4cea-3e64-4377-bf93-def9fb629734

Métadonnées

version1.0
classificationTLP:CLEAR

Tags:FILE

Plus de règles Koiloader