Saltar al contenido

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Klogexe

Detects KLogExe

MalwareKlogexeditekSHen 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 KLogExe

Familia de malware asociada: Klogexe.

Objetivos: PE de Windows.

Define 11 patrones (11 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

malware-win-klogexe.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Klogexe : FILE
{
	meta:
		description = "Detects KLogExe"
		author = "ditekshen"
		id = "8c3ebc2c-717b-5c42-9233-274006d4331b"
		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#L11918-L11937"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "1f1809b83dc468122022b68d63734ba1597c6fede01582c31d1700ca0b9e1e22"
		score = 75
		quality = 73
		tags = "FILE"
		clamav1 = "MALWARE.Win.Trojan.KLogExe"

	strings:
		$s1 = "[clip_s]: %s" ascii
		$s2 = "------ %d/%d/%d : %d/%d ------" ascii
		$s3 = "[RWin+]" ascii
		$s4 = "[Too many clip_tail]" ascii
		$s5 = "name=\"userfile\"; filename=\"%s\"" ascii
		$s6 = "Origin: http://" wide
		$s7 = "%s_%d_%d_%d_%d" wide
		$s8 = "/wp-content/include.php?_sys_" wide
		$s9 = "\\desktops.ini" wide
		$s10 = "KLogExe" wide nocase
		$s11 = "dynamic_import.cpp [resolve_call] can`nt" wide

	condition:
		uint16( 0 ) == 0x5a4d and 6 of them
}

Cadenas (11 patrones)

IdentificadorTipoValorModificadores
$s1texto"[clip_s]: %s"ascii
$s2texto"------ %d/%d/%d : %d/%d ------"ascii
$s3texto"[RWin+]"ascii
$s4texto"[Too many clip_tail]"ascii
$s5texto"name=\"userfile\"; filename=\"%s\""ascii
$s6texto"Origin: http://"wide
$s7texto"%s_%d_%d_%d_%d"wide
$s8texto"/wp-content/include.php?_sys_"wide
$s9texto"\\desktops.ini"wide
$s10texto"KLogExe"wide nocase
$s11texto"dynamic_import.cpp [resolve_call] can`nt"wide

Condición

uint16( 0 ) == 0x5a4d and 6 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 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: 8c3ebc2c-717b-5c42-9233-274006d4331b

Metadatos

clamav1MALWARE.Win.Trojan.KLogExe

Etiquetas:FILE