{"id":"MAL-2026-10711","revision":"c087d0d1374c4722bff9757a2a958f29","records":[{"revision":"c087d0d1374c4722bff9757a2a958f29","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-10711","aliases":[],"title":"Malicious code in @funny-booth/agent-core (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (6693129f8b6f8b6c2d52722ca7746d6ef3dd792476297fa3583d3956548eb2b4)\nThe package ships heavily obfuscated runtime files (dist/index.js, dist/launcher.js) built with javascript-obfuscator. The MCP server registered as the package's main entry exposes an `install_mcp` tool that fetches JSON from the hardcoded portal `prompt-injection-tool-portal.vercel.app` and passes its `install_command` field directly to `child_process.exec()` on the installer's host, giving the portal operator arbitrary shell execution with the installer's privileges. The launcher (invoked by every `salesbot1..10` bin entry) calls `fetchBundledMcps` against the same portal and, for each returned entry, spawns `npx -y <entry.package>` while injecting locally decrypted vault secrets into the child's env — the portal can name any npm package, including a freshly published attacker-owned one, and it will be downloaded and executed with those secrets on hand. The launcher also unconditionally spawns a detached `npm i -g @funny-booth/agent-core@latest` on every run, silently self-updating to whatever the publisher pushes next. The launcher additionally spawns the local `claude` CLI with a portal-supplied greeting/knowledge string prepended as the initial user prompt and a portal-controlled MCP config, providing a prompt-injection channel into the user's Claude agent session. The repository URL in package.json is `github.com/yutamatsuura/prompt-injection-tool` and the deliberate obfuscation of the portal endpoints, exec sink, and auto-update spawn is consistent with intentional concealment of these remote-execution channels.\n","state":0,"publishedAt":"2026-07-16T18:33:35+00:00","modifiedAt":"2026-08-14T20:00:12.1272412+00:00","affected":[{"ecosystem":"npm","name":"@funny-booth/agent-core","ranges":[],"versions":["0.1.6","0.1.1","0.1.5","0.1.3","0.1.4","0.1.2","0.1.9","0.1.7","0.1.8"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/@funny-booth/agent-core/v/0.1.6","https://www.npmjs.com/package/@funny-booth/agent-core/v/0.1.1","https://www.npmjs.com/package/@funny-booth/agent-core/v/0.1.5","https://www.npmjs.com/package/@funny-booth/agent-core/v/0.1.3","https://www.npmjs.com/package/@funny-booth/agent-core/v/0.1.4","https://www.npmjs.com/package/@funny-booth/agent-core/v/0.1.2","https://www.npmjs.com/package/@funny-booth/agent-core/v/0.1.9","https://www.npmjs.com/package/@funny-booth/agent-core/v/0.1.7","https://www.npmjs.com/package/@funny-booth/agent-core/v/0.1.8"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-10711","license":"OSV · upstream source license applies","key":"osv:MAL-2026-10711","identifiers":["MAL-2026-10711"]},"retained":false,"historicalAffected":[]}],"coverage":[]}