What happened in the agent-framework compromise?
In its analysis, StepSecurity says versions 1.26.1 and 1.26.2 of agent-framework, the umbrella package for Microsoft's Agent Framework for Python, were published to the official PyPI project on November 17, 2026 with a credential-stealing payload. Socket reported the compromise the same day, and GitHub lists it as GHSA-764m-3ppc-5m73.
The payload installs a .pth startup hook in site-packages, so it runs whenever Python starts in that environment, with no import of the framework needed. A later run of pytest, pip or a build script is enough. The hook forks a detached background process that collects environment variables with names like TOKEN, SECRET, KEY, AZURE, AWS and GITHUB, credential files such as ~/.azure, .npmrc, .netrc, .git-credentials, Docker config and .env files, and the environments of up to 300 other processes. It also requests Azure managed-identity and Azure DevOps OIDC tokens, and 1.26.2 adds GitHub Actions OIDC tokens and runner directories.
StepSecurity's timeline: 1.26.1 was uploaded at 20:35:20 UTC and quarantined at 21:06:16 UTC. 1.26.2 followed at 21:08:39 UTC, about two minutes after the first quarantine, and was quarantined at 21:16:44 UTC. That shows the attacker still had publishing access after the first takedown. StepSecurity says the evidence does not establish how that access was obtained, and Microsoft has not published an advisory.
Which agent-framework versions are affected?
- agent-framework 1.26.1 (wheel only), uploaded November 17, 2026 at 20:35 UTC.
- agent-framework 1.26.2, uploaded November 17, 2026 at 21:08 UTC.
- Any environment, container image or CI runner that installed either version and then started Python.
- Not affected: 1.26.0 (released November 12) and earlier. StepSecurity found no new uploads to the satellite packages it checked.
How to check if you're affected
- Search lockfiles,
pip freezeoutput, CI logs, internal mirrors and container images for agent-framework 1.26.1 or 1.26.2. - Look in site-packages for
agent_framework_meta.pth,agent_framework_meta/_telemetry.py,af_runtime_diag.pthandaf_runtime_diag.py, using tools that don't start the affected interpreter. - Search egress and proxy logs for POSTs to
webhook.site/d381fd80-ec62-42ad-8f5c-d1b15103c9bbwith User-Agentruntime-diagnostics/1oraf-runtime-diagnostics/1. - Compare wheel hashes: 1.26.1
d27fa34414e6201d5e03e559ef634f020057554d7b3f4898dd5d7cd3e989e110, 1.26.23d20a8bc91351a9a16b6db243b848ceca0206b7a8623b02d2af553a9c9f7e0a9.
What to do now
- Isolate affected hosts and runners before running pip or Python there, because interpreter startup can run the hook again.
- Rebuild affected environments and images from a clean base, and pin
agent-framework==1.26.0with a hash-pinned lockfile. - Rotate every credential the payload could read, from a clean machine: CI secrets, cloud keys, registry and Docker credentials, Git credentials, Hugging Face tokens and Azure CLI caches.
- Review GitHub OIDC permissions, Azure federated credentials, Azure DevOps service connections and managed-identity role assignments, and check for unexpected token use.
Why startup hooks make this harder to contain
A .pth file turns a package install into code that runs on every Python start, so the package never has to be imported. Quarantine on PyPI stops new installs, but it doesn't remove copies already in caches and images or stop a collector that's already running. Because the payload also requests identity tokens, rotating static secrets isn't the whole fix: review the trust relationships those tokens can use. Pin dependencies by hash and watch lockfile diffs for unexpected version bumps in AI framework packages.
Where Nullify fits
How Nullify Covers This Class of Attack
Nullify finds every repository and container image that pulls an affected package version and runs the upgrade as one campaign, scoped by CVE, package, repo or team, with owners, Slack escalation and SLA tracking. Your developers approve every merge.
Nullify can't tell you whether the payload ran on a given machine or runner. Use the checks above for that, then fix the dependency everywhere it appears.
Frequently Asked Questions
Which agent-framework versions were compromised?
Versions 1.26.1 and 1.26.2 on PyPI, both published November 17, 2026 and both quarantined the same day. Version 1.26.0 and earlier are not affected, so pin 1.26.0 with a hash and rebuild anything that installed the bad versions.
Does the agent-framework malware run if I never import the package?
Yes. Both versions add a .pth startup hook, which Python runs whenever it starts in that environment. Running pytest, pip or any Python script after installing an affected version can trigger the collector.
What data does the agent-framework payload steal?
It collects secret-looking environment variables, credential files such as Azure CLI caches, .npmrc, .netrc and .env files, and other processes' environments. It also requests Azure and Azure DevOps identity tokens, and 1.26.2 adds GitHub Actions OIDC tokens.
How did the attacker publish to the agent-framework project?
That isn't established. StepSecurity says the evidence doesn't show the access vector or the credential used. It shows the attacker kept publishing access after the first release was quarantined. Microsoft has not published an advisory.
Update Log
- Nov 22, 2026: page published from the primary sources linked above.