Skip to content

YARA · SEKOIA.IO Community

SEKOIA_Infostealer_Win_Enigma_Initial_Loader

Find initial loader of Enigma Stealer based on specific strings

MalwareSEKOIA.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 initial loader of Enigma Stealer based on specific strings

Targets: Windows PE.

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

Summary generated from the rule's metadata and condition.

Rule source

infostealer-win-enigma-initial-loader.yarDetection Rule License 1.1
rule SEKOIA_Infostealer_Win_Enigma_Initial_Loader : FILE
{
	meta:
		description = "Find initial loader of Enigma Stealer based on specific strings"
		author = "Sekoia.io"
		id = "664fe8de-b406-4d63-9a4b-1c350b444f00"
		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_initial_loader.yar#L1-L24"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		hash = "03b9d7296b01e8f3fb3d12c4d80fe8a1bb0ab2fd76f33c5ce11b40729b75fb23"
		logic_hash = "b7687a480a2a633e7cc9a60d62f3392011712bd018ed634927419cfb4edb4a78"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$str01 = "/getFile?file_id=" ascii
		$str02 = "/file/bot" ascii
		$str03 = "?file_id=" ascii
		$str04 = "pInternetSetOptionA failed" wide
		$str05 = "list_messages[file_path] failed" wide
		$str06 = "iE&xit" wide
		$str07 = "[GetTgFileById][GetTgRequest] reply is NULL" wide
		$str08 = "Telegram request failed" wide
		$str09 = "bot getted" wide

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

Strings (9 patterns)

IdentifierTypeValueModifiers
$str01text"/getFile?file_id="ascii
$str02text"/file/bot"ascii
$str03text"?file_id="ascii
$str04text"pInternetSetOptionA failed"wide
$str05text"list_messages[file_path] failed"wide
$str06text"iE&xit"wide
$str07text"[GetTgFileById][GetTgRequest] reply is NULL"wide
$str08text"Telegram request failed"wide
$str09text"bot getted"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).

  • 03b9d7296b01e8f3fb3d12c4d80fe8a1bb0ab2fd76f33c5ce11b40729b75fb23

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-1c350b444f00

Metadata

version1.0
classificationTLP:CLEAR

Tags:FILE