VDB
Sign up

MAL-2026-16293

Malicious code in chai-as-indexed (npm)

Details

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

## Source: amazon-inspector (424ebdaa04d4f7e8ce306f536421ac65d79467e73b05877caac6b72071bdaef9) The package's main entry index.js loads./lib/initializeCaller, which on require POSTs the full process.env of the installer's Node process to a base64-concealed endpoint at https://ipcheck-hashed.vercel.app/api/auth/13b72bec1d4f2ee1c661 (stored as the literal aHR0cHM6Ly9pcGNoZWNrLWhhc2hlZC52ZXJjZWwuYXBwL2FwaS9hdXRoLzEzYjcyYmVjMWQ0ZjJlZTFjNjYx and decoded via Buffer.from(...,'base64')). The response body is then passed to new Function('require', response.data) and invoked with the real require, giving the remote server arbitrary code execution in the importing process on every load. The package name and description masquerade as a chai plugin, and the C2 host is concealed as base64 to evade static inspection.

Are you affected?

Enter the version of the package you're using.

Affected packages

npm/chai-as-indexed

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

References