Aller au contenu

YARA · ditekSHen detection

DITEKSHEN_MALWARE_JS_Koadicjs

Koadic post-exploitation framework JS payload

MalwareKoadicjsditekSHen detectionBSD 2-Clause LicenseCompile avec YARA-X
Auteur
ditekSHen
Date
2020-11-06
Modifiée
2024-11-01
Score / Qualité
75 / 75

Ce que détecte cette règle

Koadic post-exploitation framework JS payload

Famille de malware associée : Koadicjs.

Elle définit 13 motifs (13 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

malware-js-koadicjs.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_JS_Koadicjs
{
	meta:
		description = "Koadic post-exploitation framework JS payload"
		author = "ditekSHen"
		id = "8598d5cb-0486-52b0-a686-6bd014f35c44"
		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#L1188-L1208"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "689116f74996fecf4c16c224e8cd842ad5b5e989de2dfdf0debeb9a26d8a12fa"
		score = 75
		quality = 75
		tags = ""

	strings:
		$s1 = "window.moveTo(-" ascii
		$s2 = "window.onerror = function(sMsg, sUrl, sLine) { return false; }" fullword ascii
		$s3 = "window.onfocus = function() { window.blur(); }" fullword ascii
		$s4 = "window.resizeTo(" ascii
		$s5 = "window.blur();" fullword ascii
		$hf1 = "<hta:application caption=\"no\" windowState=\"minimize\" showInTaskBar=\"no\"" fullword ascii
		$hf2 = "<hta:application caption=\"no\" showInTaskBar=\"no\" windowState=\"minimize\" navigable=\"no\" scroll=\"no\""
		$ht1 = "<hta:application" ascii
		$ht2 = "caption=\"no\"" ascii
		$ht3 = "showInTaskBar=\"no\"" ascii
		$ht4 = "windowState=\"minimize\"" ascii
		$ht5 = "navigable=\"no\"" ascii
		$ht6 = "scroll=\"no\"" ascii

	condition:
		all of ( $s* ) and ( 1 of ( $hf* ) or all of ( $ht* ) )
}

Chaînes (13 motifs)

IdentifiantTypeValeurModificateurs
$s1texte"window.moveTo(-"ascii
$s2texte"window.onerror = function(sMsg, sUrl, sLine) { return false; }"fullword ascii
$s3texte"window.onfocus = function() { window.blur(); }"fullword ascii
$s4texte"window.resizeTo("ascii
$s5texte"window.blur();"fullword ascii
$hf1texte"<hta:application caption=\"no\" windowState=\"minimize\" showInTaskBar=\"no\""fullword ascii
$hf2texte"<hta:application caption=\"no\" showInTaskBar=\"no\" windowState=\"minimize\" navigable=\"no\" scroll=\"no\""
$ht1texte"<hta:application"ascii
$ht2texte"caption=\"no\""ascii
$ht3texte"showInTaskBar=\"no\""ascii
$ht4texte"windowState=\"minimize\""ascii
$ht5texte"navigable=\"no\""ascii
$ht6texte"scroll=\"no\""ascii

Condition

all of ( $s* ) and ( 1 of ( $hf* ) or all of ( $ht* ) )

En clair (Heuristique)

  • Tous les motifs de ( $s* ) doivent être trouvés.
  • Tous les motifs de ( $ht* ) doivent être trouvés.
  • Au moins 1 motifs de ( $hf* ) doivent être trouvés.

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 : ditekSHen

Dépôt source : ditekSHen detection @ e76c93dcde

Licence : BSD 2-Clause License (licence du dépôt)

Mention de copyright : Copyright 2021 by ditekSHen (https://github.com/ditekshen/detection).

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: 8598d5cb-0486-52b0-a686-6bd014f35c44