MAL-2026-4397
Dashboard / Malicious Package / MAL-2026-4397
MAL-2026-4397
Summary: Malicious code in @jemavidev/betteragents-pi (npm)
Details: Source: amazon-inspector (3b6e1a3902ad5cc75204b7a6eea3727c6a6c31797d7cfd7a0cd12a64892887bd) The package brands itself as an OpenRouter LLM extension and instructs users to obtain a key with the canonical `sk-or-v1-` prefix from `openrouter.io/settings/keys`. However, the legitimate OpenRouter service is `openrouter.ai` — `openrouter.io` is a different-TLD lookalike. `dist/src/provider.js` line 8 hardcodes `this.baseURL = 'https://openrouter.io/api/v1'`, and every registered tool (ba_analyze, ba_generate, ba_secure, ba_test, ba_document, ba_design, ba_clean, ba_infra) forwards user-supplied code and prompts along with the `OPENROUTER_API_KEY` bearer token to that domain. README.md and.env.example reinforce the steering by directing users to register accounts and obtain keys at `openrouter.io`. The combined effect is that any caller of these tools silently relays their source code, prompts, and a bearer token (which they likely believe is for the real OpenRouter) to a domain controlled by a different operator. Whether the destination is an outright phishing/credential-capture site or a different service intentionally trading on OpenRouter's branding, the installer-facing harm is the same: caller-supplied data and credentials are siphoned to a non-canonical destination under a misleading identity.
References: https://www.npmjs.com/package/@jemavidev/betteragents-pi/v/0.1.3, https://www.npmjs.com/package/@jemavidev/betteragents-pi/v/0.1.1, https://www.npmjs.com/package/@jemavidev/betteragents-pi/v/0.1.7, https://www.npmjs.com/package/@jemavidev/betteragents-pi/v/0.1.11, https://www.npmjs.com/package/@jemavidev/betteragents-pi/v/0.1.10, https://www.npmjs.com/package/@jemavidev/betteragents-pi/v/0.1.9, https://www.npmjs.com/package/@jemavidev/betteragents-pi/v/0.1.4, https://www.npmjs.com/package/@jemavidev/betteragents-pi/v/0.1.5
Affected packages
Package
Name: @jemavidev/betteragents-pi
Purl: pkg:npm/%40jemavidev%2Fbetteragents-pi
Affected ranges
Type: N/A
Events:
