Opening SecureFlowMicrosoft agent-framework on PyPI: Two Rogue Releases Run a Credential Stealer at Every Python Start
Case summary & sources

AIDEFEND SecureFlow / SecureFlow Case Index

Wiz aidefend-sf0105

Microsoft agent-framework on PyPI: Two Rogue Releases Run a Credential Stealer at Every Python Start

  • AI Supply Chain
  • AI Infrastructure
  • Credential & Identity Theft
  • Data Exfiltration

On November 17, 2026, two malicious releases of agent-framework, the PyPI meta-package that installs Microsoft Agent Framework (Microsoft's open-source Python SDK for building AI agents), were published 33 minutes apart: 1.26.1 at 20:35 UTC and 1.26.2 at 21:08 UTC. Each added a .pth startup hook, so a credential stealer ran whenever Python started in that environment, with no import of the framework. It collected secrets from environment variables, other processes and credential files, requested fresh Azure and CI identity tokens, and sent everything to a webhook.site URL. PyPI quarantined both versions, yet the second appeared 2 minutes 23 seconds after the first was quarantined. Wiz found only three unique cases of victim data among the 50 requests the URL stored. How the attacker obtained publishing access is not confirmed.

Mapped threat techniques

  • AML.T0017.003 Malware
  • AML.T0010.001 Software
  • AML.T0011.001 Malicious Package
  • AML.T0142 Event Triggered Execution
  • AML.T0055 Unsecured Credentials
  • AML.T0025 Exfiltration via Cyber Means

Source