Malware in two-factor-prompt-lib
Malware was discovered in the npm package two-factor-prompt-lib. Systems with this package installed or running should be considered fully compromised, requiring immediate rotation of all secrets and keys from a different computer.
- Disclosed
- Last updated
- Blast radius
- Any system with the package installed or running
- Ecosystems
- Attack vectors
- Affected entities
- two-factor-prompt-lib
A critical malware incident was identified in the npm package two-factor-prompt-lib. According to the GitHub Advisory (GHSA-94jg-r3hx-4v8v), any computer that has this package installed or running should be considered fully compromised.\n\nThe advisory recommends that all secrets and keys stored on affected computers be rotated immediately from a different, uncompromised system. While the package should be removed, there is no guarantee that removal will eliminate all malicious software that may have been installed as a result of the package installation, as the outside entity may have gained full control of the system.\n\nUsers should treat any system that has run this package as potentially containing persistent malware and take appropriate containment and recovery measures.
Indicators of compromise
- Packages
- two-factor-prompt-lib
Remediation
- Immediately rotate all secrets, keys, and credentials from a different, uncompromised computer
- Remove the two-factor-prompt-lib package from all affected systems
- Perform a full security audit and malware scan on any system that had this package installed
- Consider the affected system(s) as potentially compromised and plan for full rebuild or forensic analysis
- Review access logs and audit trails for any unauthorized activity on systems that ran this package
- Notify any services or systems that may have been accessed from the compromised computer
Sources
- GitHub Advisory GHSA-94jg-r3hx-4v8v · GitHub Advisory Database
Cite this entry
"Malware in two-factor-prompt-lib." supplychainattack.org, Supply Chain Attack Incident Catalog. Disclosed June 25, 2026; last updated June 25, 2026. https://supplychainattack.org/incident/malware-in-two-factor-prompt-lib-tfsvim
Suggest a correction
Found an error or have a newer source? Corrections to factual errors take priority over new entries.
Related incidents
- activecritical
Malware in @su-doughnym/react-dlb
The npm package @su-doughnym/react-dlb contains malware that grants full system compromise to an outside entity. Any computer with this package installed or running should be considered fully compromised and all secrets and keys should be rotated immediately from a different computer.
npmCompromised package - activecritical
Malware in nabisco
The npm package 'nabisco' contains malware that grants full system compromise to an outside entity. Any computer with this package installed or running should be considered fully compromised.
npmCompromised package - containedcritical
Malware in @su-doughnym/metrics-js
Malware was discovered in the npm package @su-doughnym/metrics-js. Systems with this package installed are considered fully compromised and require immediate remediation.
npmCompromised package - activecritical
Malware in hs-locale-management
The npm package hs-locale-management contains malware that grants full control of affected systems. Any computer with this package installed should be considered fully compromised.
npmCompromised package