Malicious code in randomgame (PyPI)

randomgame Updated 02 Oct 2025

Summary

25/02/2023
CRITICAL
No i
Critical
Not published

MAL-2023-5883: Malicious code in randomgame (PyPI). Affected versions are not published. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

The randomgame package is an open-source Python package available on PyPI. It is designed to provide functionality for generating random numbers and games. The package is widely used by developers for various applications and projects.

Vulnerability Detail

A vulnerability has been identified in the randomgame package. The package was found to contain malicious code introduced by the EsqueleSquad group. This code executes spyware and information-stealing malware. The malicious code poses a significant risk to users who install and use the randomgame package, as it can compromise sensitive information and lead to unauthorized access.

How To Fix

This package is malicious. Remove it and rotate any credentials it could have accessed.

pip uninstall randomgame

If it arrived as a transitive dependency, remove the package that pulled it in, then reinstall.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

There is no specific workaround available for this vulnerability. The best course of action is to follow the recommended steps for fixing the vulnerability.

Conclusion

The randomgame package on PyPI has been found to contain malicious code introduced by the EsqueleSquad group. This code executes spyware and information-stealing malware, posing a significant risk to users. It is crucial to remove the affected package and regularly review and update the packages used in your projects to mitigate the risk of similar vulnerabilities. For further support and assistance, contact DevNack.com.

See every vulnerability recorded for randomgame →

Share this vulnerability

FAQ

You can use the Vulert Playground at Vulert Scanner to check if your application is affected by this vulnerability. Simply provide your Pipfile.lock file, and Vulert will analyze it for any open-source vulnerabilities, including the malicious code in randomgame.

The malicious code in randomgame can execute spyware and information-stealing malware, leading to the compromise of sensitive information and unauthorized access to systems. This can result in data breaches, privacy violations, and financial losses.

The recommended fix is to remove the randomgame package from your project and avoid using any affected versions. Regularly updating and reviewing the packages used in your project is also crucial to mitigate the risk of similar vulnerabilities.

This vulnerability was discovered by Checkmarx, a security company specializing in software vulnerability detection and prevention. They identified the malicious code in randomgame as part of their ongoing research and analysis.

For further support and assistance in remediating this vulnerability, you can contact info@devnack.com. They provide expert guidance and solutions for addressing software vulnerabilities.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

This package is malicious. Remove it and rotate any credentials it could have accessed.

pip uninstall randomgame

If it arrived as a transitive dependency, remove the package that pulled it in, then reinstall.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback