{"id":"MAL-2026-10545","summary":"Malicious code in vite-plugin-model (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (50d2f5d3fe93de908c3da2d129b5b766a740b16a0eebf6c29c684605a9eaccf3)\nThe CJS entrypoint dist/index.js top-level requires bytenode and loads a sibling V8 bytecode blob dist/index.jsc, then injects a hidden Model.resetor() that instantiates a class from that bytecode and immediately calls its queryDBConnect() method on require(). The bytecode contains axios, atob, and node:module internals (_compile, _nodeModulePaths), together with a reversed-base64 literal that decodes to https://c0uxnElubanuzwji03vsfrj.m.pipedream.net — an HTTPS Pipedream webhook. The runtime pattern fetches the webhook response, decodes it, and compiles it as a new Node module, executing attacker-controlled code on the installer's machine as soon as any consumer imports the package. Additional indicators corroborate the hostile intent: the ESM twin dist/index.mjs is clean while only the CJS main is tampered; the package advertises itself as a Vite plugin but the shipped code is an unrelated MobX-style store plus a MySQL-flavored DivbloxDatabaseConnector cover-story class; and dist/index.js pulls in an undeclared 'oubliette' dependency while the bytecode requires an undeclared 'axios', both consistent with attacker scaffolding to complete the exec chain via name-squat or hoist collision.\n","modified":"2026-07-14T04:46:59.046985867Z","published":"2026-07-14T03:37:11Z","database_specific":{"malicious-packages-origins":[{"import_time":"2026-07-14T04:31:59.426358568Z","modified_time":"2026-07-14T03:37:11Z","sha256":"50d2f5d3fe93de908c3da2d129b5b766a740b16a0eebf6c29c684605a9eaccf3","source":"amazon-inspector","versions":["1.0.0"],"id":"IN-MAL-2026-010372"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/vite-plugin-model/v/1.0.0"}],"affected":[{"package":{"name":"vite-plugin-model","ecosystem":"npm","purl":"pkg:npm/vite-plugin-model"},"versions":["1.0.0"],"database_specific":{"cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"indicators":{"evidence_files":[{"sha256":"e8eba127d4476c6f7b3c838d883d69a7206261bb0d5f66ee9c8d2e1aa627d83e","tlsh":"d03211c937fb6930551f30691e4f8107b23a944ba41dde4cba9c42d4af4447992f2bbd","path":"dist/index.js"},{"sha256":"a876592bf86e236890a10d1363f2a35c4941d8dcf8b530a21b2787839fff036e","tlsh":"3e523b453762eb2bd02281b5a4f30a1403bdfad53e3287076a595cbb9c1f9ec6f6b444","path":"dist/index.jsc"},{"sha256":"0caf92f8bf661e1b5d01df318e1a8a67d625fe67119e9a58ad1c8aac62989d71","tlsh":"c8f04c30ca214d7345d461d54cab15a3ba718d5b0487fc1833db460c0a8d77710fe67c","path":"package.json"},{"sha256":"19b3ef4fbb05b13fb853287fe6056966d12fec369144b78b1b8343a77973341f","tlsh":"4401f116e0fbea53087d94793f44a0a689da87e3274774040b9c293c1acb7334007692","path":"README.md"}],"package_integrity":[{"filename":"vite-plugin-model-1.0.0.tgz","hashes":{"sha1":"c78963fb33c85a2559a74feafdb83ec70da4dc78","sha512_sri":"sha512-xAg3Uja9PPgeZkPhGUvb1nCf4qEzIAQbWWbjxzYG/2ijE6cS/cabtAlIne0DAWOcGFGrMhjDB5gMVlG+WpuVZw=="}}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/vite-plugin-model/MAL-2026-10545.json"}}],"schema_version":"1.7.5","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}