MAL-2026-17183

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/tego-managed-agents-test/MAL-2026-17183.json
JSON Data
https://api.test.osv.dev/v1/vulns/MAL-2026-17183
Published
2026-09-25T10:39:11Z
Modified
2026-09-25T14:30:05Z
Summary
Malicious code in tego-managed-agents-test (PyPI)
Details

-= 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.

Database specific
{
    "iocs": {
        "domains": [
            "gateway.tego.security"
        ]
    },
    "malicious-packages-origins": [
        {
            "id": "pypi/2026-09-tego-managed-agents-test/tego-managed-agents-test",
            "import_time": "2026-09-25T11:17:12.240909973Z",
            "modified_time": "2026-09-25T10:39:11.241841Z",
            "sha256": "b09488c67894dd74d043a240308c694f0e42464e3a4f371b8d5ebc8a6a589d7b",
            "source": "kam193",
            "versions": [
                "0.1.0"
            ]
        },
        {
            "id": "IN-MAL-2026-020557",
            "import_time": "2026-09-25T14:20:34.824949496Z",
            "modified_time": "2026-09-25T14:10:19Z",
            "sha256": "72c8a01de8d706d83a4b80b845099c11602ba778a392337cad2d9a8a40090b5d",
            "source": "amazon-inspector",
            "versions": [
                "0.1.0"
            ]
        }
    ]
}
References
Credits

Affected packages

PyPI / tego-managed-agents-test

Package

Name
tego-managed-agents-test
View open source insights on deps.dev
Purl
pkg:pypi/tego-managed-agents-test

Affected ranges

Affected versions

0.*
0.1.0

Database specific

cwes
[
    {
        "cweId": "CWE-506",
        "description": "The product contains code that appears to be malicious in nature.",
        "name": "Embedded Malicious Code"
    }
]
indicators
{
    "evidence_files": [
        {
            "path": "setup.py",
            "sha256": "64400569d40054aa6e73a133cd1c40d3402881dd341cfd327770bc0c1b7811ee",
            "tlsh": "1901d083e43318a2e68791b688836b383523ad0f1d81b47d36ec11d80f8f47ec42d09d"
        }
    ],
    "package_integrity": [
        {
            "filename": "tego_managed_agents_test-0.1.0.tar.gz",
            "hashes": {
                "blake2b_256": "841eb25a78d3253263788b4e10d5a808d375e1ab7e443fd7f348d11d064f5c3f",
                "md5": "c5c0cead321fef3a5b0184277a61fd34",
                "sha256": "5afa0b8af0c72de34acbf8855fb5fb1260fffbe6a9bdc002e021e09838e0a0ee"
            }
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/tego-managed-agents-test/MAL-2026-17183.json"