{"schema":"sanctity-signal/0.2","record_type":"signal","id":"microsoft-agent-framework-pypi-e117","domain":"security","drop_id":"signal-e117","occurred_at":"2026-11-25","how_to_use":"This is a structured record of one real-world action and its competing interpretations, from Sanctity Signal. To build content from it (a reel script, a blog, a thread): open on the hook, ground the viewer with plain and observed, walk the dated trail, present the interpretations as live tension between named readings, and close on the before/after shift and what_to_watch. Hard rules: items under established are fact; items under unknown are never presented as fact; the evidence status (verified or reported) is stated, not dropped; sources are cited.","actor":"Microsoft","action_type":"disclosure of 2 unauthorized malicious releases of Microsoft's own agent framework on PyPI, their removal, and the taking of the framework's repository offline with no restoration date","observed":"Microsoft's post \"Microsoft Agent Framework repository update,\" published November 25, 2026 at 20:14:50 Universal Time on devblogs.microsoft.com and read directly. Microsoft states that \"two versions of the agent-framework Python package, 1.26.1 and 1.26.2, were uploaded to PyPI without authorization\" on November 17, 2026, and that \"Both contained code that steals credentials.\" On how it fires: \"The code runs when Python starts in that environment, even if your application doesn't import the package.\" On scope: \"The malicious code was in the published packages, not in the repository itself,\" and \"Version 1.26.0 and earlier are not affected\"; the .NET packages and Semantic Kernel are unaffected. Both versions were removed from PyPI and the advisory is tracked as PYSEC-2026-4388. Microsoft made the repository unavailable, which it calls \"a necessary precaution,\" and says \"The repository will remain unavailable until we can confidently determine it is safe to re-enable\" and \"We're working to restore access as soon as possible, but don't yet have a confirmed timeline.\" The remediation is unusually blunt. Anyone who installed either version is told to treat the machine, container or CI job as compromised, rotate every credential it could reach, rebuild from a clean image, \"Don't downgrade in place,\" and review cloud and CI audit logs from November 17 onward. The indicator files named are agent_framework_meta.pth and agent_framework_meta/_telemetry.py for 1.26.1, and af_runtime_diag.pth and af_runtime_diag.py for 1.26.2. Everyone else is told to pin to agent-framework 1.26.0 and \"hold at that version until Microsoft provides further guidance.\" The post does not say how the unauthorized uploads happened, and defers technical detail to the advisory. Independent write-ups from Chainguard, Wiz, Socket and StepSecurity describe the stealer as targeting Azure and CI pipeline credentials.","corrections":[],"evidence":{"status":"verified","note":null,"sources":[{"role":"primary","label":"Microsoft Agent Framework repository update, devblogs.microsoft.com, Nov 25, 2026 at 20:14 UTC","url":"https://devblogs.microsoft.com/agent-framework/microsoft-agent-framework-repository-update/"},{"role":"corrob","label":"GitHub Advisory GHSA-764m-3ppc-5m73: malicious code in agent-framework (PyPI)","url":"https://github.com/advisories/GHSA-764m-3ppc-5m73"},{"role":"corrob","label":"SecurityWeek: Microsoft Agent Framework releases poisoned with credential stealer","url":"https://www.securityweek.com/microsoft-agent-framework-releases-poisoned-with-credential-stealer/"},{"role":"corrob","label":"Wiz: malicious version of Microsoft's agent framework published to PyPI","url":"https://www.wiz.io/blog/malicious-version-of-microsofts-agent-framework-published-to-pypi"}]},"strength":{"cost":"Medium","commitment":"High","reversibility":"Low","persistence":"Months","rationale":"Cost is medium and real. Taking your own framework's repository offline stops every contributor and every build that depends on it, and telling customers to treat their machines as compromised is the most expensive sentence a vendor can publish. Commitment is high: a timestamped post on Microsoft's own developer blog, naming versions, indicator files and an advisory identifier, cannot be walked back. Reversibility is low, because a disclosure of credential theft cannot be withdrawn and the rotation it demands has already happened. Persistence is months: the repository returns, but the 8 days this sat on PyPI are now a fixed fact about how the agent tool chain is distributed."},"shift":{"prior":"Agent risk meant a model misbehaving, a bad prompt or a rogue tool.","action":"Microsoft's post \"Microsoft Agent Framework repository update,\" published November 25, 2026 at 20:14:50 Universal Time on devblogs.microsoft.com and read directly. Microsoft states that \"two versions of the agent-framework Python package, 1.26.1 and 1.26.2, were uploaded to PyPI without authorization\" on November 17, 2026, and that \"Both contained code that steals credentials.\" On how it fires: \"The code runs when Python starts in that environment, even if your application doesn't import the package.\" On scope: \"The malicious code was in the published packages, not in the repository itself,\" and \"Version 1.26.0 and earlier are not affected\"; the .NET packages and Semantic Kernel are unaffected. Both versions were removed from PyPI and the advisory is tracked as PYSEC-2026-4388. Microsoft made the repository unavailable, which it calls \"a necessary precaution,\" and says \"The repository will remain unavailable until we can confidently determine it is safe to re-enable\" and \"We're working to restore access as soon as possible, but don't yet have a confirmed timeline.\" The remediation is unusually blunt. Anyone who installed either version is told to treat the machine, container or CI job as compromised, rotate every credential it could reach, rebuild from a clean image, \"Don't downgrade in place,\" and review cloud and CI audit logs from November 17 onward. The indicator files named are agent_framework_meta.pth and agent_framework_meta/_telemetry.py for 1.26.1, and af_runtime_diag.pth and af_runtime_diag.py for 1.26.2. Everyone else is told to pin to agent-framework 1.26.0 and \"hold at that version until Microsoft provides further guidance.\" The post does not say how the unauthorized uploads happened, and defers technical detail to the advisory. Independent write-ups from Chainguard, Wiz, Socket and StepSecurity describe the stealer as targeting Azure and CI pipeline credentials.","update":"The framework itself is the delivery vehicle, through the vendor's own channel."},"inference":{"established":["Microsoft says 2 unauthorized versions on PyPI contained credential-stealing code.","Both were removed, and the advisory is tracked as PYSEC-2026-4388.","Microsoft made the repository unavailable with no confirmed restoration timeline."],"unknown":["How the uploads happened. Microsoft defers that to the advisory.","How many installs occurred. No download or victim count is published.","That credentials were used. Theft capability is shown, not consequence."]},"narrative":{"hook":"Microsoft took its own agent framework repository offline after 2 poisoned releases stole credentials.","plain":"Versions 1.26.1 and 1.26.2 were uploaded to PyPI without authorization on November 17 and ran at Python startup. Caveat: Microsoft has not said how the uploads happened.","story":["The code ran when Python started, whether or not any application imported the package. So every machine, container and build job that installed it is to be treated as compromised, and Microsoft says rebuild rather than downgrade. The repository that holds the framework is still unavailable, with no confirmed date for its return."],"trail":[{"d":"OCT 17","t":"OpenCode says a breach may have exposed users' stored OpenAI and Anthropic keys. Edition 054."},{"d":"NOV 7","t":"Chainalysis restored its screening products after an intrusion exposed every user's logs. Edition 081."},{"d":"NOV 17","t":"Two unauthorized versions of agent-framework are uploaded to PyPI. They stay up, and the vendor says nothing, for 8 days."},{"d":"NOV 24","t":"Britain's cyber agency says AI attack frameworks have caused real intrusions and downtime since September. Edition 114."},{"d":"NOV 25","t":"Microsoft publishes at 20:14 Universal Time, confirms both versions stole credentials, removes them, takes the repository offline and tells users to rebuild."},{"d":"Reacts","r":true,"t":"Every team that installed agent-framework after November 17, which must rotate credentials and rebuild rather than downgrade; PyPI and the Python Software Foundation, whose upload path is the open question; Azure and continuous integration operators, the stated targets; Microsoft customers waiting on a repository with no return date; and the security vendors who documented this before the vendor did."}],"glossary":[{"term":"PyPI","def":"The Python Package Index, the public registry most Python code installs from. One unauthorized upload reaches everybody who installs that version."},{"term":"pth file","def":"A file Python reads automatically when it starts. Code placed there runs before any program logic, which is how this stealer avoided needing an import."},{"term":"Supply chain compromise","def":"An attack that poisons software you already trust instead of attacking you directly. The victim installs it themselves."}]},"judgment":{"prompt":"Which explanation do you believe?","interpretations":[{"id":"a","label":"The agent stack is the target","text":"Attackers went at the framework itself, not the model or the prompt.","abstain":false},{"id":"b","label":"One account, one lapse","text":"A publishing token or maintainer account leaked. The repository stayed clean.","abstain":false},{"id":"c","label":"A deliberate patient operation","text":"Startup execution, 2 attempts and 8 quiet days suggest someone waiting.","abstain":false},{"id":"d","label":"Normal registry churn","text":"PyPI sees hijacks weekly. This one happened to carry a famous name.","abstain":false},{"id":"e","label":"Too early to call.","text":"The evidence cannot yet separate these.","abstain":true}],"distribution":{"status":"held back until you have made your call","calls":null}},"story_thread":null,"what_to_watch":[{"linked_interpretation":"a","direction":"strengthens","observable_event":"A second widely used AI agent framework or MCP server package is compromised at its registry, or Microsoft's advisory names build systems as the intended target, by March 31, 2027.","window_end":"2027-03-31","state":"unresolved"},{"linked_interpretation":"a","direction":"weakens","observable_event":"Microsoft attributes the uploads to a single stolen maintainer credential with no targeting of the agent tool chain, by March 31, 2027.","window_end":"2027-03-31","state":"unresolved"}]}