Skip to content

YARA · SEKOIA.IO Community

SEKOIA_Infostealer_Win_Eternity

Detect the Eternity infostealer based on specific strings

MalwareSEKOIA.IO CommunityDetection Rule License 1.1Compiles with YARA-X (with warnings)
Author
Sekoia.io
Date
2022-03-23
Modified
2024-12-19
Score / Quality
75 / 80

What this rule detects

Detect the Eternity infostealer based on specific strings

Targets: Windows PE.

It defines 11 patterns (11 text, 0 hex, 0 regex). YARA modules used: pe.

YARA-X says: warning[deprecated_field]: field `number_of_sections` is deprecated

Summary generated from the rule's metadata and condition.

Rule source

Includes the imports needed to compile it on its own.

infostealer-win-eternity.yarDetection Rule License 1.1
import "pe"

rule SEKOIA_Infostealer_Win_Eternity : FILE
{
	meta:
		description = "Detect the Eternity infostealer based on specific strings"
		author = "Sekoia.io"
		id = "0ed8d4bd-d57f-40a8-a709-d69531d59847"
		date = "2022-03-23"
		modified = "2024-12-19"
		reference = "hxxp://xssforumv3isucukbxhdhwz67hoa5e2voakcfkuieq4ch257vsburuid.]onion/threads/62331/"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/infostealer_win_eternity.yar#L3-L31"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "06f0f7f51100278160f5bc4f588bb6a9d749be308f879bd5704666bf90764bf9"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$str0 = "Sending info to Eternity.." wide
		$str1 = "Debug mode, dont share this stealer anywhere." wide
		$str2 = "\\Growtopia.exe" wide
		$str3 = "Software\\Growtopia" wide
		$str4 = "Corrupting Growtopia.." wide
		$str5 = "Disabling Task Manager.." wide
		$str6 = "Deleting previous file from startup and copying new one." wide
		$str7 = "Hiding file in Startup folder.." wide
		$str8 = "Initializing File watcher.." wide
		$str9 = "Decoder: Failed to delete temp login. No problem, continuing.." wide
		$str10 = "dcd.exe" wide

	condition:
		uint16( 0 ) == 0x5A4D and ( for any i in ( 0 .. pe.number_of_sections -1 ) : ( pe.sections [ i ] . name == ".eter0" ) and for any i in ( 0 .. pe.number_of_sections -1 ) : ( pe.sections [ i ] . name == ".eter1" ) ) or 4 of ( $str* )
}

Strings (11 patterns)

IdentifierTypeValueModifiers
$str0text"Sending info to Eternity.."wide
$str1text"Debug mode, dont share this stealer anywhere."wide
$str2text"\\Growtopia.exe"wide
$str3text"Software\\Growtopia"wide
$str4text"Corrupting Growtopia.."wide
$str5text"Disabling Task Manager.."wide
$str6text"Deleting previous file from startup and copying new one."wide
$str7text"Hiding file in Startup folder.."wide
$str8text"Initializing File watcher.."wide
$str9text"Decoder: Failed to delete temp login. No problem, continuing.."wide
$str10text"dcd.exe"wide

Condition

uint16( 0 ) == 0x5A4D and ( for any i in ( 0 .. pe.number_of_sections -1 ) : ( pe.sections [ i ] . name == ".eter0" ) and for any i in ( 0 .. pe.number_of_sections -1 ) : ( pe.sections [ i ] . name == ".eter1" ) ) or 4 of ( $str* )

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • At least 4 patterns in ( $str* ) must match.
  • A for-loop checks a property over several matches or items.
  • Uses the pe module.
  • Checks PE sections (names, count or properties).

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

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: 0ed8d4bd-d57f-40a8-a709-d69531d59847

Metadata

version1.0
classificationTLP:CLEAR

Tags:FILE