If any of your build systems or developer machines installed Microsoft’s agent-framework package from PyPI on 17 November without a pinned version, treat the secrets on that host as stolen. Removing the package fixes nothing that already left the machine. The malicious releases were live for under an hour, but images, caches and lockfiles built in that window can carry them forward.
What happened
According to InfoWorld, attackers briefly took over Microsoft’s official Agent Framework package on PyPI and published versions 1.26.1 and 1.26.2 on 17 November. Aikido Security put the uploads at 20:35 and 21:08 UTC, with both gone by about 21:20 UTC. The Hacker News reports that a long list of security firms flagged the releases, including Wiz, Socket, Chainguard and StepSecurity.
OX Security says the malware ran every time Python started, even if nothing imported the package. The releases also bundled the genuine framework code, so applications kept working. The code sat in a module styled as telemetry and collected environment secrets, cloud and package-manager credentials, and up to 60 credential files. It also read secrets from up to 300 other running processes and requested fresh Azure tokens, including managed identity tokens. Stolen data went to a webhook.site address.
The attacker adapted mid-incident. OX says 1.26.1 was reverted to the clean 1.26.0, after which 1.26.2 appeared with the same payload under different file names. Endor Labs says both versions were wheel-only uploads, without the source package that accompanied the clean release. Microsoft has not said how the attacker gained publishing access, and OX suspects the wheel-building process was hijacked.
Why it matters
Endor Labs describes the payload as written mainly for CI runners and Azure workloads, with laptops secondary. That matches a pattern: build systems hold broad, long-lived permissions and few people watch them. A stealer that requests pipeline identity tokens and managed identity tokens for services such as Key Vault, Graph and AI Foundry aims at the keys that open other systems, not at one machine.
The target list also names OpenAI and Hugging Face tokens. This suggests attackers see the AI developer stack, with its many API keys and fast-moving dependencies, as rich ground. InfoWorld notes this is not the first official Microsoft Python package hit this year: Endor Labs found three trojanized durabletask versions in May, though no researcher links the two cases. Even so, two incidents in one year undercut the assumption that a vendor-owned package name is safe by default.
What it means for you
Start with exposure. Search every environment, container image, CI cache and lockfile for versions 1.26.1 and 1.26.2. OX advises looking on hosts and build agents for agent_framework_meta.pth and agent_framework_meta/_telemetry.py. Aikido says 1.26.2 used af_runtime_diag.pth and af_runtime_diag.py instead.
If you find a hit, rotate everything the host could reach. OX lists Azure service principal secrets, personal access tokens, and GitHub, npm, PyPI, NuGet, Docker, Hugging Face and OpenAI tokens. Then review Azure sign-in and activity logs for managed identity and federated credential use from the affected build agents.
Then change the defaults. Pin dependencies to verified releases with hash checking, so a surprise upload cannot slip in. Block outbound traffic from build infrastructure to webhook.site, and consider an egress allowlist for runners generally. Review which secrets each pipeline can reach, because the damage here scales with permissions. If you build agent applications, ask your platform team how agent credentials are scoped and expired, and check our software coverage for related developer-tooling risks.
What to watch
- Whether Microsoft explains how the attacker gained publishing access, and what it changes in its release process.
- Any evidence tying this incident to the May durabletask compromise.
- Reports of stolen credentials being used against Azure, GitHub or AI services.
- Further hijacks of other vendor-owned AI and cloud SDK packages.


