Skip to content

YARA · SEKOIA.IO Community

SEKOIA_Apt_Mustangpanda_Payload

Decryption routine of mustang panda payload

APT / threat actorSEKOIA.IO CommunityDetection Rule License 1.1Compiles with YARA-X
Author
Sekoia.io
Date
2022-12-08
Modified
2024-12-19
Score / Quality
75 / 80

What this rule detects

Decryption routine of mustang panda payload

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

Summary generated from the rule's metadata and condition.

Rule source

apt-mustangpanda-payload.yarDetection Rule License 1.1
rule SEKOIA_Apt_Mustangpanda_Payload : FILE
{
	meta:
		description = "Decryption routine of mustang panda payload"
		author = "Sekoia.io"
		id = "ce7ddf20-e13f-4b5f-8fff-4b1387b29568"
		date = "2022-12-08"
		modified = "2024-12-19"
		reference = "https://github.com/SEKOIA-IO/Community"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/apt_mustangpanda_payload.yar#L1-L42"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "734d42aed4574de620773f1f2d08c6b1fc206efd1b576f0f3679edcc0b2ce91d"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$chunk_1 = {
        89 74 24 ??
        B9 ?? ?? ?? ??
        8B 44 24 ??
        3D ?? ?? ?? ??
        B8 ?? ?? ?? ??
        0F 4C C1
        E9 ?? ?? ?? ??
        B8 ?? ?? ?? ??
        31 DB
        31 ED
        31 FF
        E9 ?? ?? ?? ??
        8B 44 24 ??
        B9 ?? ?? ?? ??
        3B 44 24 ??
        B8 ?? ?? ?? ??
        0F 42 C1
        E9 ?? ?? ?? ??
        88 5C 24 ??
        89 6C 24 ??
        89 7C 24 ??
        B9 ?? ?? ?? ??
        8B 44 24 ??
        3D ?? ?? ?? ??
        B8 ?? ?? ?? ??
        0F 4C C1
        }

	condition:
		filesize < 8MB and all of them
}

Strings (1 patterns)

IdentifierTypeValueModifiers
$chunk_1hex{ 89 74 24 ?? B9 ?? ?? ?? ?? 8B 44 24 ?? 3D ?? ?? ?? ?? B8 ?? ?? ?? ?? 0F 4C C1 E9 ?? ?? ?? ?? B …

Condition

filesize < 8MB and all of them

In plain words (Heuristic)

  • The file must be smaller than 8MB (a cheap guard that skips large files).
  • 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: ce7ddf20-e13f-4b5f-8fff-4b1387b29568

Metadata

version1.0
classificationTLP:CLEAR

Tags:FILE