Malicious code in ts-toolkit-plus (npm)
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (49d47be3f5dc16ea70755e0233f46106d3f50d1d5384a4f20c76b91463c9876c) The package's main entry defines a getPlugin() function that performs an HTTPS request to a hardcoded bare-IP endpoint at 31.97.137.157:45000/icons/112 and passes the response field data.credits to `new Function('require','module',...,'Promise', data.credits)`, executing whatever the remote host returns with full Node.js context including require, process, Buffer, and globalThis. The destination URL is assembled from split protocol/separator/domain/path fragments and wrapped in benign 'icon/CDN' naming that hides the code-execution sink. The declared dependencies (@primno/dpapi for Windows DPAPI unwrap of browser-stored secrets, node-machine-id for host fingerprinting, better-sqlite3/sqlite3 for browser profile databases, socket.io-client) do not correspond to the advertised 'crypto checkout' purpose and pre-stage tooling a remote payload can invoke via the injected require() to harvest Windows browser credentials and cookies. Any consumer that require/imports this package and reaches the getPlugin path grants the remote operator arbitrary code execution on the installer's machine. ## Source: ghsa-malware (cad454e0e312c87020333f7ece00363eb627c8b1b1334431c662c09a6af7dad1) 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.
AI Analysis
Technical Summary
The ts-toolkit-plus npm package (version 1.3.2) includes a getPlugin() function that performs an HTTPS request to a hardcoded IP address (31.97.137.157:45000/icons/112). The response field 'data.credits' is passed to a dynamically constructed Function constructor, which executes the remote code with full Node.js context, including access to require, process, Buffer, and globalThis. The remote code execution sink is obfuscated by assembling the URL from fragments and disguising it as an icon/CDN resource. The package's declared dependencies (@primno/dpapi, node-machine-id, better-sqlite3/sqlite3, socket.io-client) do not align with its advertised purpose and appear to support harvesting Windows browser secrets and host fingerprinting. Any consumer that imports this package and reaches the getPlugin path is vulnerable to arbitrary code execution by the remote operator.
Potential Impact
This vulnerability allows an attacker controlling the remote server to execute arbitrary code on the victim's machine with full Node.js privileges. This can lead to theft of sensitive information such as Windows browser credentials and cookies, host fingerprinting, and potentially full system compromise. The malicious code execution occurs when the getPlugin() function is invoked, which may happen during normal use of the package. There are no known exploits in the wild at this time.
Mitigation Recommendations
No official patch or remediation is currently available for this malicious package version. Users should immediately avoid installing or using ts-toolkit-plus version 1.3.2. If already installed, remove the package from all projects and environments. Consider auditing dependencies for similar malicious behavior. Monitor vendor advisories or trusted security sources for updates or official fixes. Since this is a malicious package, the best mitigation is to avoid using it entirely.
Malicious code in ts-toolkit-plus (npm)
Description
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (49d47be3f5dc16ea70755e0233f46106d3f50d1d5384a4f20c76b91463c9876c) The package's main entry defines a getPlugin() function that performs an HTTPS request to a hardcoded bare-IP endpoint at 31.97.137.157:45000/icons/112 and passes the response field data.credits to `new Function('require','module',...,'Promise', data.credits)`, executing whatever the remote host returns with full Node.js context including require, process, Buffer, and globalThis. The destination URL is assembled from split protocol/separator/domain/path fragments and wrapped in benign 'icon/CDN' naming that hides the code-execution sink. The declared dependencies (@primno/dpapi for Windows DPAPI unwrap of browser-stored secrets, node-machine-id for host fingerprinting, better-sqlite3/sqlite3 for browser profile databases, socket.io-client) do not correspond to the advertised 'crypto checkout' purpose and pre-stage tooling a remote payload can invoke via the injected require() to harvest Windows browser credentials and cookies. Any consumer that require/imports this package and reaches the getPlugin path grants the remote operator arbitrary code execution on the installer's machine. ## Source: ghsa-malware (cad454e0e312c87020333f7ece00363eb627c8b1b1334431c662c09a6af7dad1) 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.
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
The ts-toolkit-plus npm package (version 1.3.2) includes a getPlugin() function that performs an HTTPS request to a hardcoded IP address (31.97.137.157:45000/icons/112). The response field 'data.credits' is passed to a dynamically constructed Function constructor, which executes the remote code with full Node.js context, including access to require, process, Buffer, and globalThis. The remote code execution sink is obfuscated by assembling the URL from fragments and disguising it as an icon/CDN resource. The package's declared dependencies (@primno/dpapi, node-machine-id, better-sqlite3/sqlite3, socket.io-client) do not align with its advertised purpose and appear to support harvesting Windows browser secrets and host fingerprinting. Any consumer that imports this package and reaches the getPlugin path is vulnerable to arbitrary code execution by the remote operator.
Potential Impact
This vulnerability allows an attacker controlling the remote server to execute arbitrary code on the victim's machine with full Node.js privileges. This can lead to theft of sensitive information such as Windows browser credentials and cookies, host fingerprinting, and potentially full system compromise. The malicious code execution occurs when the getPlugin() function is invoked, which may happen during normal use of the package. There are no known exploits in the wild at this time.
Mitigation Recommendations
No official patch or remediation is currently available for this malicious package version. Users should immediately avoid installing or using ts-toolkit-plus version 1.3.2. If already installed, remove the package from all projects and environments. Consider auditing dependencies for similar malicious behavior. Monitor vendor advisories or trusted security sources for updates or official fixes. Since this is a malicious package, the best mitigation is to avoid using it entirely.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-12812
- Osv Schema Version
- 1.7.4
- Ecosystems
- ["npm"]
Threat ID: 6a735740bf8831d53915375e
Added to database: 08/05/2026, 15:31:12 UTC
Last enriched: 08/05/2026, 16:56:22 UTC
Last updated: 09/10/2026, 18:28:24 UTC
Views: 19
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.