Malicious code in tppyhttprand (PyPI)

tppyhttprand Updated 02 Oct 2025

Summary

27/02/2023
CRITICAL
No i
Critical
Not published

MAL-2023-7459: Malicious code in tppyhttprand (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 Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

tppyhttprand is a package available on PyPI that provides functionality for generating random HTTP requests. It is commonly used in Python applications to simulate HTTP traffic for testing purposes. However, this package has been found to contain malicious code, which can lead to the execution of spyware and information-stealing malware.

Vulnerability Detail

The vulnerability in tppyhttprand originates from a malicious PyPi package published by the EsqueleSquad group. This package, when installed, can execute spyware and steal sensitive information from the affected system. The malicious code is present in the package's source code and can be triggered when the package is imported and used in a Python application.

How To Fix

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

pip uninstall tppyhttprand

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 known workaround for this vulnerability. It is crucial to remove the malicious package from your environment to mitigate the risk of spyware and information theft.

Conclusion

The tppyhttprand package available on PyPI has been found to contain malicious code that can execute spyware and steal sensitive information. To protect your Python applications, it is crucial to remove this package from your environment. You can use the Vulert Playground at https://vulert.com/scanner to check if your application is affected by this vulnerability and take appropriate actions for remediation. For further support on vulnerability remediation, you can contact DevNack.com.

See every vulnerability recorded for tppyhttprand →

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 to identify any open-source vulnerabilities, including this one.

Yes, if a non-malicious version of tppyhttprand becomes available, you can safely use it in your Python applications. However, it is crucial to ensure that you are using a version that has been verified and does not contain any malicious code.

Yes, there are several alternative packages available on PyPI that provide similar functionality to tppyhttprand. Some popular options include httprunner, requests-mock, and httpretty. It is recommended to choose a package with a good reputation and a large user base to minimize the risk of encountering similar vulnerabilities.

While it is challenging to completely prevent the installation of malicious packages from PyPI, there are some best practices you can follow to minimize the risk. These include carefully reviewing the package's source code, checking the package's reputation and user reviews, and using package management tools that provide security features, such as vulnerability scanning and package verification.

This vulnerability was discovered by Checkmarx, a company specializing in software security. They identified the presence of malicious code in the tppyhttprand package and reported it to the appropriate channels for further investigation and mitigation.

How To Fix

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

pip uninstall tppyhttprand

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