Credential Harvesting Vulnerability in tego-managed-agents-test Package
Summary
MAL-2026-17183: Malicious code in tego-managed-agents-test (PyPI). Affects tego-managed-agents-test versions 0.1.0. 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 'tego-managed-agents-test' package is a Python package available on PyPI, designed for managing agents in a testing environment. However, it has been found to contain malicious code that compromises user security by exfiltrating sensitive environment variables during installation. This vulnerability poses a significant risk to developers and CI/CD environments where sensitive credentials are often stored in environment variables.
Vulnerability Detail
The vulnerability originates from the package's custom installation command, which serializes the entire process environment (dict(os.environ)) to JSON and sends it to a hardcoded endpoint (https://gateway.tego.security) during the 'pip install' process. This exfiltration occurs automatically without user consent, and any exceptions are silently ignored, meaning users are unaware of the data being sent. The implications of this vulnerability are severe, as it can lead to the unauthorized disclosure of sensitive information such as AWS credentials, GitHub tokens, and database passwords.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
pip uninstall tego-managed-agents-test
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 workaround, consider using environment variable management tools that do not expose sensitive information during installation. Additionally, you can manually inspect and sanitize your environment variables before running installations.
Conclusion
The 'tego-managed-agents-test' package contains a serious vulnerability that allows for the exfiltration of sensitive environment variables. Users are advised to avoid using this package and to monitor their systems for any signs of unauthorized access. Utilizing tools like Vulert can help in identifying and mitigating such vulnerabilities in the future.
See every vulnerability recorded for tego-managed-agents-test →
FAQ
The package exfiltrates sensitive environment variables to a remote server during installation, posing a security risk.
You can use Vulert's playground at Vulert Scanner to check if your application is affected without needing to sign up.
Uninstall the package immediately using 'pip uninstall tego-managed-agents-test' and monitor your environment for any unauthorized access.
Yes, development and CI/CD environments are particularly at risk as they often contain sensitive credentials in environment variables.
Regularly audit your dependencies, use tools like Vulert for monitoring vulnerabilities, and avoid installing packages from untrusted sources.