Skip to content

YARA · SEKOIA.IO Community

SEKOIA_Loader_Amadey_Standalone_May23

Finds standalone samples of Amadey based on characteristic strings

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

What this rule detects

Finds standalone samples of Amadey based on characteristic strings

Associated malware family: Amadey.

Targets: Windows PE.

It defines 2 patterns (1 text, 1 hex, 0 regex).

Summary generated from the rule's metadata and condition.

Rule source

loader-amadey-standalone-may23.yarDetection Rule License 1.1
rule SEKOIA_Loader_Amadey_Standalone_May23 : FILE
{
	meta:
		description = "Finds standalone samples of Amadey based on characteristic strings"
		author = "Sekoia.io"
		id = "5013586c-5ac3-4c1a-a82e-edce4889eedc"
		date = "2023-05-17"
		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_standalone_may23.yar#L1-L17"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "40d2d7a52066ca4e1a65c82ebfa882a77616a1c68f1d315946ab14467787d468"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$str01 = "\\Amadey\\Release\\Amadey.pdb" ascii
		$hex01 = { 6E 74 64 6C 6C 2E 64 6C  6C 00 00 00 72 75 6E 61 73 }

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

Strings (2 patterns)

IdentifierTypeValueModifiers
$str01text"\\Amadey\\Release\\Amadey.pdb"ascii
$hex01hex{ 6E 74 64 6C 6C 2E 64 6C 6C 00 00 00 72 75 6E 61 73 }

Condition

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

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • All 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: 5013586c-5ac3-4c1a-a82e-edce4889eedc

Metadata

version1.0
classificationTLP:CLEAR

Tags:FILE

More Amadey rules