Skip to content

YARA · SEKOIA.IO Community

SEKOIA_Loader_Amadey_Stealer_Plugin

Finds Amadey's stealer plugin based on characteristic strings

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

What this rule detects

Finds Amadey's stealer plugin based on characteristic strings

Associated malware family: Amadey.

Targets: Windows PE.

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

Summary generated from the rule's metadata and condition.

Rule source

loader-amadey-stealer-plugin.yarDetection Rule License 1.1
rule SEKOIA_Loader_Amadey_Stealer_Plugin : FILE
{
	meta:
		description = "Finds Amadey's stealer plugin based on characteristic strings"
		author = "Sekoia.io"
		id = "50154e39-98b3-40e5-8986-18bbb7b15647"
		date = "2023-05-16"
		modified = "2024-12-19"
		reference = "https://github.com/SEKOIA-IO/Community"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/loader_amadey_stealer_plugin.yar#L1-L27"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "0410492f9424797b670a14f43ce063458e59d7958e213c07c3d488a40bf370e6"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$str01 = "STEALERDLL.dll" ascii
		$str02 = "?wal=1" fullword ascii
		$str03 = "Content-Disposition: form-data; name=\"data\"; filename=\"" ascii
		$str04 = "tar.exe -cf \"" ascii
		$str05 = "SELECT origin_url, username_value, password_value FROM logins" ascii
		$str06 = "\\Google\\Chrome\\User Data\\Default\\Login Data" ascii
		$str07 = "\\SputnikLab\\Sputnik\\User Data\\Default\\Login Data" ascii
		$str08 = "\\Mozilla\\Firefox\\Profiles\\" ascii
		$str09 = "\"hostname\":\"([^\"]+)\"" ascii
		$str10 = "\"encryptedUsername\":\"([^\"]+)\"" ascii
		$str11 = "\"encryptedPassword\":\"([^\"]+)\"" ascii
		$str12 = "&cred=" fullword ascii
		$str13 = "D:\\Mktmp\\Amadey\\StealerDLL\\x64\\Release\\STEALERDLL.pdb" ascii

	condition:
		uint16( 0 ) == 0x5A4D and 7 of them
}

Strings (13 patterns)

IdentifierTypeValueModifiers
$str01text"STEALERDLL.dll"ascii
$str02text"?wal=1"fullword ascii
$str03text"Content-Disposition: form-data; name=\"data\"; filename=\""ascii
$str04text"tar.exe -cf \""ascii
$str05text"SELECT origin_url, username_value, password_value FROM logins"ascii
$str06text"\\Google\\Chrome\\User Data\\Default\\Login Data"ascii
$str07text"\\SputnikLab\\Sputnik\\User Data\\Default\\Login Data"ascii
$str08text"\\Mozilla\\Firefox\\Profiles\\"ascii
$str09text"\"hostname\":\"([^\"]+)\""ascii
$str10text"\"encryptedUsername\":\"([^\"]+)\""ascii
$str11text"\"encryptedPassword\":\"([^\"]+)\""ascii
$str12text"&cred="fullword ascii
$str13text"D:\\Mktmp\\Amadey\\StealerDLL\\x64\\Release\\STEALERDLL.pdb"ascii

Condition

uint16( 0 ) == 0x5A4D and 7 of them

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • At least 7 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: 50154e39-98b3-40e5-8986-18bbb7b15647

Metadata

version1.0
classificationTLP:CLEAR

Tags:FILE

More Amadey rules