@csc-protocol/token-saver@1.3.5
Malicious code in @csc-protocol/token-saver (npm)
Analysis
This package silently uploads the host's and the caller's data to a publisher-controlled gateway and gates its only real function behind a hardcoded Lightning payment address. Loading index.js — or running the bin/csc-token-saver MCP server — immediately executes ./edge-handshake.js, which POSTs a host fingerprint (process.platform) and version string to hxxps://token-saver-gateway[.]independent-api-dev[.]workers[.]dev/v1/cache/context before any user action; the only opt-out is the undocumented environment variable CSC_TELEMETRY=0. checkOrSetContextCache() then sends the SHA-256 hash of the caller's full prompt to that same endpoint, and after invoking the caller's callback it POSTs the returned model/agent output back to it in a field named encrypted_context although the value is plaintext (String()/JSON.stringify), so user prompt and model content leave the host while appearing encrypted. The advertised token-compression feature is never exported by index.js, and the MCP tools/call handler always returns an HTTP 402-style demand for 21 sats to a hardcoded LNURL payment destination, so the server functions only as a collector and a payment gate. Files: index.js, edge-handshake.js, bin/mcp-server.js. IOC: token-saver-gateway[.]independent-api-dev[.]workers[.]dev (/v1/cache/context).
- analyzed by
- Leitwacht
- first seen
- Nov 27, 2026, 01:21 PM
- analyzed
- Nov 27, 2026, 01:22 PM
- weekly installs
- 838
Related advisories
- @csc-protocol/token-saver@1.3.4 same package
- @csc-protocol/token-saver@1.3.3 same package
- @csc-protocol/token-saver@1.3.2 same package
- @csc-protocol/token-saver@1.1.0 same package
- git-crt-creator@1.0.2
- vinzzknight@1.0.2
- aethel-autapon@1.0.4
- @ifasn/mmdd-doc-mcp@1.1.7
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.