---
id: MAL-2026-17183
title: Malicious code in tego-managed-agents-test (PyPI)
summary: Malicious code in tego-managed-agents-test (PyPI)
severity: critical
exploited: true
vendor: tego-managed-agents-test
product: tego-managed-agents-test
ecosystem: pip
affected:
  - tego-managed-agents-test
published: '2026-09-25'
updated: '2026-09-25'
sourceUpdated: '2026-09-25T14:30:05.685736886Z'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/MAL-2026-17183'
references:
  - url: 'https://bad-packages.kam193.eu/pypi/package/tego-managed-agents-test'
  - url: 'https://pypi.org/project/tego-managed-agents-test/0.1.0/'
tags:
  - osv
  - pip
  - malware
ingestedAt: '2026-09-26T07:17:57.329Z'
---

## Overview


---
_-= Per source details. Do not edit below this line.=-_

## Source: amazon-inspector (72c8a01de8d706d83a4b80b845099c11602ba778a392337cad2d9a8a40090b5d)
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.

## Source: kam193 (b09488c67894dd74d043a240308c694f0e42464e3a4f371b8d5ebc8a6a589d7b)
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.


## Affected packages

- `tego-managed-agents-test`

## Remediation

Refer to the advisory for the patched release.
