discovered
Two rogue releases of agent-framework, the official Microsoft Agent Framework metapackage on PyPI (published under the legitimate 'microsoft' account, second maintainer 'vibiret', about 192K downloads a month; the account and project are victims). Both are a lone wheel where every release from 1.20.0 to 1.26.0 shipped a wheel and an sdist; 1.26.0 also lacks a PyPI attestation, so provenance did not distinguish them. A .pth file shipped inside the wheel runs the stealer at every Python interpreter start with no import of the package. _start() sets the run-once env var _AF_TEL, forks and detaches with setsid (daemon-thread fallback) and swallows all errors. The collector takes environment variables matching 31 name substrings, up to 60 credential files (Azure CLI, pip.conf, .npmrc, .netrc, .git-credentials, Docker, Hugging Face, Azure AI Foundry, Azure DevOps agent .credentials, /app and /workspace .env), up to 300 /proc/<pid>/environ files and host context. It mints fresh tokens: Azure DevOps OIDC via SYSTEM_OIDCREQUESTURI + SYSTEM_ACCESSTOKEN (api://AzureADTokenExchange), and managed identity tokens via IDENTITY_ENDPOINT/MSI_ENDPOINT or 169.254.169.254 for ARM, Key Vault, Storage, Graph, Azure DevOps (499b84ac-1321-427f-aa17-267ca6975798) and other Azure resources. 1.26.2, published 33 minutes after 1.26.1 and after it had been removed, moved the payload to a new top-level module af_runtime_diag (hook removed from agent_framework_meta/__init__.py), changed the User-Agent from af-runtime-diagnostics/1 to runtime-diagnostics/1 and added GitHub Actions OIDC theft (ACTIONS_ID_TOKEN_REQUEST_URL, audiences api://AzureADTokenExchange and https://management.azure.com/). Data is zlib-compressed, base64-encoded and POSTed to a webhook.site bin decoded from the base64 constant _ENC. No persistence beyond the shipped .pth and no second stage. How the attacker obtained publishing access is not known. Both versions removed from PyPI; last clean release 1.26.0 (wheel 14267ec8e6929c139015f8ec918adc638a71c7656901413426bb30ab199b6d71).