Skip to content

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Echelon

Echelon information stealer payload

MalwareEchelonditekSHen detectionBSD 2-Clause LicenseCompiles with YARA-X
Author
ditekSHen
Date
2020-11-06
Modified
2024-11-01
Score / Quality
75 / 75

What this rule detects

Echelon information stealer payload

Associated malware family: Echelon.

Targets: Windows PE.

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

Summary generated from the rule's metadata and condition.

Rule source

malware-win-echelon.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Echelon : FILE
{
	meta:
		description = "Echelon information stealer payload"
		author = "ditekSHen"
		id = "e13d2003-c755-5dd3-bb16-8e41dd19a151"
		date = "2020-11-06"
		modified = "2024-11-01"
		reference = "https://github.com/ditekshen/detection"
		source_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L936-L957"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "c070bf52cc51dd334ea24614e33eaa2b7b1a17e7790e586cbbb8c7e33ba1bd76"
		score = 75
		quality = 75
		tags = "FILE"

	strings:
		$s1 = "<GetStealer>b__" ascii
		$s2 = "clearMac" fullword ascii
		$s3 = "path2save" fullword ascii
		$s4 = "Echelon_Size" fullword ascii
		$s5 = "Echelon Stealer by" wide
		$s6 = "get__masterPassword" fullword ascii
		$s7 = "DomainDetect" fullword ascii
		$s8 = "[^\\u0020-\\u007F]" fullword wide
		$s9 = "/sendDocument?chat_id=" wide
		$s10 = "//setting[@name='Password']/value" wide
		$s11 = "Passwords_Mozilla.txt" fullword wide
		$s12 = "Passwords_Edge.txt" fullword wide
		$s13 = "@madcod" ascii wide
		$pdb = "\\Echelon-Stealer-master\\obj\\Release\\Echelon.pdb" ascii

	condition:
		( uint16( 0 ) == 0x5a4d and ( 8 of ( $s* ) or $pdb ) ) or ( 8 of ( $s* ) or $pdb )
}

Strings (14 patterns)

IdentifierTypeValueModifiers
$s1text"<GetStealer>b__"ascii
$s2text"clearMac"fullword ascii
$s3text"path2save"fullword ascii
$s4text"Echelon_Size"fullword ascii
$s5text"Echelon Stealer by"wide
$s6text"get__masterPassword"fullword ascii
$s7text"DomainDetect"fullword ascii
$s8text"[^\\u0020-\\u007F]"fullword wide
$s9text"/sendDocument?chat_id="wide
$s10text"//setting[@name='Password']/value"wide
$s11text"Passwords_Mozilla.txt"fullword wide
$s12text"Passwords_Edge.txt"fullword wide
$s13text"@madcod"ascii wide
$pdbtext"\\Echelon-Stealer-master\\obj\\Release\\Echelon.pdb"ascii

Condition

( uint16( 0 ) == 0x5a4d and ( 8 of ( $s* ) or $pdb ) ) or ( 8 of ( $s* ) or $pdb )

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • At least 8 patterns in ( $s* ) must match.
  • Pattern $pdb must be present.

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: ditekSHen

Source repository: ditekSHen detection @ e76c93dcde

Licence: BSD 2-Clause License (repository licence)

Copyright notice: Copyright 2021 by ditekSHen (https://github.com/ditekshen/detection).

Original rule

Mirrored via YARA Forge 20260927, which prefixes rule names with the source and adds normalised meta fields.

Rule id: e13d2003-c755-5dd3-bb16-8e41dd19a151

Tags:FILE