Skip to main content

Malicious code in cbc97b7a (npm)

0
Critical
Published: 09/03/2026 (09/03/2026, 08:59:06 UTC)
Source: GCVE Database
Product: cbc97b7a

Description

The npm package 'cbc97b7a' contains a malicious payload embedded in its description field as a large base64-encoded POSIX shell script. When decoded and executed, this script downloads and installs an xmrig cryptominer that mines Monero cryptocurrency using a hardcoded mining pool and wallet. It establishes persistence via cron jobs and uses multiple fallback command-and-control IP addresses. The package itself contains no legitimate code files, only the malicious script hidden in metadata, designed to be executed by a companion loader fetching the package metadata and piping it to a shell. Any system with this package installed should be considered fully compromised, and all secrets on that system should be rotated from a separate, clean machine.

Affected software

npmghsa
cbc97b7a
Affected versions
=1.1788006723.0=1.1787999998.0=1.1788016922.0=1.1788423886.0=1.1788000497.0=1.1787999566.0

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, 17:55:12 UTC

Technical Analysis

The npm package 'cbc97b7a' versions =1.1787999566.0, =1.1787999998.0, =1.1788000497.0, =1.1788006723.0, =1.1788016922.0, and =1.1788423886.0 contains a malicious base64-encoded POSIX shell script embedded in the package.json description field. This script, when decoded and executed, downloads an xmrig Monero cryptominer from specified GitLab and GitHub repositories, installs cron-based persistence, and mines Monero to a hardcoded pool (xmr.kryptex.network:8029) with an embedded wallet/worker identifier. The script also uses multiple base64-encoded fallback C2 IP addresses for secondary fetches. The package contains no legitimate code files and is intended to be executed by a loader that fetches the package metadata and pipes the decoded description to a shell, delivering the miner installation and persistence mechanisms. Systems with this package installed are fully compromised.

Potential Impact

Systems with this package installed are fully compromised, as the malicious script installs a cryptominer with persistence mechanisms and connects to external mining pools and command-and-control servers. This can lead to unauthorized resource consumption, potential data exposure, and loss of control over the affected system. All secrets and keys stored on compromised systems should be considered exposed and rotated immediately from a different, uncompromised machine. Removing the package alone may not remove all malicious components due to persistence.

Defensive Guidance

Immediate removal of the 'cbc97b7a' package is recommended. However, because the package installs persistent cryptomining malware and potentially other backdoors, affected systems should be considered fully compromised. All credentials and secrets stored on the system must be rotated from a separate, clean environment. A full system investigation and remediation, including reimaging if necessary, should be conducted. No official patch or fix is available; mitigation relies on removal and incident response.

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-15878
Osv Schema Version
1.7.4
Aliases
["GHSA-9m3c-67f2-gjwf"]
Ecosystems
["npm"]

Threat ID: 6a9ad4e9acd9273b49b676cc

Added to database: 09/04/2026, 14:25:45 UTC

Last enriched: 09/07/2026, 17:55:12 UTC

Last updated: 10/04/2026, 03:21:51 UTC

Views: 29

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