Saltar al contenido

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Ktlvdoor

Detects KTLVdoor

MalwareKtlv DoorditekSHen detectionBSD 2-Clause LicenseCompila con YARA-X
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:
		description = "Detects KTLVdoor"
		author = "ditekshen"
		id = "f63ebd05-fb4b-50fb-887b-dacd379594a4"
		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#L11758-L11791"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "3ced9b558c7e17acd015cd2c9dd0c5d024bf9c31c7f2e7c9b7b937124109cf8b"
		score = 75
		quality = 73
		tags = "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)

IdentificadorTipoValorModificadores
$s1texto"/cmd/acc/agent_acc"ascii
$s2texto"main.DLLWMain"ascii
$s3texto"main.checkSilent"ascii
$h1texto".handleInteractiveShell"ascii
$h2texto".handleNetstat"ascii
$h3texto".handleProcess"ascii
$h4texto".handleRefreshHostInfo"ascii
$h5texto".handleTimestomp"ascii
$h6texto".handleSoInject"ascii
$h7texto".HandleRegInfo"ascii
$h8texto".handlePortscan"ascii
$h9texto".handleReflectDllInject"ascii
$h10texto".handleFileDownload"ascii
$f1texto".RdpWithNTLM."ascii
$f2texto".FingerPrintOs."ascii
$f3texto".ScanWMI."ascii
$f4texto".ScanWinRM."ascii
$f5texto".ScanWeb."ascii
$f6texto".ScanSmb2."ascii
$f7texto".ScanRDP."ascii
$f8texto".ScanPing."ascii
$f9texto".ScanOxid."ascii
$f10texto".ScanMssql."ascii
$f11texto".ScanBanner."ascii
$fr1regex/\.proxy[CS]2[CS](TC|UD)P/ascii
$fr2regex/\.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.

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: f63ebd05-fb4b-50fb-887b-dacd379594a4

Etiquetas:FILE