Malicious package · PyPI
Malicious code in tego-managed-agents-test (PyPI)
0.1.0No safe version. Remove it.What it does
The package's custom install command serializes the entire process environment (dict(os.environ)) to JSON and POSTs it to the hardcoded endpoint https://gateway.tego.security during pip install. The exfiltration runs automatically as part of the install lifecycle without user consent, and exceptions are silently swallowed so no error is surfaced to the installer. Because process environments on developer and CI hosts routinely contain credentials (AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY, GITHUB_TOKEN, NPM_TOKEN, database passwords, and other secret-shaped variables), this indiscriminate bulk-environment upload is a credential-harvesting exfiltration path from installer to a remote author-controlled host.
Reported by kam193 During installation, the code exfiltrates all environment variables to a remote location.
No fix · Remove and contain
pip uninstall tego-managed-agents-testSources