Saltar al contenido

YARA · dr4k0nia yara-rules

DR4K0NIA_Msil_Susp_Obf_Xorstringsnet

Detects XorStringsNET string encryption, and other obfuscators derived from it

Sospechoso / huntingdr4k0nia yara-rulesDetection Rule License 1.1Compila con YARA-X
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.

msil-susp-obf-xorstringsnet.yarDetection Rule License 1.1
import "dotnet"

rule DR4K0NIA_Msil_Susp_Obf_Xorstringsnet : FILE
{
	meta:
		description = "Detects XorStringsNET string encryption, and other obfuscators derived from it"
		author = "dr4k0nia"
		id = "0bea654d-9244-5320-a815-691384decc74"
		date = "2023-03-26"
		modified = "2023-03-26"
		reference = "https://github.com/dr4k0nia/yara-rules"
		source_url = "https://github.com/dr4k0nia/yara-rules/blob/4b10f9b79a4cfb3ec9cb5675f32cc7ee6885fbd8/dotnet/msil_susp_obf_xorstringsnet.yar#L3-L16"
		license_url = "https://github.com/dr4k0nia/yara-rules/blob/4b10f9b79a4cfb3ec9cb5675f32cc7ee6885fbd8/LICENSE.md"
		logic_hash = "c494b5b64bcb63d1edd611206fb41eb9a23a940a72c3e9fc3f626e91482b1352"
		score = 65
		quality = 85
		tags = "FILE"
		version = "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)

IdentificadorTipoValorModificadores
$patternhex{ 06 1E 58 07 8E 69 FE17 }

Condición

uint16( 0 ) == 0x5a4d and filesize < 25MB and dotnet.is_dotnet and $pattern

En 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.

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: dr4k0nia

Repositorio de origen: dr4k0nia yara-rules @ 4b10f9b79a

Licencia: Detection Rule License 1.1 (licencia del repositorio)

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: 0bea654d-9244-5320-a815-691384decc74

Metadatos

version1.0

Etiquetas:FILE