test-pkg-x0
This report shows the evidence for test-pkg-x0@1.0.4. 5 of 6 known versions are blocked or flagged. The newest version, 0.0.1-security, is allowed. See all versions.
OpenSSF/OSV Malicious Advisory
imported 4mo ago · by OpenSSF/OSVOpenSSF/OSV advisory MAL-2026-6717 confirms this npm version as malicious.
Advisory
MAL-2026-6717
Source
OpenSSF Malicious Packages via OSV
Summary
Malicious code in test-pkg-x0 (npm)
Details
Package declares scripts.postinstall pointing at shim.js, a script that runs unconditionally on npm install. shim.js branches on uname -s (Darwin/MINGW/Linux) and executes OS-native commands on the installer's machine, including launching the Calculator application and opening https://github.com/X3r0Day/BunnyHijack in the installer's default browser via open / cmd /c start / xdg-open. Additionally, package.json registers a `bin` entry named `node` mapped to shim.js. Under package managers that resolve `node` from node_modules/.bin (notably bun), any dependency postinstall that invokes `node` will execute this shim instead of the real Node.js runtime; the declared dependency protoc-gen-grpc-web is used as the trigger. The combined effect is arbitrary command execution on the installer at install time, both directly via the package's own postinstall and indirectly by hijacking the `node` command for sibling dependencies' install scripts. The Calculator launch and browser navigation are a proof-of-concept payload; the underlying execution primitive is fully attacker-controlled.
Source & flagged code
0 flagged · loading sourceNo flagged code excerpts are attached to this scan.
Findings
1 High
HighOsv Malicious Advisory
Affected versions and remediation
This report applies to test-pkg-x0@1.0.4.
The same advisory and Firewall decision cover 5 recorded versions
1.0.0, 1.0.1, 1.0.2, 1.0.3, 1.0.4
The versions list below shows the verdict for each recorded version.
- Avoid installing test-pkg-x0@1.0.4. Remove it from direct dependencies and check your lockfile for transitive copies.
- Choose an independently verified alternative or release. This report does not establish that other versions are safe.
- If this version ran, investigate the affected machine and build environment. Rotate credentials it could access and rebuild from a trusted environment.
Evidence last updated: .
Source advisory published: .
This report uses published external intelligence. The advisory does not provide a separate source-code analysis for each listed version.
Think this verdict is wrong? Dispute it on GitHub or read how reports are produced.