Skip to main content

Malicious code in quartz-core (npm)

0
Critical
Published: 09/01/2026 (09/01/2026, 01:03:21 UTC)
Source: GCVE Database
Product: quartz-core

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

npmghsa
quartz-core
Affected versions
=99.1.9

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

AILast updated: 09/07/2026, 22:23:58 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses