GhostPenguin
- Type
- Backdoor
- Capabilities
- ReconnaissancePost exploitationDefense evasion
- Platforms
- Linux
GhostPenguin is a multithreaded Linux backdoor written in C++ and compiled as an x86-64 ELF executable. It provides remote shell access, command execution, and extensive filesystem control, including file creation, deletion, renaming, reading, writing, timestamp modification, extension-based searches, and directory-tree enumeration. It collects host and network information, including operating-system details, hostname, username, architecture, process ID, and gateway information, and transmits these during command-and-control registration.
GhostPenguin communicates over UDP port 53 using a custom session-based protocol. An initial unencrypted handshake obtains a 16-byte server-assigned session identifier, which serves as the RC5 key for subsequent encrypted communications. Separate threads handle receiving, sending, and heartbeat signaling. The protocol validates packet lengths and session identifiers and implements acknowledgments, outbound queuing, and retransmission to provide reliability over UDP. A PID-based check prevents multiple instances from running, and an operator-issued uninstall command supports self-deletion and artifact cleanup.
Trend Micro discovered GhostPenguin through AI-assisted hunting for low-detection Linux malware. The analyzed sample was submitted to VirusTotal in July 2025 and remained undetected there for more than four months. It contains unused persistence-related functions and leftover debugging artifacts; persistence was not active in the analyzed sample.
Techniques & procedures
12 distinct techniques documented for this family, organized by ATT&CK tactic.
Stealth
1 technique
Stealth
During this teardown, all threads are canceled, resources are uninitialized, and a call to SelfDel() is made to try to delete the malware's executable from the disk. Finally, the PID file is removed before the process terminates.
Defense Impairment
1 technique
Defense Impairment
Supported commands allow the malware to provide a remote shell via “/bin/sh”, and perform various file and directory operations including creating, deleting, renaming, reading, and writing files, modifying file timestamps
Discovery
5 techniques
Discovery
This information includes: LAN IP address Default gateway (obtained via Netlink sockets)
This information includes: LAN IP address Default gateway ... Host name Current username (via whoami command)
After extracting the PID, it invokes kill(pid, 0) to test whether that process is currently active.
The malware collects system information including IP address, gateway, OS version, hostname, and username, and sends it to a C&C server during a registration phase.
Supported commands allow the malware to provide a remote shell via “/bin/sh”, and perform various file and directory operations including creating, deleting, renaming, reading, and writing files, modifying file timestamps, and searching for files by extension.
Lateral Movement
1 technique
Lateral Movement
Supported commands allow the malware to provide a remote shell via “/bin/sh”
Collection
1 technique
Collection
Supported commands allow the malware to provide a remote shell via “/bin/sh”, and perform various file and directory operations including creating, deleting, renaming, reading, and writing files
Command and Control
3 techniques
Command and Control
All C&C communication occurs over UDP port 53. The malware first requests a 16-byte session ID from the server, which is subsequently used as the key for an RC5 encryption algorithm to encrypt all traffic. The malware sends periodic heartbeats to maintain its connection.
All C&C communication occurs over UDP port 53.
The malware first requests a 16-byte session ID from the server, which is subsequently used as the key for an RC5 encryption algorithm to encrypt all traffic.
Observables
6 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
7 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.