NIST deprecates RSA-2048 from 2030. Find every one of them before attackers do.
Malicious package

two-factor-prompt-libnpm

Advisory published Updated

two-factor-prompt-lib is a confirmed malicious npm package (MAL-2026-6414) that steals credentials and exfiltrates sensitive data (malicious version 0.0.1-poc). Do not install it — remove it immediately and rotate any exposed credentials.

Malicious code in two-factor-prompt-lib (npm)

MAL-2026-6414
Immediate action
Remove the package, then rotate any secrets the build/runtime could reach.
npm uninstall two-factor-prompt-lib

What this malware does

Package self-identifies as a dependency-confusion proof-of-concept aimed at an internal/private package name. The postinstall script (postinstall.js) prints the host's hostname and current timestamp to local stdout via console.log; it performs no network I/O, no remote fetch, no credential access, and no filesystem modification beyond what npm itself does on install. While the current payload is benign (local logging only), the package's stated purpose is to demonstrate that an organization installing the public name would unintentionally pull this package in place of an internal counterpart. Routing to human review so an organization can decide whether to claim/block the name in their internal namespace.

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

1 flagged
0.0.1-poc

Indicators of compromise (SHA-256)

d7f55251c2837eacfe7f8b0c2ab44077608dc2562f3c167dc1d2927b9f730fad
95ebb96758f051c0a5a1c8fe97fb05c898f2489f4567fb64fbd271eb103dcadc
cab9ad1b238d2e1c7bcebe6417f283f2b5d54e62ad139c720c39677dc737c9d9

Detection & response playbook

Credential / info stealer
  1. Find it

    Search your lockfiles and build artifacts for two-factor-prompt-lib (version 0.0.1-poc).

  2. If you installed it — respond

    two-factor-prompt-lib is built to steal secrets, so assume every credential the build or runtime could read is compromised. Remove it from your project and lockfile, then rotate ALL exposed secrets — npm/registry tokens, cloud keys, CI/CD secrets, SSH keys, and any .env values — from a known-clean machine. Audit logs for unauthorized use of those credentials.

  3. Did it already run?

    If two-factor-prompt-lib 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. two-factor-prompt-lib on npm has been identified as a malicious package (version 0.0.1-poc flagged). It should be removed immediately — do not install or keep it in your dependency tree.

Campaign

GHSA-94jg-r3hx-4v8vIN-MAL-2026-008160RLMA-2026-05638

References

Credits

  • Amazon Inspector · finder
  • ReversingLabs · finder

Detect & block this

O3 blocks two-factor-prompt-lib-class packages before install and in CI — and if it already ran, its runtime egress monitoring catches the credential exfiltration and severs the channel.

Explore

two-factor-prompt-lib (npm) malicious package — MAL-2026-6414 | O3 Security