Malicious Code in tphackedencode (PyPI)

tphackedencode Updated 02 Oct 2025

Summary

25/02/2023
CRITICAL
No i
Critical
Not published

MAL-2023-7093: Malicious code in tphackedencode (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

tphackedencode is a package available on PyPI that is used for encoding and decoding data. It provides various functions for encoding and decoding data in different formats. However, this package has been found to contain malicious code.

Vulnerability Detail

The tphackedencode package has been identified as one of the nearly 6000 malicious PyPi packages published by the EsqueleSquad group. These packages execute spyware and information-stealing malware. The specific vulnerability in tphackedencode allows an attacker to execute arbitrary code on a system where the package is installed. This can lead to unauthorized access, data theft, and other malicious activities.

How To Fix

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

pip uninstall tphackedencode

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 package from your system to mitigate the risk.

Conclusion

The tphackedencode package on PyPI has been identified as containing malicious code. It is crucial to remove this package from your system to mitigate the risk of unauthorized access and data theft. For further support on vulnerability remediation, you can contact DevNack.com.

See every vulnerability recorded for tphackedencode →

Share this vulnerability

FAQ

You can check if tphackedencode is installed by running the command 'pip show tphackedencode'. If the package is installed, it will display information about the package. If it is not installed, it will show an error message.

The potential consequences of this vulnerability include unauthorized access to sensitive information, data theft, and the execution of malicious code on the affected system.

At this time, there is no specific evidence of exploitation of this vulnerability in the wild. However, it is essential to take proactive measures and remove the vulnerable package to prevent any potential exploitation.

Yes, there are several alternative packages available on PyPI for encoding and decoding data. Some popular options include base64, codecs, and binascii. It is recommended to use these trusted packages instead of tphackedencode.

To ensure the security of the packages you install from PyPI, it is recommended to follow best practices such as verifying the package source, checking for package vulnerabilities using tools like Vulert, and regularly updating your packages to the latest versions.

How To Fix

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

pip uninstall tphackedencode

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