YARA · Signature Base (Florian Roth / Nextron)
SIGNATURE_BASE_EXT_APT_UNC2891_SLAPSTICK
Detects SLAPSTICK malware used by UNC2891
APT / threat actorSignature Base (Florian Roth / Nextron)Detection Rule License 1.1Compiles with YARA-X
- Author
- Mandiant
- Date
- 2022-03-17
- Modified
- 2026-05-15
- Score / Quality
- 80 / 85
What this rule detects
Detects SLAPSTICK malware used by UNC2891
Targets: Linux ELF.
It defines 3 patterns (0 text, 3 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
ext-apt-unc2891-slapstick.yarDetection Rule License 1.1
rule SIGNATURE_BASE_EXT_APT_UNC2891_SLAPSTICK : FILE
{
meta:
= "Detects SLAPSTICK malware used by UNC2891"
= "Mandiant"
= "2e97b8cb-a86e-5be9-92dc-fd1474aa9547"
= "2022-03-17"
= "2026-05-15"
= "https://www.mandiant.com/resources/blog/unc2891-overview"
= "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/yara/apt_unc2891_tinyshell_slapstick.yar#L46-L60"
= "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/LICENSE"
= "b046a949dab2f38b8181782cc6ea0782d2e102c0c30bc782de74112a77c23d6e"
= 80
= 85
= "FILE"
strings:
$ss1 = { 25 59 20 25 62 20 25 64 20 25 48 3a 25 4d 3a 25 53 20 20 20 20 00 }
$ss2 = { 25 2d 32 33 73 20 25 2d 32 33 73 20 25 2d 32 33 73 00 }
$ss3 = { 25 2d 32 33 73 20 25 2d 32 33 73 20 25 2d 32 33 73 20 25 2d 32 33 73 20 25 2d 32 33 73 20 25 73 0a 00 }
condition:
( uint32( 0 ) == 0x464c457f ) and all of them
}
Strings (3 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $ss1 | hex | { 25 59 20 25 62 20 25 64 20 25 48 3a 25 4d 3a 25 53 20 20 20 20 00 } | |
| $ss2 | hex | { 25 2d 32 33 73 20 25 2d 32 33 73 20 25 2d 32 33 73 00 } | |
| $ss3 | hex | { 25 2d 32 33 73 20 25 2d 32 33 73 20 25 2d 32 33 73 20 25 2d 32 33 73 20 25 2d 32 33 73 20 25 73 0a 00 } |
Condition
( uint32( 0 ) == 0x464c457f ) and all of themIn plain words (Heuristic)
- The file must start with the ELF header — a Linux/Unix executable.
- 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.
Licence & attribution
Author: Mandiant
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: 2e97b8cb-a86e-5be9-92dc-fd1474aa9547
Tags:FILE
Related rules
- APT / threat actorSignature Base (Florian Roth / Nextron)· Mandiant· 2022-04-28
- APT / threat actorSignature Base (Florian Roth / Nextron)· Mandiant· 2023-04-20
- APT / threat actorSignature Base (Florian Roth / Nextron)· Mandiant· 2023-04-20
- APT / threat actorSignature Base (Florian Roth / Nextron)· Mandiant· 2023-04-20
- APT / threat actorSignature Base (Florian Roth / Nextron)· Mandiant· 2023-04-20
- APT / threat actorSignature Base (Florian Roth / Nextron)· Mandiant· 2023-04-20
- APT / threat actorSignature Base (Florian Roth / Nextron)· Mandiant· 2023-04-20
- APT / threat actorSignature Base (Florian Roth / Nextron)· Mandiant· 2023-03-04