OpenSSF/OSV advisory MAL-2026-6356 confirms this npm version as malicious. package.json declares a postinstall hook ("postinstall": "node run.js") that executes run.js automatically on `npm install`. run.js imports os, fs, http, https, and child_process and gathers host identity and environment data: os.hostname(), os.userInfo(), os.platform(), process.env.USER, process.cwd(), plus filesystem reads via fs.readFileSync / fs.existsSync. The collected data is base64-encoded...
Source
OpenSSF Malicious Packages via OSV
Summary
Malicious code in safe-json-38bd (npm)
Details
package.json declares a postinstall hook ("postinstall": "node run.js") that executes run.js automatically on `npm install`. run.js imports os, fs, http, https, and child_process and gathers host identity and environment data: os.hostname(), os.userInfo(), os.platform(), process.env.USER, process.cwd(), plus filesystem reads via fs.readFileSync / fs.existsSync. The collected data is base64-encoded (Buffer.from(...).toString('base64')) and POSTed out via HTTP/HTTPS at multiple call sites in the same script. The package name has no documented purpose that would justify install-time host reconnaissance, base64 wrapping, or outbound POSTs. Combined fingerprints (lifecycle-hook auto-execute + host-identity collection + base64 encoding + outbound HTTP POST) match a credential / system-intel exfiltration dropper.
Decision reason
OpenSSF Malicious Packages via OSV confirms safe-json-38bd@1.0.0 as malicious (MAL-2026-6356): Malicious code in safe-json-38bd (npm)