tego-managed-agents-testPyPI
Advisory published Updated
tego-managed-agents-test is a confirmed malicious PyPI package (MAL-2026-17183) that steals credentials and exfiltrates sensitive data (malicious version 0.1.0). Do not install it — remove it immediately and rotate any exposed credentials.
Malicious code in tego-managed-agents-test (PyPI)
What this malware 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.
During installation, the code exfiltrates all environment variables to a remote location.
Category: MALICIOUS - The campaign has clearly malicious intent, like infostealers.
Campaign: 2026-09-tego-managed-agents-test
Reasons (based on the campaign):
-
exfiltration-env-variables
-
The package overrides the install command in setup.py to execute malicious code during installation.
Malicious versions
Indicators of compromise (SHA-256)
Detection & response playbook
Credential / info stealerFind it
Search your lockfiles and build artifacts for tego-managed-agents-test (version 0.1.0).
If you installed it — respond
tego-managed-agents-test is built to steal secrets, so assume every credential the build or runtime could read is compromised. Remove it from your project and lockfile, then rotate ALL exposed secrets — npm/registry tokens, cloud keys, CI/CD secrets, SSH keys, and any .env values — from a known-clean machine. Audit logs for unauthorized use of those credentials.
Did it already run?
If tego-managed-agents-test was installed, its post-install payload may already have run. Removing the package does not undo that — check outbound connections and credential use from the install window onward.
Frequently asked questions
Campaign
References
Credits
- Amazon Inspector · finder
- Kamil Mańkowski (kam193) · reporter
Detect & block this
O3 blocks tego-managed-agents-test-class packages before install and in CI — and if it already ran, its runtime egress monitoring catches the credential exfiltration and severs the channel.