Malicious code in tpgetadstr (PyPI)

tpgetadstr Updated 02 Oct 2025

Summary

27/02/2023
CRITICAL
No i
Critical
Not published

MAL-2023-7044: Malicious code in tpgetadstr (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

tpgetadstr is a package available on PyPI that provides functionality for retrieving ad strings. It is commonly used in Python projects that require ad string manipulation. 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 tpgetadstr package from PyPI has been compromised by the EsqueleSquad group, who published nearly 6000 malicious PyPi and NPM packages. These packages include spyware and information-stealing malware. The malicious code in tpgetadstr can be triggered when the package is installed or used in a Python project. This can result in unauthorized access to sensitive information, compromise of user data, and potential damage to the affected system.

How To Fix

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

pip uninstall tpgetadstr

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 for this vulnerability. The best course of action is to remove the tpgetadstr package and its dependencies from your project.

Conclusion

The tpgetadstr package from PyPI has been found to contain malicious code, posing a significant security risk to Python projects that use it. It is crucial to remove this package and its dependencies from your project to mitigate the potential consequences. Regularly update your packages and use a package manager like Vulert to ensure the security of your software.

See every vulnerability recorded for tpgetadstr →

Share this vulnerability

FAQ

You can use Vulert's playground (https://vulert.com/scanner) to check if your application is affected by this vulnerability. Simply upload your Pipfile.lock file, and Vulert will analyze it for any open-source vulnerabilities, including the malicious tpgetadstr package.

It is not recommended to use tpgetadstr, even if you update it to a non-malicious version. The package has been compromised, and it is difficult to trust its integrity. It is better to find an alternative package from a trusted source.

Using the malicious tpgetadstr package can result in unauthorized access to sensitive information, compromise of user data, and potential damage to the affected system. The spyware and information-stealing malware included in the package can collect and transmit sensitive data without the user's knowledge.

To prevent the installation of malicious packages, it is important to use a package manager that provides security checks. Vulert, for example, can analyze your project's dependencies and alert you to any known vulnerabilities or malicious packages. Additionally, always verify the source and reputation of the packages you include in your project.

If you have already installed tpgetadstr in your project, it is recommended to remove it immediately. Check your project's dependencies and remove any packages that rely on tpgetadstr as well. Scan your project for any signs of compromise and take appropriate actions to secure your system.

How To Fix

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

pip uninstall tpgetadstr

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