YARA · dr4k0nia yara-rules
DR4K0NIA_Msil_Susp_Obf_Xorstringsnet
Detects XorStringsNET string encryption, and other obfuscators derived from it
- Autor
- dr4k0nia
- Fecha
- 2023-03-26
- Puntuación / Calidad
- 65 / 85
Qué detecta esta regla
Detects XorStringsNET string encryption, and other obfuscators derived from it
Objetivos: PE de Windows, Ensamblado .NET.
Define 1 patrones (0 de texto, 1 hex, 0 regex). Módulos YARA usados: dotnet.
Resumen generado a partir de los metadatos y la condición de la regla.
Código de la regla
Incluye los imports necesarios para compilarla por sí sola.
import "dotnet"
rule DR4K0NIA_Msil_Susp_Obf_Xorstringsnet : FILE
{
meta:
= "Detects XorStringsNET string encryption, and other obfuscators derived from it"
= "dr4k0nia"
= "0bea654d-9244-5320-a815-691384decc74"
= "2023-03-26"
= "2023-03-26"
= "https://github.com/dr4k0nia/yara-rules"
= "https://github.com/dr4k0nia/yara-rules/blob/4b10f9b79a4cfb3ec9cb5675f32cc7ee6885fbd8/dotnet/msil_susp_obf_xorstringsnet.yar#L3-L16"
= "https://github.com/dr4k0nia/yara-rules/blob/4b10f9b79a4cfb3ec9cb5675f32cc7ee6885fbd8/LICENSE.md"
= "c494b5b64bcb63d1edd611206fb41eb9a23a940a72c3e9fc3f626e91482b1352"
= 65
= 85
= "FILE"
= "1.0"
strings:
$pattern = { 06 1E 58 07 8E 69 FE17 }
condition:
uint16( 0 ) == 0x5a4d and filesize < 25MB and dotnet.is_dotnet and $pattern
}
Cadenas (1 patrones)
| Identificador | Tipo | Valor | Modificadores |
|---|---|---|---|
| $pattern | hex | { 06 1E 58 07 8E 69 FE17 } |
Condición
uint16( 0 ) == 0x5a4d and filesize < 25MB and dotnet.is_dotnet and $patternEn palabras sencillas (Heurística)
- El archivo debe empezar por «MZ»: un ejecutable de Windows (PE).
- El archivo debe ocupar menos de 25MB (un límite barato que descarta archivos grandes).
- Usa el módulo dotnet.
- El patrón $pattern debe estar presente.
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: dr4k0nia
Repositorio de origen: dr4k0nia yara-rules @ 4b10f9b79a
Licencia: Detection Rule License 1.1 (licencia del repositorio)
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: 0bea654d-9244-5320-a815-691384decc74
Metadatos
| version | 1.0 |
|---|
Etiquetas:FILE
Reglas relacionadas
- Sospechoso / huntingdr4k0nia yara-rules· dr4k0nia· 2023-12-03
- Malwaredr4k0nia yara-rules· dr4k0nia· 2023-05-21
- Malwaredr4k0nia yara-rules· dr4k0nia· 2023-11-07