Zum Inhalt springen

YARA · ditekSHen detection

DITEKSHEN_MALWARE_JS_Koadicjs

Koadic post-exploitation framework JS payload

MalwareKoadicjsditekSHen 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

Koadic post-exploitation framework JS payload

Zugehörige Malware-Familie: Koadicjs.

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

Zusammenfassung aus den Metadaten und der Bedingung der Regel erzeugt.

Regelquelltext

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* ) )
}

Strings (13 Muster)

BezeichnerTypWertModifikatoren
$s1Text"window.moveTo(-"ascii
$s2Text"window.onerror = function(sMsg, sUrl, sLine) { return false; }"fullword ascii
$s3Text"window.onfocus = function() { window.blur(); }"fullword ascii
$s4Text"window.resizeTo("ascii
$s5Text"window.blur();"fullword ascii
$hf1Text"<hta:application caption=\"no\" windowState=\"minimize\" showInTaskBar=\"no\""fullword ascii
$hf2Text"<hta:application caption=\"no\" showInTaskBar=\"no\" windowState=\"minimize\" navigable=\"no\" scroll=\"no\""
$ht1Text"<hta:application"ascii
$ht2Text"caption=\"no\""ascii
$ht3Text"showInTaskBar=\"no\""ascii
$ht4Text"windowState=\"minimize\""ascii
$ht5Text"navigable=\"no\""ascii
$ht6Text"scroll=\"no\""ascii

Bedingung

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

In Worten (Heuristik)

  • Alle Muster aus ( $s* ) müssen treffen.
  • Alle Muster aus ( $ht* ) müssen treffen.
  • Mindestens 1 Muster aus ( $hf* ) 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: 8598d5cb-0486-52b0-a686-6bd014f35c44