YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Ktlvdoor
Detects KTLVdoor
- Autor
- ditekshen
- Fecha
- 2020-11-06
- Modificada
- 2024-11-01
- Puntuación / Calidad
- 75 / 73
Qué detecta esta regla
Detects KTLVdoor
Familia de malware asociada: Ktlv Door.
Objetivos: PE de Windows.
Define 26 patrones (24 de texto, 0 hex, 2 regex).
Resumen generado a partir de los metadatos y la condición de la regla.
Código de la regla
malware-win-ktlvdoor.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Ktlvdoor : FILE
{
meta:
= "Detects KTLVdoor"
= "ditekshen"
= "f63ebd05-fb4b-50fb-887b-dacd379594a4"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L11758-L11791"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "3ced9b558c7e17acd015cd2c9dd0c5d024bf9c31c7f2e7c9b7b937124109cf8b"
= 75
= 73
= "FILE"
strings:
$s1 = "/cmd/acc/agent_acc" ascii
$s2 = "main.DLLWMain" ascii
$s3 = "main.checkSilent" ascii
$h1 = ".handleInteractiveShell" ascii
$h2 = ".handleNetstat" ascii
$h3 = ".handleProcess" ascii
$h4 = ".handleRefreshHostInfo" ascii
$h5 = ".handleTimestomp" ascii
$h6 = ".handleSoInject" ascii
$h7 = ".HandleRegInfo" ascii
$h8 = ".handlePortscan" ascii
$h9 = ".handleReflectDllInject" ascii
$h10 = ".handleFileDownload" ascii
$f1 = ".RdpWithNTLM." ascii
$f2 = ".FingerPrintOs." ascii
$f3 = ".ScanWMI." ascii
$f4 = ".ScanWinRM." ascii
$f5 = ".ScanWeb." ascii
$f6 = ".ScanSmb2." ascii
$f7 = ".ScanRDP." ascii
$f8 = ".ScanPing." ascii
$f9 = ".ScanOxid." ascii
$f10 = ".ScanMssql." ascii
$f11 = ".ScanBanner." ascii
$fr1 = /\.proxy[CS]2[CS](TC|UD)P/ ascii
$fr2 = /\.Scan(WMI|WinRM|Web|Smb2|RDP|Ping|Oxid|Mssql|Banner)\./ ascii
condition:
( uint16( 0 ) == 0x5a4d or uint16( 0 ) == 0x457f ) and ( ( 6 of ( $h* ) ) or ( 12 of ( $f* ) ) or ( 2 of ( $h* ) and 4 of ( $f* ) ) or ( 1 of ( $s* ) and ( 4 of ( $h* ) or 4 of ( $f* ) ) ) or ( 13 of them ) )
}
Cadenas (26 patrones)
| Identificador | Tipo | Valor | Modificadores |
|---|---|---|---|
| $s1 | texto | "/cmd/acc/agent_acc" | ascii |
| $s2 | texto | "main.DLLWMain" | ascii |
| $s3 | texto | "main.checkSilent" | ascii |
| $h1 | texto | ".handleInteractiveShell" | ascii |
| $h2 | texto | ".handleNetstat" | ascii |
| $h3 | texto | ".handleProcess" | ascii |
| $h4 | texto | ".handleRefreshHostInfo" | ascii |
| $h5 | texto | ".handleTimestomp" | ascii |
| $h6 | texto | ".handleSoInject" | ascii |
| $h7 | texto | ".HandleRegInfo" | ascii |
| $h8 | texto | ".handlePortscan" | ascii |
| $h9 | texto | ".handleReflectDllInject" | ascii |
| $h10 | texto | ".handleFileDownload" | ascii |
| $f1 | texto | ".RdpWithNTLM." | ascii |
| $f2 | texto | ".FingerPrintOs." | ascii |
| $f3 | texto | ".ScanWMI." | ascii |
| $f4 | texto | ".ScanWinRM." | ascii |
| $f5 | texto | ".ScanWeb." | ascii |
| $f6 | texto | ".ScanSmb2." | ascii |
| $f7 | texto | ".ScanRDP." | ascii |
| $f8 | texto | ".ScanPing." | ascii |
| $f9 | texto | ".ScanOxid." | ascii |
| $f10 | texto | ".ScanMssql." | ascii |
| $f11 | texto | ".ScanBanner." | ascii |
| $fr1 | regex | /\.proxy[CS]2[CS](TC|UD)P/ | ascii |
| $fr2 | regex | /\.Scan(WMI|WinRM|Web|Smb2|RDP|Ping|Oxid|Mssql|Banner)\./ | ascii |
Condición
( uint16( 0 ) == 0x5a4d or uint16( 0 ) == 0x457f ) and ( ( 6 of ( $h* ) ) or ( 12 of ( $f* ) ) or ( 2 of ( $h* ) and 4 of ( $f* ) ) or ( 1 of ( $s* ) and ( 4 of ( $h* ) or 4 of ( $f* ) ) ) or ( 13 of them ) )En palabras sencillas (Heurística)
- El archivo debe empezar por «MZ»: un ejecutable de Windows (PE).
- Deben coincidir al menos 6 patrones de ( $h* ).
- Deben coincidir al menos 12 patrones de ( $f* ).
- Deben coincidir al menos 2 patrones de ( $h* ).
- Deben coincidir al menos 4 patrones de ( $f* ).
- Deben coincidir al menos 1 patrones de ( $s* ).
- Deben coincidir al menos 4 patrones de ( $h* ).
- Deben coincidir al menos 13 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.
Arrastra un archivo aquí o haz clic para elegirSe escanea en local con YARA-X. Archivos de hasta 200 MB.
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: f63ebd05-fb4b-50fb-887b-dacd379594a4
Etiquetas:FILE
Reglas relacionadas
- MalwareMalpedia signator rules· Felix Bilstein - yara-signator at cocacoding dot com· 2026-05-04
- 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