Malicious Code Injection in hardixx-code Package - PyPI Vulnerability
Summary
MAL-2026-812: Malicious code in hardixx-code (PyPI). Affects hardixx-code versions 1.0.0 – 1.0.5. 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
The hardixx-code package, available on PyPI, is designed for specific functionalities related to code manipulation and processing. However, it has been identified as having a significant security vulnerability that allows for the loading of obfuscated malicious code during the import of the module. This vulnerability poses a risk to users who may unknowingly execute harmful code, leading to potential data breaches or system compromises.
Vulnerability Detail
The vulnerability stems from version 1.0.2 of the hardixx-code package, which introduced the capability to load obfuscated code. This obfuscation makes it difficult for users to identify the malicious content. The absence of necessary files in the distributions uploaded to PyPI raises concerns about whether this is a packaging issue or if the harmful content is intended to be delivered through other channels to targeted users. The campaign associated with this vulnerability has clear malicious intent, potentially leading to data theft or unauthorized access.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
pip uninstall hardixx-code
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
As a temporary workaround, users are advised to avoid importing the hardixx-code package until the vulnerability is fully addressed. If the package is essential for your project, consider using alternative libraries that provide similar functionality without the associated risks.
Conclusion
The hardixx-code package has been identified as having a serious vulnerability that allows for the execution of obfuscated malicious code. Users are strongly advised to update to the latest version or find alternative solutions to mitigate potential risks. Monitoring tools like Vulert can assist in identifying vulnerabilities in your applications.
See every vulnerability recorded for hardixx-code →
FAQ
The hardixx-code package is a Python library available on PyPI that is used for code manipulation and processing tasks.
The vulnerability allows for the loading of obfuscated malicious code when the hardixx-code package is imported, potentially leading to security breaches.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.
If you cannot update the package right away, avoid using it in your projects and look for alternative libraries that do not have this vulnerability.
The vulnerability was reported by Kamil Mańkowski (kam193), who identified the malicious code and its implications.