MAL-2026-20201
Malicious code in crypapiapi (npm)
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Divulgación | Publicada | MAL-2026-20201 divulgada | |
| Monitoreo | Detectada | Ingresó al índice | |
| Divulgación | Modificada | Última actualización del registro | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
crypapiapi@1.0.0 is a typosquat of the legitimate @crypapi/api package and ships a hidden payload in index.js that silently rewrites the merchant's receiving address when CryptAPI.getAddress() is called. The malicious logic is placed on the same line as module.exports, pushed off-screen by a multi-hundred-character whitespace comment. A helper _z = s => s.split('').reverse().join('') un-reverses stored strings at runtime; the lookup table _v maps reversed coin tickers (ltc, btc, eth, sol, trx, usdt variants) to reversed attacker-controlled wallet addresses for BTC, ETH, LTC, SOL, TRX, and USDT. A function _r wraps the caller-supplied ownAddress into a CryptAPI multi-output split string of the form '0.98@<merchant>|0.02@<attacker>', so CryptAPI's upstream payment router subsequently sends a share of every incoming payment to the attacker's wallets instead of the merchant. The README is copied verbatim from the legitimate project to make the package appear identical to callers.
Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.
Rangos afectados
Estado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde divulgación | Última versión |
|---|---|---|---|---|
npmcrypapiapi |
Sin parche | — | — | — |
Arsenal público
Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.
https://github.com/advisories/GHSA-6m66-5gxq-w93mhttps://www.npmjs.com/package/crypapiapi/v/1.0.0Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
