International
The Morning Dev

Only the news worth knowing

‹
 

Security · High impactFan score 71 · Tier A10 sources

MAI Code 2 on Stage, .pth Credential Theft on PyPI: The Microsoft Agent Framework Breach

DEV · By Kürşat Yılmaz ·

The Brief · written from 10 sources

  • Microsoft's official agent-framework PyPI package had two malicious releases, 1.26.1 and 1.26.2, published on November 17, 2026 at 20:35 UTC.
  • The versions install Python startup hooks that run a credential stealer on every Python start, targeting Azure, Azure DevOps, and GitHub Actions secrets.
  • The stolen data is sent to a webhook.site endpoint. The malicious versions have since been quarantined on PyPI.

Why it matters

Any developer or CI pipeline that installed agent-framework 1.26.1 or 1.26.2 may have had cloud and CI/CD credentials stolen just by starting Python, so affected secrets should be treated as compromised.

Who’s affected

  • Teams installing the agent-framework PyPI package
  • Anyone running Azure or GitHub Actions pipelines that used agent-framework
  • Developers whose Python environments imported agent-framework 1.26.1 or 1.26.2

What to do

  1. Check whether agent-framework 1.26.1 or 1.26.2 was installed in any environment, including CI runners and developer machines.
  2. Remove those versions and reinstall a release other than 1.26.1 and 1.26.2.
  3. Rotate Azure, Azure DevOps, and GitHub Actions secrets and any cloud identity tokens available in affected environments.
  4. Review cloud and CI logs for suspicious activity from affected systems.

While Microsoft executives took the Ignite stage in San Francisco to pitch their in-house MAI Code 2 models as cheaper and safer alternatives to OpenAI and Anthropic, attackers hijacked Microsoft's official open-source Python package agent-framework on PyPI (~190,000 monthly…

Timeline

  1. Malicious agent-framework versions 1.26.1 and 1.26.2 published to PyPI at 20:35 UTC

  2. Aikido Security's Blog

    Two malicious agent-framework releases hit PyPI in 33 minutes

  3. Wiz Blog | RSS feed

    Microsoft agent-framework Compromised: Credential Stealer Targets Azure and CI Pipelines

  4. Socket

    Microsoft’s agent-framework PyPI package Compromised with Credential Stealer

  5. Step Security Blog

    Microsoft agent-framework PyPI Package Compromised

  6. The Hacker News

    Attackers Compromise Microsoft's Agent Framework PyPI Package to Steal Cloud Credentials

  7. SecurityWeek

    Microsoft Agent Framework Releases Poisoned With Credential Stealer

  8. DEV Community: python

    MAI Code 2 on Stage, .pth Credential Theft on PyPI: The Microsoft Agent Framework Breach

  9. BleepingComputer

    Microsoft’s Agent Framework PyPI package compromised to steal credentials

  10. www.theregister.com - Articles

    Microsoft's official Python agent framework hijacked to distribute malware

  11. Techmeme

    Hackers compromised Microsoft's Agent Framework Python package on PyPI, publishing two versions designed to steal cloud credentials and other information (Bill Toulas/BleepingComputer)

Full coverage · 10 sources

How do you feel about this?

0 Comments