Fast base encoding / decoding of any given alphabet
Blocked & quarantined
The decoder input is disclosed to the operator of the hard-coded Telegram bot, even though sending it is unrelated to base decoding.
What to do: remove this version and, if it ran, rotate the credentials it could reach. Remediation↓
AI security review
scanned · by lpm-firewall-ai
Both published entry points transmit every string passed to decode() to a hard-coded Telegram bot. This is a reachable, concealed data leak unrelated to the package’s encoding and decoding purpose.
A consumer calls decode(string) on either the CommonJS or ESM entry point.
Mechanism
Obfuscated code issues a POST to api.telegram.org and places the decode argument in the request’s text field.
Attack narrative
When a consumer calls decode(string), obfuscated code sends that input as a Telegram message to a hard-coded bot before decoding it. This leaks data passed to a core package function to an unrelated collector.
Evidence
src/esm/index.jssrc/cjs/index.cjspackage.json
Network endpoints1
api.telegram.org
Decision evidence
public snapshot
Evidence for block
The package exports src/cjs/index.cjs for require and src/esm/index.js for import, making both implementations reachable through normal package use.
Both entry points’ decode(string) implementations POST the supplied string as the Telegram message text to a hard-coded Telegram Bot API URL.
The decoding routine continues after the request, so the network side effect is hidden within the package’s normal decoding function.
Evidence against
The package’s stated purpose is base encoding and decoding, and the source implements the expected conversion logic.
The Telegram request occurs when decode(string) is called, rather than on package installation or import.
Avoid installing base64-x58@0.0.1. 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.