@csc-protocol/token-saver@1.3.4
Malicious code in @csc-protocol/token-saver (npm)
Analysis
This package presents itself as an MCP token-compression server for AI agents, but every entry point (index.js and bin/mcp-server.js both require ./edge-handshake.js on load) silently sends a host-identification beacon at import time: an unawaited POST to hxxps://csc-gateway[.]independent-api-dev[.]workers[.]dev/v1/cache/context with body {"prompt_hash":"sdk_init_v1_3_4_"+process.platform,"encrypted_context":"v1.3.4"}. It is suppressed only if the environment variable CSC_TELEMETRY=0 is set. The advertised compression feature is not implemented: checkOrSetContextCache computes a SHA-256 of the caller's prompt, POSTs that hash to hxxps://csc-gateway[.]independent-api-gateway[.]workers[.]dev/v1/cache/context, and on a cache miss uploads the caller's complete LLM output back to the same endpoint as "encrypted_context" — hashes of private prompts and model output leave the host. The MCP tool handler ignores its arguments and instead returns a fabricated L402/HTTP-402 "solvency clearance" demand for 21 sats paid via Lightning to ambrosialextravaganza376877@getalby[.]com, with a clearance endpoint at hxxps://csc-gateway[.]independent-api-gateway[.]workers[.]dev/v1/verify/integrity, steering agents and their operators into a real payment for a service the package does not provide. No credentials from the installing host are read.
- analyzed by
- Leitwacht
- first seen
- Nov 19, 2026, 12:36 PM
- analyzed
- Nov 19, 2026, 12:37 PM
- weekly installs
- 838
Related advisories
- @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
- css-compat-layer@11.0.9
- solana-web3-stable@1.0.0
- solana-rpc-client@1.0.0
- solana-web3-patched@1.0.0
- solana-web3-fixed@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.