Skip to main content

Malicious code in mfakit (npm)

0
Critical
Published: 08/29/2026 (08/29/2026, 02:08:33 UTC)
Source: GCVE Database
Product: mfakit

Description

The npm package 'mfakit' version 1.4.0 contains malicious code that executes upon requiring its main entry. It downloads and persistently runs a hidden script on Windows systems, establishing persistence via startup scripts and registry Run keys. This behavior is not disclosed in the package documentation, which falsely advertises it as a lightweight Discord MFA library with zero dependencies.

Affected software

npmghsa
mfakit
Affected versions
=1.4.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 09/09/2026, 21:23:21 UTC

Technical Analysis

The 'mfakit' npm package (version 1.4.0) masquerades as a Discord MFA library but contains hidden malicious functionality. Upon loading, it executes code that decodes a URL and OS command tokens to download a script from a remote server. This script is saved in a hidden location under %APPDATA% and executed detached via node.exe. Persistence is established by creating a VBScript launcher in the user's Startup folder and adding registry Run keys under HKCU. The payload is periodically refreshed approximately every two hours. None of these malicious actions are disclosed in the package.json or README files.

Potential Impact

This malicious package can lead to unauthorized code execution on affected Windows systems, persistent malware installation, and potential further compromise of the user's environment. The hidden nature of the payload and its persistence mechanisms increase the risk of prolonged undetected presence.

Mitigation Recommendations

Users should immediately uninstall version 1.4.0 of the 'mfakit' package and remove any associated files and registry entries created by the malware. Avoid using this package entirely as it contains undisclosed malicious behavior. Since no patch or official fix is available, remediation involves removing the malicious package and cleaning the system manually.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
MAL-2026-15558
Osv Schema Version
1.7.4
Ecosystems
["npm"]

Threat ID: 6a92f7d9acd9273b49e75aae

Added to database: 08/29/2026, 15:16:41 UTC

Last enriched: 09/09/2026, 21:23:21 UTC

Last updated: 10/01/2026, 22:27:05 UTC

Views: 25

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses