YARA · SEKOIA.IO Community
SEKOIA_Apt_Mustangpanda_Windows_Shellcode_Decryptionalgorithm
Decryption routine for Shellcode of MustangPanda
- 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:
= "Decryption routine for Shellcode of MustangPanda"
= "Sekoia.io"
= "c9873a5f-97a6-477f-a1a0-650441c73444"
= "2022-12-05"
= "2024-12-19"
= "https://github.com/SEKOIA-IO/Community"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/apt_mustangpanda_windows_shellcode_decryptionalgorithm.yar#L1-L28"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
= "a2ad3bd4dcbee3e23762b674ee8b6717e7ece712b0128145518bfa5d2e4bd66a"
= 75
= 80
= "FILE"
= "1.0"
= "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)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $chunk_1 | hex | { 7E ?? 8B 55 ?? 53 56 8B 75 ?? 57 8B 7D ?? 4F 8D A4 24 ?? ?? ?? ?? 8A 1C 11 … |
Condition
filesize < 8MB and all of themIn 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.
References
Licence & attribution
Author: Sekoia.io
Source repository: SEKOIA.IO Community @ a438a5901a
Licence: Detection Rule License 1.1 (repository licence)
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
| version | 1.0 |
|---|---|
| classification | TLP:CLEAR |
Tags:FILE
Related rules
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2024-09-10
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2024-10-21
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2024-10-21
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2024-09-27
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2024-09-27
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2024-09-23
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2024-06-11
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2024-03-06