Intelligence Report

Hijacked Microsoft Agent Framework releases on PyPI harvested cloud credentials

Two tainted versions of Microsoft's AI agent package ran a stealer on every Python launch, targeting Azure, GitHub and developer secrets.

INSIGHTEX Editorial Desk

2 min read

Hijacked Microsoft Agent Framework releases on PyPI harvested cloud credentialsIntelligence Report

What happened

Two tampered releases of agent-framework, the Python meta-package for Microsoft's open-source toolkit for building and orchestrating AI agents, were pushed to the Python Package Index with a credential-stealing payload, The Hacker News reported. Security firms such as Socket, SafeDep, Endor Labs, OX Security, Aikido, Chainguard, StepSecurity and Google-owned Wiz documented it. Versions 1.26.1 and 1.26.2 went up on November 17, 2026, within 33 minutes of each other; both are now quarantined.

Each release drops a .pth file into the site-packages directory. Python processes such files at every interpreter launch, so the stealer runs whenever Python starts in an affected environment, even if the framework is never imported. It collects matching environment variables, credential files tied to Azure CLI, npm, pip, Git, Docker, Hugging Face and Azure DevOps agents, and Azure instance metadata, then compresses the haul and sends it to a webhook.site endpoint.

SafeDep said the code also requests fresh tokens from the platform, using Azure managed identity endpoints and DevOps pipeline variables, so rotating stored secrets alone would not close the exposure. Version 1.26.2 added collection of GitHub Actions OIDC tokens. How the attacker obtained publishing rights remains unclear, though OX Security said the attackers appear to have hijacked the process that builds the package wheels.

Context

This is the second Microsoft-related package on PyPI to be compromised in 2026. In May, the threat actors behind TeamPCP published three malicious versions of durabletask, a Microsoft Python client for running Durable Task workflows, to spread the Mini Shai-Hulud worm. OX Security said the latest case shows attackers taking aim at people who build AI software and at the continuous integration systems behind their work.

Docker profile

GitHub profile

SourceThe Hacker News

The briefing

The week in tech, in one email.

The stories worth your time, every week. Unsubscribe anytime.