YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Jssloader
Detects JSSLoader RAT/backdoor
- Autor
- ditekSHen
- Fecha
- 2020-11-06
- Modificada
- 2024-11-01
- Puntuación / Calidad
- 75 / 73
Qué detecta esta regla
Detects JSSLoader RAT/backdoor
Familia de malware asociada: Jssloader.
Objetivos: PE de Windows.
Define 23 patrones (23 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_Win_Jssloader : FILE
{
meta:
= "Detects JSSLoader RAT/backdoor"
= "ditekSHen"
= "ef710c21-5c64-513e-b882-b5768478976e"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L3722-L3752"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "91764dabfb40cb51914110de229ddb00cd565078fef83c825f7a86fa502fda37"
= 75
= 73
= "FILE"
strings:
$cmd1 = "Cmd_UPDATE" fullword ascii
$cmd2 = "Cmd_IDLE" fullword ascii
$cmd3 = "Cmd_EXE" fullword ascii
$cmd4 = "Cmd_VBS" fullword ascii
$cmd5 = "Cmd_JS" fullword ascii
$cmd6 = "Cmd_PWS" fullword ascii
$cmd7 = "Cmd_RAT" fullword ascii
$cmd8 = "Cmd_UNINST" fullword ascii
$cmd9 = "Cmd_RunDll" fullword ascii
$s1 = "ANSWER_OK" fullword ascii
$s2 = "GatherDFiles" ascii
$s3 = "CommandCd" fullword ascii
$s4 = "URL_GetCmd" fullword ascii
$s5 = "\"host\": \"{0}\", \"domain\": \"{1}\", \"user\": \"{2}\"" wide
$s6 = "pc_dns_host_name" wide
$s7 = "\"adinfo\": { \"adinformation\":" wide
$e1 = "//e:vbscript" wide
$e2 = "//e:jscript" wide
$e3 = "/c rundll32.exe" wide
$e4 = "/C powershell" wide
$e5 = "C:\\Windows\\System32\\cmd.exe" wide
$e6 = "echo del /f" wide
$e7 = "AT.U() {0}. format" wide
condition:
uint16( 0 ) == 0x5a4d and ( 5 of ( $cmd* ) or 5 of ( $s* ) or all of ( $e* ) or 7 of them )
}
Cadenas (23 patrones)
| Identificador | Tipo | Valor | Modificadores |
|---|---|---|---|
| $cmd1 | texto | "Cmd_UPDATE" | fullword ascii |
| $cmd2 | texto | "Cmd_IDLE" | fullword ascii |
| $cmd3 | texto | "Cmd_EXE" | fullword ascii |
| $cmd4 | texto | "Cmd_VBS" | fullword ascii |
| $cmd5 | texto | "Cmd_JS" | fullword ascii |
| $cmd6 | texto | "Cmd_PWS" | fullword ascii |
| $cmd7 | texto | "Cmd_RAT" | fullword ascii |
| $cmd8 | texto | "Cmd_UNINST" | fullword ascii |
| $cmd9 | texto | "Cmd_RunDll" | fullword ascii |
| $s1 | texto | "ANSWER_OK" | fullword ascii |
| $s2 | texto | "GatherDFiles" | ascii |
| $s3 | texto | "CommandCd" | fullword ascii |
| $s4 | texto | "URL_GetCmd" | fullword ascii |
| $s5 | texto | "\"host\": \"{0}\", \"domain\": \"{1}\", \"user\": \"{2}\"" | wide |
| $s6 | texto | "pc_dns_host_name" | wide |
| $s7 | texto | "\"adinfo\": { \"adinformation\":" | wide |
| $e1 | texto | "//e:vbscript" | wide |
| $e2 | texto | "//e:jscript" | wide |
| $e3 | texto | "/c rundll32.exe" | wide |
| $e4 | texto | "/C powershell" | wide |
| $e5 | texto | "C:\\Windows\\System32\\cmd.exe" | wide |
| $e6 | texto | "echo del /f" | wide |
| $e7 | texto | "AT.U() {0}. format" | wide |
Condición
uint16( 0 ) == 0x5a4d and ( 5 of ( $cmd* ) or 5 of ( $s* ) or all of ( $e* ) or 7 of them )En palabras sencillas (Heurística)
- El archivo debe empezar por «MZ»: un ejecutable de Windows (PE).
- Deben coincidir todos los patrones de ( $e* ).
- Deben coincidir al menos 5 patrones de ( $cmd* ).
- Deben coincidir al menos 5 patrones de ( $s* ).
- Deben coincidir al menos 7 patrones de la regla.
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: ef710c21-5c64-513e-b882-b5768478976e
Etiquetas:FILE
Reglas relacionadas
- MalwareMalpedia signator rules· Felix Bilstein - yara-signator at cocacoding dot com· 2026-05-04
- ARKBIRD_SOLG_MAL_Jssloader_Jun_2021_1Solo metadatosMalwareArkbird SOLG (DailyIOC)· Arkbird_SOLG· 2021-06-04
- 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