Malicious package · npm
Malicious code in zzf7rce-probe (npm)
1.0.0No safe version. Remove it.What it does
zzf7rce-probe@1.0.0 declares a postinstall hook (node./probe.js) that automatically runs on npm install. probe.js uses child_process.execSync with /bin/bash to collect host identity data (id, id -u, id -un, hostname) and probes for a Docker control-socket privilege-escalation primitive at /var/run/docker.sock. It emits the collected fields inside an ==F7-PROOF== block on stderr and then calls process.exit(1) so npm persists the output in its error report. An in-source comment documents the intended exfiltration path: a specific downstream application (tianji-function) stores this install error output in fn_dependency.install_log, which is readable via GET /api/function/dependencies, turning the downstream app's log store into the retrieval channel. The package self-labels as an authorized security probe, but nothing in the code restricts execution to any specific target — the host recon fires on any machine that installs it.
Reported by ghsa-malware 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.
No fix · Remove and contain
npm uninstall zzf7rce-probeSources