puppeteer-obscura
Affected
- introduced
0(semver)
Fixed versions
None listed
Fix
No fixed version is listed.
Advisory
Also known as: GHSA-cxwq-q9c5-424v
Malicious package Its source marks this package as malicious: it is not a vulnerability in a legitimate one.
Malicious code in puppeteer-obscura (npm)
---
_-= Per source details. Do not edit below this line.=-_
Source: amazon-inspector (5617ac5e060d08fcfe23669c497e6b4fbb8587fd7f7630a7b9f6e86287880983)
On npm install, the package's postinstall hook (node dist/install.js) downloads a platform-specific binary from https://github.com/h4ckf0r0day/obscura/releases/latest/download/<asset>, writes it to disk, marks it executable (chmod), and the package later spawns it via child_process.spawn. Two structural issues make this an install-time remote code execution surface: (1) the URL uses GitHub's mutable releases/latest pointer with no version pin and no hash or signature verification, so the bytes delivered to every installer can change at any moment without a corresponding npm release; (2) the GitHub owner h4ckf0r0day (defined in dist/constants.js as GITHUB_REPO = "h4ckf0r0day/obscura") does not match the npm publisher identity yoannchb/yoannchb-pro declared in package.json and LICENSE. Whoever controls the h4ckf0r0day GitHub account — which is not the npm publisher — can ship arbitrary native code to every installer of this package. The advertised purpose (a Chromium-like browser binary for Puppeteer) provides cover for an opaque executable that runs on the installer's machine.
Source: ghsa-malware (a3c4d559ca37c933d3740932a055c986015603ed942aee9b747d0bde9e60a8dd)
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