Supply chain · April 22, 2025

Phished maintainer credentials let attackers backdoor the xrpl npm package to steal private keys

On 21 April 2025 an attacker phished the npm credentials of a Ripple employee who maintains xrpl, the official JavaScript library for the XRP Ledger, and published five malicious versions that sent wallet seeds, mnemonics and private keys to an attacker-controlled domain. Anyone who ran xrpl 4.2.1 through 4.2.4 or 2.14.2 should treat every key handled by it as compromised, move funds to a new wallet and upgrade to 4.2.5 or 2.14.3.

DisclosedApril 22, 2025
Earliest known activityApril 21, 2025
Affectedxrpl, Ripple, npm
TypeSupply chain
StatusResolved
CVECVE-2025-32965

What was exposed

Two kinds of credential. The maintainer's npm credentials, captured by phishing, let the attacker publish directly to npm and skip the project's pull-request review; Ripple says no GitHub repository was touched. For users, Aikido found a function called checkValidityOfSeed wired into wallet creation and import methods (generate, fromSeed, fromMnemonic, fromEntropy and the constructor), which posted seeds, mnemonics and private keys to the attacker's domain in an HTTP header. The advisory also tells users to rotate any other secrets used with affected systems. Ripple says the XRP Ledger network and codebase were not affected.

Am I affected?

You are affected if an application, script, wallet or CI job installed xrpl 4.2.1, 4.2.2, 4.2.3, 4.2.4 or 2.14.2, which were live from the evening of 21 April to midday on 22 April 2025 UTC, and then created or loaded a wallet with it. Check lockfiles for those versions and look in network logs for requests to 0x9c[.]xyz. Services that only read ledger data without handling keys were at lower risk, but the advisory says to rotate any private keys or secrets used with affected systems.

What to do now

  1. Stop using the affected versions immediately and upgrade to xrpl 4.2.5 or 2.14.3.
  2. Treat every seed, mnemonic and private key the affected code handled as compromised. Move funds to a new wallet generated on a clean system.
  3. Use the XRP Ledger's regular key pair feature to rotate keys, and disable any master key that may have been exposed, as the advisory recommends.
  4. Rotate other secrets that were present on the affected systems.
  5. Block and search logs for the domain 0x9c[.]xyz.

Keys to rotate

Guides to the credentials this incident put at risk:

Timeline

  1. Ripple says a maintainer is phished for credentials at 20:39 UTC; five malicious versions are published to npm between 20:46 and 21:49 UTC. Source
  2. Aikido Security alerts Ripple and publishes its analysis of the backdoor. Source
  3. Between 08:14 and 12:34 UTC the affected versions are deprecated and fixed releases 4.2.5 and 2.14.3 are published. Advisory GHSA-33qr-m49q-rxfx (CVE-2025-32965, CVSS v4 9.3) is published. Source
  4. Ripple publishes its disclosure report, saying no GitHub repositories were compromised and that the maintainer was removed and 2FA enabled for all publishers. Source

Indicators

From the advisories listed below. Use them to search your logs, lockfiles and workflow runs.

  • xrpl versions 4.2.1, 4.2.2, 4.2.3, 4.2.4 and 2.14.2, published without matching GitHub releases.
  • A function named checkValidityOfSeed in the package code.
  • Outbound HTTP POST requests to 0x9c[.]xyz with an ad-referral header.

What this changes for credential handling

  • A phished password was enough to publish. BotPassword fills credentials only on the exact domain they belong to, and support for phishing-resistant passkeys is planned for v1.

Frequently asked questions

Am I affected by the xrpl incident?

You are affected if an application, script, wallet or CI job installed xrpl 4.2.1, 4.2.2, 4.2.3, 4.2.4 or 2.14.2, which were live from the evening of 21 April to midday on 22 April 2025 UTC, and then created or loaded a wallet with it. Check lockfiles for those versions and look in network logs for requests to 0x9c[.]xyz. Services that only read ledger data without handling keys were at lower risk, but the advisory says to rotate any private keys or secrets used with affected systems.

What was exposed in the xrpl incident?

Two kinds of credential. The maintainer's npm credentials, captured by phishing, let the attacker publish directly to npm and skip the project's pull-request review; Ripple says no GitHub repository was touched. For users, Aikido found a function called checkValidityOfSeed wired into wallet creation and import methods (generate, fromSeed, fromMnemonic, fromEntropy and the constructor), which posted seeds, mnemonics and private keys to the attacker's domain in an HTTP header. The advisory also tells users to rotate any other secrets used with affected systems. Ripple says the XRP Ledger network and codebase were not affected.

Which keys should I rotate?

Rotate any npm credentials that were reachable from affected systems, starting with the ones that can publish code or reach production.

Keep keys out of reach of the next compromised package

BotPassword is in early access. Request an invite and we'll email you when your spot opens.