Quasar Linux RAT malware that steals developers credentials and puts the software supply chain at risk

Published 4 min de lectura 59 reading

Trend Micro has detailed a Linux implant that specifically points to development and operations environments, baptized as Quasar Linux RAT (QLNX); its design combines systematic theft of credentials with advanced concealment techniques, making it a particularly dangerous threat to the software supply chain.

Unlike many general malware pieces, QLNX focuses on removing secrets that usually reside on developer and pipeline machines: NPM and PyPI tokens, Git and cloud credentials, .env files, Kubernetes and Docker settings, among others. Obtaining any of these elements allows an attacker to publish malicious packages, take control of cloud infrastructure or move laterally through CI / CD, with the potential to cause a "domino effect" in projects and dependencies.

Quasar Linux RAT malware that steals developers credentials and puts the software supply chain at risk
Image generated with IA.

What makes QLNX particularly disturbing is its combination of techniques: fileless execution from memory, camouflage as kernel threads (e.g. kworker), and a redundant persistence architecture (systemd, crontab, modifications in .bashrc and others). It also uses two rootkit levels - a routkit in user space using LD _ PRELOAD and a kernel component that uses eBPF to hide processes, files and ports - and a backdoor that intercepts credentials in PAM authentication processes. This mixture allows you to remain silent for long periods and capture clear credentials just when the user is authenticated.

From the operational point of view, QLNX supports dozens of remote commands to manage files, inject code, take pants, record keys and establish TCP / SOCKS tunnels, making it a complete tool for remote control and exfiltration. You can also load modules in each dynamically linked process to capture tokens, and maintain persistent communication with your TCP, HTTPS and HTTP control infrastructure.

The implications for developers, package holders and security equipment are clear: a committed machine not only risks the local code, but can pollute public repositories and automated pipelines. An attacker with NPM or PyPI publication permits can introduce malicious versions that spread to many projects and users.

To mitigate the immediate risk, it is essential protect secrets and assume that any workstation can be objective. Practical measures include rotating and revoking potentially exposed tokens, moving credentials to managed vaults (secret managers) with temporary and limited access, and replacing long-term tokens with federated ID mechanisms (e.g. OIDC) that avoid storing secrets in local files.

From the point of view of detection and response, it is appropriate to review artifacts and behaviors that QLNX abuses: to verify LD _ PRELOAD variables and suspicious PAM modules, to audit unusual entries in systemd and cron, to check the presence of threads / processes that imitate the kernel, and to monitor the use of eBPF or BPF maps that are not justified by legitimate tools. Modern EDR solutions and integrity monitoring can help, but it is also necessary isolate build agents and use ephemeral environments to minimize the possibility of persistence and theft of credentials.

Quasar Linux RAT malware that steals developers credentials and puts the software supply chain at risk
Image generated with IA.

The medium-term strategy should focus on reducing supply chain exposure: requiring package signature, enabling unit review processes, implementing reproducible buildings and applying minimum access controls in pipelines. For critical organizations, the response to such an incident may require redoing building agents and compromised stations from reliable media, and conducting a forensic investigation that includes memory capture to detect phileless executions.

QLNX highlights two trends that we must address with priority: on the one hand, the exploitation of credentials stored in development environments; on the other, the use of legitimate technologies (LD _ PRELOAD, eBPF, PAM) as means of concealment. In order to deepen how eBPF works and why its abuse complicates detection, the documentation and resources can be consulted at ebpf.io. To understand the techniques of credentials theft and the attack patterns that defence teams must monitor, MITRE's ATT & CK matrix is a useful resource: https: / / attack.mitre.org / techniques / T1552 /.

In short, QLNX is not just another malware for Linux: it is a reminder that developers and their machines are part of the security perimeter. The combination of technical controls, good practice in the management of secrets and hardening processes in CI / CD is the only realistic way to limit the scope of threats that our tokens and pipelines seek to spread.

Coverage

Related

More news on the same subject.