Malicious code in node-procmetrics (npm)
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.
AI Analysis
Technical Summary
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.
Malicious code in node-procmetrics (npm)
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
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
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.
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 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.