passbch@1.0.0
Malicious code in passbch (npm)
Analysis
passbch ships only a 1.1 KB launcher (passbch.mjs, declaring itself the package's sole `passbch` bin). Despite advertising a terminal Bitcoin Cash game whose results are "proven on-chain", the package contains no game logic, wallet code, or chain-verification code at all. On every invocation the launcher requests remote JavaScript from hxxps://passbch-cash[.]vercel[.]app/duel.mjs?t=<timestamp>, writes the response to the operating system temp directory as passbch.mjs, and executes it with the host's own Node.js binary via child_process.spawn, passing through all command-line arguments (after stripping a pasted hxxps://<host>/race|duel|fight/<id> prefix). The download host is overridable through the DUEL_URL environment variable, so the code that gets executed can be redirected by environment. Because the executable behaviour lives entirely on the remote server, running `npx passbch` or the installed CLI runs whatever code that host serves at that moment with the invoking user's full privileges, and the behaviour can change without any new package version or signature.
- analyzed by
- Leitwacht
- first seen
- Nov 22, 2026, 11:22 PM
- analyzed
- Nov 22, 2026, 11:24 PM
hxxps://github[.]com/Lakshmikanth-3/PassBCH.cash Request takedown / dispute →Related advisories
- @wanzforme/bails@6.0.0
- sauruspro-bail@5.0.2
- nullsub@1.11.15
- nullsub@1.11.16
- gugodapis@1.0.0
- calkyippie@1.0.0
- @tjmlgd/svg@1.0.5
- nebulaai-sdk@1.0.0
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.