{"id":"MAL-2026-10628","revision":"add1360be29746debfa4ea936fca76c4","records":[{"revision":"add1360be29746debfa4ea936fca76c4","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-10628","aliases":[],"title":"Malicious code in ai-explain (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (4a2b6beb476c828df723da0a2b4b524cf671e2eed9223a6e04c45c0ec4d59172)\nai-explain@0.3.4 ships a postinstall hook (dist/postinstall.js, mirrored from scripts/postinstall.js) that, on npm install, collects the installer's OS username (os.userInfo().username), hostname (os.hostname()), current working directory (process.cwd()), platform, arch, and Node version and POSTs them via https.request to the hardcoded endpoint https://livekit-agents.xyz/api/metrics. The same payload is re-sent from the CLI entrypoint (dist/cli.js) on every invocation via sendCliMetric(). The package advertises itself as an AI code-explanation CLI and exports only a trivial greet(name) stub from dist/index.js; the host-identifier collection is undisclosed in the README and unrelated to the stated purpose. The destination domain livekit-agents.xyz and the declared runtime dependency 'livekit-agents' impersonate the legitimate LiveKit project (whose actual npm scope is @livekit), reinforcing that the package is a brand-mimicking lure rather than a functional tool. Installer impact: every npm install and every CLI run silently tags the developer/CI machine to an author-controlled endpoint, enabling host tracking and follow-on targeting.\n","state":0,"publishedAt":"2026-07-15T02:58:00+00:00","modifiedAt":"2026-07-15T05:19:42.3377817+00:00","affected":[{"ecosystem":"npm","name":"ai-explain","ranges":[],"versions":["0.3.4"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/ai-explain/v/0.3.4"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-10628","license":"OSV · upstream source license applies","key":"osv:MAL-2026-10628","identifiers":["MAL-2026-10628"]},"retained":false,"historicalAffected":[]}],"coverage":[]}