MAL-2026-10147: Malicious code in polygon-gama-apis (npm)
The npm package polygon-gama-apis version 1.4.1 contains malicious code that executes arbitrary JavaScript fetched from a remote server (https://bet.slotgambit.com/icons/111) using the JavaScript Function constructor with full Node.js context. This allows the remote operator to execute arbitrary code on any system that imports and calls the package's exported API. The package metadata is deceptive, and bundled dependencies suggest credential and wallet stealing capabilities. Any system with this package installed should be considered fully compromised.
AI Analysis
Technical Summary
polygon-gama-apis version 1.4.1 exports a function getPlugin() that fetches JSON from a remote URL and executes the 'credits' field content as JavaScript code with full Node.js privileges. This remote code execution enables the attacker to run arbitrary code within the installer's process. The package uses obfuscation techniques such as splitting the command-and-control URL into fragments and disguising the malicious payload in a field named 'credits'. The package metadata is inconsistent and misleading, aiming to attract installs from multiple ecosystems. Bundled dependencies indicate potential credential and wallet stealing functionality. Removal of the package does not guarantee full remediation due to possible persistent compromise.
Potential Impact
Systems with polygon-gama-apis version 1.4.1 installed and running are fully compromised, allowing arbitrary code execution by a remote attacker. This can lead to theft of secrets, credentials, and keys stored on the affected system. The attacker gains full control of the Node.js process and potentially the host system. Secrets and keys must be rotated immediately from a secure environment after detection.
Mitigation Recommendations
No official patch or fix is currently available. Immediate removal of polygon-gama-apis version 1.4.1 from all systems is strongly recommended. Due to the high likelihood of full system compromise, all secrets, credentials, and keys stored on affected systems should be considered compromised and rotated from a different, secure environment. Monitor for any signs of persistent malicious activity and consider full system reimaging if compromise is suspected.
MAL-2026-10147: Malicious code in polygon-gama-apis (npm)
Description
The npm package polygon-gama-apis version 1.4.1 contains malicious code that executes arbitrary JavaScript fetched from a remote server (https://bet.slotgambit.com/icons/111) using the JavaScript Function constructor with full Node.js context. This allows the remote operator to execute arbitrary code on any system that imports and calls the package's exported API. The package metadata is deceptive, and bundled dependencies suggest credential and wallet stealing capabilities. Any system with this package installed should be considered fully compromised.
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
polygon-gama-apis version 1.4.1 exports a function getPlugin() that fetches JSON from a remote URL and executes the 'credits' field content as JavaScript code with full Node.js privileges. This remote code execution enables the attacker to run arbitrary code within the installer's process. The package uses obfuscation techniques such as splitting the command-and-control URL into fragments and disguising the malicious payload in a field named 'credits'. The package metadata is inconsistent and misleading, aiming to attract installs from multiple ecosystems. Bundled dependencies indicate potential credential and wallet stealing functionality. Removal of the package does not guarantee full remediation due to possible persistent compromise.
Potential Impact
Systems with polygon-gama-apis version 1.4.1 installed and running are fully compromised, allowing arbitrary code execution by a remote attacker. This can lead to theft of secrets, credentials, and keys stored on the affected system. The attacker gains full control of the Node.js process and potentially the host system. Secrets and keys must be rotated immediately from a secure environment after detection.
Mitigation Recommendations
No official patch or fix is currently available. Immediate removal of polygon-gama-apis version 1.4.1 from all systems is strongly recommended. Due to the high likelihood of full system compromise, all secrets, credentials, and keys stored on affected systems should be considered compromised and rotated from a different, secure environment. Monitor for any signs of persistent malicious activity and consider full system reimaging if compromise is suspected.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-10147
- Osv Schema Version
- 1.7.4
- Aliases
- ["GHSA-pvwq-8chv-g96r"]
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a520eb968715ace438f567f
Added to database: 07/11/2026, 09:36:57 UTC
Last enriched: 07/11/2026, 09:52:43 UTC
Last updated: 07/12/2026, 03:34:21 UTC
Views: 5
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.