Skip to main content

Malicious code in discordnv (PyPI)

0
Critical
Published: 07/24/2026 (07/24/2026, 19:14:19 UTC)
Source: GCVE Database
Product: discordnv

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

PyPIghsa
discordnv
Affected versions
=0.8.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/10/2026, 08:08:20 UTC

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.

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-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 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