Malicious code in tppeppostreplace (PyPI)
Summary
MAL-2023-7337: Malicious code in tppeppostreplace (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
tppeppostreplace is a package available on PyPI that is used for post-processing text files. It provides functionality for replacing specific patterns in the text files. The package is widely used in various Python projects.
Vulnerability Detail
A malicious code injection vulnerability has been discovered in tppeppostreplace. The vulnerability originates from a malicious package published on PyPI by the EsqueleSquad group. This package contains spyware and information-stealing malware. The malicious code can be executed when tppeppostreplace is installed and used in a project. This can lead to unauthorized access to sensitive information and compromise the security of the affected system.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
pip uninstall tppeppostreplace
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 tppeppostreplace package on PyPI has been found to contain malicious code, posing a significant security risk to projects that utilize it. It is crucial to remove this package from affected projects and replace it with a trusted alternative. Regularly monitoring and updating project dependencies can help mitigate the risk of such vulnerabilities. For further support on vulnerability remediation, you can contact the Checkmarx supply chain security team at supplychainsecurity@checkmarx.com.
See every vulnerability recorded for tppeppostreplace →
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 and Vulert will analyze it for any open-source vulnerabilities, including this one.
No, updating tppeppostreplace to the latest version will not resolve this vulnerability. The malicious code is present in the package itself, and updating it will not remove the injected malware. It is recommended to remove the package entirely.
Yes, there are several alternative packages available on PyPI that provide similar functionality to tppeppostreplace. Some popular alternatives include text-replace and file-replace. It is important to review the documentation and community feedback of these packages to ensure their trustworthiness.
The malicious code injected in tppeppostreplace can lead to unauthorized access to sensitive information, such as user credentials or confidential data. It can also compromise the security of the affected system by allowing remote attackers to execute arbitrary code. It is crucial to address this vulnerability promptly to prevent any potential damage.
If you have identified this vulnerability in your project or need further assistance, you can contact the Checkmarx supply chain security team at supplychainsecurity@checkmarx.com. They can provide guidance on vulnerability remediation and offer support in securing your software supply chain.