Threat Actors Abuse Fileless Execution to Spread Quasar Linux RAT

Compromising a developer workstation is one of the most devastating moves a threat actor can make on a Linux network.

A single infected machine can expose source repositories, signing keys, and production cloud credentials, triggering a massive software supply chain incident.

Security researchers at TrendMicro recently discovered Quasar Linux (QLNX), a highly stealthy Remote Access Trojan (RAT) engineered specifically for Linux environments.

Unlike traditional malware, QLNX leverages fileless execution and dynamic compilation to remain practically invisible to standard endpoint detection and response (EDR) solutions.

QLNX targets developer and DevOps workstations running mainstream Linux distributions like Ubuntu, Debian, and RHEL. The malware operates through a 58-command framework designed primarily for high-value credential theft.

By infiltrating these environments, attackers harvest SSH private keys, AWS and Kubernetes configuration secrets, Git Personal Access Tokens (PATs), and NPM or PyPI registry tokens.

Fileless Quasar RAT Spreads

QLNX deploys as a self-contained Executable and Linkable Format (ELF) binary. However, its runtime activity leaves virtually no recognizable trace on the disk.

The malware uses the memfd_create system call to create a temporary, memory-only file. It writes its payload into this space and executes it directly, unlinking the original disk file immediately.

Fileless Quasar RAT Spreads (Source: guardsix)
Fileless Quasar RAT Spreads (Source: guardsix)

This fileless execution technique allows the running process to bypass static antivirus scans and file integrity monitors.

To maintain its hidden presence, QLNX mimics legitimate kernel worker threads to blend into routine system monitoring. Furthermore, rather than carrying prebuilt rootkits, the malware embeds raw C source code.

Upon execution, it dynamically compiles an eBPF-based kernel rootkit and a Pluggable Authentication Module (PAM) backdoor using the host’s local GCC compiler.

Fileless Quasar RAT Spreads (Source: guardsix)
Fileless Quasar RAT Spreads (Source: guardsix)

This generates a unique shared object for each victim, neutralizing static signature detection. The compiled rootkit forces system-wide library injection by modifying /etc/ld.so.preload.

Every newly spawned process loads the malicious library, allowing the PAM hook to intercept and record cleartext passwords from local logins and sudo events.

Fileless Quasar RAT Spreads (Source: guardsix)
Fileless Quasar RAT Spreads (Source: guardsix)

Simultaneously, infected hosts establish a resilient peer-to-peer (P2P) mesh network, ensuring that taking down a single command-and-control (C2) server does not disrupt the attackers’ access.

According to guardsix research, security teams must rely on behavioral correlation using SIEM solutions, auditd logs, and File Integrity Monitoring (FIM).

Indicators of Compromise

IoC TypeIndicator / PathDescription
File Path/etc/ld.so.preloadModified by QLNX to force system-wide injection of its malicious rootkit and PAM modules into newly spawned processes.
File Path/usr/lib/libsecurity_utils.so.1The dynamically compiled malicious shared object acting as the user-space rootkit.
File Path/usr/lib/.libpam_cache.soPluggable Authentication Module (PAM) backdoor dropped by the malware to intercept authentication.

Note: IP addresses and domains are intentionally defanged (e.g., [.]) to prevent accidental resolution or hyperlinking. Re-fang only within controlled threat intelligence platforms such as MISP, VirusTotal, or your SIEM.

Varshini
Varshini
Varshini is a Cyber Security expert in Threat Analysis, Vulnerability Assessment, and Research. Passionate about staying ahead of emerging Threats and Technologies..

Trending News

Related Stories