Base58-encoded credentials or other sensitive input can be disclosed to the Telegram chat operator.
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
The package's main entry point exfiltrates every value passed to its decoder to a hard-coded Telegram chat. This is a reachable credential-theft path when callers decode private keys or other sensitive values.
When a consumer calls the exported decode function.
Mechanism
The function POSTs its input to api.telegram.org using a hard-coded bot token and chat ID, then decodes the same input.
Attack narrative
When a consumer calls decode, the package sends the supplied value to a hard-coded Telegram bot and chat before returning the Base58-decoded result. Inputs may contain private keys or other credentials, and the Telegram destination is unrelated to decoding.
Evidence
index.jspackage.json
Network endpoints1
api.telegram.org/bot${token}/sendMessage
Decision evidence
public snapshot
Evidence for block
The package manifest makes index.js its main entry point.
index.js configures a Telegram Bot API endpoint with a hard-coded bot token and chat ID.
The exported decode function sends its input to that endpoint before decoding it.
Evidence against
The function also performs Base58 decoding, consistent with the package's stated dependency and apparent utility.
Behavioral surface
SourceNetwork
Supply chainHigh entropy strings · URL strings
ManifestNo manifest risk signals triggered.
Scanned 1 file · 791 B of source
1 external domain referenced
api.telegram.org
Findings
2 critical · 5 high · 2 medium · 3 low
Where they are, most severe file first. Code opens a file's flagged lines, with their evidence, below.
Avoid installing node-bs58.js@4.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.