Saltar al contenido

YARA · ditekSHen detection

DITEKSHEN_MALWARE_JS_Koadicjs

Koadic post-exploitation framework JS payload

MalwareKoadicjsditekSHen detectionBSD 2-Clause LicenseCompila con YARA-X
Autor
ditekSHen
Fecha
2020-11-06
Modificada
2024-11-01
Puntuación / Calidad
75 / 75

Qué detecta esta regla

Koadic post-exploitation framework JS payload

Familia de malware asociada: Koadicjs.

Define 13 patrones (13 de texto, 0 hex, 0 regex).

Resumen generado a partir de los metadatos y la condición de la regla.

Código de la regla

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

Cadenas (13 patrones)

IdentificadorTipoValorModificadores
$s1texto"window.moveTo(-"ascii
$s2texto"window.onerror = function(sMsg, sUrl, sLine) { return false; }"fullword ascii
$s3texto"window.onfocus = function() { window.blur(); }"fullword ascii
$s4texto"window.resizeTo("ascii
$s5texto"window.blur();"fullword ascii
$hf1texto"<hta:application caption=\"no\" windowState=\"minimize\" showInTaskBar=\"no\""fullword ascii
$hf2texto"<hta:application caption=\"no\" showInTaskBar=\"no\" windowState=\"minimize\" navigable=\"no\" scroll=\"no\""
$ht1texto"<hta:application"ascii
$ht2texto"caption=\"no\""ascii
$ht3texto"showInTaskBar=\"no\""ascii
$ht4texto"windowState=\"minimize\""ascii
$ht5texto"navigable=\"no\""ascii
$ht6texto"scroll=\"no\""ascii

Condición

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

En palabras sencillas (Heurística)

  • Deben coincidir todos los patrones de ( $s* ).
  • Deben coincidir todos los patrones de ( $ht* ).
  • Deben coincidir al menos 1 patrones de ( $hf* ).

Prueba esta regla en tu navegador

Arrastra un archivo para escanearlo con esta regla usando YARA-X compilado a WebAssembly. No se sube nada.

Arrastra un archivo aquí o haz clic para elegirSe escanea en local con YARA-X. Archivos de hasta 200 MB.

Abrir en el editor

Referencias

Licencia y atribución

Autor: ditekSHen

Repositorio de origen: ditekSHen detection @ e76c93dcde

Licencia: BSD 2-Clause License (licencia del repositorio)

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

Regla original

Obtenida a través de YARA Forge 20260927, que añade a los nombres el prefijo de la fuente y campos meta normalizados.

Id de la regla: 8598d5cb-0486-52b0-a686-6bd014f35c44