polygon-gama-apis
Affected
- introduced
0(semver)
Fixed versions
None listed
Fix
No fixed version is listed.
Advisory
Also known as: GHSA-pvwq-8chv-g96r
Malicious package Its source marks this package as malicious: it is not a vulnerability in a legitimate one.
Malicious code in polygon-gama-apis (npm)
---
_-= Per source details. Do not edit below this line.=-_
Source: amazon-inspector (f0e5efa9d57dae04a6082dfa776d2c2664f3ce5a838ed9cf56f40656937b7e92)
polygon-gama-apis exports getPlugin(), which fetches JSON from https://bet.slotgambit.com/icons/111 and passes the response field data.credits directly to the JavaScript Function constructor, invoking it with a full Node.js context (require, module, exports, process, Buffer, __dirname). Any consumer that imports the package and calls the exported API executes whatever JavaScript the remote server returns at that moment, granting the operator of bet.slotgambit.com arbitrary code execution in the installer's process. The C2 URL is assembled from split string fragments (protocol/domain/separator/path) and the executable JS is delivered in a field named 'credits' — cosmetic disguises typical of remote-loader malware. Package metadata is also deceptive: the name (polygon-gama-apis) and keywords (react, helper, svg) contradict the declared description and README (a 'Tailwindcss Forms Bundler'), and the README instructs users to require a different name entirely — a cover story to lure installs from multiple unrelated ecosystems (Web3/Polygon, React, Tailwind). Bundled dependencies (@primno/dpapi, node-machine-id, better-sqlite3) are consistent with credential and wallet-stealer payloads delivered on demand.
Source: ghsa-malware (42333c05374ee3e4fe8ee2e6e148c3c12443b317b7a17f0c9bd08177ca8c8a44)
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