Malicious code in chai-as-otc (npm)
Historical advisory saved 24 Oct 2026 13:17:17 UTC. The publisher may have updated it since then. Latest advisory.
osv · MAL-2026-14491
Published--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (cf771adc4f92ba0d79ea56bdcc1e42db57d1bc7421f0dadb0544f619e16b5ca1) On module load, lib/initializeCaller.js (required from index.js) runs an IIFE that POSTs the full process.env to a base64-obfuscated endpoint decoding to https://ipcheck-hashed.vercel.app/api/auth/6c1d60d35852ef0c05df, then passes the HTTP response body to new Function("require", response.data) and invokes it with require, yielding arbitrary Node code execution on the installer's host at load time. The package is framed as a pino-style logging middleware with a 'Successfully synced!' cover string, but the actual behavior is a covert credential harvester and remote loader.
- Source published
- 25 Aug 2026 14:10:16 UTC
- Source modified
- 25 Aug 2026 23:50:05 UTC
- Saved here
- 24 Oct 2026 13:17:17 UTC
- Source terms
- OSV · upstream source license applies
Original source record · Cite this exact observation · Complete original publisher JSON
Source: osv · OSV · upstream source license applies. The publisher's wording is preserved. ChangeIntel groups the information and labels changes. The JSON record includes additional source fields.