Cybersecurity researchers have discovered three malicious npm packages-node-telegram-utils, node-telegram-bots-api, and node-telegram-util - that masquerade as a popular Telegram bot library but contain SSH backdoors and data exfiltration capabilities. The packages use "starjacking" to appear more popular than they are by linking to the GitHub repository of the legitimate library. Once installed, the packages add SSH keys to the system, granting the attackers persistent remote access.
The packages also collect system information like username and IP address, and beacon out to external servers to confirm the infection. Removing the packages does not eliminate the threat, as the inserted SSH keys remain.
This disclosure comes alongside another malicious npm package, @naderabdi/merchant-advcash, which is designed to launch a reverse shell to a remote server while disguising it as a payment integration utility…