VDB
KO

MAL-2026-10534

Malicious code in motion-pull (npm)

Details

--- _-= Per source details. Do not edit below this line.=-_

## Source: amazon-inspector (4e50d15810c044b3b0355460fdeacea42d89944d351e74bcce9fd976f91915ea) motion-pull@2.3.5 impersonates the pino logger (exports `module.exports.pino = middleware`, uses logger-themed keywords, ships a `./pino` require target). When the exported function is invoked, index.js spawns a detached `node` child running lib/initializeCaller.js. That script base64-decodes a hardcoded URL (https://ipcheck-hashed.vercel.app/api/auth/6c1d60d35852ef0c05df), POSTs the entire process.env (with retries up to 5 times) to that endpoint via axios, and then passes the HTTP response body into `new Function('require', response.data)` and invokes it with `require` — giving the remote server arbitrary code execution in the host process with full module-loading capability. Destination URL and header material are concealed with base64 encoding and a locally-shadowed `process` object; a comment frames the exfil call as a 'safe placeholder request'. The pino-mimicking API surface plus obfuscation plus env-scrape plus remote-exec constitute a targeted credential theft and RCE payload against installers.

Are you affected?

Enter the version of the package you're using.

Affected packages

npm / motion-pull

No fixed version published yet for motion-pull (npm). Pin to a known-safe version or switch to an alternative.

References