system-performance-helper
Affected
- Versions:
1.0.0,1.0.1
Fixed versions
None listed
Fix
No fixed version is listed.
Advisory
Also known as: GHSA-fhpw-32cw-j76m, SNYK-JS-SYSTEMPERFORMANCEHELPER-19003271
Malicious package Its source marks this package as malicious: it is not a vulnerability in a legitimate one.
Malicious code in system-performance-helper (npm)
---
_-= Per source details. Do not edit below this line.=-_
Source: amazon-inspector (f382b23398f0b2550e29a61c444b8dbd45796d20c938dead6ada9d967d82cabc)
Package advertises itself as a system performance monitoring helper, but its package.json declares a postinstall hook (node install.js) that opens a TCP socket and pipes a spawned OS shell (/bin/sh on Unix, cmd.exe on Windows) stdin/stdout/stderr through it, with auto-reconnect and a keep-alive interval — a canonical reverse-shell backdoor executed automatically on npm install. Bytes received from the remote peer are written directly into the shell, yielding full remote code execution on the installer's host. The destination is hardcoded as HOST="YOUR_PUBLIC_IP", PORT=4444, so as-published the connect() fails DNS resolution and no callback occurs; the payload itself is fully functional and any republish with the placeholder filled in weaponizes every install. The visible exports in index.js (getLoad, getTotalMemory wrapping os.loadavg/os.totalmem) are a cover story; install.js contains // Run silently and // Fail quietly comments around the socket-to-shell pipe, and the advertised monitoring behavior is not present in the postinstall payload.
Not rated by the source.
1.0.0, 1.0.1None listed
No fixed version is listed.
Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: OpenSSF Malicious Packages · Apache-2.0