Microsoft Agent Framework packages exposed cloud credentials in a 55-minute attack
Two malicious Microsoft Agent Framework releases exposed development environments to credential theft during a brief PyPI compromise. Investigations by Wiz and Elastic reveal the technical mechanism and limits of confirmed impact.

The Microsoft Agent Framework supply chain attack began on November 17, 2026, when attackers published two malicious releases of the official agent-framework Python package to the Python Package Index, exposing development environments to credential theft.
Security researchers at Wiz identified versions 1.26.1 and 1.26.2 as compromised. The first appeared at 20:35 UTC and the second at 21:08. Both had been removed by approximately 21:30 UTC, giving the incident a distribution window of less than an hour.
The attack targeted a package used to build and orchestrate AI agents, but the immediate security issue was not model behavior. The malicious code could run during normal Python startup and attempt to collect credentials from the environment in which the package had been installed.
That placed developer workstations, continuous integration pipelines and cloud identities within the potential attack surface.
The compromise began before an agent executed a task
Microsoft Agent Framework is an open-source framework supporting the development and orchestration of AI agents.
Its Python package is distributed through PyPI, allowing developers and build systems to install the framework through standard dependency-management workflows.
The compromised releases contained Python .pth files that could trigger execution when the interpreter started.
Version 1.26.1 included agent_framework_meta.pth, while 1.26.2 used af_runtime_diag.pth.
According to Wiz’s forensic investigation, these files allowed the credential-stealing code to execute without requiring an application to import the framework.
That technical detail changes the nature of the exposure.
A developer might install the compromised package as part of a routine environment update and subsequently run an unrelated Python program. If the malicious startup file remained present, the stealer could execute during interpreter initialization.
Security controls that monitor only explicit agent actions would not necessarily detect the underlying dependency compromise.
Cloud and CI credentials were the objective
Wiz found that the malicious code attempted to collect information from Azure CLI configurations, Azure DevOps credentials, environment variables and other development-system locations containing potentially sensitive data.
The second malicious release broadened collection capabilities involving GitHub Actions and workload identity federation.
These are attractive targets because development and build environments frequently possess authority to access internal repositories, deploy software and authenticate with cloud services.
A compromised credential may therefore provide access beyond the local system where it was collected.
The report also described an apparent compromise involving a Microsoft Engineering System Release Pipeline client certificate and associated private key.
Wiz observed that an initial publishing attempt from AWS infrastructure encountered an IP restriction, while another attempt using Microsoft-associated infrastructure succeeded.
The mechanism through which the publishing credentials were originally obtained remains uncertain. The evidence should not be interpreted as a complete reconstruction of the attacker’s initial access.
Independent detection confirms the release timeline
Elastic Security Labs reported detecting the malicious agent-framework release six minutes after its publication.
In its November 18 technical account, Elastic described how its supply-chain monitoring identified the suspicious package and examined the changes introduced by the unauthorized versions.
The independent investigation strengthens confidence in the timeline and technical mechanism.
It also demonstrates the value of automated package analysis during the early stages of a supply-chain compromise.
However, rapid detection does not establish that every affected installation was prevented or remediated.
Build systems may download packages automatically, and developers may continue operating an environment after the compromised release has been removed from the public registry.
The incident response therefore extends beyond deleting the malicious package versions.
What the confirmed exfiltration evidence establishes about Microsoft Agent Framework supply chain attack
Wiz subsequently examined records from the attacker’s webhook infrastructure.
Of 50 observed requests, its investigation classified four as attacker-originated, 29 as likely sandbox or scanning activity, and 17 as originating from three distinct successful victim-data exfiltration cases.
These findings are narrower than claims that every installation leaked credentials.
They also do not establish the complete number of affected systems worldwide.
The attacker’s infrastructure and logging limitations may have prevented investigators from observing every attempted transmission.
Similarly, the package’s usual download volume cannot be treated as the number of compromised installations during the exposure window.
Wiz reported that the legitimate package received approximately 41,000 downloads weekly. That figure describes normal distribution across versions rather than the number of downloads of the two malicious releases.
For enterprise security teams, those distinctions are essential when assessing the actual scale of exposure.
Why dependency inventories are not enough
Software bills of materials and dependency lockfiles can identify whether a system installed versions 1.26.1 or 1.26.2.
That establishes potential exposure, but it does not necessarily reveal whether Python subsequently started, whether the payload executed successfully or which credentials were accessible.
A meaningful investigation needs to connect dependency records with execution logs, network activity and cloud identity events.
Development environments may also contain cached package archives or container images built while the compromised versions were available.
Removing the releases from PyPI does not automatically eliminate those copies.
Security teams reviewing affected environments would need to determine whether credentials were accessible and whether subsequent authentication events suggest unauthorized use.
Wiz identifies version 1.26.0 as the last safe release preceding the compromise and provides version-specific indicators in its published investigation.
The incident reveals a separate security boundary for AI agents
Enterprise AI governance frequently concentrates on permissions granted to deployed agents.
That includes which databases an agent may read, which tools it can invoke and whether sensitive operations require approval.
The Microsoft Agent Framework incident exposes an earlier boundary.
Before an agent becomes operational, its software framework must be downloaded, installed, configured and deployed through an environment that may already contain powerful credentials.
An attacker who compromises that dependency chain can potentially bypass restrictions intended for the agent’s runtime behavior.
The distinction also connects to aiautomatein’s investigation of AI-driven vulnerability exploitation, where automated offensive tooling creates additional pressure on enterprise security operations.
In both cases, software automation interacts with existing organizational weaknesses rather than creating an entirely separate category of infrastructure.
aiautomatein analysis: The attack surface begins in the build pipeline
The Microsoft Agent Framework compromise demonstrates that enterprise agent security cannot be reduced to prompt injection defenses, tool restrictions or model governance.
Development pipelines possess privileges that may exceed those available to agents after deployment.
Those privileges can include access to source repositories, deployment secrets, cloud identity systems and production infrastructure.
The attack’s short exposure window makes it especially relevant to organizations relying on frequent automated dependency updates.
A package update distributed for less than an hour can become persistent exposure when incorporated into a long-lived container image or development environment.
The leadership consequence concerns software provenance and identity containment.
Organizations need to distinguish the number of potentially affected package installations from evidence of actual credential theft and confirmed downstream compromise.
Those are different stages of incident assessment, and conflating them can lead to both exaggerated risk reporting and incomplete investigation.
The broader lesson extends beyond Microsoft. As agent frameworks become embedded in enterprise software development, their dependency chains inherit the security significance of the cloud infrastructure they can access.
The industry question: Can an enterprise prove which build environments executed a compromised dependency and which cloud identities could have been exposed before the package was removed?



