Malicious code in spaysdatarbx (PyPI)
Description
The spaysdatarbx package on PyPI is a malicious Windows infostealer disguised as a Roblox DataStore library. Upon import, it silently executes code that steals Roblox session cookies and browser-stored Discord tokens by decrypting them using Windows DPAPI and sends this data to a hardcoded Discord webhook. It also forcibly terminates Discord to access locked tokens and establishes persistence by copying itself to the user's AppData folder and creating a registry autostart entry. The package contains no legitimate Roblox DataStore functionality and is purely designed for credential theft and persistence.
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 spaysdatarbx PyPI package masquerades as a Roblox DataStore library but contains malicious code that executes on import. It reads and decrypts Roblox session cookies from the local storage file and exfiltrates them to a hardcoded Discord webhook URL. It enumerates profile directories of multiple browsers and Discord, forcibly terminates Discord to release locked files, decrypts stored Discord authentication tokens using DPAPI, and sends these tokens to the same webhook. The malware establishes persistence by copying itself to %APPDATA%\MySystemUtility\ and adding a registry Run key to relaunch on user login, hiding its console window. The package versions 0.1.3 and 0.1.5 are affected. There is no legitimate DataStore functionality present.
Potential Impact
Any user who installs and imports the spaysdatarbx package on a Windows machine risks having their Roblox session cookies and all browser-stored Discord tokens stolen and sent to an attacker-controlled Discord webhook. This compromises the victim's Roblox account and Discord accounts accessible via stored tokens. The malware also establishes persistence to continue stealing data on subsequent logins. This leads to account takeover and potential further abuse of compromised accounts.
Defensive Guidance
Users should immediately uninstall the spaysdatarbx package and avoid installing packages from untrusted sources. Since no official patch or fix is available, removal of the malicious package and cleanup of persistence mechanisms (the copied files in %APPDATA%\MySystemUtility\ and the registry Run key) is required. Users should also reset their Roblox and Discord credentials and revoke any active sessions or tokens. Monitor for suspicious activity on affected accounts. Avoid importing unknown or suspicious Python packages.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-5329
- Osv Schema Version
- 1.7.4
- Ecosystems
- ["PyPI"]
Threat ID: 6a9053d7acd9273b49695f08
Added to database: 08/27/2026, 15:12:23 UTC
Last enriched: 09/10/2026, 08:08:47 UTC
Last updated: 10/01/2026, 22:07:20 UTC
Views: 24
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.