Malware found on npm infecting local package with reverse shell

Unlike some other public repositories, the npm package repository is never really quiet. And, while there has been some decline in malware numbers between 2023 and 2024, this year’s numbers don’t seem to continue that downward trend. Still, while RL has detected some interesting npm malware so far this year, none of it warranted a detailed writeup.

Then March rolled around, and two very interesting packages were published on npm: ethers-provider2 and ethers-providerz. These were simple downloaders whose malicious payload was cleverly hidden, with a second stage that “patches” the legitimate npm package ethers, installed locally, with a new file containing the malicious payload. That patched file ultimately serves a reverse shell.  

This approach reveals a high level of sophistication on the threat actor’s part that deserves some further analysis and exploration. 

The post Malware found on npm infecting local package with reverse shell appeared first on Security Boulevard.

This article has been indexed from Security Boulevard

Read the original article: