Microsoft Agent Framework PyPI package compromise

Two malicious Microsoft agent-framework releases added Python startup hooks that collected credentials before removal from PyPI.

Last modified

Summary

  • Environment: Python package distribution through PyPI
  • Operational impact: Malicious releases could steal developer and CI credentials
  • Financial impact: No confirmed incident cost quantified
  • Record status: Developing record. Reviewed November 19, 2026; updated as evidence emerges.

What happened

Unauthorized versions 1.26.1 and 1.26.2 of Microsoft’s agent-framework package appeared on PyPI on November 17, 2026. [1]

Impact

The credential stealer targeted environment variables, credential files and cloud tokens accessible to an affected Python environment. [1]

A confirmed downstream victim or stolen-credential total is not established. [2]

Timeline

  1. Malicious releases distributed and removed

    Two unauthorized versions were published 33 minutes apart.

    [2]
  2. Malware advisory published

    GitHub listed both compromised versions.

    [1]
  3. Briefing updated

    This briefing was last reviewed and updated on November 19, 2026.

Threat Group & Attack Vector

JFrog found that attackers repacked the wheel and added a startup hook that ran on subsequent Python launches, even without an application importing the framework. [2]

The initial route to publishing access remained unresolved in the reviewed evidence. [2]

Actors

  • No threat actor identity is established in the reviewed evidence.

TTPs

  • No specific MITRE ATT&CK technique is mapped for this case.

Response

JFrog reported the first release at 20:35 UTC, quarantine at 21:06, a second release at 21:08 and removal of both by 21:16. [2]

Removal does not remediate credentials already accessible on affected machines. [1]