Skip to content

YARA · SEKOIA.IO Community

SEKOIA_Apt_Mustangpanda_Decrypt_Payload

Detects the decryption routine of DAT file

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

Detects the decryption routine of DAT file

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

Summary generated from the rule's metadata and condition.

Rule source

apt-mustangpanda-decrypt-payload.yarDetection Rule License 1.1
rule SEKOIA_Apt_Mustangpanda_Decrypt_Payload : FILE
{
	meta:
		description = "Detects the decryption routine of DAT file"
		author = "Sekoia.io"
		id = "7b954007-0929-454d-8a10-05279a337f1b"
		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_decrypt_payload.yar#L1-L27"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "dcc32580e351e605d21dc29558764c6fd85f8a9506de8e78f301459a5a2610b7"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$chunk_1 = {
        85 ??
        74 ??
        8B ??
        D1 EA
        A1 ?? ?? ?? ??
        03 C2
        A3 ?? ?? ?? ??
        30 04 29
        41
        3B ??
        72 EC
        }

	condition:
		filesize < 8MB and all of them
}

Strings (1 patterns)

IdentifierTypeValueModifiers
$chunk_1hex{ 85 ?? 74 ?? 8B ?? D1 EA A1 ?? ?? ?? ?? 03 C2 A3 ?? ?? ?? ?? 30 04 29 41 3B ?? …

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: 7b954007-0929-454d-8a10-05279a337f1b

Metadata

version1.0
classificationTLP:CLEAR

Tags:FILE