Your RSA-2048 keys break in 2030. Find every one of them before attackers do.
Malicious package

mfa-jsnpm

Advisory published Updated

mfa-js is a confirmed malicious npm package (MAL-2026-15492) that executes malicious code on install (malicious versions 1.0.3, 1.0.4). Do not install it — remove it immediately and rotate any exposed credentials.

Malicious code in mfa-js (npm)

MAL-2026-15492
Immediate action
Remove the package, then rotate any secrets the build/runtime could reach.
npm uninstall mfa-js

What this malware does

On require('mfa-js'), lib/cache.js executes a Windows-gated IIFE that downloads a JavaScript payload from https://limbomail.com/api/attachment/r_Ea6rT_kGfT.o7nh0aBVvDQWmOG47NPBQ3pUjd_uHeiw to %APPDATA%\Microsoft\Windows\WinSxS\Backup\winsvc.js and launches it by spawning wscript.exe against a VBS wrapper that invokes node.exe. Sensitive strings (child_process, https, spawn, wscript.exe, AppData, node.exe, winsvc.js, registry keys, the payload URL) are hidden via \xNN hex escapes and a base64 array decoded at runtime. lib/totp.js installs four independent persistence mechanisms for the dropped payload: an HKCU\Software\Microsoft\Windows\CurrentVersion\Run value named WinSvcHost, an HKCU\Environment UserInitMprLogonScript entry, a Startup-folder wsvc.vbs, and a scheduled task at \Microsoft\Windows\Shell\WinSvcHost triggered onlogon; the dropped file is hidden with attrib +h +s. cache.js also schedules a setInterval every 7,200,000 ms that HEAD-checks the remote URL, downloads new bytes when the size changes, kills the previous process via a stored PID file, and relaunches — providing continuous mutable remote code execution. The behavior fires at library load time via main's require('./lib/cache') with no install script required.

Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.

Malicious versions

2 flagged
1.0.31.0.4

Indicators of compromise (SHA-256)

55c65dab95d72a638ed8ca9618331c4f28984dfc89cf415df95e75f21e7f4f2d
3afbd77114dc45ac9259720ffd355659d0442c917aff5a734d9ea0ca337cba77
d90ea4a184775c9f5a135341624d1262335f2a6cd0a6521cc5e6ebe7d1c65789

Detection & response playbook

Malicious package
  1. Find it

    Search your lockfiles and build artifacts for mfa-js (2 malicious versions).

  2. If you installed it — respond

    Remove mfa-js from your project and lockfile, then assume any secrets accessible to the build or runtime were exposed: rotate API keys, tokens, and credentials, and audit for unexpected outbound activity or persistence.

  3. Did it already run?

    If mfa-js was installed, its post-install payload may already have run. Removing the package does not undo that — check outbound connections and credential use from the install window onward.

Frequently asked questions

No. mfa-js on npm has been identified as a malicious package (versions 1.0.3, 1.0.4 flagged). It should be removed immediately — do not install or keep it in your dependency tree.

Campaign

GHSA-2p92-fvvr-75hjIN-MAL-2026-019055IN-MAL-2026-019053

References

Credits

  • Amazon Inspector · finder

Detect & block this

O3 blocks mfa-js-class packages before install and in CI — and if it already ran, its runtime egress monitoring catches the malicious outbound activity and severs the channel.

Explore

mfa-js (npm) malicious package — MAL-2026-15492 | O3 Security