Malicious code in tego-managed-agents-test (PyPI)
--- _-= 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.
MAL-2026-17183
Primary source · Revision 1
Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.
Security context
Source reference: osv:MAL-2026-17183
tego-managed-agents-test
Source reference: /affected/0/package/name
- Affected versions
- 0.1.0
Source reference:
/affected/0/versions - Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
Structured affected-version data
Original package identities and version rules from this source.
[
{
"package": {
"name": "tego-managed-agents-test",
"purl": "pkg:pypi/tego-managed-agents-test",
"ecosystem": "PyPI"
},
"versions": [
"0.1.0"
],
"database_specific": {
"cwes": [
{
"name": "Embedded Malicious Code",
"cweId": "CWE-506",
"description": "The product contains code that appears to be malicious in nature."
}
],
"source": "https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/tego-managed-agents-test/MAL-2026-17183.json",
"indicators": {
"evidence_files": [
{
"path": "setup.py",
"tlsh": "1901d083e43318a2e68791b688836b383523ad0f1d81b47d36ec11d80f8f47ec42d09d",
"sha256": "64400569d40054aa6e73a133cd1c40d3402881dd341cfd327770bc0c1b7811ee"
}
],
"package_integrity": [
{
"hashes": {
"md5": "c5c0cead321fef3a5b0184277a61fd34",
"sha256": "5afa0b8af0c72de34acbf8855fb5fb1260fffbe6a9bdc002e021e09838e0a0ee",
"blake2b_256": "841eb25a78d3253263788b4e10d5a808d375e1ab7e443fd7f348d11d064f5c3f"
},
"filename": "tego_managed_agents_test-0.1.0.tar.gz"
}
]
}
}
}
]Publisher severity
No explicit severity was provided.
- Event
- #15302 · Revision 1
- Added to Heist Feed
- Publisher date