Skip to content

YARA · SEKOIA.IO Community

SEKOIA_Apt_Mustangpanda_Windows_Shellcode_Decryptionalgorithm

Decryption routine for Shellcode of MustangPanda

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

What this rule detects

Decryption routine for Shellcode of MustangPanda

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

Summary generated from the rule's metadata and condition.

Rule source

apt-mustangpanda-windows-shellcode-decryptionalgorithm.yarDetection Rule License 1.1
rule SEKOIA_Apt_Mustangpanda_Windows_Shellcode_Decryptionalgorithm : FILE
{
	meta:
		description = "Decryption routine for Shellcode of MustangPanda"
		author = "Sekoia.io"
		id = "c9873a5f-97a6-477f-a1a0-650441c73444"
		date = "2022-12-05"
		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_windows_shellcode_decryptionalgorithm.yar#L1-L28"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "a2ad3bd4dcbee3e23762b674ee8b6717e7ece712b0128145518bfa5d2e4bd66a"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$chunk_1 = {
        7E ??
        8B 55 ??
        53
        56
        8B 75 ??
        57
        8B 7D ??
        4F
        8D A4 24 ?? ?? ?? ??
        8A 1C 11
        30 1C 30
        }

	condition:
		filesize < 8MB and all of them
}

Strings (1 patterns)

IdentifierTypeValueModifiers
$chunk_1hex{ 7E ?? 8B 55 ?? 53 56 8B 75 ?? 57 8B 7D ?? 4F 8D A4 24 ?? ?? ?? ?? 8A 1C 11 …

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: c9873a5f-97a6-477f-a1a0-650441c73444

Metadata

version1.0
classificationTLP:CLEAR

Tags:FILE