Malicious code in quartz-core (npm)
Description
The npm package quartz-core version 99.1.9 contains malicious code that executes during installation. Its preinstall script collects the installer's OS username, hostname, and current working directory, then sends this information via a DNS query to an attacker-controlled domain. This behavior is consistent with reconnaissance for dependency confusion attacks. The package has no legitimate functionality beyond this beacon. Systems with this package installed should be considered fully compromised.
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The quartz-core npm package at version 99.1.9 includes a preinstall hook that runs index.js, which gathers sensitive environment details such as the OS username, hostname, and current working directory. It then performs a DNS A-record query to a subdomain of an attacker-controlled domain, embedding these details in the query. The package itself contains no other code or dependencies, indicating its purpose is reconnaissance to identify internal build environments vulnerable to dependency confusion attacks. This malicious behavior compromises the security of any system where the package is installed.
Potential Impact
Any system with quartz-core version 99.1.9 installed is considered fully compromised. The attacker gains information about the environment and potentially control over the system. All secrets and keys stored on the compromised system should be rotated immediately from a separate, trusted machine. Removing the package alone does not guarantee removal of all malicious artifacts or backdoors introduced during installation.
Mitigation Recommendations
No official patch or fix is available. Immediate removal of the quartz-core package version 99.1.9 is recommended. All credentials and secrets stored on the affected system must be rotated from a different, secure environment. Treat the compromised system as fully controlled by an attacker and consider rebuilding or isolating it to ensure complete remediation.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-15671
- Osv Schema Version
- 1.7.4
- Aliases
- ["GHSA-w63g-6crc-rq2w"]
- Ecosystems
- ["npm"]
Threat ID: 6a984563acd9273b496ac514
Added to database: 09/02/2026, 15:48:51 UTC
Last enriched: 09/07/2026, 22:23:58 UTC
Last updated: 10/02/2026, 08:52:21 UTC
Views: 38
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.