YARA · SEKOIA.IO Community
SEKOIA_Infostealer_Win_Eternity
Detect the Eternity infostealer based on specific strings
- 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.
import "pe"
rule SEKOIA_Infostealer_Win_Eternity : FILE
{
meta:
= "Detect the Eternity infostealer based on specific strings"
= "Sekoia.io"
= "0ed8d4bd-d57f-40a8-a709-d69531d59847"
= "2022-03-23"
= "2024-12-19"
= "hxxp://xssforumv3isucukbxhdhwz67hoa5e2voakcfkuieq4ch257vsburuid.]onion/threads/62331/"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/infostealer_win_eternity.yar#L3-L31"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
= "06f0f7f51100278160f5bc4f588bb6a9d749be308f879bd5704666bf90764bf9"
= 75
= 80
= "FILE"
= "1.0"
= "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)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $str0 | text | "Sending info to Eternity.." | wide |
| $str1 | text | "Debug mode, dont share this stealer anywhere." | wide |
| $str2 | text | "\\Growtopia.exe" | wide |
| $str3 | text | "Software\\Growtopia" | wide |
| $str4 | text | "Corrupting Growtopia.." | wide |
| $str5 | text | "Disabling Task Manager.." | wide |
| $str6 | text | "Deleting previous file from startup and copying new one." | wide |
| $str7 | text | "Hiding file in Startup folder.." | wide |
| $str8 | text | "Initializing File watcher.." | wide |
| $str9 | text | "Decoder: Failed to delete temp login. No problem, continuing.." | wide |
| $str10 | text | "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.
Licence & attribution
Author: Sekoia.io
Source repository: SEKOIA.IO Community @ a438a5901a
Licence: Detection Rule License 1.1 (repository licence)
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
| version | 1.0 |
|---|---|
| classification | TLP:CLEAR |
Tags:FILE
Related rules
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-07-16
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-08-23
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-04-22
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-07-23
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-10-20
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-03-20
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-03-20
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-03-20