Skip to content

YARA · SEKOIA.IO Community

SEKOIA_Infostealer_Win_Meduzastealer

Finds MeduzaStealer samples based on specific strings

GenericSEKOIA.IO CommunityDetection Rule License 1.1Compiles with YARA-X
Author
Sekoia.io
Date
2023-06-20
Modified
2024-12-19
Score / Quality
75 / 80

What this rule detects

Finds MeduzaStealer samples based on specific strings

Targets: Windows PE.

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

Summary generated from the rule's metadata and condition.

Rule source

infostealer-win-meduzastealer.yarDetection Rule License 1.1
rule SEKOIA_Infostealer_Win_Meduzastealer : FILE
{
	meta:
		description = "Finds MeduzaStealer samples based on specific strings"
		author = "Sekoia.io"
		id = "1276f485-aa5d-491b-89d8-77f98dc496e1"
		date = "2023-06-20"
		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_meduzastealer.yar#L1-L26"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "e81a5a9611662422eb7a87c0c1a370cee6f138fd6169225d969b669337d91a06"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$str01 = "emoji" ascii
		$str02 = "%d-%m-%Y, %H:%M:%S" ascii
		$str03 = "[UTC" ascii
		$str04 = "user_name" ascii
		$str05 = "computer_name" ascii
		$str06 = "timezone" ascii
		$str07 = "current_path()" ascii
		$str08 = "[json.exception." ascii
		$str09 = "GDI32.dll" ascii
		$str10 = "GdipGetImageEncoders" ascii
		$str11 = "GetGeoInfoA" ascii

	condition:
		uint16( 0 ) == 0x5a4d and 8 of them and filesize > 500KB
}

Strings (11 patterns)

IdentifierTypeValueModifiers
$str01text"emoji"ascii
$str02text"%d-%m-%Y, %H:%M:%S"ascii
$str03text"[UTC"ascii
$str04text"user_name"ascii
$str05text"computer_name"ascii
$str06text"timezone"ascii
$str07text"current_path()"ascii
$str08text"[json.exception."ascii
$str09text"GDI32.dll"ascii
$str10text"GdipGetImageEncoders"ascii
$str11text"GetGeoInfoA"ascii

Condition

uint16( 0 ) == 0x5a4d and 8 of them and filesize > 500KB

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • The file must be larger than 500KB.
  • At least 8 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

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: 1276f485-aa5d-491b-89d8-77f98dc496e1

Metadata

version1.0
classificationTLP:CLEAR

Tags:FILE