Vulnerabilities · 13 days ago

Agent Framework hooks expose secrets beyond its own apps

SecurityWeek reports that two poisoned Microsoft Agent Framework Python releases, versions 1.26.1 and 1.26.2, appeared on PyPI on November 17 and remained available for about 55 minutes before quarantine. Both carried credential-stealing code.

Each release added a .pth file to Python’s startup folder. Endor Labs says Python runs its instructions whenever the interpreter starts—including when pip launches—even if no program imports Agent Framework. Because the releases retained the working framework, ordinary functional checks could miss the compromise. SafeDep says the malware could also request fresh Azure identity tokens, not just collect credentials already stored on disk.

For a Python-based CI runner or Azure-connected build host, unrelated jobs may have exposed credentials and identities with access to cloud resources. Removing the package cannot establish that access ended: credentials may have been taken and fresh tokens issued before the hook was removed.

Because the stealer targeted identity tokens as well as secrets, rotating credentials alone may leave attacker-issued access valid; token revocation is also needed.

Timeline

Sources

10 sources covering this story

Vendor digest: Microsoft

Part of the PlainSec briefing for 2026-11-23

Editions

Related stories