@zzzcrypto/xrp-libnpm
Advisory published Updated
@zzzcrypto/xrp-lib is a confirmed malicious npm package (MAL-2026-13215) that typosquats a legitimate package to trick installs (malicious version 2.14.0). Do not install it — remove it immediately and rotate any exposed credentials.
Malicious code in @zzzcrypto/xrp-lib (npm)
What this malware does
Package impersonates the legitimate xrpl library (README: 'Drop-in replacement for xrpl'; author field 'XRPLF'; repo points to a non-existent XRPLF/xrp-lib). On require, index.js collects hostname, username, home directory, current working directory, and the entire process.env, JSON-serializes and base64-encodes the payload, then transmits it as a GET query parameter to a hardcoded Telegram Bot API endpoint (api.telegram.org, bot id 7231970337, chat_id 8969499041). A temp-file flag suppresses repeat sends. The embedded payload references @wethenorth12/xrp-lib while this package is @zzzcrypto/xrp-lib, indicating the same code has been republished under multiple scopes. process.env in developer and CI environments routinely holds cloud tokens, npm publish tokens, database URLs, and API keys, which are captured wholesale by this transmission.
Malicious versions
Indicators of compromise (SHA-256)
Detection & response playbook
TyposquatFind it
Search your lockfiles and build artifacts for @zzzcrypto/xrp-lib (version 2.14.0).
If you installed it — respond
@zzzcrypto/xrp-lib is a typosquat — you almost certainly intended a legitimately-named package. Remove @zzzcrypto/xrp-lib, install the correct package, and rotate any secrets exposed during the install since post-install scripts may have already run.
Did it already run?
If @zzzcrypto/xrp-lib was installed, its post-install payload may already have run. Removing the package does not undo that — check outbound connections and credential use from the install window onward.
Frequently asked questions
Campaign
References
Credits
- Amazon Inspector · finder
Detect & block this
O3 blocks @zzzcrypto/xrp-lib-class packages before install and in CI — and if it already ran, its runtime egress monitoring catches the malicious outbound activity and severs the channel.