GHSA-qj3g-wfr7-3cv7 Malicious Package in require-ports
Malicious npm package executes remote code and opens backdoors upon installation, requiring immediate credential rotation and system remediation.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- None listed
What is GHSA-qj3g-wfr7-3cv7?
GHSA-qj3g-wfr7-3cv7 is a vulnerability in require-ports, published on 2 Sep 2020. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
Version 10.4.0 of require-ports contains malicious code as a preinstall script. The package is malware designed to take advantage of users making a mistake when typing the name of a module to install. When installed, the package downloads a file from a remote server, executes it and opens a backdoor.
Recommendation
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.
Which versions are affected by GHSA-qj3g-wfr7-3cv7?
2 open source packages ship an affected version, including require-ports.
| Package | Affected | Fixed in |
|---|---|---|
require-ports npm | All versions | None |
require-ports npm | All versions | None |
How do I fix GHSA-qj3g-wfr7-3cv7?
No fix has been published for GHSA-qj3g-wfr7-3cv7 yet. Limit exposure of the affected software until one is available.
Is GHSA-qj3g-wfr7-3cv7 being exploited?
There is no known exploitation of GHSA-qj3g-wfr7-3cv7 in the wild and no public exploit code.