Malware found on npm infecting local package with reverse shell
March 26, 2025, 5:20 p.m.
Description
A sophisticated malware campaign targeting npm packages has been discovered, involving two malicious packages: ethers-provider2 and ethers-providerz. These packages act as downloaders, hiding their malicious payload cleverly. Upon installation, they patch the legitimate locally-installed npm package 'ethers' with a new file containing malicious code. This patched file ultimately serves a reverse shell, connecting to the threat actor's server. The malware employs evasive techniques, maintaining persistence even after removal of the original malicious package. This approach demonstrates a high level of sophistication and poses a significant threat to software supply chain security. The campaign also includes other related packages, highlighting the growing scope of risks for both software producers and end-user organizations.
Tags
Date
- Created: March 26, 2025, 4:55 p.m.
- Published: March 26, 2025, 4:55 p.m.
- Modified: March 26, 2025, 5:20 p.m.
Attack Patterns
- T1505.003
- T1036.004
- T1573.002
- T1059.005
- T1059.007
- T1071.001
- T1036.005
- T1554
- T1204.002
- T1105
- T1027