YARA · Signature Base (Florian Roth / Nextron)
SIGNATURE_BASE_APT_CN_Twistedpanda_Loader
Detects loader used by TwistedPanda
- Author
- Check Point Research
- Date
- 2022-04-14
- Modified
- 2025-07-01
- Score / Quality
- 80 / 85
What this rule detects
Detects loader used by TwistedPanda
Targets: Windows PE.
It defines 4 patterns (0 text, 4 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
rule SIGNATURE_BASE_APT_CN_Twistedpanda_Loader : FILE
{
meta:
= "Detects loader used by TwistedPanda"
= "Check Point Research"
= "a10f6019-f069-579c-b112-18537a7d8fd8"
= "2022-04-14"
= "2025-07-01"
= "https://research.checkpoint.com/2022/twisted-panda-chinese-apt-espionage-operation-against-russians-state-owned-defense-institutes/"
= "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/yara/apt_cn_twisted_panda.yar#L1-L44"
= "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/LICENSE"
= "5b558c5fcbed8544cb100bd3db3c04a70dca02eec6fedffd5e3dcecb0b04fba0"
= "efa754450f199caae204ca387976e197d95cdc7e83641444c1a5a91b58ba6198"
= "b7f4f31a26b5f968b1d5c82d9165b4d45d75336993b113dda54fd37f628639ee"
= 80
= 85
= "FILE"
strings:
$seq1 = { 6A 40 68 00 30 00 00 }
$seq2 = { 6A 00 50 6A 14 8D ?? ?? ?? ?? ?? 50 53 FF }
$seq3 = { 6A 00 6A 00 6A 03 6A 00 6A 03 68 00 00 00 80 }
$decryption = { 8B C? [2-3] F6 D? 1A C? [4-6] 30 0? ?? 4? }
condition:
uint16( 0 ) == 0x5A4D and uint32( uint32( 0x3C ) ) == 0x00004550 and filesize < 3000KB and all of ( $seq* ) and $decryption
}
Strings (4 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $seq1 | hex | { 6A 40 68 00 30 00 00 } | |
| $seq2 | hex | { 6A 00 50 6A 14 8D ?? ?? ?? ?? ?? 50 53 FF } | |
| $seq3 | hex | { 6A 00 6A 00 6A 03 6A 00 6A 03 68 00 00 00 80 } | |
| $decryption | hex | { 8B C? [2-3] F6 D? 1A C? [4-6] 30 0? ?? 4? } |
Condition
uint16( 0 ) == 0x5A4D and uint32( uint32( 0x3C ) ) == 0x00004550 and filesize < 3000KB and all of ( $seq* ) and $decryptionIn plain words (Heuristic)
- The file must start with “MZ” — a Windows executable (PE).
- The file must be smaller than 3000KB (a cheap guard that skips large files).
- All patterns in ( $seq* ) must match.
- Pattern $decryption must be present.
Test this rule in your browser
Drop a file to scan it with this rule using YARA-X compiled to WebAssembly. Nothing is uploaded.
Sample hashes
Hashes of samples the author lists in the rule's meta (look them up in your threat-intelligence platform).
- 5b558c5fcbed8544cb100bd3db3c04a70dca02eec6fedffd5e3dcecb0b04fba0
- efa754450f199caae204ca387976e197d95cdc7e83641444c1a5a91b58ba6198
Licence & attribution
Author: Check Point Research
Source repository: Signature Base (Florian Roth / Nextron) @ 94a1c48d7a
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: a10f6019-f069-579c-b112-18537a7d8fd8
Tags:FILE
Related rules
- APT / threat actorSignature Base (Florian Roth / Nextron)· Check Point Research· 2022-04-14
- APT / threat actorSignature Base (Florian Roth / Nextron)· Check Point Research· 2022-04-14
- APT / threat actorSignature Base (Florian Roth / Nextron)· Check Point Research· 2022-04-14
- APT / threat actorSignature Base (Florian Roth / Nextron)· Check Point Research· 2022-04-14