TINYSHELL
- Type
- Backdoor
- Capabilities
- ExfiltrationPersistencePost exploitation
- Platforms
- LinuxNetwork device
TinyShell is a lightweight, open-source backdoor used to provide remote access to compromised Linux systems and Linux-based network appliances. Its core functionality includes remote command execution, interactive or reverse-shell access, and bidirectional file transfer. It supports encrypted communications and is commonly deployed during post-exploitation to retain access to compromised servers. Operators have configured multiple TinyShell instances into chains connecting internal hosts with externally reachable systems, enabling access within otherwise enclosed networks.
TinyShell has been used by multiple independent threat groups, including UNC3886, UNC2891, UNC1945, UNC4540, and LIMINAL PANDA. Documented deployments include banking infrastructure, telecommunications networks, and SonicWall Secure Mobile Access appliances. Operators have established persistence through modified system binaries, initialization scripts, and services, and have concealed running instances through process masquerading and manipulation of process-filesystem visibility. In UNC4540 operations, TinyShell formed part of an appliance-specific malware suite whose accompanying scripts maintained deployment through crashes and firmware upgrades; credential theft was performed by other components of that suite.
TinyShell code and functionality have also been incorporated into other backdoors, including Rekoobe-derived implants and BPFDoor variants. Individual derivatives may add configuration encryption, alternative activation mechanisms, or other capabilities that are not universal to TinyShell.
Associated vulnerabilities
1 CVE Mallory has correlated with this family across public research and vendor advisories. Each card links to the full Mallory page for that vulnerability.
Associated threat actors
10 distinct threat actors Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
“Off-the-shelf Linux backdoor: A VMProtected Rekoobe/TinySHell derived backdoor (raw-TCP + OpenSSL + PTY shell) first seen in March 2024.”
The use of TinyShell by UNC3886 demonstrates a focus on lightweight, agile attack tools that are highly effective in targeted, post-exploitation operations.
The campaign uses malware consisting of bash scripts and an Executable and Linkable Format binary that Mandiant identified as a TinyShell backdoor.
TinyShell is listed alongside TinyFluff, TinyPosh, and TinyNode among the four implants used by OldGremlin.
To maintain access to hosts within enclosed networks, TINYSHELL was deployed on multiple servers and configured to connect to other servers within the same network.
To maintain access to hosts within enclosed networks, TINYSHELL was deployed on multiple servers and configured to connect to other servers within the same network.
+4 more in the app. View in Mallory
Techniques & procedures
31 distinct techniques documented for this family, organized by ATT&CK tactic.
Resource Development
1 technique
Resource Development
LIMINAL PANDA employs several custom malware families... PingPong... SIGTRANslator... [and] TinyShell.
Initial Access
3 techniques
Initial Access
Attacks usually begin at the network edge by exploiting exposed services or valid accounts on devices like VPNs, firewalls, and virtualization hosts.
A suspected Chinese hacking campaign has been targeting unpatched SonicWall Secure Mobile Access (SMA) appliances... While it is unclear what vulnerability was used to compromise devices, Mandiant says that the targeted devices were unpatched, making them likely vulnerable to older flaws.
A Raspberry Pi with a 4G modem was physically connected to the same network switch as the ATM.
Execution
2 techniques
Execution
One of the most recognized tools in its malware arsenal is a Linux backdoor called BPFDoor. | Upon gaining a successful foothold, Linux-compatible beacon frameworks such as CrossC2 are deployed to facilitate post-exploitation activities.
Command #sh will execute remote commands using the existing command line interpreter.
Persistence
8 techniques
Persistence
The threat actor was also observed persisting with TINYSHELL via init scripts and service creation.
Attacks usually begin at the network edge by exploiting exposed services or valid accounts on devices like VPNs, firewalls, and virtualization hosts.
TinyShell and China Chopper were both used to establish persistence on staging systems during lateral movement.
"In March 2025, it was revealed that Chinese cyber-espionage actors were deploying custom backdoors on EoL Junos OS MX routers to drop a set of ‘TinyShell’ backdoor variants."
Mandiant explained ... it discovered the UNC3886 “China-nexus espionage group” had deployed several TINYSHELL-based backdoors into Junos OS-powered routers.
These services were registered with systemd to achieve persistence, allowing them to automatically execute during system startup and reboot.
Once inside, attackers deploy tools such as CrossC2 for command execution, TinyShell for stealthy persistence...
The threat actor modified software binaries to ensure persistence on the compromised hosts.
Privilege Escalation
7 techniques
Privilege Escalation
The threat actor was also observed persisting with TINYSHELL via init scripts and service creation.
Nesprávne overovanie pôvodu súborov a nedostatočnú izoláciu procesov možno injekciou kódu do legitímnych procesov zneužiť na obídenie zabudovaného bezpečnostného mechanizmu Veriexec.
CVE-2025-21590 by lokálny útočník s prístupom k shell-u mohol zneužiť na obídenie bezpečnostného mechanizmu Veriexec, vykonanie škodlivého kódu a získanie úplnej kontroly nad systémom.
Attacks usually begin at the network edge by exploiting exposed services or valid accounts on devices like VPNs, firewalls, and virtualization hosts.
Mandiant explained ... it discovered the UNC3886 “China-nexus espionage group” had deployed several TINYSHELL-based backdoors into Junos OS-powered routers.
These services were registered with systemd to achieve persistence, allowing them to automatically execute during system startup and reboot.
Once inside, attackers deploy tools such as CrossC2 for command execution, TinyShell for stealthy persistence...
Stealth
8 techniques
Stealth
Mandiant has documented the activities of a team it's called UNC2891 and its targeting of Solaris systems with backdoors dubbed TINYSHELL and SLAPSTICK and a rootkit called CAKETAP.
STEELCORGI is a packer used to encrypt malware used by the attackers.
the backdoor process, which was named “lightdm” in an attempt to masquerade as the legitimate LightDM display manger, but was found at an unusual location
The threat actor disguised deployed malware with legitimate-looking names.
Nesprávne overovanie pôvodu súborov a nedostatočnú izoláciu procesov možno injekciou kódu do legitímnych procesov zneužiť na obídenie zabudovaného bezpečnostného mechanizmu Veriexec.
These backdoors included active and passive functions, and embedded scripts that disabled logging mechanisms on the device.
Attacks usually begin at the network edge by exploiting exposed services or valid accounts on devices like VPNs, firewalls, and virtualization hosts.
UNC2891 also leveraged anti-forensics techniques such as Linux bind mount abuse (MITRE ATT&CK T1564.013) to conceal their activity.
Credential Access
3 techniques
Credential Access
Also dropped are Sliver, TinyShell, keyloggers, and brute-force utilities to facilitate credential harvesting and lateral movement.
Also dropped are Sliver, TinyShell, keyloggers, and brute-force utilities to facilitate credential harvesting and lateral movement.
Also dropped are Sliver, TinyShell, keyloggers, and brute-force utilities to facilitate credential harvesting and lateral movement.
Collection
1 technique
Collection
Also dropped are Sliver, TinyShell, keyloggers, and brute-force utilities to facilitate credential harvesting and lateral movement.
Command and Control
7 techniques
Command and Control
TinyShell ... provides threat actors with remote command execution over HTTP/HTTPS
The broadly-connected network monitoring server was used as a pivot; a secondary backdoor on the internet-facing mail server maintained access.
where the BPFdoor controller was deployed... The BPFdoor backdoor was deployed on these systems for long-term persistence.
Employing remote access tools (T1219) and application layer protocols (T1071) for command and control.
The A-records of these domains were activated only for the duration of the attackers' operations and then disabled afterwards.
Investigating which processes were beaconing to Raspberry Pi on port 929.
RifleSpine ... employs the CryptoPP library to implement the AES encryption algorithm, securing data transmitted between the compromised system and the threat actor.
Observables
31 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
49 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.