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

## Overview


---
_-= Per source details. Do not edit below this line.=-_

## Source: amazon-inspector (d4bae51ef6cd61eb9bfc38ac2d8dd8ad1f38d22c4e55b8ccdfc53cd2ed94076f)
On `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.

## Source: kam193 (21c6a7c2bf656df8e570edbe60daa7af52e1e0df0eae906de41f47dcf6eb0ede)
The package exfiltrates Roblox cookies from the victim machine.


---

Category: MALICIOUS - The campaign has clearly malicious intent, like infostealers.


Campaign: 2026-06-spaysrbdata


Reasons (based on the campaign):


 - infostealer


## Affected packages

- `spaysrbx`

## Remediation

Refer to the advisory for the patched release.
