Skip to main content

Malicious code in pygame-renderkit (PyPI)

0
Critical
Published: 08/28/2026 (08/28/2026, 09:55:47 UTC)
Source: GCVE Database
Product: pygame-renderkit

Description

The pygame-renderkit package version 1.2.0 on PyPI contains malicious code embedded in its setup.py. During installation, it executes a base64-encoded payload that establishes a reverse shell to a hardcoded command-and-control server, exfiltrates sensitive environment variables and system files, and establishes persistence through cron jobs, systemd user services, and sudoers modifications. This behavior is unrelated to the package's stated purpose as a pygame utility.

Affected software

PyPIghsa
pygame-renderkit
Affected versions
=1.2.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, 02:08:34 UTC

Technical Analysis

The pygame-renderkit PyPI package version 1.2.0 overrides the install command in setup.py to execute a hidden base64-encoded Python payload. This payload forks a daemonized child process that connects to a hardcoded C2 server (5uj0a8ziyu.localto.net:3900) and provides an interactive reverse shell by duplicating the socket onto the shell's stdin/stdout/stderr. It enumerates environment variables containing sensitive keywords (e.g., API, TOKEN, KEY, SECRET, PASS, CRED, AUTH, AWS, AZURE, GCP, OPENAI, ANTHROPIC, MANUS) and reads sensitive files such as /etc/passwd, /etc/sudoers, /etc/shadow, ~/.bash_history, and /opt/.manus/current/config. The collected data is exfiltrated over TCP framed by specific markers. Persistence is achieved by writing a Python script to /tmp, installing a per-minute cron job, deploying a systemd user service with automatic restart, and adding a sudoers.d entry granting passwordless sudo privileges to the current user. The malicious payload is disguised within a template with placeholders for host and port, and the installer hides its activity by forking with start_new_session=True. This package is clearly malicious and does not perform any legitimate pygame-related functions.

Potential Impact

Successful installation of this package results in full remote command execution via a reverse shell, unauthorized exfiltration of sensitive environment variables and critical system files, and persistent backdoor access through cron jobs, systemd services, and elevated sudo privileges without password prompts. This compromises confidentiality, integrity, and availability of the affected system.

Mitigation Recommendations

No official patch or remediation is currently documented. Users should avoid installing pygame-renderkit version 1.2.0 from PyPI. If installed, immediate removal of the package and investigation for persistence mechanisms (cron jobs, systemd user services, sudoers modifications) is required. Monitor for suspicious network connections to the indicated C2 domain. Patch status is not yet confirmed — check the vendor advisory or PyPI security notices for updates.

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-14587
Osv Schema Version
1.7.4
Ecosystems
["PyPI"]

Threat ID: 6a91a7c1acd9273b49065317

Added to database: 08/28/2026, 15:22:41 UTC

Last enriched: 09/10/2026, 02:08:34 UTC

Last updated: 10/04/2026, 03:05:06 UTC

Views: 26

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