The reverse shell opened a connection to “4.tcp.ngrok[.]io:11425” waiting for commands from the attacker.
“twilio-npm opened a reverse shell to a remote server as a postinstall script.” reads the alert published by the researcher.”
“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.”
The four packages, which had a total of one thousand of downloads, are:
This marks the fourth major takedown of a malicious npm package over the past three months.
(SecurityAffairs – hacking, npm library)