Back on November 19 I wrote that Microsoft’s Agent Framework package on PyPI was poisoned with a credential stealer. Here’s the latest. Microsoft has apologized for keeping the Agent Framework GitHub repository offline, but still has no date for bringing it back.
- The bad releases were
agent-framework1.26.1 and 1.26.2, uploaded to PyPI on November 17. Both stole credentials and both have been removed. - Only the Python
agent-frameworkmeta-package was hit. Other Agent Framework Python packages, the .NET packages and Semantic Kernel were not. - Microsoft’s Dan Taylor says the repo stays down “until we can establish that it is safe to restore,” and that the project “has not been discontinued.”
If you installed either version, the malicious code ran when Python started, even if your app never imported it. Microsoft says to treat the machine, container or CI job as compromised. Rotate every credential it could reach, rebuild from a clean image instead of downgrading in place, purge cached and mirrored copies, and review cloud and CI audit logs.
My take
Two weeks with the source dark is a long time for a framework people build agents on. I get the caution, but somebody needs to explain how two unauthorized releases got published in the first place.
God Bless, and Needs Garlic!