Security

Microsoft Agent Framework Repository Remains Offline After PyPI Malware Attack

After malicious Python packages slipped onto PyPI, Microsoft is keeping the Agent Framework repository offline as a safety precaution—and telling developers exactly how to check for compromise.

Microsoft Agent Framework repository offline after malicious PyPI package versions
Microsoft says the Agent Framework repository will stay unavailable until it is confident the project is safe to restore.

Microsoft has apologized for disruption caused by the temporary unavailability of the Microsoft Agent Framework repository. Principal Product Architect Dan Taylor said the offline status is a necessary precaution. The company is working to restore access as soon as possible, but it does not yet have a confirmed timeline.

In plain words: the public code repository stays dark until Microsoft is confident it is safe to turn back on. The company also says Microsoft Agent Framework has not been discontinued.

What went wrong on PyPI?

PyPI is the main public package site for Python libraries. Developers often install packages from it with tools such as pip.

On November 17, 2026, two versions of the agent-framework Python package— 1.26.1 and 1.26.2—were uploaded to PyPI without authorization. Microsoft says both contained code that steals credentials. Both versions have been removed from PyPI, and Microsoft points readers to the PyPI advisory for full technical details. A public advisory entry is also available in the GitHub Advisory Database.

The affected package was the agent-framework Python meta-package—a wrapper package that pulls related pieces together. Other Microsoft Agent Framework Python packages were not affected.

Important clarification: Microsoft says the malicious code was in the published packages, not in the repository itself. Version 1.26.0 and earlier are not affected. .NET packages and Semantic Kernel are not affected.

Why the repository is still offline

Even though Microsoft says the malware lived in the PyPI packages rather than the repo source, the repository remains unavailable. Taylor called that a necessary precaution. Access will stay off until Microsoft can confidently determine it is safe to re-enable.

That means developers who normally browse or clone the public Agent Framework repo may still be blocked, even if their local installs never touched the bad versions.

Who might have installed the bad versions?

Microsoft says the malicious versions were available for a short time on November 17. You may have received one if you:

  • installed or upgraded agent-framework without a version pin,
  • ran CI or a container build without a pin or lockfile, or
  • merged an automated update to 1.26.1 or 1.26.2.

Removing the package from PyPI does not remove copies already downloaded. Microsoft tells teams to check lockfiles, pip freeze output, CI logs, container images, internal package mirrors, artifact proxies, and pip caches.

Files that can indicate a bad install

Look for these files in site-packages:

  • 1.26.1: agent_framework_meta.pth, agent_framework_meta/_telemetry.py
  • 1.26.2: af_runtime_diag.pth, af_runtime_diag.py

Microsoft warns that the malicious code runs when Python starts in that environment—even if your application never imports the package. That is why a silent startup hook is so dangerous.

If you installed 1.26.1 or 1.26.2

Treat the machine, container, or CI job as compromised. Microsoft’s recovery steps are:

  1. Rotate credentialsChange every credential the environment could access, including cloud identities, CI/CD and package registry tokens, API keys, and Git credentials.
  2. Rebuild cleanDo not just downgrade in place. Remove affected environments, images, caches, and copies in internal mirrors or proxies, then rebuild from a clean image.
  3. Review logsCheck cloud and CI audit logs from November 17 onward for unrecognized activity involving those credentials.

Microsoft says the advisory provides further indicators to help scope credential rotation and review network logs.

If you did not install either version

Pin to agent-framework==1.26.0, or pin the exact sub-packages you need, and hold at that version until Microsoft provides further guidance. If you never installed 1.26.1 or 1.26.2, Microsoft says no action is needed beyond that pinning recommendation. The company says it will update its post if the assessment changes.

Help channels named by Microsoft: the team can be reached on Discord, and for Agent Framework with Microsoft Foundry, Azure Support is available.

What It Means for Developers

This incident is a supply-chain lesson: a package registry publish can hurt you even when the Git repository itself is not where the malware lived.

What It Means for Software Developers

Everyday developers should assume “latest” is not always safe. Unpinned upgrades and auto-merge bots can pull a malicious release during a short window.

  • Pin package versions in requirements or lockfiles.
  • Search for the indicator files Microsoft listed before assuming you are clean.
  • Do not keep working in an environment that once ran 1.26.1 or 1.26.2.

What It Means for Backend Developers

Backend services often hold cloud keys, database secrets, and API tokens. A startup hook that steals credentials can expose far more than one library.

  • Rotate cloud, Git, and registry credentials that touched any compromised job.
  • Prefer short-lived tokens so a stolen secret expires faster.
  • If you build agent backends with Python or APIs with Node.js / Express, keep dependency installs behind the same pinning rules in every service.

What It Means for Full-Stack Developers

Full-stack apps often share CI pipelines across frontend and backend. One unpinned Python step can still poison the whole pipeline's secrets.

  • Audit monorepo CI for any job that installs agent-framework.
  • Rebuild containers from clean bases after a suspected hit.
  • Keep personal laptop secrets out of CI agents whenever possible.

What It Means for DevOps Engineers

DevOps teams own mirrors, caches, lockfiles, and rebuild discipline. Microsoft’s guidance maps closely to incident response for package compromise.

  • Purge affected artifacts from internal mirrors, proxies, and pip caches.
  • Block or pin known-bad versions in policy until Microsoft gives new guidance.
  • Review cloud and CI audit logs from November 17 onward.
  • Harden cloud edges with practices such as AWS security groups and AWS WAF, while remembering this attack path started in the package supply chain, not a public web form.

What It Means for Web Developers

Even web developers who mostly write JavaScript can be affected if a shared CI image or backend service installed the bad Python meta-package.

  • Ask whether any pipeline step installs Python packages without pins.
  • Treat shared runner images as part of your security surface.

What to watch next

A few practical checkpoints follow from Microsoft’s update:

  1. Repository restore dateMicrosoft has not confirmed when the Agent Framework repo will return.
  2. Further guidanceWatch for updated pinning advice if Microsoft’s assessment changes.
  3. Environment cleanupConfirm mirrors, caches, and CI images no longer carry 1.26.1 or 1.26.2.

Bottom line

Unauthorized PyPI releases of agent-framework 1.26.1 and 1.26.2 stole credentials, and Microsoft is keeping the Agent Framework repository offline until it is confident the project is safe to restore. The company says the malware was in the packages, not the repo source, and that the project has not been discontinued.

For developers, the urgent work is practical: check for the bad versions, rotate secrets if you were hit, rebuild clean, and pin to 1.26.0 until Microsoft says otherwise.

CODETOFUN NEWS

Stay Ahead in Tech

Get the latest IT news, programming updates, and technology trends directly on your phone.

Your daily dose of tech, straight to your feed.

About the author