Quasar Linux: A Stealthy Threat to Software Development Environments
Quasar Linux (QLNX) has emerged as a sophisticated and stealthy Remote Access Trojan (RAT) specifically targeting Linux developer environments. This malware stealthily transforms developer and DevOps workstations into high-value targets for software supply-chain attacks. Utilizing fileless execution techniques, an eBPF rootkit, PAM backdoors, and a Peer-to-Peer (P2P) command and control mesh, QLNX skillfully evades conventional security defenses.
Understanding the Malware’s Background
Despite its name, QLNX is not affiliated with the Windows-targeting QuasarRAT family. Instead, it has been meticulously designed to function within modern Linux developer settings. It has primarily been detected on workstations and Continuous Integration/Continuous Deployment (CI/CD) build hosts that run commonly used distributions including Debian, Ubuntu, Red Hat Enterprise Linux (RHEL), Fedora, and Arch Linux. These environments typically offer access to crucial areas such as source code repositories, build pipelines, package registries, and cloud accounts, making them fertile ground for cybercriminals.
The strategic intent behind QLNX is evident: it aims to harvest high-value credentials. This includes SSH private keys, Git personal access tokens, NPM and PyPI tokens, AWS and Kubernetes configuration secrets, browser-stored passwords, and project-level environment files (.env). By acquiring these credentials, the malware enables code tampering and compromises cloud infrastructure across the software supply chain.
Technical Mechanisms of Infection
QLNX operates as a singular ELF binary but swiftly transitions to an almost entirely in-memory execution model to circumvent traditional file-based detection methods. Upon activation, it leverages Linux system calls like memfd_create to create an anonymous in-memory file. The actual payload is written into this descriptor, executed via execveat, and the original on-disk binary is deleted, leaving no visible executable on the disk.
To maintain invisibility in process listings, QLNX alters its own comm and argv fields to mimic kernel worker threads, such as [kworker/0:0] or [migration/0], making detection challenging during routine system checks using commands like ps or top.
In a recent report shared with GBhackers, Trend Micro characterized QLNX as a fully featured Linux RAT composed of 58 command handlers encompassing various functionalities such as remote shell access, file and process management, credential harvesting, rootkit management, and SOCKS proxying. This multipurpose capability further illustrates the threat that QLNX poses to Linux environments.
Rootkit and Covert Techniques
The malware employs a dual-rootkit design that features both user-space and kernel-level components. The user-space rootkit is registered via /etc/ld.so.preload as libsecurity_utils.so.1, compelling every dynamically linked process to load this malicious library. This permits the malware to hide files, processes, and other artifacts from standard detection tools.
On the kernel level, the eBPF component uses BPF maps and programs to obscure selected process IDs, file paths, and network ports. By doing so, it significantly reduces the visibility that defenders would typically have when relying on standard command-line utilities.
Furthermore, QLNX deploys malicious PAM modules (e.g., pam_security.so and libpam_cache.so) that integrate into the PAM stack. This allows the malware not only to backdoor authentication processes but also to capture cleartext passwords from local logins and sudo activities. The harvested credentials are stored in XOR-encrypted hidden files located in directories such as /var/log/.ICE-unix, /var/log/.Test-unix, and /tmp/.pam_cache, alongside SSH keys and tokens gleaned from various other configuration files.
Peer-to-Peer Command and Control
Rather than relying on a single, centralized command-and-control server, QLNX constructs a P2P mesh network where compromised hosts relay commands to one another. This architectural choice enhances its resilience against conventional detection and blocking strategies. The communication protocol uses a fixed magic number during the handshake, and while the traffic initially appears as ordinary encrypted TLS traffic, this camouflaging complicates the effectiveness of simplistic block-list defenses.
Mitigation Strategies
Given that QLNX minimizes persistent artifacts and operates predominantly in memory, effective detection necessitates the correlation of signals across multiple telemetry sources, including syscall logs, file integrity monitoring, authentication logs, and network flows. Key indicators of compromise may involve anonymous executions linked to memfd paths, suspicious gcc compilations resulting in .so files placed in /tmp or /dev/fd, modifications to /etc/ld.so.preload, and the creation of hidden files with high entropy in various directories.
Trend Micro, alongside other cybersecurity firms, advises treating any confirmed QLNX compromise as justification for a complete operating system wipe and reinstallation from a verified clean image. This recommendation is grounded in the threat’s combination of eBPF rootkit elements, PAM hooks, library injections, and its resilient P2P persistence model.
In conclusion, as the digital landscape continues to evolve, so too does the complexity of cyber threats. Understanding the operational intricacies of QLNX is crucial for developing effective defensive strategies and safeguarding vital software development environments from rapidly evolving malware threats.

