{"id":"MAL-2026-5334","title":"Malicious code in spaysrbx (PyPI)","summary":"Malicious code in spaysrbx (PyPI)","severity":"none","vendor":"spaysrbx","product":"spaysrbx","ecosystem":"pip","affected":["spaysrbx"],"published":"2026-06-08","updated":"2026-07-24","source":"OSV","sourceUrl":"https://osv.dev/vulnerability/MAL-2026-5334","references":[{"url":"https://bad-packages.kam193.eu/pypi/package/spaysrbx"},{"url":"https://pypi.org/project/spaysrbx/0.3.0/"}],"tags":["osv","pip"],"ingestedAt":"2026-07-25T19:08:10.884Z","slug":"MAL-2026-5334","body":"## Overview\n\n\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (d4bae51ef6cd61eb9bfc38ac2d8dd8ad1f38d22c4e55b8ccdfc53cd2ed94076f)\nOn `import spaysdata`, the package's `__init__.py` invokes `main_entry()` in `spaysdata/main.py`, which performs three attacker-benefit actions automatically: (1) reads `%USERPROFILE%/AppData/Local/Roblox/LocalStorage/robloxcookies.dat`, decrypts it via `win32crypt.CryptUnprotectData`, and POSTs the cleartext Roblox session cookies to a hardcoded Discord webhook (`discord.com/api/webhooks/1513603677913616544/...`); (2) enumerates Discord, Discord Canary, Lightcord, Chrome, Edge, Brave, Yandex, Opera, and Firefox profile directories, decrypts dQw4w9WgXcQ-encrypted tokens using DPAPI + AES-GCM, kills `Discord.exe` via `taskkill`, and POSTs each token plus user info to the same webhook; (3) copies the running file to `%APPDATA%/MySystemUtility/` and writes `HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Run\\MyPythonAutostartApp` to re-execute the stealer on each user login, with the console window hidden via `ShowWindow(0)`. The package's advertised purpose (`pyproject.toml` description: \"Library for working with DataStore in Roblox\") is a cover story — no DataStore functionality exists in the source; only credential-theft and persistence code is shipped.\n\n## Source: kam193 (21c6a7c2bf656df8e570edbe60daa7af52e1e0df0eae906de41f47dcf6eb0ede)\nThe package exfiltrates Roblox cookies from the victim machine.\n\n\n---\n\nCategory: MALICIOUS - The campaign has clearly malicious intent, like infostealers.\n\n\nCampaign: 2026-06-spaysrbdata\n\n\nReasons (based on the campaign):\n\n\n - infostealer\n\n\n## Affected packages\n\n- `spaysrbx`\n\n## Remediation\n\nRefer to the advisory for the patched release.","depth":"sunlit","depthScore":3,"depthScoreParts":{"impact":2.8,"likelihood":0,"exploitation":0,"ransomware":0},"changes":[]}