Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

Malicious code in node-fsmetrics-data (npm)

0
High
Published: 07/13/2026 (07/13/2026, 19:50:17 UTC)
Source: GCVE Database
Product: node-fsmetrics-data

Description

--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (b67fad1d72f63941a3973df07e6cbd980c9e3c3bbe5041818f58b9be07d6b7e9) The tarball contains archive-sender.js, which tars the directory /root/.codex, splits the archive into 200MB chunks, and uploads each chunk by running `npm publish` against a sibling package name (node-procmetrics-data), using an npm registry `_authToken` that is XOR-obfuscated (hex bytes XOR 0x5A) and written into ~/.npmrc at runtime. The current package's hostname is embedded in the published manifest description. archive-sender.js calls archiveAndSend() at the top level, so `require`/`node` on that file triggers the archive-and-publish flow immediately. In this version index.js is empty, package.json declares no lifecycle scripts, and no other file requires archive-sender.js, so a default `npm install` does not auto-execute the payload — but the payload is fully wired and ships as a ready-to-run file inside the tarball. The obfuscated bundled publish token additionally allows anyone who extracts it to push arbitrary versions to the npm account it belongs to. ## Source: ghsa-malware (57ec12383e715341e57772316d09188e66f17f066466460b40ddff38405cb90f) Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.

Affected software

npmghsa
node-fsmetrics-data
Affected versions
=1.0.1=1.0.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: 07/14/2026, 09:53:14 UTC

Technical Analysis

The node-fsmetrics-data npm package versions 1.0.0 and 1.0.1 include a malicious script (archive-sender.js) that archives sensitive data from the /root/.codex directory, splits it into 200MB chunks, and uploads these chunks by publishing to a related npm package (node-procmetrics-data) using an XOR-obfuscated npm registry authentication token. This token is stored in ~/.npmrc at runtime and can be extracted to push arbitrary versions to the npm account. The malicious code is not triggered by default during npm install, as index.js is empty and no lifecycle scripts or requires invoke archive-sender.js automatically. However, requiring or running archive-sender.js triggers the payload immediately.

Potential Impact

Sensitive data from the /root/.codex directory on affected systems can be exfiltrated by the malicious script. The obfuscated npm authentication token embedded in the package allows attackers to publish arbitrary versions to the npm account, potentially enabling further supply chain attacks or distribution of additional malicious packages. Although the payload does not execute automatically on installation, manual execution or requiring the malicious file triggers data exfiltration and unauthorized npm publishing.

Mitigation Recommendations

No official patch or remediation is currently documented. Users should avoid installing or using node-fsmetrics-data versions 1.0.0 and 1.0.1. Since the malicious payload does not execute on default npm install, simply installing the package without running the malicious file may prevent immediate compromise. However, to mitigate risk, remove these versions from projects and replace them with trusted alternatives. Monitor npm accounts for unauthorized publishing activity if these versions were used. Patch status is not yet confirmed — check the vendor advisory or npm security advisories for updates.

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-10479
Osv Schema Version
1.7.4
Aliases
[]
Ecosystems
["npm"]
Database Specific Severity
null
Cvss Version
null

Threat ID: 6a55ffa068715ace432f7147

Added to database: 07/14/2026, 09:21:36 UTC

Last enriched: 07/14/2026, 09:53:14 UTC

Last updated: 07/29/2026, 21:35:07 UTC

Views: 13

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