Microsoft Agent Framework Package Hijacked: The Concierge Copies the Keys

Researchers say malicious releases of Microsoft’s agent-framework Python package, versions 1.26.1 and 1.26.2, stole credentials after installation. The code ran when Python started, without an application importing the package. The software supply chain has upgraded its concierge from checking badges to copying them.

🤚 The Open-Palm Package Inspection

This was not a fake package with a nearly correct name. According to OpenSourceMalware’s analysis of the releases, the files were published under the legitimate agent-framework project on PyPI, associated with Microsoft’s official publisher. The researchers identified the two affected versions as malicious and said the registry quarantined the publisher while access was investigated. OX Security separately reported the hijacked releases. Both investigations describe a supply-chain compromise, not a defect in the framework’s ordinary agent-building features.

The malicious distribution included a .pth startup file that loaded a credential-collection module during Python’s normal initialization. That detail matters. Developers who never wrote an import statement for the package could still expose secrets by running Python in an environment containing the affected release. The attacker packaged the intrusion as runtime diagnostics, a service tier nobody ordered.

The researchers describe collection of environment variables, credential files and tokens, including attempts to request fresh credentials from GitHub Actions, Azure DevOps and Azure managed identities. Data was sent to an attacker-controlled endpoint. We are not reproducing the payload or providing a recipe for running it. The defensive takeaway is narrower and more useful: installing the affected version in a credential-bearing environment warrants incident response, not merely a tidy package upgrade.

👐 The Two-Handed Trust Audit

The case illustrates why a familiar publisher name is useful evidence but not a complete security boundary. A compromised authorized release can look legitimate in a dependency list. A lockfile proves what was resolved; it does not prove the resolved artifact was benign. Neither does a later clean release undo credentials that may already have left the environment.

There is also a distinction between potential exposure and confirmed victims. Researchers reported malicious functionality in two releases, but public download counts for the overall project do not establish how many organizations installed those specific versions or lost secrets. Claims about a global victim count would require evidence we do not have. The Register reported Microsoft’s response: the company said it made some repositories private while investigating malicious content and was reviewing further action. A repository being private is not, by itself, proof that every project behind that door was compromised.

Our earlier coverage of a malicious AI SDK release confronted a similar problem: trusted distribution channels can become delivery channels for an attacker. The LiteLLM credential-stealer episode offers another reminder that developer tooling sits close to the secrets that make cloud systems run. A badge is most valuable precisely where the doors are expensive.

🌿 The Gentle Awakening

For defenders, the immediate question is whether agent-framework 1.26.1 or 1.26.2 was present on a developer workstation, build runner or hosted environment. Check dependency inventories, build records and installation logs across those systems, not just the production application. If either release was installed, treat accessible secrets and short-lived tokens as potentially exposed, investigate relevant activity, and rotate or revoke credentials according to their reach. Replace compromised build environments before trusting subsequent artifacts produced inside them.

Do not rely on an import search to clear a system. The reported execution path runs at interpreter startup; an apparently unrelated Python process in the affected environment may have activated it. Conversely, finding a package name in documentation does not prove an installation. The evidence needs to come from environments and their records. Security work is frequently the expensive art of distinguishing a guest list from the people who actually entered the room.

👑 The Gold-Leaf Reckoning

As of this report, PyPI’s project listing showed 1.26.0 as the current listed release. That observation is time-sensitive and not a blanket assertion that every prior version or environment is safe. The durable lesson is that an official release can be the incident itself. Inventory the affected versions, protect the keys they could have read, and wait for confirmed vendor or registry guidance before treating the publisher’s recovery as complete.

The AI agent was supposed to have tools. The package that supplied them reportedly came with a second, uninvited agent whose entire job was to leave with the keys. There is no premium membership tier that makes that an acceptable onboarding experience.

“The authorized publisher has passed identity verification. We will now verify it still knows who has the keys.” From the Slap of Wisdom Department of Velvet-Rope Supply Chains, reviewing the guest register.