YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Dlinjector01
Detects specific downloader injector shellcode
- Autor
- ditekSHen
- Fecha
- 2020-11-06
- Modificada
- 2024-11-01
- Puntuación / Calidad
- 75 / 75
Qué detecta esta regla
Detects specific downloader injector shellcode
Familia de malware asociada: Dlinjector01.
Objetivos: PE de Windows.
Define 13 patrones (7 de texto, 6 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_Dlinjector01 : FILE
{
meta:
= "Detects specific downloader injector shellcode"
= "ditekSHen"
= "c5e0946c-3e15-5ebc-b1b5-3f00566dc5cd"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L5995-L6015"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "5c13af5fdbb2e8a27103d9502126a82d0bff15d9a269b22e4279b5b459d50e2d"
= 75
= 75
= "FILE"
strings:
$s1 = "process call create \"%s\"" ascii wide
$s2 = "\\REGISTRY\\MACHINE\\System\\CurrentControlSet\\Enum\\" ascii wide
$s3 = "%systemroot%\\system32\\ntdll.dll" ascii wide
$s4 = "qemu-ga.exe" ascii wide
$s5 = "prl_tools.exe" ascii wide
$s6 = "vboxservice.exe" ascii wide
$o1 = { 75 04 74 02 38 6e 8b 34 24 83 c4 04 eb 0a 08 81 }
$o2 = { 16 f8 f7 ba f0 3d 87 c7 95 13 b7 64 22 be e1 59 }
$o3 = { 8b 0c 24 83 c4 04 eb 05 ea f2 eb ef 05 e8 ad fe }
$o4 = { eb 05 1d 51 eb f5 ce e8 80 fd ff ff 77 a1 f4 cd }
$o5 = { eb 05 6e 33 eb f5 73 e8 64 f6 ff ff 77 a1 f4 77 }
$o6 = { 59 eb 05 fd 98 eb f4 50 e8 d5 f5 ff ff 3b b9 00 }
$o7 = "bYkoDA7G" fullword ascii
condition:
( uint16( 0 ) == 0x5a4d and all of ( $o* ) ) or ( all of ( $s* ) )
}
Cadenas (13 patrones)
| Identificador | Tipo | Valor | Modificadores |
|---|---|---|---|
| $s1 | texto | "process call create \"%s\"" | ascii wide |
| $s2 | texto | "\\REGISTRY\\MACHINE\\System\\CurrentControlSet\\Enum\\" | ascii wide |
| $s3 | texto | "%systemroot%\\system32\\ntdll.dll" | ascii wide |
| $s4 | texto | "qemu-ga.exe" | ascii wide |
| $s5 | texto | "prl_tools.exe" | ascii wide |
| $s6 | texto | "vboxservice.exe" | ascii wide |
| $o1 | hex | { 75 04 74 02 38 6e 8b 34 24 83 c4 04 eb 0a 08 81 } | |
| $o2 | hex | { 16 f8 f7 ba f0 3d 87 c7 95 13 b7 64 22 be e1 59 } | |
| $o3 | hex | { 8b 0c 24 83 c4 04 eb 05 ea f2 eb ef 05 e8 ad fe } | |
| $o4 | hex | { eb 05 1d 51 eb f5 ce e8 80 fd ff ff 77 a1 f4 cd } | |
| $o5 | hex | { eb 05 6e 33 eb f5 73 e8 64 f6 ff ff 77 a1 f4 77 } | |
| $o6 | hex | { 59 eb 05 fd 98 eb f4 50 e8 d5 f5 ff ff 3b b9 00 } | |
| $o7 | texto | "bYkoDA7G" | fullword ascii |
Condición
( uint16( 0 ) == 0x5a4d and all of ( $o* ) ) or ( all of ( $s* ) )En palabras sencillas (Heurística)
- El archivo debe empezar por «MZ»: un ejecutable de Windows (PE).
- Deben coincidir todos los patrones de ( $o* ).
- Deben coincidir todos los 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.
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: c5e0946c-3e15-5ebc-b1b5-3f00566dc5cd
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