YARA · ditekSHen detection
DITEKSHEN_MALWARE_JS_Koadicjs
Koadic post-exploitation framework JS payload
- 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
rule DITEKSHEN_MALWARE_JS_Koadicjs
{
meta:
= "Koadic post-exploitation framework JS payload"
= "ditekSHen"
= "8598d5cb-0486-52b0-a686-6bd014f35c44"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L1188-L1208"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "689116f74996fecf4c16c224e8cd842ad5b5e989de2dfdf0debeb9a26d8a12fa"
= 75
= 75
= ""
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)
| Identificador | Tipo | Valor | Modificadores |
|---|---|---|---|
| $s1 | texto | "window.moveTo(-" | ascii |
| $s2 | texto | "window.onerror = function(sMsg, sUrl, sLine) { return false; }" | fullword ascii |
| $s3 | texto | "window.onfocus = function() { window.blur(); }" | fullword ascii |
| $s4 | texto | "window.resizeTo(" | ascii |
| $s5 | texto | "window.blur();" | fullword ascii |
| $hf1 | texto | "<hta:application caption=\"no\" windowState=\"minimize\" showInTaskBar=\"no\"" | fullword ascii |
| $hf2 | texto | "<hta:application caption=\"no\" showInTaskBar=\"no\" windowState=\"minimize\" navigable=\"no\" scroll=\"no\"" | |
| $ht1 | texto | "<hta:application" | ascii |
| $ht2 | texto | "caption=\"no\"" | ascii |
| $ht3 | texto | "showInTaskBar=\"no\"" | ascii |
| $ht4 | texto | "windowState=\"minimize\"" | ascii |
| $ht5 | texto | "navigable=\"no\"" | ascii |
| $ht6 | texto | "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.
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).
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
Reglas relacionadas
- MalwareditekSHen detection· ditekSHen· 2034-02-17
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06