Quasar Linux RAT: The Developer-Targeting Supply Chain Weapon You're Not Hunting For
Quasar Linux RAT targets developer credentials across the software supply chain. Learn how QLNX exfiltrates GitHub tokens, AWS keys, and Kubernetes credent
Quasar Linux RAT: The Developer-Targeting Supply Chain Weapon You're Not Hunting For
A previously undocumented Linux Remote Access Trojan (RAT) codenamed Quasar Linux (QLNX) is silently compromising developer systems to harvest credentials across the entire software supply chain—from GitHub personal access tokens to Kubernetes service accounts to SSH keys for production infrastructure.
Unlike traditional malware targeting end users, Quasar Linux is a supply chain weapon: it's engineered to live on developer machines for months, exfiltrating credentials that grant access to source code repositories, package managers, deployment infrastructure, and CI/CD pipelines.
Forensic analysis by security researchers shows Quasar Linux has infected 340+ developers across 12 organizations in the past 6 months, with zero detections by major antivirus vendors.
How Quasar Linux Compromises the Developer Supply Chain
Quasar Linux employs a three-stage attack that specifically targets the credentials developers store locally:
Stage 1: Initial Compromise
Infection vectors include:
- Malicious npm packages (fake
webpack-dev-server, axios-lite, react-devtools)
- GitHub Actions artifacts with embedded payloads
- Trojanized versions of popular tools (compiled binaries from untrusted sources)
Once installed, QLNX establishes persistence by modifying ~/.bashrc, ~/.zshrc, and ~/.profile to execute a loader script on every shell session.
Stage 2: Credential Harvesting
QASAR Linux implements targeted collectors for every developer credential type:
- Git credentials: SSH keys in
~/.ssh/, git config files, GitHub personal access tokens
- Container registries: Docker config in
~/.docker/config.json, ECR credentials, Harbor tokens
- Infrastructure access: Kubernetes kubeconfig files, AWS credentials in
~/.aws/credentials, GCP service account keys
- Language package managers: npm tokens in
~/.npmrc, PyPI credentials in ~/.pypirc, Gem tokens in ~/.gem/credentials
- Development tools: IDE API keys (JetBrains, Visual Studio), CI/CD runner tokens, Slack bots and API keys from dev channels
The trojan implements clipboard monitoring, keystroke logging, and periodic filesystem scans to catch credentials developers create during typical development workflows.
Stage 3: Exfiltration & Persistence
Instead of traditional command-and-control, QLNX uses stealth channels:
- Encrypted exfiltration via DNS queries (embedding credentials in subdomains)
- Slack bot messages sent to compromised developer's own Slack workspace (not flagged as suspicious)
- GitHub issues on private repositories with base64-encoded payloads
- Git commits with credentials embedded in commit messages (pushed to attacker-controlled fork)
Why Developers Can't See It Coming
Quasar Linux evades traditional security detection through multiple techniques:
1. No malware signatures: The entire payload is written in Go and compiled to native binary, making it unrecognizable to antivirus.
2. Standard process impersonation: QLNX runs as bash, zsh, or node.js—processes that are always running on developer machines.
3. Legitimate tool abuse: Credential harvesting uses ls, cat, grep—commands that generate no alerts in EDR systems because they're expected.
4. Timezone-aware activity: The trojan only exfiltrates during business hours in the target's timezone, making it blend with normal developer activity.
5. Defender blindspot: Developer machines are rarely monitored by enterprise EDR. Companies focus on servers and endpoints, not the laptops where source code lives.
The Supply Chain Cascade
When Quasar Linux steals a developer's GitHub token, the impact cascades through the entire software supply chain:
1. Code repository compromise: Attacker creates new branches, commits malicious code, submits pull requests that appear to come from the developer
2. Package publication: Using stolen npm or PyPI credentials, attackers publish trojaned versions of packages the developer maintains
3. Deployment infrastructure: With stolen Kubernetes credentials, attackers compromise production deployments
4. Lateral movement: Stolen SSH keys grant access to servers used by other developers and infrastructure
Forensic analysis of QLNX-infected environments shows that after credential harvesting, attackers waited 30-60 days before using stolen credentials. This delay is tactical—it makes the compromise nearly impossible to correlate with initial infection.
Defense Strategy
For developers:
- Never store sensitive credentials on disk: Use credential managers that integrate with your OS (1Password, macOS Keychain, Linux pass) instead of plaintext files. Use short-lived credentials generated on-demand, not static tokens.
- Implement separate credentials per environment: Your personal laptop shouldn't have the same GitHub token as your CI/CD pipeline. Create role-specific tokens with minimal permissions.
- Rotate credentials quarterly: Every 90 days, rotate every token, key, and credential your development machine has access to. Most developers never do this.
- Monitor your own compromises: Check GitHub personal access tokens, AWS API keys, and Kubernetes API certificates for unauthorized activity. Set up webhooks/alerts for any access from unfamiliar IPs.
- Use SSH keys instead of HTTPS tokens for Git: SSH keys require additional complexity to exfiltrate (private key + passphrase), making them slightly harder to steal.
For organizations:
- Scan developer machines for QLNX: Look for suspicious bashrc modifications, ps output showing
node or bash processes with unusual arguments, and DNS queries to unusual domains.
- Implement developer machine security: Enterprise MDM should monitor developer machines the same way it monitors corporate endpoints. This is the supply chain entry point.
- Enforce hardware security keys: For GitHub, GitLab, and infrastructure access, require hardware security keys (Yubikey, Google Titan) instead of software tokens. QLNX can't steal these.
- Monitor Git and CI/CD activity: When a developer commits code, signs into CI/CD system, or publishes packages, log and correlate these events. Unusual correlation patterns (code commit from one timezone, CI/CD access from another) indicate compromise.
- Implement code signing: Require that all commits are GPG-signed with a key that the developer physically controls. This makes it harder for attackers to commit code that appears authentic.
For security teams hunting Quasar Linux:
- IOC indicators:
- Suspicious modifications to
~/.bashrc or ~/.zshrc with curl or wget commands
- Processes reading from
~/.ssh, ~/.docker, or ~/.aws with cat or grep
- DNS queries with base64-encoded payloads
- Git commits with unusual author information or from unexpected times
- Behavioral indicators:
- Developer machine making outbound DNS queries to unusual domains
- Multiple failed authentication attempts followed by successful login from new IP
- Credentials being used from multiple geographic locations simultaneously
The Bigger Picture
Quasar Linux represents a fundamental shift in how attackers target organizations: instead of compromising corporate networks, they compromise the individual developers who build the code that runs on those networks.
This is the supply chain attack evolution. First came trojaned packages (npm, PyPI). Now comes trojaned developer machines. Next will come trojaned CI/CD pipelines.
The defense requires a mindset shift: your developer laptops are the new corporate perimeter. Treat them that way.