---
title: "Microsoft Agent Framework PyPI package compromise"
description: "Two malicious Microsoft agent-framework releases added Python startup hooks that collected credentials before removal from PyPI."
incident_type: "Cybersecurity incident"
status: "active"
last_modified: "2026-11-19"
canonical_url: "https://www.ally.security/incidents/microsoft-agent-framework-pypi-package-compromise-2026"
markdown_url: "https://www.ally.security/incidents/microsoft-agent-framework-pypi-package-compromise-2026.md"
stix_url: "https://www.ally.security/incidents/microsoft-agent-framework-pypi-package-compromise-2026/stix.json"
---

# 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 Nov 19, 2026 · 2 sources

## Summary

- **Environment:** Python package distribution through PyPI
- **Operational impact:** Malicious releases could steal developer and CI credentials
- **Financial impact:** No confirmed incident cost quantified

## What happened

Unauthorized versions 1.26.1 and 1.26.2 of [Microsoft](https://www.microsoft.com/)’s agent-framework package appeared on [PyPI](https://pypi.org/) on November 17, 2026. [1](#source-1)

## Impact

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

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

## Timeline

### November 17, 2026 — Malicious releases distributed and removed

Two unauthorized versions were published 33 minutes apart. [2](#source-2)

### November 18, 2026 — Malware advisory published

GitHub listed both compromised versions. [1](#source-1)

### November 19, 2026 — 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](#source-2)

The initial route to publishing access remained unresolved in the reviewed evidence. [2](#source-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](#source-2)

Removal does not remediate credentials already accessible on affected machines. [1](#source-1)

## Assets

[Download the case-scoped STIX 2.1 bundle](<https://www.ally.security/incidents/microsoft-agent-framework-pypi-package-compromise-2026/stix.json>)

## Sources

Primary source records used to research this incident.

<a id="source-1"></a>

### Malicious code in agent-framework (PyPI) — GHSA-764m-3ppc-5m73

advisory · GitHub Advisory Database · Nov 18, 2026

<https://github.com/advisories/GHSA-764m-3ppc-5m73>

<a id="source-2"></a>

### Microsoft’s agent-framework Hijacked on PyPI via Silent .pth Startup Hook

research · JFrog · Nov 18, 2026

<https://research.jfrog.com/post/agent-framework-hijack/>

<details>
<summary>Evidence ledger</summary>

Review the supporting structured claims.

1. **Resulted In · 100% confidence · current**  
   Microsoft Agent Framework PyPI package compromise: Unauthorized versions 1.26.1 and 1.26.2 of Microsoft’s agent-framework package appeared on PyPI on November 17, 2026.
2. **Resulted In · 100% confidence · current**  
   Microsoft Agent Framework PyPI package compromise: Malware advisory published
3. **Resulted In · 100% confidence · current**  
   Malware advisory published: GitHub listed both compromised versions.
4. **Resulted In · 100% confidence · current**  
   Microsoft Agent Framework PyPI package compromise: Malicious releases distributed and removed
5. **Affected Organization · 100% confidence · current**  
   Microsoft Agent Framework PyPI package compromise: Microsoft
6. **Resulted In · 100% confidence · current**  
   Microsoft Agent Framework PyPI package compromise: 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.
7. **Occurred At · 100% confidence · current**  
   Malware advisory published: 2026-11-18
8. **Resulted In · 100% confidence · current**  
   Microsoft Agent Framework PyPI package compromise: Removal does not remediate credentials already accessible on affected machines.
9. **Occurred At · 100% confidence · current**  
   Malicious releases distributed and removed: 2026-11-17
10. **Resulted In · 100% confidence · current**  
   Microsoft Agent Framework PyPI package compromise: 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.
11. **Resulted In · 100% confidence · current**  
   Microsoft Agent Framework PyPI package compromise: The initial route to publishing access remained unresolved in the reviewed evidence.
12. **Resulted In · 100% confidence · current**  
   Microsoft Agent Framework PyPI package compromise: A confirmed downstream victim or stolen-credential total is not established.
13. **Resulted In · 100% confidence · current**  
   Malicious releases distributed and removed: Two unauthorized versions were published 33 minutes apart.
14. **Resulted In · 100% confidence · current**  
   Microsoft Agent Framework PyPI package compromise: The credential stealer targeted environment variables, credential files and cloud tokens accessible to an affected Python environment.

</details>
