{"id":"MAL-2026-12331","revision":"72b5a3d8ff9849b2a910dbb8b8fa2668","records":[{"revision":"72b5a3d8ff9849b2a910dbb8b8fa2668","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-12331","aliases":[],"title":"Malicious code in @wololasod/tiny-id (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (5b3ca8617b237bb3d8fd7d14aa18554118397e7b7faaea2e87cdd8433fef7a8f)\nThe package advertises itself as a tiny ID generator but its main entry dist/index.cjs contains an obfuscator.io + RC4 string-array VM that, on require/import, resolves a platform-specific configuration (win32/linux), downloads a remote executable over https to a temp/APPDATA path, and executes it via child_process.spawn (VBS launcher on Windows, direct spawn on Linux), then deletes the staged file. Staging filename observed: 'nupkg_system.diagnostics.performancecounter.8.0.0.py'. The loader additionally re-launches itself via spawn(process.execPath, [__filename], {detached:true, stdio:'ignore', windowsHide:true, env:{...process.env, RUN_PAYLOAD:...}}) and unrefs the child, producing a hidden, detached process that survives the parent. The loader includes obfuscator.io anti-analysis features: RC4-decoded string array, hex-named identifiers, eval.toString()/Function.prototype.bind.toString() '[native code]' integrity checks, and a djb2 caller-hash gate ('_$h!== 0x74F28336') that crashes if the code is reformatted. The same obfuscated dropper is also shipped in dist/index.d.ts, which is declared as the TypeScript types entry — a.d.ts file should contain pure type declarations, not executable code. None of this behavior relates to ID generation.\n","state":0,"publishedAt":"2026-08-05T12:50:23+00:00","modifiedAt":"2026-08-15T17:45:11.0683025+00:00","affected":[{"ecosystem":"npm","name":"@wololasod/tiny-id","ranges":[],"versions":["0.1.1","0.1.3","0.1.0","0.1.2"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/@wololasod/tiny-id/v/0.1.1","https://www.npmjs.com/package/@wololasod/tiny-id/v/0.1.3","https://www.npmjs.com/package/@wololasod/tiny-id/v/0.1.0","https://www.npmjs.com/package/@wololasod/tiny-id/v/0.1.2"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-12331","license":"OSV · upstream source license applies","key":"osv:MAL-2026-12331","identifiers":["MAL-2026-12331"]},"retained":false,"historicalAffected":[]}],"coverage":[]}