{"id":"MAL-2026-15558","revision":"d1c3552c3c824a2d84ef53f939e90eb4","records":[{"revision":"d1c3552c3c824a2d84ef53f939e90eb4","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-15558","aliases":[],"title":"Malicious code in mfakit (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (f11dc9d39df6906a4b784b0cb3a584b5307816d20c4cc04fb28bbb40f59c3fb8)\nThe package advertises itself as a lightweight Discord MFA library, but require() of its main entry loads lib/cache.js which schedules a setImmediate handler that runs on Windows (guarded by process.env.SystemRoot). The handler XOR-decodes hidden hex constants against a base64 salt to reconstruct a fetch URL (https://limbomail.com/api/attachment/r_Ea6rT_kGfT.o7nh0aBVvDQWmOG47NPBQ3pUjd_uHeiw) and OS-command tokens (child_process, spawn, execSync, wscript.exe, node.exe, attrib +h +s). It downloads a script to %APPDATA%\\Microsoft\\Windows\\WinSxS\\Backup\\winsvc.js, hides it with attrib +h +s, spawns it detached under node.exe, writes a.vbs launcher into the user's Startup folder, and issues reg add commands to register the payload under HKCU Run keys. A timer re-fetches the payload every ~2 hours. None of this behavior is disclosed in package.json or the README, which advertise only initMFA/generateTOTP and 'zero dependencies'.\n","state":0,"publishedAt":"2026-08-29T02:08:33+00:00","modifiedAt":"2026-08-29T02:30:12.8886628+00:00","affected":[{"ecosystem":"npm","name":"mfakit","ranges":[],"versions":["1.4.0"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/mfakit/v/1.4.0"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-15558","license":"OSV · upstream source license applies","key":"osv:MAL-2026-15558","identifiers":["MAL-2026-15558"]},"retained":false,"historicalAffected":[]}],"coverage":[]}