PyPI has quarantined versions 1.26.1 and 1.26.2 of agent-framework—Microsoft's Python toolkit for building AI agents—after they were found to contain malicious code designed to steal credentials. Once the compromised versions are installed, the malicious code can execute the next time Python starts; even if an application does not import the package, it will still harvest credentials such as environment variables, Azure CLI tokens, and Git credentials, and attempt to send them to an attacker-controlled endpoint. Affected developers are advised to remove the relevant versions and rotate any potentially exposed credentials. How the attacker obtained publishing privileges for the package has not yet been confirmed.
