RedShell
- Type
- Backdoor
- Capabilities
- Credential theftExfiltrationPersistenceReconnaissancePost exploitationDefense evasionLateral movement
- Delivery
- Landing page
- Platforms
- Linux
RedShell is a native Linux backdoor and post-exploitation beacon introduced with the RedC2 4.0 command-and-control framework in June 2026. It registers compromised hosts with its controller, collecting host and network identifiers, operating-system details, user information, and privilege status before processing operator commands. Its capabilities include interactive shell access, command execution, file management and transfer, system reconnaissance, SSH key and browser credential theft, database discovery, and data exfiltration. SOCKS5 proxying, TCP port forwarding, and tunneling enable network pivoting. RedShell also supports in-memory ELF and shellcode execution and persistence through scheduled tasks, shell startup mechanisms, user-level services, and desktop autostart entries. Its command channel uses TLS with certificate verification disabled, while some file transfers and exfiltration use plaintext HTTP.
RedShell has been distributed through a software supply-chain campaign involving 14 malicious npm packages disguised as calendar, date-math, and streak-calculation utilities. These packages retain their advertised functionality while concealing a bundled Linux executable presented as a native accelerator. Importing an affected package, directly or through a transitive dependency, triggers a loader that makes the payload executable and starts it as a detached background process. Execution does not depend on installation lifecycle hooks, so disabling npm installation scripts does not prevent this infection path.
The campaign exposes Linux developer systems and build environments to remote control, credential theft, and access to reachable internal services. RedC2 is commercially marketed by an actor using the name MarlboroMan; this association does not establish that actor's responsibility for the npm campaign.
Associated threat actors
1 distinct threat actor Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
It's located either directly within the "dist/" or under "dist/internal/," but what it contains is the same: the RedShell Linux beacon for RedC2 4.0 that communicates with a remote Windows or Linux server to facilitate post-exploitation activities on the compromised host.
Techniques & procedures
37 distinct techniques documented for this family, organized by ATT&CK tactic.
Initial Access
1 technique
Initial Access
Researchers identified the activity as a software supply chain attack delivering RedShell, a Linux implant.
Execution
8 techniques
Execution
It can create persistence through cron, shell startup files, user-level services or desktop autostart entries.
RedShell can run commands, open a reverse shell, transfer files and inspect users, processes and network settings.
Through /bin/sh, the Linux beacon provides an interactive shell and allows for a wide range of system operations
The attack starts when an affected package is imported into an application.
The loader makes a bundled Linux executable runnable and launches it silently in the background.
/dlopen < path > [sym] Loads a shared library and optionally executes a symbol
The danger begins when an affected module is imported.
Delivery is handled by the package entry file, dist/index.mjs, which acts as a trojan loader. It re-exports the date helpers and launches the bundled implant as soon as the module loads.
Persistence
5 techniques
Persistence
It can create persistence through cron, shell startup files, user-level services or desktop autostart entries.
It can create persistence through cron, shell startup files, user-level services or desktop autostart entries.
This implant also has the capability of searching for sensitive information, including SSH keys
/adduser < user > < pass > Creates a new user and sets their password
It can create persistence through cron, shell startup files, user-level services or desktop autostart entries.
Privilege Escalation
5 techniques
Privilege Escalation
It can create persistence through cron, shell startup files, user-level services or desktop autostart entries.
It can create persistence through cron, shell startup files, user-level services or desktop autostart entries.
Windows commands ... /redshell bin -inject < process > < filename > Injects shellcode into given process
This implant also has the capability of searching for sensitive information, including SSH keys
It can create persistence through cron, shell startup files, user-level services or desktop autostart entries.
Stealth
5 techniques
Stealth
14 trojanized NPM packages have been masquerading as legitimate calendar modules and utility modules while secretly delivering a Linux backdoor
Windows commands ... /redshell bin -inject < process > < filename > Injects shellcode into given process
PRIORITY_DELETE Deletes the configuration file and executable, then exits
This function executes the command via /bin/sh -c... The file or archive is uploaded using curl over HTTPS.
execution of BOFs, .NET assemblies and shellcode in memory
Credential Access
2 techniques
Credential Access
The report describes RedShell as capable of taking SSH keys, browser-stored credentials and database-related files.
The report describes RedShell as capable of taking SSH keys, browser-stored credentials and database-related files.
Discovery
6 techniques
Discovery
RedShell can run commands, open a reverse shell, transfer files and inspect users, processes and network settings.
RedShell can run commands, open a reverse shell, transfer files and inspect users, processes and network settings.
Notable capabilities include: System, process, user, environment, interface, and network discovery.
RedShell can run commands, open a reverse shell, transfer files and inspect users, processes and network settings.
Prior to entering a command-processing LO, they collect basic information about the host.
allows for a wide range of system operations, including system discovery, file management, collection of data
Lateral Movement
2 techniques
Lateral Movement
It supports SOCKS5 proxying, TCP port forwarding and tunnelling, features that can turn one compromised Linux host into a bridge toward otherwise unreachable systems.
The C2 framework is also feature-rich, supporting terminal access, file transfer, staged payload delivery, data collection, multi-beacon operation, network visualization, host-to-host tunneling, and in-memory execution of Beacon Object Files (BOFs), .NET assemblies, and shellcode.
Collection
1 technique
Collection
its Linux component facilitates data collection, including the theft of sensitive information such as SSH keys
Command and Control
5 techniques
Command and Control
It supports SOCKS5 proxying, TCP port forwarding and tunnelling, features that can turn one compromised Linux host into a bridge toward otherwise unreachable systems.
In addition to persistence and in-memory ELF execution, it also supports SOCKS5 proxying.
It supports SOCKS5 proxying, TCP port forwarding and tunnelling, features that can turn one compromised Linux host into a bridge toward otherwise unreachable systems.
The loader makes a bundled Linux executable runnable and launches it silently in the background.
RedShell can run commands, open a reverse shell, transfer files and inspect users, processes and network settings.
Exfiltration
3 techniques
Exfiltration
Commands are received from the server over that connection, and command output, status messages, and errors are sent back over the same connection.
The implant uses separate plain HTTP paths for data theft and payload downloads.
/download < path > Outbound file or archive upload from the affected host to Litterbox over a separate HTTPS connection
Observables
3 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
6 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.