Security Advisory: Microsoft agent-framework PyPI Supply Chain Compromise (1.26.1 / 1.26.2)
Two malicious releases of Microsoft's official agent-framework Python package (1.26.1 and 1.26.2) were published to PyPI on November 17, 2026 and ran a cloud and CI/CD credential stealer every time Python started. Any environment that installed either version should be treated as credential-compromi
Security Advisory: Microsoft agent-framework PyPI Supply Chain Compromise (1.26.1 / 1.26.2)
Executive summary
Two malicious releases of Microsoft's official agent-framework Python package (1.26.1 and 1.26.2) were published to PyPI on November 17, 2026 and ran a cloud and CI/CD credential stealer every time Python started. Any environment that installed either version should be treated as credential-compromised, and the risk is critical for Azure, Azure DevOps and GitHub Actions workloads.
| Item | Detail |
|---|---|
| Affected package | agent-framework on PyPI, the meta-package for Microsoft Agent Framework (about 190,000 downloads a month) |
| Malicious versions | 1.26.1 and 1.26.2 |
| Last clean version | 1.26.0, published November 12, 2026 |
| Exposure window | About 45 minutes: 20:35 to roughly 21:20 UTC on November 17, 2026 |
| Attack type | Hijacked release of an official package; payload runs through a Python .pth startup hook, no import needed |
| Main targets | Azure managed-identity tokens, Azure DevOps and GitHub Actions OIDC tokens, environment secrets, CLI and registry credential files |
| CVE | None identified in the sources reviewed |
| Current status | Both versions quarantined on PyPI. Microsoft has acknowledged the incident and is investigating |
| Risk rating | Critical for any host that started Python after installing either version |
Removing the package does not undo the theft. The stealer also requests fresh identity tokens from the platform, so rotating stored secrets alone does not close the exposure.
Priority actions:
- Isolate any host, runner or image that installed 1.26.1 or 1.26.2, and do not run
piporpythoninside it. - Rotate every credential the host could read or request, from a clean system.
- Audit Azure sign-in and activity logs for managed identities, federated credentials and service connections reachable from those hosts.
Who is affected
You are affected if agent-framework 1.26.1 or 1.26.2 was installed anywhere between 20:35 UTC and about 21:20 UTC on November 17, 2026, and Python then ran in that environment. A loose requirement such as agent-framework>=1.26 pulls the malicious version in without anyone choosing it, and the 1.26.1 release has the same README and the same agent-framework-core[all]==1.26.0 pin as the clean release, so a Dependabot or Renovate pull request would look routine.
| Environment | Why it is exposed |
|---|---|
| Azure DevOps pipelines and agents | The payload reads SYSTEM_ACCESSTOKEN and requests an OIDC token for api://AzureADTokenExchange through SYSTEM_OIDCREQUESTURI. It also reads agent .credentials files |
| GitHub Actions workflows (1.26.2) | Workflows with id-token: write can have OIDC tokens for Azure minted from the runner. The payload also reads runner _temp and .azure directories |
| Azure VMs, App Service, Functions, AKS nodes | Managed-identity tokens are requested from IMDS (169.254.169.254) or IDENTITY_ENDPOINT for 12 resources, including Resource Manager, Graph, Key Vault and Storage |
| Developer laptops and workstations | Azure CLI caches, .npmrc, pip.conf, .netrc, .git-credentials, Docker config, Hugging Face tokens and .env files are collected |
| Container images and build caches | Any image built or cached in the window that contains the wheel carries the hook and re-triggers on every Python start |
| Internal PyPI mirrors and proxies | A mirror that cached the wheels keeps serving them after PyPI quarantine |
Sector exposure follows Azure and AI-agent adoption rather than industry. Teams building agents on Microsoft Agent Framework, MLOps and platform teams, and anyone running Azure DevOps or GitHub-to-Azure deployment pipelines carry the most risk, because those hosts hold federated identities and cloud tokens.
Not affected:
- Version 1.26.0 and earlier releases.
agent-framework-coreand the 22 sibling packages checked by Orca. StepSecurity found no uploads after November 12 for five satellite packages it checked (openai,redis,postgres,purview,tools).- Systems that never installed either version. A blocked outbound request to the exfiltration URL does not clean a host that did install it, because the startup hook stays in place.
Timeline (UTC)
The attacker published the second malicious version 2 minutes 23 seconds after PyPI quarantined the first, which shows that quarantine did not cut off their publishing access.
| Time | Event |
|---|---|
| Nov 12, 18:24 | Clean 1.26.0 published as wheel plus source distribution, alongside agent-framework-core 1.26.0 |
| Nov 17 (time not stated) | Per Wiz, a first publish attempt from AWS was rejected by Microsoft's ESRP release service IP filtering. A second attempt from Microsoft-owned IP space succeeded |
| Nov 17 (time not stated) | A PyPI maintainer account named vibiret was created and given publish rights on the package and five related projects. Its role in the uploads is unconfirmed |
| Nov 17, 20:35:20 | Malicious 1.26.1 uploaded as a wheel only, user-agent RestSharp/106.13.0.0, no provenance attestation |
| Nov 17, 21:06:16 | PyPI quarantines 1.26.1 |
| Nov 17, 21:08:39 | Malicious 1.26.2 uploaded with the payload moved to new file names and GitHub Actions targeting added |
| Nov 17, 21:16:44 | PyPI quarantines 1.26.2 |
| Nov 17, about 21:20 to 21:30 | Both versions no longer available. 1.26.0 is again the latest release |
| Nov 17, about 22:00 to 23:05 | First public analyses published by Wiz and Socket, followed by Aikido, OX Security, StepSecurity, Endor Labs and SafeDep |
| Nov 18 | A Microsoft maintainer confirms in a GitHub discussion that the releases were removed and an investigation is underway. Wiz updates its root-cause analysis at 14:00 UTC |
| Nov 18 | The Agent Framework GitHub repository is reported inaccessible, along with other Microsoft repositories. Whether this is related is unknown |
Technical analysis
The malicious wheels keep the legitimate framework intact and add a Python .pth startup hook, so the stealer runs on any Python launch in the environment whether or not anything imports Agent Framework. Researchers describe it as a focused credential and token stealer, not a remote-access trojan: the inspected payloads load no second stage.
Execution chain
pipinstalls the wheel. Installing a wheel runs no code, but it drops a.pthfile in thesite-packagesroot.- On the next interpreter start, Python's
sitemodule executes theimportline in that file.pipitself,pytest, linters and build scripts all trigger it. - The payload sets
_AF_TEL=1so child processes do not repeat it, then forks a child and detaches it withsetsid(). Whereforkis unavailable it falls back to a daemon thread. The parent program carries on as normal. - The child collects environment variables, other processes' environments, credential files and platform identity tokens.
- It serialises everything to JSON, compresses it with zlib, encodes it in base64 and sends one HTTPS POST to a hard-coded
webhook.siteURL. Failures are ignored silently, with no retry and no fallback channel.
The file and function names (_telemetry, "Lightweight runtime diagnostics hook") and the user-agent string imitate SDK telemetry, and the real agent-framework-core 1.26.0 is still installed, so applications keep working. The only obfuscation is the base64-encoded exfiltration URL.
What it takes
| Source | Detail |
|---|---|
| Environment variables | Names containing TOKEN, SECRET, PASSWORD, KEY, AZURE, AWS, GITHUB, HF_, OPENAI, FOUNDRY, TENANT, CLIENT, MANAGED and more (31 substrings in 1.26.1, 35 in 1.26.2) |
| Other processes | /proc/<pid>/environ for up to 300 processes, filtered for secret-like values including SYSTEM_ACCESSTOKEN and IDENTITY_HEADER. On a CI runner this reaches the build agent's own secrets |
| Credential files | Up to 60 files (80 in 1.26.2), each under 256 KB: ~/.azure/*.json, .npmrc, pip.conf, .netrc, .git-credentials, .docker/config.json, Hugging Face tokens, Foundry config, Azure DevOps agent .credentials files, and .env and JSON files under /app and /workspace |
| Azure DevOps OIDC | If SYSTEM_ACCESSTOKEN and SYSTEM_OIDCREQUESTURI are set, requests a token for api://AzureADTokenExchange. Aikido notes the request omits a service connection ID, so this step may fail on some pipelines, but the access token is still captured by the environment sweep |
| Azure managed identity | Requests tokens from IMDS (169.254.169.254) or IDENTITY_ENDPOINT for 12 resources: Resource Manager, Graph, Key Vault, Storage, Cognitive Services, AI and ML, Search, Container Registry, Azure DevOps and token exchange. Also keeps up to 8,000 characters of instance metadata |
| GitHub Actions OIDC (1.26.2 only) | Uses ACTIONS_ID_TOKEN_REQUEST_URL and the request or runtime token to mint JWTs for api://AzureADTokenExchange and https://management.azure.com/. Needs id-token: write. The payload collects the tokens; an attacker would then exchange them where an Entra ID federated credential trusts the workflow |
Why rotating secrets is not enough. The payload asks the platform to issue new credentials as well as reading stored ones. Wiz reports that stolen managed-identity and OIDC-exchanged tokens stay valid for up to 24 hours, and StepSecurity points out that deleting a federated trust does not revoke tokens already issued.
1.26.1 compared with 1.26.2
| Attribute | 1.26.1 | 1.26.2 |
|---|---|---|
| Uploaded | 20:35:20 UTC | 21:08:39 UTC |
| Startup hook | agent_framework_meta.pth |
af_runtime_diag.pth |
| Payload module | agent_framework_meta/_telemetry.py, started by code appended to __init__.py |
af_runtime_diag.py at the wheel root, started on import. __init__.py is restored to the clean 1.26.0 file |
| Exfiltration user-agent | af-runtime-diagnostics/1 |
runtime-diagnostics/1 |
| GitHub Actions OIDC theft | No | Yes |
| Credential file cap | 60 | 80 |
| Extra GitHub runner paths | No | /home/runner/work/_temp/* and /home/runner/.azure/* |
A search for the 1.26.1 file names alone misses 1.26.2. Both releases ship as wheels with no source distribution, and the injected files are world-writable, which fits a hand-edited and repacked legitimate wheel uploaded with valid publishing credentials.
Root cause and attribution
Microsoft has not published a root cause. Wiz's November 18 analysis is the most detailed public account and points to a stolen Microsoft release-signing credential, while other researchers flag a suspicious maintainer account. No threat actor has been named.
| Finding | Source | Status |
|---|---|---|
| The attacker appears to have compromised a client certificate and private key for Microsoft ESRP (Engineering System Release Pipeline), the internal service used to sign and publish this package. How the credential was obtained is unknown | Wiz | Researcher assessment based on the attacker's own telemetry. Not confirmed by Microsoft |
| A first publish attempt from AWS was rejected by ESRP IP filtering. A second attempt from Microsoft-owned IP space succeeded | Wiz | Same as above |
The attacker's tooling identified itself as Cairn, an open-source AI penetration-testing framework. It staged the package in /tmp/cairn_pkg and sent a CAIRN_ESRP_PROBE2 connectivity probe |
Wiz | Observed in data the attacker sent to the same public webhook |
Before publishing, the attacker ran the stealer on their own machine. That run captured an AI coding agent configuration that appears to be the open-source Pi harness with a GLM-family model behind a local proxy |
Wiz | Researcher observation |
Maintainer account vibiret was created on the day of the attack with publish rights on the package and five related projects |
SafeDep, StepSecurity | Involvement in the uploads not confirmed |
| No matching release or malicious code was found in Microsoft's main source repository, which suggests an upload outside the normal release process | Wiz, reported by SecurityWeek | Researcher observation |
Both uploads used the client string RestSharp/106.13.0.0, were wheel-only and carried no provenance attestation |
StepSecurity | Factual registry metadata. The client string shows what the request claimed, not who sent it |
The attacker's tooling reported its own progress to the same public webhook it used for theft, which is how Wiz observed part of the operation.
Wiz has not linked this incident to the May 2026 durabletask compromise by TeamPCP, although both hit official Microsoft Python packages. Treat any attribution to a known group as unsupported until a vendor or Microsoft states it.
Impact assessment
The exposure window was short at about 45 minutes, but any host that installed either version and then started Python gave up live cloud and CI identities with no user action.
| Factor | Rating | Basis |
|---|---|---|
| Likelihood of credential theft once installed and Python ran | High | The hook fires on every interpreter start and needs no import, no network inbound access and no user interaction |
| Severity of impact | Critical | The payload mints fresh tokens for Resource Manager, Graph, Key Vault, Storage and Azure DevOps, and reads package-registry and Git credentials |
| Breadth of exposure | Narrow but uneven | About 45 minutes of availability. CI builds without a lockfile or hash pinning that resolved a fresh install in the window carry the highest risk |
| Overall | Critical for exposed hosts, low for hosts that never installed either version |
What an attacker can do with the stolen material:
- Azure managed-identity and federated tokens: act as the workload against Resource Manager, Key Vault, Storage, Graph and Container Registry, within that identity's role assignments.
- Azure DevOps tokens and agent credentials: read repositories and artifacts and change pipelines.
- Registry, Git and Docker tokens: publish malicious packages or images downstream, which is how one compromised build host becomes a second supply-chain incident.
- AI service keys (OpenAI, Hugging Face, Foundry): abuse model access and reach connected data.
How much was actually taken is partly unknown. Wiz found the attacker's webhook was on the free tier of webhook.site, which stores at most 100 requests and then rejects the rest without logging them. Wiz analysed the 50 stored requests: 4 came from the attacker's own machines, 29 looked like sandboxes, vendor scanners and tests, and 17 represented only three distinct successful victim exfiltrations. Because the webhook was publicly viewable and requests beyond the cap were not stored, the true number of victims cannot be derived from it, and captured data may also have been readable by anyone who knew the URL. Treat every installation that ran Python as compromised.
Regulatory note. This paragraph comes from general knowledge, not the research sources, so confirm it with your compliance team. If credential exposure or unauthorised access is confirmed, regulated Indian entities should check CERT-In's six-hour incident reporting direction and sector rules such as SEBI CSCRF, and follow their ISO 27001 incident procedure.
Indicators of compromise
Hashes and file names are exact, but the attacker changed file names within 33 minutes, so match on behaviour and network indicators as well. Network indicators are defanged.
| Type | Indicator | Note |
|---|---|---|
| Package | agent-framework==1.26.1 |
Malicious, quarantined |
| Package | agent-framework==1.26.2 |
Malicious, quarantined |
| Wheel SHA-256 | d27fa34414e6201d5e03e559ef634f020057554d7b3f4898dd5d7cd3e989e110 |
agent_framework-1.26.1-py3-none-any.whl |
| Wheel SHA-256 | 3d20a8bc91351a9a16b6db243b848ceca0206b7a8623b02d2af553a9c9f7e0a9 |
agent_framework-1.26.2-py3-none-any.whl |
| File SHA-256 | 39fa329f2a93f734b0bb8f5adb203ea3331d1ae479832a5015a54cb17aabd663 |
agent_framework_meta/_telemetry.py (1.26.1 payload) |
| File SHA-256 | 21f28e8517a10ffe431f8d68f5875c85eca4001ae6d118322b0a41873998eb5e |
agent_framework_meta.pth (1.26.1 hook) |
| File SHA-256 | c275ccbe520ef3c0f02dc6a35389e427f9f1b4e0b12e140cd7bf7179ce143f02 |
Modified agent_framework_meta/__init__.py (1.26.1) |
| File SHA-256 | 54d885b7d7161c9ed96489c66364c4bfbf635929166843bba10d97d46b5a2e1f |
af_runtime_diag.py (1.26.2 payload) |
| File SHA-256 | 325e7e9f0ec94e41ad1a1b7a3f18a6b8b5bffece2e2b97b8d3369eb967452f93 |
af_runtime_diag.pth (1.26.2 hook) |
| Host file | site-packages/agent_framework_meta.pth and agent_framework_meta/_telemetry.py |
1.26.1 |
| Host file | site-packages/af_runtime_diag.pth and af_runtime_diag.py |
1.26.2 |
| Environment variable | _AF_TEL=1 |
Run-once guard set in Python processes and their children |
| Exfiltration URL | hxxps://webhook[.]site/d381fd80-ec62-42ad-8f5c-d1b15103c9bb?t=telemetry |
HTTPS POST, Content-Type: application/octet-stream, zlib plus base64 body |
| User-agent | af-runtime-diagnostics/1 |
1.26.1 exfiltration |
| User-agent | runtime-diagnostics/1 |
1.26.2 exfiltration |
| Behaviour | Python processes reading /proc/*/environ for many PIDs |
Environment scraping |
| Behaviour | Non-application Python process calling 169.254.169.254 or IDENTITY_ENDPOINT, or posting to SYSTEM_OIDCREQUESTURI or the GitHub OIDC request URL |
Token minting |
| Registry metadata | Uploader client RestSharp/106.13.0.0, wheel only, no provenance attestation |
Useful for mirror and registry forensics |
| Account | PyPI maintainer vibiret |
Created November 17, involvement unconfirmed |
Detection and hunting
Check without starting Python inside a suspect environment. Running pip show agent-framework, as one vendor suggests, launches the interpreter and can fire the hook again. StepSecurity's guidance is to isolate first and inspect with tools that do not start the affected interpreter.
File and package checks (no Python)
# Hook and payload files
find / \( -name 'agent_framework_meta.pth' -o -name 'af_runtime_diag.pth' \
-o -name 'af_runtime_diag.py' -o -path '*/agent_framework_meta/_telemetry.py' \) 2>/dev/null
# Installed metadata for the malicious versions
find / -type d \( -name 'agent_framework-1.26.1.dist-info' \
-o -name 'agent_framework-1.26.2.dist-info' \) 2>/dev/null
# Pinned references in repos
grep -rEn 'agent[-_]framework.*1\.26\.(1|2)' \
--include='requirements*.txt' --include='*.lock' --include='pyproject.toml' --include='Pipfile.lock' .
# Collector still running (run-once guard set in its environment)
grep -la '_AF_TEL=1' /proc/[0-9]*/environ 2>/dev/null
For container images, override the entrypoint with a shell (docker run --rm --entrypoint sh <image> -c '...') so the image's own Python entrypoint does not start.
Estate-wide searches
- Lockfiles,
requirementsfiles and SBOMs foragent-framework1.26.1 or 1.26.2. A loose spec such asagent-framework>=1.26will not show the resolved version, so also check the resolved version in build logs andpip installoutput. - CI logs from November 17, 20:35 to 21:20 UTC for any install of the package, on Azure DevOps and GitHub Actions, including self-hosted runners and cached virtual environments.
- Internal PyPI mirrors, artifact feeds and Docker layer caches for the two wheel hashes in the IOC section.
- Container images and VM images built since November 17 that contain
agent-framework.
Log hunting (templates, adapt table and field names)
// Outbound connections to the exfiltration service
DeviceNetworkEvents
| where Timestamp >= datetime(2026-11-17T20:35:00Z)
| where RemoteUrl has "webhook.site"
| project Timestamp, DeviceName, InitiatingProcessFileName,
InitiatingProcessCommandLine, RemoteUrl, RemoteIP
// Hook or payload files written to disk
DeviceFileEvents
| where Timestamp >= datetime(2026-11-17T20:35:00Z)
| where FileName in~ ("agent_framework_meta.pth", "af_runtime_diag.pth", "af_runtime_diag.py")
or (FileName =~ "_telemetry.py" and FolderPath has "agent_framework_meta")
| project Timestamp, DeviceName, FolderPath, FileName, SHA256
// Managed identity and service principal use from unexpected places
union AADManagedIdentitySignInLogs, AADServicePrincipalSignInLogs
| where TimeGenerated >= datetime(2026-11-17T20:35:00Z)
| summarize Sessions = count() by ServicePrincipalId, IPAddress, ResourceDisplayName
| order by Sessions desc
// Secret and key reads from Key Vault
AzureDiagnostics
| where ResourceProvider == "MICROSOFT.KEYVAULT"
| where TimeGenerated >= datetime(2026-11-17T20:35:00Z)
| where OperationName in ("SecretGet", "SecretList", "KeyGet", "CertificateGet")
| project TimeGenerated, OperationName, CallerIPAddress, identity_claim_appid_g, requestUri_s
Reading the results
- In proxy or DNS logs, search for the exact URL path
/d381fd80-ec62-42ad-8f5c-d1b15103c9bb. Wiz reports that an HTTP 200 means the host's data was accepted and a 410 or 429 means it was rejected. A connection towebhook.sitealone is not proof of theft, because the domain is shared. - Look for sign-ins from IP addresses outside your known runner, VM and egress ranges, and for new resource audiences. Tokens minted in the window can be used for up to 24 hours, and static secrets can be used much later, so extend the review well beyond November 18.
- With GitHub Actions, review workflows that installed 1.26.2 and had
id-token: write, then check the Entra ID app registrations whose federated credentials trust those repositories.
Remediation
If either malicious version was installed anywhere, contain first, rebuild from a clean base, and rotate from a clean system. Removing the package or the hook alone does not stop a collector that is already running and does not make stolen credentials safe.
Immediate containment
- Isolate affected hosts, containers and runners from the network before starting Python or
pipin them. Preserve install records, process lists and network logs with trusted tools. - Block the exfiltration endpoint at the proxy, DNS and egress firewall. This stops new exfiltration but does not remove the hook or prove earlier runs were safe.
- Block
agent-framework1.26.1 and 1.26.2 in package controls and internal mirrors, and purge cached copies of both wheels. - Stop any running collector, then replace the environment or image from a known-clean base. If you must clean in place, remove the
.pthfiles, the payload modules, their cached bytecode and thedist-infofor the malicious version, using tools that do not start the affected interpreter. - Pin
agent-framework==1.26.0with hash checking and rebuild.
Credential response (from a clean system)
- Rotate every secret the host could read or request: environment secrets, Azure service principal secrets, Azure DevOps PATs and service connections, Azure CLI sessions, GitHub tokens, npm, PyPI, NuGet, Docker, Hugging Face and OpenAI credentials, Git credentials, and anything in
.envfiles. - Rotate Key Vault secrets and storage keys that an exposed managed identity or service principal could read.
- Re-register self-hosted Azure DevOps agents whose
.credentialsfiles were readable, and rebuild affected runner images. - Review Entra ID federated credentials, Azure DevOps service connections and managed-identity role assignments reachable from affected workloads. Disable what is not needed, but do not assume that deleting a trust or a secret revokes access tokens already issued.
Identity and activity audit
- Review Entra ID sign-in logs for managed identities, service principals and federated credentials from November 17, 20:35 UTC onward, with extra attention to the first 24 hours.
- Review Azure Activity Log, Key Vault, Storage and Container Registry logs for operations by those identities.
- Look for persistence the attacker may have planted with stolen access: new app secrets or certificates, new federated credentials, new role assignments, new PATs, changed pipelines or workflows, and package or image publishes using exposed tokens.
- For GitHub Actions, treat the GitHub OIDC tokens for
api://AzureADTokenExchangeandhttps://management.azure.com/as exposed in every job that installed 1.26.2 withid-token: write, and rotate repository and organisation secrets that job could see.
Hardening against this attack class
- Use hash-pinned lockfiles and avoid open-ended specs such as
>=1.26in CI. Route installs through an internal mirror that holds new releases for review. - Add a dependency cooldown (a minimum release age) for new versions. StepSecurity notes this does not help where an unpinned dependency resolves a new release without a pull request.
- Enforce egress allowlisting on build runners and self-hosted agents, and allow request-capture and webhook services only where genuinely needed.
- Limit
id-token: writeto the jobs that need it and scope Entra federated credentials to specific repositories, branches or environments. - Give managed identities on build hosts the least privilege possible, keep long-lived secrets off build hosts, and block IMDS access from workloads that do not need it.
- Monitor
site-packagesfor new.pthfiles that containimportlines. Python has no setting that disables.pthexecution, and the-Sflag skips site processing but is not a substitute for containment. - Treat a wheel-only release of a package that previously shipped a source distribution as an anomaly worth review.
Related incidents and context
This is at least the third publicly reported compromise of an official Microsoft developer-ecosystem asset in 2026, but nothing published links it to the earlier two. The shared pattern is theft of release or contributor credentials, followed by credential-stealing payloads aimed at cloud and CI/CD identities.
| Date | Incident | Relevance to this advisory |
|---|---|---|
| Mar 2026 | LiteLLM PyPI compromise | Aikido notes it used the same .pth startup hook to run on every Python launch |
| May 19, 2026 | Microsoft durabletask 1.4.1 to 1.4.3 on PyPI |
Three versions published in 35 minutes with a stolen long-lived PyPI API token. The GitHub repository was not breached. The stage-2 stealer targeted AWS, Azure, GCP, Kubernetes and Vault, and spread to other hosts. StepSecurity ties its infrastructure to TeamPCP |
| Jun 5, 2026 | 73 Microsoft GitHub repositories disabled | A malicious commit pushed to Azure/durabletask with the same contributor account used in May planted files that run a payload when the repository is opened in Claude Code, Gemini CLI, Cursor or VS Code |
| Nov 17, 2026 | agent-framework 1.26.1 and 1.26.2 |
This advisory |
The agent-framework payload differs from the May durabletask one. The inspected code has no second stage, no worm propagation, no wiper and no attacker-owned command-and-control server, and it uses a free webhook.site endpoint instead. Wiz states it has not linked the two incidents, so the similarities describe a pattern and not an attribution.
Why AI developer tooling keeps being targeted: Aikido points out that the machines most likely to install an AI agent SDK are the ones holding cloud and model-provider credentials. OX Security makes the same point about the AI developer ecosystem and the CI pipelines behind it. Wiz also saw the attacker use an open-source AI penetration-testing framework and an AI coding agent, which is a reminder that attacker tooling is changing as quickly as the defensive guidance.
Source discrepancies, open questions and sources
This is a developing incident and the advisory reflects public reporting through November 19, 2026. Where vendors disagree, the table shows how this advisory handled it.
| Topic | What the sources say | Treatment here |
|---|---|---|
| Removal time | Wiz: both versions gone by about 21:30 UTC. Aikido: by about 21:20. StepSecurity registry timestamps: quarantined at 21:06:16 (1.26.1) and 21:16:44 (1.26.2) | Exposure window stated as 20:35 to roughly 21:20 UTC |
| How the attacker got publish access | The Hacker News and SecurityWeek: unknown. Wiz (Nov 18 update): a stolen ESRP client certificate and key. SafeDep and StepSecurity: a new maintainer account, vibiret |
Wiz's finding shown as a researcher assessment. The account's role is marked unconfirmed |
| Checking for the package | Aikido suggests pip show agent-framework. StepSecurity warns not to start Python or pip in an affected environment |
The advisory uses checks that do not start Python |
| Azure DevOps OIDC theft | Most sources say the payload requests an OIDC token. Aikido notes the request may fail without a service connection ID | Treated as a possible exposure. The access token is captured either way |
| Number of victims | No public count. Wiz saw three distinct successful exfiltrations in the 50 requests the webhook stored | Treat every installation that ran Python as compromised |
Open questions:
- How the publishing credential was obtained, and whether the attacker's access is fully revoked. StepSecurity notes the second upload proves access survived the first quarantine, but not whether it exists now.
- Whether the Agent Framework repository and other Microsoft repositories being inaccessible on November 18 is connected to this incident.
- Who is responsible, and whether there is any link to TeamPCP or the earlier Microsoft incidents.
- Whether Microsoft will publish a formal security advisory or CVE. None was found in the sources reviewed, so check the Microsoft Security Response Center and the maintainers' GitHub discussion for updates.
Sources opened and read:
- The Hacker News: Attackers Compromise Microsoft's Agent Framework PyPI Package
- Wiz: Microsoft agent-framework Compromised
- Socket: agent-framework PyPI package compromised with credential stealer
- StepSecurity: Microsoft agent-framework PyPI Package Compromised
- Aikido: Two malicious agent-framework releases hit PyPI in 33 minutes
- OX Security: Hijacked Releases of Microsoft's Official agent-framework
- SecurityWeek: Microsoft Agent Framework Releases Poisoned With Credential Stealer
- SafeDep: Malicious durabletask on PyPI
- StepSecurity: Miasma Worm Hits Microsoft Again
Seen only as search results, not opened: Orca Security analysis, which is the source for the claim that agent-framework-core and 22 sibling packages were checked and are not affected, and OpenSourceMalware. The Chainguard, Endor Labs and SafeDep agent-framework reports cited by The Hacker News could not be opened.