Editorial illustration showing a compromised AI agent package blocked before cloud credentials.

Microsoft Confirms Agent Framework Package Stole Cloud Credentials

SEO excerpt: Microsoft says two unauthorized Agent Framework releases on PyPI stole cloud and CI/CD credentials, requiring rebuilds and broad secret rotation.

NEW DELHI, November 30, 2026, 5:00 PM IST — Microsoft has confirmed that two unauthorized releases of its Agent Framework Python package contained credential-stealing code, turning a short-lived package-registry breach into an incident-response problem for development teams, CI/CD operators and cloud administrators.

The affected agent-framework meta-package versions, 1.26.1 and 1.26.2, were uploaded to PyPI on November 17 and have since been removed. Microsoft said systems that installed either release should be treated as compromised because the malicious code ran when Python started, even if an application never imported Agent Framework.

The distinction matters operationally. An unpinned dependency update in a developer workstation, build runner or container image could have exposed credentials without breaking the application or producing an obvious import error. Microsoft’s November 25 incident update advises affected organizations to rotate every credential reachable from the environment, rebuild from a clean image and review cloud and CI audit logs from November 17 onward.

What Microsoft has confirmed

Microsoft said the malicious code was present in the published Python wheels, not in the project’s source repository. Version 1.26.0 and earlier releases are not affected. The company also said the separate Agent Framework Python sub-packages, .NET packages and Semantic Kernel were outside the confirmed scope.

The company identified two sets of indicator files. Version 1.26.1 added agent_framework_meta.pth and agent_framework_meta/_telemetry.py; version 1.26.2 used af_runtime_diag.pth and af_runtime_diag.py. Microsoft recommends checking lockfiles, installed-package inventories, CI logs, container images, internal mirrors, artifact proxies and pip caches rather than relying only on the current PyPI listing.

The PyPI security advisory says both releases were repackaged from the legitimate 1.26.0 wheel and added a Python path file that executed the payload at interpreter startup. The advisory says PyPI Security worked with Microsoft to review project accounts and complete remediation steps.

Why the startup hook raised the impact

Independent analysis by JFrog Security Research found that the attacker preserved the legitimate framework dependency, allowing normal Agent Framework behavior to continue while the added startup hook ran in the background. That made routine commands such as Python, pip, pytest, an IDE language service or a container entrypoint potential triggers.

JFrog reported that the first unauthorized wheel was quarantined 31 minutes after publication. A second malicious version appeared two minutes later under different filenames, and both were removed shortly afterward. Automated dependency bots had already begun opening upgrade pull requests during that narrow window, illustrating how quickly a trusted package version can propagate into downstream repositories.

A secured CI/CD pipeline isolating a compromised Python package while cloud credentials are rotated and clean container images are rebuilt.
Incident response must connect package evidence, credential rotation, clean rebuilds and audit-log review.

The payload searched broadly for environment variables and local configuration files associated with Azure, AWS, GitHub, package registries, containers and AI providers. The PyPI advisory also says it attempted to obtain Azure managed-identity tokens, Azure DevOps credentials and, in the second release, GitHub Actions OIDC tokens. Microsoft has not publicly attributed the incident or explained how the unauthorized publishing access was obtained.

Developer and platform teams need an exposure inventory

For teams running Agent Framework, the immediate question is not whether the package is still downloadable. Removal from PyPI does not erase wheels already cached in artifact proxies, baked into container layers or installed in long-lived virtual environments.

Microsoft’s guidance is deliberately stronger than a normal dependency rollback: do not merely downgrade an affected environment in place. Rebuild it from a known-clean base, remove affected images and caches, rotate all accessible credentials, and investigate their subsequent use. That scope can include cloud identities, Git and registry tokens, API keys, CI service connections and credentials available to neighboring processes on the same Linux host.

Platform teams should correlate dependency evidence with identity telemetry. A lockfile showing version 1.26.1 or 1.26.2 establishes installation risk, but it does not prove which secrets were successfully exfiltrated. Conversely, the absence of the package in a current environment does not clear an earlier ephemeral runner or discarded container. Build records, software bills of materials, registry manifests and audit logs need to be examined together.

This is where mature LLMOps controls overlap with conventional software-supply-chain security. AI frameworks need the same immutable builds, dependency provenance, short-lived credentials and reproducible deployment evidence expected of other production software. Teams reviewing their pipeline design can also use GravityDevOps’ comparison of CI/CD tools as context for approval gates, artifact controls and auditability.

A short exposure window can still create a long incident

The compromise does not show that Microsoft’s Agent Framework source code was backdoored, and there is no confirmed evidence that every installation resulted in successful credential theft. JFrog found implementation mistakes in the malware, including rate limits at its collection endpoint and a broken Azure DevOps token request. Those limitations may have reduced some exfiltration, but they do not provide a safe basis for narrowing response without environment-specific evidence.

The larger lesson is about trust boundaries. Package registries, automated update bots and ephemeral build systems can move faster than manual incident notices. A release can be live for less than an hour yet persist in internal mirrors and container registries for weeks. Exact version pinning and lockfiles reduce surprise, but they are not sufficient alone if a trusted publisher account is abused.

Organizations can reduce the blast radius by keeping build identities short-lived and narrowly scoped, preventing routine jobs from reading unrelated secrets, isolating untrusted dependency installation from deployment credentials, and requiring provenance checks before artifacts advance. Those are durable controls, not claims that any specific tool would have prevented this incident.

What remains unresolved

Microsoft’s update confirms the malicious versions and response steps but does not give a root cause for the unauthorized uploads, identify an attacker or publish a verified victim count. Download estimates reported by security publications indicate meaningful exposure, but downloads are not equivalent to compromised organizations and should not be treated as an incident total.

Until Microsoft provides further guidance, it recommends holding the meta-package at version 1.26.0 or pinning only the exact unaffected sub-packages a project needs. Teams that never installed 1.26.1 or 1.26.2 do not need to rotate credentials solely because of this incident, according to Microsoft, but should preserve evidence showing that those versions never entered their build or runtime estate.

Sources

This report is based on Microsoft’s Agent Framework repository update, the PyPI security advisory PYSEC-2026-4388, JFrog Security Research’s technical analysis, and independent reporting from SecurityWeek.

Comments

No comments yet. Why don’t you start the discussion?

    Leave a Reply

    Your email address will not be published. Required fields are marked *