Skip to main content

Malicious code in node-procmetrics (npm)

0
Critical
Published: 07/13/2026 (07/13/2026, 13:59:48 UTC)
Source: GCVE Database
Product: node-procmetrics

Description

The node-procmetrics npm package is a malicious package that executes a harmful install script automatically during installation. The script exfiltrates the entire process environment to a hardcoded command-and-control server, hijacks the installer's npm authentication token to gain persistent arbitrary shell execution, and maintains persistence by spawning a detached Node.js process. This package is part of a coordinated campaign involving similarly named malicious packages using shared infrastructure. All published versions from 1.0.0 through 1.0.9 are affected.

Affected software

npmghsa
node-procmetrics
Affected versions
=1.0.7=1.0.1=1.0.5=1.0.9=1.0.4=1.0.8=1.0.6=1.0.3=1.0.2=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/29/2026, 10:55:00 UTC

Technical Analysis

node-procmetrics is a malicious npm package published by a disposable account. Its install.js script runs automatically at npm install time and performs multiple malicious actions: it reads and exfiltrates the full process environment to a hardcoded public IP command-and-control endpoint; it XOR-decodes and writes a stolen npm registry authentication token into the installer's global npm config, effectively hijacking the installer's npm identity; it polls the npm registry for commands encoded in dist-tags and executes them in an infinite loop with arbitrary shell access; it exfiltrates command output back to the npm registry by republishing the package with encoded data; and it achieves persistence by copying itself to /tmp/.pm-agent.js and spawning a detached Node.js process. The same command-and-control IP is used by a sibling malicious package, indicating a coordinated campaign by a single actor. All published versions 1.0.0 through 1.0.9 are affected.

Potential Impact

This malicious package compromises any system that installs it by exfiltrating sensitive environment variables, hijacking npm credentials to gain persistent arbitrary command execution, and maintaining a covert backdoor that communicates via the npm registry. This enables the attacker to execute arbitrary shell commands indefinitely, potentially leading to full system compromise and unauthorized access to private data and credentials.

Mitigation Recommendations

No official patch or remediation is available as this is a malicious package rather than a vulnerability in legitimate software. The package should be removed from all environments and blocked from installation. Users and organizations should audit their dependencies to ensure node-procmetrics and related malicious packages (e.g., node-sysmetrics) are not present. Avoid installing packages from untrusted or disposable publisher accounts. Monitor for any npm config changes or unexpected persistent Node.js processes spawned from temporary directories. Since this is a malicious package, remediation involves removing it and preventing its installation rather than patching.

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-10445
Osv Schema Version
1.7.4
Ecosystems
["npm"]

Threat ID: 6a6978839c2644c7f8df5d1b

Added to database: 07/29/2026, 03:50:27 UTC

Last enriched: 07/29/2026, 10:55:00 UTC

Last updated: 09/07/2026, 17:05:40 UTC

Views: 71

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