Skip to content

YARA · SEKOIA.IO Community

SEKOIA_Infostealer_Win_Enigma_Stealer_Module

Find stealer module 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 / 78

What this rule detects

Find stealer module of Enigma Stealer based on specific strings

Targets: Windows PE.

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

Summary generated from the rule's metadata and condition.

Rule source

infostealer-win-enigma-stealer-module.yarDetection Rule License 1.1
rule SEKOIA_Infostealer_Win_Enigma_Stealer_Module : FILE
{
	meta:
		description = "Find stealer module of Enigma Stealer based on specific strings"
		author = "Sekoia.io"
		id = "664fe8de-b406-4d63-9a4b-1c350b444f02"
		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_stealer_module.yar#L1-L28"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		hash = "4d2fb518c9e23c5c70e70095ba3b63580cafc4b03f7e6dce2931c54895f13b2c"
		logic_hash = "0a6615d65867a160e1c87fbcfe30090d44d7f5c25b3a904f8719be7b385b14bb"
		score = 75
		quality = 78
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$eni01 = "enigma.common" nocase ascii wide
		$eni02 = "--ENIGMA STEALER--" wide
		$str01 = "SELECT * FROM Win32_PnPEntity WHERE (PNPClass = 'Image' OR PNPClass = 'Camera')" wide
		$str02 = "/C chcp 65001 && netsh wlan show profile | findstr All" wide
		$str03 = "/C chcp 65001 && netsh wlan show networks mode=bssid" wide
		$str04 = "[Open google maps]" wide
		$str05 = "Stealerium.Target." ascii
		$str06 = "--- ClipperBCH ---" wide
		$str07 = "//setting[@name='Username']/value" wide
		$str08 = "Stealer >> Failed recursive remove directory with passwords" wide
		$str09 = "[a-zA-Z0-9]{24}\\.[a-zA-Z0-9]{6}\\.[a-zA-Z0-9_\\-]{27}|mfa\\.[a-zA-Z0-9_\\-]{84}" wide
		$str10 = "^(5018|5020|5038|6304|6759|6761|6763)[0-9]{8,15}$" wide

	condition:
		uint16( 0 ) == 0x5A4D and 1 of ( $eni* ) and 4 of ( $str* )
}

Strings (12 patterns)

IdentifierTypeValueModifiers
$eni01text"enigma.common"nocase ascii wide
$eni02text"--ENIGMA STEALER--"wide
$str01text"SELECT * FROM Win32_PnPEntity WHERE (PNPClass = 'Image' OR PNPClass = 'Camera')"wide
$str02text"/C chcp 65001 && netsh wlan show profile | findstr All"wide
$str03text"/C chcp 65001 && netsh wlan show networks mode=bssid"wide
$str04text"[Open google maps]"wide
$str05text"Stealerium.Target."ascii
$str06text"--- ClipperBCH ---"wide
$str07text"//setting[@name='Username']/value"wide
$str08text"Stealer >> Failed recursive remove directory with passwords"wide
$str09text"[a-zA-Z0-9]{24}\\.[a-zA-Z0-9]{6}\\.[a-zA-Z0-9_\\-]{27}|mfa\\.[a-zA-Z0-9_\\-]{84}"wide
$str10text"^(5018|5020|5038|6304|6759|6761|6763)[0-9]{8,15}$"wide

Condition

uint16( 0 ) == 0x5A4D and 1 of ( $eni* ) and 4 of ( $str* )

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • At least 1 patterns in ( $eni* ) must match.
  • At least 4 patterns in ( $str* ) 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).

  • 4d2fb518c9e23c5c70e70095ba3b63580cafc4b03f7e6dce2931c54895f13b2c

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

Metadata

version1.0
classificationTLP:CLEAR

Tags:FILE