{"id":"MAL-2026-10404","revision":"a8a797f56d5e4af4b1766df9c7656902","records":[{"revision":"a8a797f56d5e4af4b1766df9c7656902","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-10404","aliases":[],"title":"Malicious code in @ica-gaming/slot-engine (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (504d38d63d27d90e825007078cde3c381daa6cfa73a8009797c60f3e889c44d0)\nThe package presents itself as a deterministic WASM slot-math engine, but slot_engine.wasm embeds obfuscated Node.js modules and Emscripten JS shim helpers that implement a full remote-access and credential-theft toolkit against the consumer host. On invocation, an embedded module opens a Node `require`/`createRequire` context, POSTs an installer-identifying id to a remote HTTPS endpoint on a jittered polling loop, and executes the returned code via `new Function(code)(require)` — giving the operator arbitrary code execution on every poll. WASM-imported helpers additionally: download a Windows `.exe` installer over HTTPS (following redirects) to a temp path and spawn it detached with the silent-install flag `/S`; fetch and extract a macOS `.pkg` via `xar -x`; and write `#!/bin/sh` + `exec node` polyglot wrapper scripts with mode 0755. Separate helpers enumerate Chromium-family and Firefox-family browser profile directories (Chrome, Brave, Edge, Opera, Vivaldi, Chromium, Firefox, Waterfox, LibreWolf, Pale Moon) for Login Data / logins.json / Cookies / Local Storage / IndexedDB / extension wallet stores, walk the home directory for wallet/keystore/.dat files, and read shell-history dotfiles, then package matching content for exfiltration through the C2 channel. The Emscripten shim and both embedded ES modules are obfuscator.io-transformed (rotated base64 string arrays, dispatchers, arithmetic-noise constants, self-defending IIFE); legitimate Emscripten output is not obfuscated. Cover strings such as 'Compiling engine dependencies. This may take a while on initial startup...' are embedded to disguise payload staging as normal engine initialization.\n","state":0,"publishedAt":"2026-07-13T07:03:37+00:00","modifiedAt":"2026-07-13T07:47:06.092747+00:00","affected":[{"ecosystem":"npm","name":"@ica-gaming/slot-engine","ranges":[],"versions":["1.1.0"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/@ica-gaming/slot-engine/v/1.1.0"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-10404","license":"OSV · upstream source license applies","key":"osv:MAL-2026-10404","identifiers":["MAL-2026-10404"]},"retained":false,"historicalAffected":[]}],"coverage":[]}