Confirmed 25 Nov 2026 · Security A one-minute read

Microsoft took its own agent framework repository offline after 2 poisoned releases stole credentials.

Versions 1.26.1 and 1.26.2 were uploaded to PyPI without authorization on November 17 and ran at Python startup. Caveat: Microsoft has not said how the uploads happened.

Until now

Agent risk meant a model misbehaving, a bad prompt or a rogue tool.

Now

The framework itself is the delivery vehicle, through the vendor's own channel.

Why it matters

The code ran when Python started, whether or not any application imported the package. So every machine, container and build job that installed it is to be treated as compromised, and Microsoft says rebuild rather than downgrade. The repository that holds the framework is still unavailable, with no confirmed date for its return.

Established

  • Microsoft says 2 unauthorized versions on PyPI contained credential-stealing code.
  • Both were removed, and the advisory is tracked as PYSEC-2026-4388.
  • Microsoft made the repository unavailable with no confirmed restoration timeline.

Not established

  • How the uploads happened. Microsoft defers that to the advisory.
  • How many installs occurred. No download or victim count is published.
  • That credentials were used. Theft capability is shown, not consequence.
The five-minute readThe record, the timeline, the weight and 4 sources

The record

Microsoft's post "Microsoft Agent Framework repository update," published November 25, 2026 at 20:14:50 Universal Time on devblogs.microsoft.com and read directly. Microsoft states that "two versions of the agent-framework Python package, 1.26.1 and 1.26.2, were uploaded to PyPI without authorization" on November 17, 2026, and that "Both contained code that steals credentials." On how it fires: "The code runs when Python starts in that environment, even if your application doesn't import the package." On scope: "The malicious code was in the published packages, not in the repository itself," and "Version 1.26.0 and earlier are not affected"; the .NET packages and Semantic Kernel are unaffected. Both versions were removed from PyPI and the advisory is tracked as PYSEC-2026-4388. Microsoft made the repository unavailable, which it calls "a necessary precaution," and says "The repository will remain unavailable until we can confidently determine it is safe to re-enable" and "We're working to restore access as soon as possible, but don't yet have a confirmed timeline." The remediation is unusually blunt. Anyone who installed either version is told to treat the machine, container or CI job as compromised, rotate every credential it could reach, rebuild from a clean image, "Don't downgrade in place," and review cloud and CI audit logs from November 17 onward. The indicator files named are agent_framework_meta.pth and agent_framework_meta/_telemetry.py for 1.26.1, and af_runtime_diag.pth and af_runtime_diag.py for 1.26.2. Everyone else is told to pin to agent-framework 1.26.0 and "hold at that version until Microsoft provides further guidance." The post does not say how the unauthorized uploads happened, and defers technical detail to the advisory. Independent write-ups from Chainguard, Wiz, Socket and StepSecurity describe the stealer as targeting Azure and CI pipeline credentials.

How it got here

  1. Oct 17

    OpenCode says a breach may have exposed users' stored OpenAI and Anthropic keys. Edition 054.

  2. Nov 7

    Chainalysis restored its screening products after an intrusion exposed every user's logs. Edition 081.

  3. Nov 17

    Two unauthorized versions of agent-framework are uploaded to PyPI. They stay up, and the vendor says nothing, for 8 days.

  4. Nov 24

    Britain's cyber agency says AI attack frameworks have caused real intrusions and downtime since September. Edition 114.

  5. Nov 25

    Microsoft publishes at 20:14 Universal Time, confirms both versions stole credentials, removes them, takes the repository offline and tells users to rebuild.

Who has to react

Every team that installed agent-framework after November 17, which must rotate credentials and rebuild rather than downgrade; PyPI and the Python Software Foundation, whose upload path is the open question; Azure and continuous integration operators, the stated targets; Microsoft customers waiting on a repository with no return date; and the security vendors who documented this before the vendor did.

What to watch

  • Would strengthen itA second widely used AI agent framework or MCP server package is compromised at its registry, or Microsoft's advisory names build systems as the intended target, by March 31, 2027.
  • Would weaken itMicrosoft attributes the uploads to a single stolen maintainer credential with no targeting of the agent tool chain, by March 31, 2027.

Why it weighs this much

Signal strength
CostMedium
CommitmentHigh
ReversibilityLow
PersistenceMonths

Cost is medium and real. Taking your own framework's repository offline stops every contributor and every build that depends on it, and telling customers to treat their machines as compromised is the most expensive sentence a vendor can publish. Commitment is high: a timestamped post on Microsoft's own developer blog, naming versions, indicator files and an advisory identifier, cannot be walked back. Reversibility is low, because a disclosure of credential theft cannot be withdrawn and the rotation it demands has already happened. Persistence is months: the repository returns, but the 8 days this sat on PyPI are now a fixed fact about how the agent tool chain is distributed.

The words

PyPI
The Python Package Index, the public registry most Python code installs from. One unauthorized upload reaches everybody who installs that version.
pth file
A file Python reads automatically when it starts. Code placed there runs before any program logic, which is how this stealer avoided needing an import.
Supply chain compromise
An attack that poisons software you already trust instead of attacking you directly. The victim installs it themselves.

Sources

Your call

Which explanation do you believe?

A call is final. Other people's calls show after yours.

8 contributions. Thank you.

You have built
a record here.

Keep it: create an account to verify your contributions and put your name to the answers you choose. Your record stays yours.

Keep my record ↗
Optional: help show whose perspectives are missing
Kept with your answers under a random id, never with your name. Used for one thing: showing you, on your record, where you stand next to people like you, once at least 20 of them have answered.

Add your signature

Stand behind your judgment.

Create an account to attach your name to this answer. Your other answers show no name unless you sign them too.

Sign up to add your name ↗

Already have an account?