Supply-chain threat intelligence

Incident detail

criticalnpm·maintainer compromise·osv

Malicious code in polygon-gama-apis (npm)

polygon-gama-apis

Risk score

92

AI summary

Indexed incident for polygon-gama-apis (npm).

Description

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.

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.

Technical details

Affected versions

=1.4.1>=0

Indicators

  • Advisory IDs
    90%
  • affected version=1.4.175%
  • affected version>=075%

Timeline

  1. Advisory published
  2. Indexed by ThreatPkg

Related incidents