Malicious code in tpmaskstudy (PyPI)

tpmaskstudy Updated 02 Oct 2025

Summary

25/02/2023
CRITICAL
No i
Critical
Not published

MAL-2023-7249: Malicious code in tpmaskstudy (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 Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

tpmaskstudy is a package available on PyPI that is used for studying the behavior of Trusted Platform Modules (TPMs). It provides various functions and utilities for interacting with TPMs and analyzing their behavior. However, this package has been found to contain malicious code.

Vulnerability Detail

The tpmaskstudy 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 details of the vulnerability in tpmaskstudy are not provided in the report, but it is important to note that using this package could lead to the execution of malicious code on the system, potentially compromising sensitive information.

How To Fix

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

pip uninstall tpmaskstudy

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 mentioned in the report. However, as mentioned in the 'how_to_fix' section, removing the tpmaskstudy package and verifying the trustworthiness of all installed packages are important steps to mitigate the vulnerability.

Conclusion

The tpmaskstudy package on PyPI has been found to contain malicious code. It is crucial to remove this package and verify the trustworthiness of all installed packages to mitigate the risk of using malicious packages. For further support on vulnerability remediation, you can reach out to DevNack.com.

See every vulnerability recorded for tpmaskstudy →

Share this vulnerability

FAQ

tpmaskstudy is a package used for studying the behavior of Trusted Platform Modules (TPMs). It provides functions and utilities for interacting with TPMs and analyzing their behavior.

The malicious code in tpmaskstudy was discovered by the Checkmarx team. They identified nearly 6000 malicious PyPi and NPM packages, including tpmaskstudy, that execute spyware and information-stealing malware.

Using tpmaskstudy could lead to the execution of malicious code on the system, potentially compromising sensitive information. It is important to remove this package and verify the trustworthiness of all installed packages.

To fix the vulnerability, remove the tpmaskstudy package from your project and any dependencies that rely on it. Regularly update and monitor the packages in your project to mitigate the risk of using malicious packages.

To ensure the trustworthiness of packages, only install packages from trusted sources. Verify the reputation and security of the package maintainers. Regularly update and monitor the packages in your project for any reported vulnerabilities.

How To Fix

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

pip uninstall tpmaskstudy

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