# Microsoft's Agent Framework PyPI Compromise: What Supply-Chain Attacks Teach About Agent Dependency Security

Source: [DEV Community: python](https://dev.to/mech_app_ai/microsofts-agent-framework-pypi-compromise-what-supply-chain-attacks-teach-about-agent-dependency-c68) · 2026-11-20 · Languages
Page: https://themorning.dev/story/microsoft-s-agent-framework-pypi-compromise-what-supply-chain-attacks-teach-abou-0b0fe5e3c9e9ccb8
Kind: security · Impact: high

## In brief

- Two malicious versions of Microsoft's agent-framework package, 1.26.1 and 1.26.2, were published to PyPI on November 17, 2026.
- Both versions shipped credential-stealing code that ran during Python startup, before any explicit import.
- Both versions were quarantined within about an hour, according to the sources.
- The package reportedly sees roughly 200,000 monthly downloads.

## Why it matters

Anyone who installed agent-framework 1.26.1 or 1.26.2 may have had credentials exposed, because the malicious code ran automatically when the Python interpreter started.

## What to do

- Check whether agent-framework 1.26.1 or 1.26.2 was installed in any environment, including CI and build systems.
- Remove the affected versions and install a clean, verified release.
- Rotate credentials that may have been present in environments where the malicious versions ran.

## Versions

- agent-framework 1.26.1
- agent-framework 1.26.2

## Timeline

- 2026-11-17: Malicious agent-framework 1.26.1 published to PyPI at 20:35 UTC
- 2026-11-17: Malicious agent-framework 1.26.2 published to PyPI at 21:08 UTC
- 2026-11-17: Both malicious versions quarantined within about an hour

## Coverage

- [Microsoft's Agent Framework Package Was Poisoned on PyPI — What to Check Right Now](https://dev.to/rohan_techofficial_81a0f/microsofts-agent-framework-package-was-poisoned-on-pypi-what-to-check-right-now-4ehi) — DEV Community: python, 2026-11-21
- [Your Python Interpreter Was the Attack Surface: What the agent-framework PyPI Poisoning Means for Your Next pip install](https://dev.to/shivaysinghrajput/your-python-interpreter-was-the-attack-surface-what-the-agent-framework-pypi-poisoning-means-for-2m24) — DEV Community: python, 2026-11-21
- [Microsoft's Agent Framework PyPI Compromise: What Supply-Chain Attacks Teach About Agent Dependency Security](https://dev.to/mech_app_ai/microsofts-agent-framework-pypi-compromise-what-supply-chain-attacks-teach-about-agent-dependency-c68) — DEV Community: python, 2026-11-20

Tags: supply-chain, pypi, python, credential-theft, agent-framework

---

Brief generated by AI (claude-haiku-5-5) from the reporting listed under Coverage. Headlines belong to their publishers. The Morning Dev – https://themorning.dev
