Skip to content
cisonews.ai
Supply chain

Hijacked Microsoft agent-framework releases on PyPI carried an Azure and CI credential stealer

Two malicious agent-framework versions, 1.26.1 and 1.26.2, reached PyPI on November 17, 2026, and harvested Azure, CI/CD and AI provider credentials.

Event
2026-11-17
Affected
Microsoft Agent Framework (agent-framework PyPI package)
Published
Sources
2

By the cisonews.ai Desk · Published · Updated

On November 17, 2026, attackers published two malicious versions of Microsoft's official agent-framework Python package to PyPI, putting cloud and CI/CD credentials at risk for anyone who installed them.

Tuesdays, by email

Pages like this one, every Tuesday

One email with the week’s new incidents, explainers and rules, sorted by topic.

Unsubscribe any time.

The two versions were 1.26.1 and 1.26.2, and they stayed live for less than an hour.

What happened

Microsoft Agent Framework is used to build AI agents and multi-agent applications.

The first malicious version was published at 20:35 UTC and the second at 21:08 UTC.

OX Security reported that the payload ran every time Python started, even when no code imported the package.

The tainted versions also installed the genuine framework code, so applications kept working and the compromise was easy to miss.

After 1.26.1 was reverted, version 1.26.2 delivered the same payload from a different file path. It also extended the credential theft to GitHub Actions.

How the attacker gained publishing access is unknown. Legitimate releases shipped both built and source distributions, but the malicious versions contained only built packages.

Impact

The stealer collected environment variables with names such as TOKEN, SECRET, PASSWORD, AZURE, AWS, GITHUB and OPENAI. It also read up to 60 credential files and pulled secrets from up to 300 other running processes.

It requested managed identity tokens for Azure services including Resource Manager, Microsoft Graph, Key Vault, Storage, AI Foundry and Azure DevOps. The stolen data was sent to a webhook.site address.

The package gets about 190,000 downloads a month. The number of affected installations is unknown, but Endor Labs said any unpinned install during the window pulled in a malicious version.

Response

PyPI has quarantined both releases. Version 1.26.0 remains the latest clean release.

Microsoft has acknowledged the incident through an Agent Framework maintainer. It has not said publicly how the attacker got access to publish the package.

Aikido Security, Endor Labs and SafeDep also published analyses of the attack.

Lessons for security leaders

Check developer environments, CI/CD pipelines and container images for either version, and replace any affected installs with verified packages.

OX advised treating every secret reachable from a host that ran the package as compromised. OX recommended rotating Azure service principal secrets, personal access tokens, and GitHub, npm, PyPI, NuGet, Docker, Hugging Face and OpenAI tokens.

OX also recommended pinning to a verified Microsoft release with hash checking and blocking outbound traffic to webhook.site from build infrastructure.

A package from an official publisher can still be malicious.

Sources (2)

  1. [1]
    CSO Online
    csoonline.comNovember 18, 2026tier B · Press
  2. [2]
    SecurityWeek
    securityweek.comundatedtier B · Press

Tuesdays, by email

Pages like this one, every Tuesday

One email with the week’s new incidents, explainers and rules, sorted by topic.

Unsubscribe any time.