YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Klingonrat
Detects KlingonRAT
- Autor
- ditekSHen
- Fecha
- 2020-11-06
- Modificada
- 2024-11-01
- Puntuación / Calidad
- 75 / 75
Qué detecta esta regla
Detects KlingonRAT
Familia de malware asociada: Klingonrat.
Objetivos: PE de Windows.
Define 15 patrones (15 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_Klingonrat : FILE
{
meta:
= "Detects KlingonRAT"
= "ditekSHen"
= "bea50bce-b38c-50a0-902a-1014615bd9b8"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L6405-L6427"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "2abfbfc1b67f931f15bfdfd2cd4ba7821e62eb8c518bbc04629c0dd694bbd9c1"
= 75
= 75
= "FILE"
strings:
$go = "Go build ID:" ascii
$s1 = "/UCRelease/src/client/uac/once/"
$s2 = "%T\\AppData\\Local\\Windows Update\\"
$s3 = "%TSoftware\\Microsoft\\Windows NT\\CurrentVersion\\Image File Execution Options\\"
$s4 = "wmic /namespace:'\\\\root\\subscription' PATH"
$s5 = "C:\\Windows\\System32\\fodhelper.exeCaption,ParentProcessId,ProcessId"
$s6 = "ldpro.exelsass.exeluall.exeluspt.exe"
$s7 = "scangui.exedeps/lsass.exeetrustcipe.exefile"
$s8 = "alogserv.exeaplica32.exeapvxdwin.exeatro55en.exeautodown.exeavconsol.exeavgserv9.exeavkwctl9.exeavltmain.exeavpdos32.exeavsynmgr.exeavwupd32.exeavwupsrv.exe"
$c1 = "%s/keyLogger?machineId=%s" ascii
$c2 = "%s/stealer?machineId=%s" ascii
$c3 = "%s/lsass?machineId=%s" ascii
$c4 = "%s/logger?machineId=%s" ascii
$c5 = "%s/machineInfo?machineId=%s" ascii
$c6 = "failurehttps://%s:%d/botif-modified-sinceillegal" ascii
condition:
uint16( 0 ) == 0x5a4d and ( $go ) and ( 3 of ( $c* ) or 5 of ( $s* ) or ( 3 of ( $s* ) and 1 of ( $c* ) ) )
}
Cadenas (15 patrones)
| Identificador | Tipo | Valor | Modificadores |
|---|---|---|---|
| $go | texto | "Go build ID:" | ascii |
| $s1 | texto | "/UCRelease/src/client/uac/once/" | |
| $s2 | texto | "%T\\AppData\\Local\\Windows Update\\" | |
| $s3 | texto | "%TSoftware\\Microsoft\\Windows NT\\CurrentVersion\\Image File Execution Options\\" | |
| $s4 | texto | "wmic /namespace:'\\\\root\\subscription' PATH" | |
| $s5 | texto | "C:\\Windows\\System32\\fodhelper.exeCaption,ParentProcessId,ProcessId" | |
| $s6 | texto | "ldpro.exelsass.exeluall.exeluspt.exe" | |
| $s7 | texto | "scangui.exedeps/lsass.exeetrustcipe.exefile" | |
| $s8 | texto | "alogserv.exeaplica32.exeapvxdwin.exeatro55en.exeautodown.exeavconsol.exeavgserv9.exeavkwctl9.exeavltmain.exeavpdos32.exeavsynmgr.exeavwupd32.exeavwupsrv.exe" | |
| $c1 | texto | "%s/keyLogger?machineId=%s" | ascii |
| $c2 | texto | "%s/stealer?machineId=%s" | ascii |
| $c3 | texto | "%s/lsass?machineId=%s" | ascii |
| $c4 | texto | "%s/logger?machineId=%s" | ascii |
| $c5 | texto | "%s/machineInfo?machineId=%s" | ascii |
| $c6 | texto | "failurehttps://%s:%d/botif-modified-sinceillegal" | ascii |
Condición
uint16( 0 ) == 0x5a4d and ( $go ) and ( 3 of ( $c* ) or 5 of ( $s* ) or ( 3 of ( $s* ) and 1 of ( $c* ) ) )En palabras sencillas (Heurística)
- El archivo debe empezar por «MZ»: un ejecutable de Windows (PE).
- Deben coincidir al menos 3 patrones de ( $c* ).
- Deben coincidir al menos 5 patrones de ( $s* ).
- Deben coincidir al menos 3 patrones de ( $s* ).
- Deben coincidir al menos 1 patrones de ( $c* ).
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: bea50bce-b38c-50a0-902a-1014615bd9b8
Etiquetas:FILE
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