Malicious code in toolmask (PyPI)

toolmask Updated 02 Oct 2025

Summary

24/02/2023
CRITICAL
No i
Critical
Not published

MAL-2023-6883: Malicious code in toolmask (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 Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Toolmask is a PyPI package that provides a set of tools for masking sensitive information in data. It is commonly used in data processing and analysis applications to ensure the privacy and security of sensitive data. However, the package has been found to contain malicious code, which poses a significant security risk to applications that use it.

Vulnerability Detail

The toolmask package has been compromised by the EsqueleSquad group, who published nearly 6000 malicious PyPi and NPM packages. These packages execute spyware and information-stealing malware. The specific vulnerability in toolmask allows attackers to gain unauthorized access to sensitive information processed by the package. This can lead to data breaches, privacy violations, and potential financial losses for affected applications.

How To Fix

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

pip uninstall toolmask

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 take immediate action by removing the compromised toolmask package and replacing it with a secure alternative.

Conclusion

The malicious code in the toolmask package poses a significant security risk to applications that use it. It is crucial to take immediate action by removing the compromised package and replacing it with a trusted alternative. Regularly updating and monitoring the packages used in your application, as well as following secure software development practices, can help mitigate the risk of similar vulnerabilities. For further support on vulnerability remediation, you can contact DevNack.com.

See every vulnerability recorded for toolmask →

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 file, and Vulert will analyze it for any open-source vulnerabilities, including the malicious code in toolmask.

The consequences of this vulnerability can be severe. Attackers can gain unauthorized access to sensitive information processed by the toolmask package, leading to data breaches, privacy violations, and potential financial losses for affected applications.

Yes, the recommended fix is to remove the compromised toolmask package from your application and replace it with a trusted alternative. Regularly updating and monitoring the packages used in your application is also crucial to mitigate the risk of known vulnerabilities.

While this specific vulnerability affects the toolmask package, it is essential to exercise caution and ensure the security of all packages used in your application. Regularly updating and monitoring packages, as well as using vulnerability monitoring tools like Vulert, can help mitigate the risk of similar vulnerabilities.

To prevent future vulnerabilities, it is crucial to follow best practices for secure software development. This includes regularly updating and monitoring packages, using trusted sources for package dependencies, and implementing secure coding practices. Additionally, using vulnerability monitoring tools like Vulert can provide real-time alerts and insights on open-source vulnerabilities in your software.

How To Fix

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

pip uninstall toolmask

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