Skip to content

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.1Compiles with YARA-X
Author
Sekoia.io
Date
2023-01-30
Modified
2024-12-19
Score / Quality
75 / 80

What this rule detects

Find loader module of Enigma Stealer based on specific strings

Associated malware family: Enigma Loader.

Targets: Windows PE.

It defines 10 patterns (10 text, 0 hex, 0 regex).

Summary generated from the rule's metadata and condition.

Rule source

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
}

Strings (10 patterns)

IdentifierTypeValueModifiers
$str01text"Enigma.Loader.Driver_x64.dll"ascii
$str02text"C:\\projects\\driver\\Driver\\x64\\Release\\driver.pdb"ascii
$str03text"/getFile?file_id="ascii
$str04text"/file/bot"ascii
$str05text"Fatal error: failed to acquire SE_LOAD_DRIVER_PRIVILEGE. Make sure you are running as administrator."wide
$str06text"[GetTgFileById][GetTgRequest] reply is NULL"wide
$str07text"Telegram request failed"wide
$str08text"Vul driver data destroyed before unlink"wide
$str09text"GetExportAddress hash not found: %x"wide
$str10text"\\REGISTRY\\MACHINE\\HARDWARE\\RESOURCEMAP\\PnP Manager\\PnpManager"wide

Condition

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

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • At least 4 patterns in the rule must match.

Test this rule in your browser

Drop a file to scan it with this rule using YARA-X compiled to WebAssembly. Nothing is uploaded.

Drop a file here or click to chooseScanned locally with YARA-X. Files up to 200 MB.

Open in editor

References

Sample hashes

Hashes of samples the author lists in the rule's meta (look them up in your threat-intelligence platform).

  • f1623c2f7c00affa3985cf7b9cdf25e39320700fa9d69f9f9426f03054b4b712

Licence & attribution

Author: Sekoia.io

Source repository: SEKOIA.IO Community @ a438a5901a

Licence: Detection Rule License 1.1 (repository licence)

Original rule

Mirrored via YARA Forge 20260927, which prefixes rule names with the source and adds normalised meta fields.

Rule id: 664fe8de-b406-4d63-9a4b-1c350b444f01

Metadata

version1.0
classificationTLP:CLEAR

Tags:FILE