Malicious code in tpcraftpeplib (PyPI)

tpcraftpeplib Updated 02 Oct 2025

Summary

25/02/2023
CRITICAL
No i
Critical
Not published

MAL-2023-6979: Malicious code in tpcraftpeplib (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

tpcraftpeplib is a Python package available on PyPI. It is used for crafting and manipulating TCP packets. The package provides various functions and utilities to create, modify, and analyze TCP packets. However, the package has been found to contain malicious code that can execute spyware and steal information.

Vulnerability Detail

The tpcraftpeplib package 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 specific vulnerability in tpcraftpeplib allows the execution of the malicious code, potentially leading 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 tpcraftpeplib

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 essential to remove the affected package and replace it with a secure alternative.

Conclusion

The tpcraftpeplib package on PyPI has been compromised by the EsqueleSquad group, leading to the inclusion of malicious code. This vulnerability can result in unauthorized access and data theft. It is crucial to remove the affected package and replace it with a trusted alternative. Regularly reviewing and updating the packages used in your project is essential to ensure the security of your application. For further support on vulnerability remediation, you can contact Vulert at DevNack.com.

See every vulnerability recorded for tpcraftpeplib →

Share this vulnerability

FAQ

You can use the Vulert Playground (https://vulert.com/scanner) to check if your application is affected by this vulnerability. Simply provide your Pipfile.lock, and Vulert will analyze it for open-source vulnerabilities.

The malicious code in tpcraftpeplib can lead to unauthorized access, data theft, and other malicious activities. It is crucial to address this vulnerability promptly to protect sensitive information and ensure the security of your application.

There is no fix available for tpcraftpeplib itself, as it has been compromised by the EsqueleSquad group. The recommended solution is to remove the package from your project and replace it with a trusted alternative.

Yes, you can continue using other packages from PyPI. However, it is crucial to regularly review and update the packages used in your project to ensure they are free from known vulnerabilities. Consider using a vulnerability monitoring tool like Vulert to stay informed about any potential risks.

If you have identified this vulnerability in tpcraftpeplib or any other package, you can report it to the package maintainer or the PyPI security team. Additionally, you can reach out to Vulert (info@devnack.com) for further support on vulnerability remediation.

How To Fix

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

pip uninstall tpcraftpeplib

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