Malicious code in type-elint (npm)
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (f29d6bfc122cb5792d95cfade56e62789f83366b30fc0d58a88a84113d89962c) Package impersonates the pino logger (README is pino documentation, package name is a lookalike). The main export is a middleware factory that spawns lib/caller.js as a detached Node child process. caller.js retrieves JavaScript from hardcoded remote endpoints at https://json.extendsclass.com/bin/863e90480800 and https://jsonkeeper.com/b/XRGF3, then evaluates the response body using the Function constructor with require passed in scope, yielding arbitrary code execution in the consumer's environment under the endpoint owner's control. The destination URLs are base64-encoded and stored under a decoy DEV_API_KEY property (e.g., aHR0cHM6Ly9qc29ua2VlcGVyLmNvbS9iL1hSR0Yz decodes to the jsonkeeper.com URL) to hide the C2/dead-drop from casual review. Mutable third-party paste services as the code source mean the delivered payload can change at any time without any package update. ## Source: ghsa-malware (1155002b11d7043b2de14581ed13165ffe96a13c73e839c5650c8cace990ded7) 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 'type-elint' npm package version 3.3.7 masquerades as the pino logger but includes a middleware factory that spawns a detached Node.js child process executing code retrieved from hardcoded remote URLs. These URLs are base64-encoded and hidden under a decoy environment variable to evade detection. The retrieved JavaScript is evaluated dynamically using the Function constructor with require in scope, enabling arbitrary code execution controlled by the attacker. Because the payload is hosted on mutable third-party paste services, the attacker can modify the delivered code at any time without updating the package itself. This behavior effectively compromises any system running this package.
Potential Impact
Systems with 'type-elint' version 3.3.7 installed are fully compromised due to arbitrary code execution from attacker-controlled remote code. This can lead to complete system takeover, data theft, and unauthorized access. All secrets and keys stored on the affected system should be considered exposed and must be rotated immediately. Simply removing the package does not guarantee removal of all malicious artifacts or backdoors introduced by the payload.
Mitigation Recommendations
No official patch or fix is currently available. Immediate removal of the 'type-elint' package version 3.3.7 from all systems is recommended. All secrets, credentials, and keys stored on affected systems should be rotated from a separate, secure environment. Because the package enables full system compromise, affected systems should be treated as fully compromised and undergo thorough incident response and forensic analysis. Monitor for any signs of persistent malicious activity beyond package removal.
Malicious code in type-elint (npm)
Description
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (f29d6bfc122cb5792d95cfade56e62789f83366b30fc0d58a88a84113d89962c) Package impersonates the pino logger (README is pino documentation, package name is a lookalike). The main export is a middleware factory that spawns lib/caller.js as a detached Node child process. caller.js retrieves JavaScript from hardcoded remote endpoints at https://json.extendsclass.com/bin/863e90480800 and https://jsonkeeper.com/b/XRGF3, then evaluates the response body using the Function constructor with require passed in scope, yielding arbitrary code execution in the consumer's environment under the endpoint owner's control. The destination URLs are base64-encoded and stored under a decoy DEV_API_KEY property (e.g., aHR0cHM6Ly9qc29ua2VlcGVyLmNvbS9iL1hSR0Yz decodes to the jsonkeeper.com URL) to hide the C2/dead-drop from casual review. Mutable third-party paste services as the code source mean the delivered payload can change at any time without any package update. ## Source: ghsa-malware (1155002b11d7043b2de14581ed13165ffe96a13c73e839c5650c8cace990ded7) 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 'type-elint' npm package version 3.3.7 masquerades as the pino logger but includes a middleware factory that spawns a detached Node.js child process executing code retrieved from hardcoded remote URLs. These URLs are base64-encoded and hidden under a decoy environment variable to evade detection. The retrieved JavaScript is evaluated dynamically using the Function constructor with require in scope, enabling arbitrary code execution controlled by the attacker. Because the payload is hosted on mutable third-party paste services, the attacker can modify the delivered code at any time without updating the package itself. This behavior effectively compromises any system running this package.
Potential Impact
Systems with 'type-elint' version 3.3.7 installed are fully compromised due to arbitrary code execution from attacker-controlled remote code. This can lead to complete system takeover, data theft, and unauthorized access. All secrets and keys stored on the affected system should be considered exposed and must be rotated immediately. Simply removing the package does not guarantee removal of all malicious artifacts or backdoors introduced by the payload.
Mitigation Recommendations
No official patch or fix is currently available. Immediate removal of the 'type-elint' package version 3.3.7 from all systems is recommended. All secrets, credentials, and keys stored on affected systems should be rotated from a separate, secure environment. Because the package enables full system compromise, affected systems should be treated as fully compromised and undergo thorough incident response and forensic analysis. Monitor for any signs of persistent malicious activity beyond package removal.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-10137
- Osv Schema Version
- 1.7.4
- Aliases
- ["GHSA-v69h-23wr-hjg4"]
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a520eb168715ace438f4fe4
Added to database: 07/11/2026, 09:36:49 UTC
Last enriched: 07/11/2026, 09:48:18 UTC
Last updated: 07/27/2026, 10:39:29 UTC
Views: 18
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.