Skip to content

YARA · CAPE Sandbox (CAPEv2)

CAPE_Amadey

Amadey Payload

MalwareAmadeyCAPE Sandbox (CAPEv2)GNU General Public License v3.0Compiles with YARA-X
Author
kevoreilly, YungBinary
Date
2021-02-18
Modified
2025-08-15
Score / Quality
75 / 70

What this rule detects

Amadey Payload

Associated malware family: Amadey.

Targets: Windows PE.

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

Summary generated from the rule's metadata and condition.

Rule source

amadey.yarGNU General Public License v3.0
rule CAPE_Amadey : FILE
{
	meta:
		description = "Amadey Payload"
		author = "kevoreilly, YungBinary"
		id = "81d251a2-84c3-524c-8ea5-c92ca8764777"
		date = "2021-02-18"
		modified = "2025-08-15"
		reference = "https://github.com/kevoreilly/CAPEv2"
		source_url = "https://github.com/kevoreilly/CAPEv2/blob/6b15e76f28cd83fd1187da6c9aaaad2174255356/data/yara/CAPE/Amadey.yar#L1-L15"
		license_url = "https://github.com/kevoreilly/CAPEv2/blob/6b15e76f28cd83fd1187da6c9aaaad2174255356/LICENSE"
		hash = "988258716d5296c1323303e8fe4efd7f4642c87bfdbe970fe9a3bb3f410f70a4"
		logic_hash = "5a7405a174b63826500f3b04c6f10bc9b40d5b49e85377bef027204e75dd1e9e"
		score = 75
		quality = 70
		tags = "FILE"
		cape_type = "Amadey Payload"

	strings:
		$decode1 = {8B D1 B8 FF FF FF 7F D1 EA 2B C2 3B C8 76 07 BB FF FF FF 7F EB 08 8D 04 0A 3B D8 0F 42 D8}
		$decode2 = {2B C8 8D 04 0A 33 D2 F7 F3 8B 5D ?? 8B CB 83 7B ?? 10}
		$decode3 = {33 D2 8B 4D ?? 8B C7 F7 F6 8A 84 3B [4] 2A 44 0A 01 88 87 [4] 47 8B 45 ?? 8D 50 01}
		$decode4 = {8A 04 02 88 04 0F 41 8B 7D ?? 8D 42 01 3B CB 7C}

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

Strings (4 patterns)

IdentifierTypeValueModifiers
$decode1hex{8B D1 B8 FF FF FF 7F D1 EA 2B C2 3B C8 76 07 BB FF FF FF 7F EB 08 8D 04 0A 3B D8 0F 42 D8}
$decode2hex{2B C8 8D 04 0A 33 D2 F7 F3 8B 5D ?? 8B CB 83 7B ?? 10}
$decode3hex{33 D2 8B 4D ?? 8B C7 F7 F6 8A 84 3B [4] 2A 44 0A 01 88 87 [4] 47 8B 45 ?? 8D 50 01}
$decode4hex{8A 04 02 88 04 0F 41 8B 7D ?? 8D 42 01 3B CB 7C}

Condition

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

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • At least 2 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

Sample hashes

Hashes of samples the author lists in the rule's meta (look them up in your threat-intelligence platform).

  • 988258716d5296c1323303e8fe4efd7f4642c87bfdbe970fe9a3bb3f410f70a4

Licence & attribution

Author: kevoreilly, YungBinary

Source repository: CAPE Sandbox (CAPEv2) @ 6b15e76f28

Licence: GNU General Public License v3.0 (repository licence)

Copyright notice: Cuckoo Sandbox is copyrighted by the Cuckoo Foundation.

Original rule

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

Rule id: 81d251a2-84c3-524c-8ea5-c92ca8764777

Metadata

cape_typeAmadey Payload

Tags:FILE

More Amadey rules