randompkga
Affected
- introduced
0(semver)
Fixed versions
None listed
Fix
No fixed version is listed.
Advisory
Also known as: GHSA-532p-c872-3926
Malicious package Its source marks this package as malicious: it is not a vulnerability in a legitimate one.
Malicious code in randompkga (npm)
---
_-= Per source details. Do not edit below this line.=-_
Source: amazon-inspector (c4e7dfd8fb150e4c7f087a17c2ed162a8e48fe7e4e253a68df901f0e775fd68c)
package.json declares a postinstall lifecycle script cd "$INIT_CWD" && npm i randompkgb that, on npm install, installs the additional npm package randompkgb into the consumer's project. A companion postinstall.js reads the installer's own package.json at $INIT_CWD, sets dependencies.randompkgb = "^1.0.0", and writes the manifest back to disk, persisting the injected dependency across future installs and CI runs. The caret range is unpinned, so any current or future version of randompkgb — whose code is not present in this package and is not controlled by the installer — will be resolved and executed on the installer's machine at install time and on require. This is dependency-tree hijacking: the mechanism drops attacker-controlled third-party code into the installer's environment and rewrites source-controlled project state to make the injection durable.
Source: ghsa-malware (cfdfcd7cd3af1c7b280e6f13503a472f2b31582e239d6fac0b6cacc1709cf36f)
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.
Not rated by the source.
0 (semver)None listed
No fixed version is listed.
Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: OpenSSF Malicious Packages · Apache-2.0