YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Lighthand
Detects LightHand
- Autor
- ditekshen
- Fecha
- 2020-11-06
- Modificada
- 2024-11-01
- Puntuación / Calidad
- 75 / 75
Qué detecta esta regla
Detects LightHand
Familia de malware asociada: Lighthand.
Objetivos: PE de Windows.
Define 8 patrones (5 de texto, 2 hex, 1 regex).
Resumen generado a partir de los metadatos y la condición de la regla.
Código de la regla
malware-win-lighthand.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Lighthand : FILE
{
meta:
= "Detects LightHand"
= "ditekshen"
= "2b644dfb-f09a-50a5-8260-7b7022bce1f4"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L11691-L11718"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "4f06467a522b786045839e6b22b888cecc554b0f63cc20dc43dc0f8ec80f5654"
= 75
= 75
= "FILE"
strings:
$x1 = "27.102." ascii
$x2 = "109.248.150.179" fullword ascii
$s1 = /Hello (Client|Server)/ fullword ascii
$s2 = "%s|%s|%s|%s|%s|%s|" fullword wide
$s3 = "%s\\cmd.exe" fullword wide
$s4 = "Remote PC" fullword wide
$s5 = { 2e 62 61 74 [3-4] 3a 4c 31 0d 0a 64 65 6c
20 2f 46 20 22 25 73 22 0d 0a 69 66 20 65 78 69
73 74 20 22 25 73 22 20 67 6f 74 6f 20 4c 31 0d
0a 64 65 6c 20 2f 46 20 22 25 73 22 0d 0a 00 00
6f 70 65 6e }
$s6 = { 25 00 2e 00 32 00 66 00 47 00 42 00 00 00 00 00
25 00 73 00 7c 00 25 00 73 00 7c 00 25 00 73 00
0a 00 00 00 00 00 00 00 5c 00 2a 00 2e 00 2a 00
00 00 00 00 0a 00 00 00 2e 00 00 00 2e 00 2e 00
00 00 00 00 00 00 00 00 46 00 6f 00 6c 00 64 00
65 00 72 00 00 00 00 00 25 00 73 00 5c 00 25 00
73 00 00 00 00 00 00 00 25 00 64 00 42 00 00 00
25 00 2e 00 31 00 66 00 4b 00 42 00 00 00 00 00
25 00 2e 00 31 00 66 00 4d 00 42 }
condition:
uint16( 0 ) == 0x5a4d and ( ( 5 of ( $s* ) ) or ( 1 of ( $x* ) and 3 of ( $s* ) ) )
}
Cadenas (8 patrones)
| Identificador | Tipo | Valor | Modificadores |
|---|---|---|---|
| $x1 | texto | "27.102." | ascii |
| $x2 | texto | "109.248.150.179" | fullword ascii |
| $s1 | regex | /Hello (Client|Server)/ | fullword ascii |
| $s2 | texto | "%s|%s|%s|%s|%s|%s|" | fullword wide |
| $s3 | texto | "%s\\cmd.exe" | fullword wide |
| $s4 | texto | "Remote PC" | fullword wide |
| $s5 | hex | { 2e 62 61 74 [3-4] 3a 4c 31 0d 0a 64 65 6c 20 2f 46 20 22 25 73 22 0d 0a 69 66 20 65 78 69 73 74 20 22 25 73 22 20 67 6f 74 6f … | |
| $s6 | hex | { 25 00 2e 00 32 00 66 00 47 00 42 00 00 00 00 00 25 00 73 00 7c 00 25 00 73 00 7c 00 25 00 73 00 0a 00 00 00 00 00 00 00 5c 00 … |
Condición
uint16( 0 ) == 0x5a4d and ( ( 5 of ( $s* ) ) or ( 1 of ( $x* ) and 3 of ( $s* ) ) )En palabras sencillas (Heurística)
- El archivo debe empezar por «MZ»: un ejecutable de Windows (PE).
- Deben coincidir al menos 5 patrones de ( $s* ).
- Deben coincidir al menos 1 patrones de ( $x* ).
- Deben coincidir al menos 3 patrones de ( $s* ).
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: 2b644dfb-f09a-50a5-8260-7b7022bce1f4
Etiquetas:FILE
Reglas relacionadas
- 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
- MalwareditekSHen detection· ditekshen· 2020-11-06