PyPI

Microsoft Agent Framework PyPI Attack

Updated 19 Nov 2026 · Incident date 17 Nov 2026

Two releases of Microsoft’s agent-framework package stole credentials when Python started.

PyPI removed both releases on 17 November 2026. Developer computers and CI runners that installed either release were at risk.

What happened

Both releases added a file that starts the credential stealer when Python opens. It can run before your application starts.

  • Both releases read environment variables, credential files and Azure tokens.
  • Version 1.26.2 also collected GitHub Actions tokens.
  • Both releases sent the stolen data to an external server.

Vigilance caught version 1.26.1 at 20:37 UTC on 17 November 2026, 1 minute 40 seconds after it appeared on PyPI.

Affected versions

  • 1.26.1 appeared at 20:35 UTC on 17 November 2026.
  • 1.26.2 appeared at 21:08 UTC on 17 November 2026.
  • 1.26.0 was the last clean release.

Indicators of compromise

  • In 1.26.1, look for agent_framework_meta.pth and agent_framework_meta/_telemetry.py.
  • In 1.26.2, look for af_runtime_diag.pth and af_runtime_diag.py.

How to check

Use a shell outside the affected environment. Replace the path with the location of that environment.

find /path/to/environment -type d -name 'agent_framework-*.dist-info' -print

The directory name includes the installed package version.

Check your CI build logs and lockfile history for either affected version. A clean install today cannot rule out earlier exposure.

What to do now

  1. If you find either affected version, stop the affected workload.
  2. Use a clean machine to revoke exposed tokens and rotate credentials available to the workload.
  3. Rebuild the Python environment from a clean package set.
  4. Review cloud and CI logs for use of the exposed credentials.

What Vigilance would show

These examples show an install hold and the corresponding owner report.

Example install message

Vigilance blocked `agent-framework` 1.26.1. This version is too new or changed in a way Vigilance must check first.

Example owner report

Bad update

agent-framework 1.26.1

Reads saved credentials and cloud tokens. Sends them to an external server when Python starts.

See what to do now.

No security team? See who reads the alert.

Sources

  1. github.com/advisories/GHSA-764m-3ppc-5m73
  2. learn.microsoft.com/en-us/agent-framework/overview/

Send this page to the person who looks after AI at your company.

Email it

More supply chain attacks

All 172 attacks in the library · What is a supply chain attack? · How to prevent supply chain attacks

Check the next update before you install it

Vigilance compares the version you trust with the new one. It names the one file that gained a power the old version did not have.

Start the free 14-day trialBrowse the attack library