Malicious code in discordnv (PyPI)
Description
The PyPI package 'discordnv' version 0.8.0 contains malicious code that, upon import, executes a function which hides the console window and stealthily harvests Discord authentication tokens and Roblox cookies from the victim's machine. It exfiltrates these credentials to a hardcoded Discord webhook and a Google Apps Script endpoint. The package also establishes persistence by adding itself to the Windows startup registry key to run on every user login. Its advertised functionality as a Roblox DataStore helper is a facade unrelated to its actual malicious behavior.
Affected software
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
Technical Analysis
The 'discordnv' package (version 0.8.0) includes malicious functionality triggered on import. The __init__.py calls main_entry(), which hides the console window and scans local LevelDB and SQLite stores for Discord tokens, decrypts Roblox cookies from 'robloxcookies.dat' using DPAPI, and sends the stolen data to a Discord webhook and a Google Apps Script URL. It also adds a registry entry under HKCU\Software\Microsoft\Windows\CurrentVersion\Run named 'discordnv' to ensure execution on user login. All operations suppress errors to avoid user detection. The package's stated purpose as a Roblox DataStore helper is a decoy.
Potential Impact
This malicious package compromises user security by stealing sensitive authentication tokens for Discord and Roblox, enabling unauthorized access to user accounts. The persistence mechanism ensures continued data theft on each login. The exfiltration to external endpoints poses a significant privacy and security risk to affected users. There is no indication of active exploitation in the wild beyond the package's presence.
Defensive Guidance
Users should immediately uninstall the 'discordnv' package version 0.8.0 and remove any related startup registry entries to prevent re-execution. Avoid installing packages from untrusted sources or with unclear provenance. Since no patch or official fix is available, removal and system cleanup are the primary mitigations.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-11050
- Osv Schema Version
- 1.7.4
- Ecosystems
- ["PyPI"]
Threat ID: 6a9053d7acd9273b49695f10
Added to database: 08/27/2026, 15:12:23 UTC
Last enriched: 09/10/2026, 08:08:20 UTC
Last updated: 10/01/2026, 22:07:21 UTC
Views: 31
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.