{"id":"MAL-2026-16318","revision":"f8db5ca7733d4e3c8c68528434168dcf","records":[{"revision":"f8db5ca7733d4e3c8c68528434168dcf","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-16318","aliases":[],"title":"Malicious code in @asenfotech/unplugin-element-plus (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (458bff9dc8d1f808d642b767ca08ca89253919bbf0d7fd2890b95f3b9c156926)\nPackage presents itself as an Element Plus resolver for Vue tooling: index.js is a 25-line ElementPlusResolver stub. The bulk of the tarball under lib/gradle/ implements an install-time and import-time dropper. The declared postinstall hook (postinstall-run.cjs) chains through lifecycle/instrumentation modules that assemble ~90 base64 chunks in agent-bytecode.segments.cjs, decode them via Buffer.from(joined, 'base64'), write the result to ~/.gradle/caches/transforms-3/8.7/instrumented/.../instrumentation-agent-runtime.mjs (a path masquerading as a Gradle instrumentation cache), and spawn a detached, hidden node process on it (spawn(nodeBin, [scriptPath,...], { detached: true, stdio: 'ignore', windowsHide: true }); child.unref()). The decoded payload is a full command-and-control agent: it POSTs hostname, username, and OS type/release plus a persisted agent UUID (~/.gradle-cache/.aid) to https://npmjs.it.com/api/register (a typosquat of npmjs.com), long-polls https://npmjs.it.com/api/task/<id>, and executes operator commands including exec (spawns /bin/sh or cmd.exe with attacker-supplied command), ls, download (POSTs arbitrary local file contents to /api/file/<agent>/<task>), upload (writes attacker-supplied bytes to the filesystem), delete, ps, and move; results are POSTed back to the same host. TLS verification for C2 traffic can be disabled via C2_TLS_INSECURE. The package's main entry re-triggers the same drop-and-launch chain on require() through tooling-bootstrap.cjs and lib/gradle/gradle-daemon-sync.cjs, gated on a hardcoded workspace-marker allowlist (src/pages/GameAggregator/GameAggrBusinessPage/index.tsx, src/master/src/router/routes.tsx, etc.), so the backdoor also fires at import time inside a specific targeted monorepo. The gradle/instrumentation directory naming has no relation to the declared Vue-resolver purpose and pairs with the chunked-base64 encoding to conceal the payload.\n","state":0,"publishedAt":"2026-09-21T03:31:05+00:00","modifiedAt":"2026-09-21T04:00:06.7933691+00:00","affected":[{"ecosystem":"npm","name":"@asenfotech/unplugin-element-plus","ranges":[],"versions":["2.9.5","2.9.3"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/@asenfotech/unplugin-element-plus/v/2.9.5","https://www.npmjs.com/package/@asenfotech/unplugin-element-plus/v/2.9.3"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-16318","license":"OSV · upstream source license applies","key":"osv:MAL-2026-16318","identifiers":["MAL-2026-16318"]},"retained":false,"historicalAffected":[]}],"coverage":[]}