Malicious code in tpgetadstr (PyPI)
Summary
MAL-2023-7044: Malicious code in tpgetadstr (PyPI). Affected versions are not published. No fix is published. How to fix ↓
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.
No signup required · Results in about 60 seconds
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 →
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.