Malicious code in ts-webplug (npm)
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (a120eb8e3f6ca34493b7f282544523ab60137e8388148b191f46cda094e50789) The package impersonates the pino logger (README titled 'chai-mocks', badges linking to pinojs/pino, module export named `pino`) while its actual package name `ts-webplug` is unrelated. When a consumer requires the package and invokes its exported middleware, `index.js` spawns `lib/caller.js` as a detached Node child process. `lib/caller.js` performs `axios.get(...)` against https://jsonhosting.com/api/json/9343c2ce/raw, extracts the `cookie` field from the response, and passes it to `new Function.constructor('require', s)(require)` — evaluating attacker-controlled JavaScript with full `require` access in the consumer's Node process. The remote URL is additionally concealed in a spoofed `process.env` object where `DEV_API_KEY` is a base64 blob decoding to a jsonkeeper.com URL (a second mutable, anonymous-host pointer in `lib/const.js` decodes to https://jsonkeeper.com/b/4NAKK). The fetch host is a mutable anonymous paste service — today's payload can be swapped for anything at any time — and the executed code runs with full Node privileges on the installer/consumer machine. ## Source: ghsa-malware (ab49780fe41f3794685e5956a0d5a7c3ecdf35303b839d14f2b2d6c11d20032e) 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
[email protected] is a malicious npm package that mimics the pino logger's interface and file structure to deceive developers. Its main export includes a middleware function that spawns a detached Node.js child process executing code fetched dynamically from a mutable JSON paste service (jsonkeeper.com). The fetched code is executed with full Node.js require() capability, enabling arbitrary remote code execution on the host machine. The package also includes decoy environment variables that base64-decode to additional URLs hosting malicious payloads. This behavior activates as soon as the middleware is used, making any system running this package fully compromised.
Potential Impact
Systems that have installed or run [email protected] are at risk of full compromise due to remote code execution capabilities granted to the attacker. This allows arbitrary code execution with the privileges of the Node.js process, potentially leading to theft of secrets, keys, and complete system control. The malicious payload is fetched from an external source, enabling dynamic and evolving attacks. Removal of the package alone does not guarantee remediation as the attacker may have established persistent access.
Mitigation Recommendations
No official patch or fix is available for [email protected]. Immediate removal of the package is recommended. However, because the package grants full remote code execution, affected systems should be considered fully compromised. All secrets, keys, and credentials stored on the system should be rotated from a separate, trusted environment. Conduct a thorough incident response to identify and remediate any persistent backdoors or additional malware. Monitor for any suspicious activity related to this package.
Malicious code in ts-webplug (npm)
Description
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (a120eb8e3f6ca34493b7f282544523ab60137e8388148b191f46cda094e50789) The package impersonates the pino logger (README titled 'chai-mocks', badges linking to pinojs/pino, module export named `pino`) while its actual package name `ts-webplug` is unrelated. When a consumer requires the package and invokes its exported middleware, `index.js` spawns `lib/caller.js` as a detached Node child process. `lib/caller.js` performs `axios.get(...)` against https://jsonhosting.com/api/json/9343c2ce/raw, extracts the `cookie` field from the response, and passes it to `new Function.constructor('require', s)(require)` — evaluating attacker-controlled JavaScript with full `require` access in the consumer's Node process. The remote URL is additionally concealed in a spoofed `process.env` object where `DEV_API_KEY` is a base64 blob decoding to a jsonkeeper.com URL (a second mutable, anonymous-host pointer in `lib/const.js` decodes to https://jsonkeeper.com/b/4NAKK). The fetch host is a mutable anonymous paste service — today's payload can be swapped for anything at any time — and the executed code runs with full Node privileges on the installer/consumer machine. ## Source: ghsa-malware (ab49780fe41f3794685e5956a0d5a7c3ecdf35303b839d14f2b2d6c11d20032e) 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
[email protected] is a malicious npm package that mimics the pino logger's interface and file structure to deceive developers. Its main export includes a middleware function that spawns a detached Node.js child process executing code fetched dynamically from a mutable JSON paste service (jsonkeeper.com). The fetched code is executed with full Node.js require() capability, enabling arbitrary remote code execution on the host machine. The package also includes decoy environment variables that base64-decode to additional URLs hosting malicious payloads. This behavior activates as soon as the middleware is used, making any system running this package fully compromised.
Potential Impact
Systems that have installed or run [email protected] are at risk of full compromise due to remote code execution capabilities granted to the attacker. This allows arbitrary code execution with the privileges of the Node.js process, potentially leading to theft of secrets, keys, and complete system control. The malicious payload is fetched from an external source, enabling dynamic and evolving attacks. Removal of the package alone does not guarantee remediation as the attacker may have established persistent access.
Mitigation Recommendations
No official patch or fix is available for [email protected]. Immediate removal of the package is recommended. However, because the package grants full remote code execution, affected systems should be considered fully compromised. All secrets, keys, and credentials stored on the system should be rotated from a separate, trusted environment. Conduct a thorough incident response to identify and remediate any persistent backdoors or additional malware. Monitor for any suspicious activity related to this package.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-5994
- Osv Schema Version
- 1.7.4
- Aliases
- ["GHSA-m637-4v9j-499p"]
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a4c342c27e9c797195fa488
Added to database: 07/06/2026, 23:03:08 UTC
Last enriched: 07/07/2026, 00:07:58 UTC
Last updated: 07/29/2026, 17:13:15 UTC
Views: 6
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.
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.