Saltar al contenido

YARA · SEKOIA.IO Community

SEKOIA_Infostealer_Win_Enigma_Loader_Module

Find loader module of Enigma Stealer based on specific strings

MalwareEnigma LoaderSEKOIA.IO CommunityDetection Rule License 1.1Compila con YARA-X
Autor
Sekoia.io
Fecha
2023-01-30
Modificada
2024-12-19
Puntuación / Calidad
75 / 80

Qué detecta esta regla

Find loader module of Enigma Stealer based on specific strings

Familia de malware asociada: Enigma Loader.

Objetivos: PE de Windows.

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

infostealer-win-enigma-loader-module.yarDetection Rule License 1.1
rule SEKOIA_Infostealer_Win_Enigma_Loader_Module : FILE
{
	meta:
		description = "Find loader module of Enigma Stealer based on specific strings"
		author = "Sekoia.io"
		id = "664fe8de-b406-4d63-9a4b-1c350b444f01"
		date = "2023-01-30"
		modified = "2024-12-19"
		reference = "https://github.com/SEKOIA-IO/Community"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/infostealer_win_enigma_loader_module.yar#L1-L25"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		hash = "f1623c2f7c00affa3985cf7b9cdf25e39320700fa9d69f9f9426f03054b4b712"
		logic_hash = "f5485b14291acc299d66b72aefd2d5e558d82f6a90450d293eb147f05423f2d8"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$str01 = "Enigma.Loader.Driver_x64.dll" ascii
		$str02 = "C:\\projects\\driver\\Driver\\x64\\Release\\driver.pdb" ascii
		$str03 = "/getFile?file_id=" ascii
		$str04 = "/file/bot" ascii
		$str05 = "Fatal error: failed to acquire SE_LOAD_DRIVER_PRIVILEGE. Make sure you are running as administrator." wide
		$str06 = "[GetTgFileById][GetTgRequest] reply is NULL" wide
		$str07 = "Telegram request failed" wide
		$str08 = "Vul driver data destroyed before unlink" wide
		$str09 = "GetExportAddress hash not found: %x" wide
		$str10 = "\\REGISTRY\\MACHINE\\HARDWARE\\RESOURCEMAP\\PnP Manager\\PnpManager" wide

	condition:
		uint16( 0 ) == 0x5A4D and 4 of them
}

Cadenas (10 patrones)

IdentificadorTipoValorModificadores
$str01texto"Enigma.Loader.Driver_x64.dll"ascii
$str02texto"C:\\projects\\driver\\Driver\\x64\\Release\\driver.pdb"ascii
$str03texto"/getFile?file_id="ascii
$str04texto"/file/bot"ascii
$str05texto"Fatal error: failed to acquire SE_LOAD_DRIVER_PRIVILEGE. Make sure you are running as administrator."wide
$str06texto"[GetTgFileById][GetTgRequest] reply is NULL"wide
$str07texto"Telegram request failed"wide
$str08texto"Vul driver data destroyed before unlink"wide
$str09texto"GetExportAddress hash not found: %x"wide
$str10texto"\\REGISTRY\\MACHINE\\HARDWARE\\RESOURCEMAP\\PnP Manager\\PnpManager"wide

Condición

uint16( 0 ) == 0x5A4D and 4 of them

En palabras sencillas (Heurística)

  • El archivo debe empezar por «MZ»: un ejecutable de Windows (PE).
  • Deben coincidir al menos 4 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

Hashes de muestras

Hashes de las muestras que el autor lista en los metadatos de la regla (búscalos en tu plataforma de threat intelligence).

  • f1623c2f7c00affa3985cf7b9cdf25e39320700fa9d69f9f9426f03054b4b712

Licencia y atribución

Autor: Sekoia.io

Repositorio de origen: SEKOIA.IO Community @ a438a5901a

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: 664fe8de-b406-4d63-9a4b-1c350b444f01

Metadatos

version1.0
classificationTLP:CLEAR

Etiquetas:FILE