npm · Malicious package advisory
Malwareethers-web3
GHSA-65j5-86c5-pmjm
Malicious code in ethers-web3 (npm)
Details
**Severity:** Critical **Affected versions:** `= 6.13.5` The package contains additional code to append a hardcoded SSH key to the user's authorized_keys file, creating a backoor, along with exfiltrating user private keys to an attack-controlled server. --- Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/71b5ccd62809b0f6e173eff59b5900130cf7fc02/osv/malicious/npm/ethers-web3/MAL-2024-9425.json)) **References:** - https://github.com/ossf/malicious-packages/blob/71b5ccd62809b0f6e173eff59b5900130cf7fc02/osv/malicious/npm/ethers-web3/MAL-2024-9425.json - https://github.com/advisories/GHSA-65j5-86c5-pmjm
Compromised versions (1)
- = 6.13.5
Any computer that installed or ran a compromised version should be considered fully compromised. Rotate every secret on that machine from a clean environment.