Malicious code in tpgetosint (PyPI)
Summary
MAL-2023-7049: Malicious code in tpgetosint (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
tpgetosint is a package available on PyPI that provides functionality for gathering OSINT (Open Source Intelligence) data. It is commonly used by developers and security researchers to collect information from various sources. However, a recent vulnerability has been discovered in tpgetosint, which allows the execution of malicious code.
Vulnerability Detail
The vulnerability in tpgetosint originates from a malicious package published on PyPI by the EsqueleSquad group. This package contains spyware and information-stealing malware. When developers unknowingly install this malicious package, it can compromise the security of their systems and potentially lead to data breaches. The specific package that introduces this vulnerability has a SHA256 hash of c850e7612a0a31b7690aa4819f89a92779ba06748b0ff56c4cd01a1b453bcf9f.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
pip uninstall tpgetosint
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 follow the steps mentioned in the 'how_to_fix' section.
Conclusion
The presence of malicious code in tpgetosint poses a significant security risk to projects that rely on this package. It is crucial to take immediate action to remove tpgetosint and any dependencies that rely on it. Regularly updating packages and using vulnerability monitoring tools like Vulert can help prevent similar vulnerabilities in the future. For further support on vulnerability remediation, you can reach out to DevNack.com.
See every vulnerability recorded for tpgetosint →
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 this one.
No, it is recommended to avoid using tpgetosint altogether due to the presence of this vulnerability. Even if you install it from a trusted source, there is a risk of inadvertently installing a malicious version.
There have been reports of the EsqueleSquad group publishing nearly 6000 malicious PyPi and NPM packages, including the one affecting tpgetosint. While specific instances of exploitation may not be publicly documented, it is crucial to address this vulnerability to mitigate any potential risks.
The fix for this vulnerability involves removing tpgetosint from your project and ensuring that you only install packages from trusted sources. Regularly updating your packages and using vulnerability monitoring tools can help prevent similar vulnerabilities in the future.
If you come across any suspicious packages or vulnerabilities, you can report them to the package maintainers or security researchers. Additionally, you can utilize vulnerability monitoring tools like Vulert to report and track vulnerabilities in open-source packages.