The durable packages were not reported compromised. A worker is still exposed if the bad metapackage was installed in an environment that also held scheduler credentials or Azure identity.
Summary
Microsoft has made the Durable Task extension for Agent Framework generally available in .NET and Python. Agent progress and proof that a request finished are stored outside the worker process, so agents can resume after restarts and long human-approval waits. In mid-November, SafeDep reported that agent-framework 1.26.1 and 1.26.2 on PyPI ran a stealer each time Python started. The stealer collected environment variables and requested Azure and CI tokens. The durable packages are not implicated. Whether any given durable deployment was exposed depends on its dependency tree and install environment, and teams adopting the extension should check both.
What happened
Microsoft's engineering post, dated 1 December 2026, covers the general-availability (GA) release of Microsoft.Agents.AI.DurableTask and Microsoft.Agents.AI.Hosting.AzureFunctions for .NET, and agent-framework-durabletask and agent-framework-azurefunctions for Python. Azure Durable Task Scheduler is the managed backend that stores state and dispatches work. The main design change is Schema 2.0.0. It keeps a permanent completion receipt for each correlation ID, separate from the conversation transcript, which can be trimmed. Because of this, a retried request that has already completed is not run again, even after history has been pruned to stay under the 1 MiB entity limit. The post sets a limit on that guarantee. If a tool takes an action and the process fails before the turn's completion is saved, the tool still needs its own idempotency check. The post also covers sealed history ownership per session, separate controls for TTL, context compaction and byte-budget retention, and rolling v1-to-v2 upgrades on a shared Task Hub. In its main sample, a GitHub Copilot agent pauses for human approval, every worker shuts down, and a fresh host resumes the same Copilot session. The .NET configuration example reads the scheduler connection from a configuration key named DURABLE_TASK_SCHEDULER_CONNECTION_STRING.
SafeDep's report, dated 18 November and updated 23 November, covers a separate problem. agent-framework 1.26.1 and 1.26.2 each shipped a .pth file. Python runs such files at interpreter startup, so installing the package was enough to trigger the payload. The payload took environment variables and credential files. It also requested fresh tokens from Azure DevOps and Azure managed identity, and in the second release from GitHub Actions. PyPI removed both versions, and 1.26.0 is the last clean release. Wiz Research reports that the attacker appears to have used a client certificate and key for Microsoft's ESRP release pipeline. SafeDep notes this is not confirmed. SafeDep also notes that PyPI had no attestation for the clean 1.26.0 either. Microsoft's other agent-stack news this month, PyRIT 1.2.0 and a Copilot SDK harness walkthrough, covers testing agent behavior and isolating workers. Neither covers package provenance.
What the archive adds
An earlier New Runtime note on the Copilot SDK walkthrough (November 2026) described a demo with three swappable harness configurations. Workers ran in separate Docker containers, an inference gateway kept provider credentials away from the agent, and a sandbox sat on top of container isolation. The note pointed out that the demo included no security or performance measurements. That design keeps model credentials out of the agent loop at runtime. It does not cover code that a dependency runs at interpreter startup, before any agent loop exists.
Durable execution for agents is a wider movement than Microsoft. Diagrid has written about Dapr durable execution for Goose agents. Vercel argues that every harness needs to be durable because agent tasks run for minutes or hours. Restate and Temporal compete on durable workflows and both offer self-hosting, and LangGraph offers graph-level checkpointing. On the supply-chain side, SafeDep earlier documented a compromised LiteLLM 1.107.0 release that also used a .pth file (cook.pth) to steal credentials. It also documented a May compromise of durabletask 1.4.1 to 1.4.3 on PyPI through a stolen API token. SafeDep says that incident shares no payload or infrastructure with the November one.
Trend signal
Agent infrastructure is turning into ordinary distributed-systems infrastructure. Agents now get idempotency keys, checkpointed orchestrations, retention budgets and versioned schemas for rolling upgrades. Microsoft's GA, Vercel's durable-harness push and Dapr's Goose integration all target the same failure: long-running agents that lose work or repeat side effects when a process dies. Over the same period, AI toolkits have become a target in their own right. They are installed into CI jobs and developer machines that hold cloud tokens, and a .pth startup hook has now shown up in two popular AI packages this year: LiteLLM 1.107.0, then agent-framework 1.26.1 and 1.26.2. Runtime reliability and install-time provenance are separate problems, owned by different people, and the GA write-up addresses only the first. Our read is that teams evaluating durable agents will need to review both at once. A durable worker is only as trustworthy as the packages installed where it runs.
Why now
1) Production agents run for a long time and wait on people. Microsoft's Durable Extension docs say sessions must survive crashes, restarts and scale-out, and that approvals may take hours to weeks without consuming compute. Microsoft's GA announcement presents the release as the fix for agents losing progress when a worker is replaced (d3, d4). 2) The preview schema could not trim history without losing proof that a request had completed. According to Microsoft's engineering post, the 1 MiB entity limit forced Schema 2.0.0 to store receipts separately from transcripts. 3) Competitors raised expectations. Vercel, Diagrid/Dapr, Restate, Temporal and LangGraph all sell durability for agents (d1, d2, d12, d13). 4) On the attack side, AI toolkits are installed into CI and developer environments full of tokens, and there are no provenance checks to stop a bad upload. SafeDep notes PyPI had no attestation for the clean release, and the same .pth technique hit LiteLLM earlier (d6, d7). The two problems meet when teams install these packages to run durable workers.
Connections to other events
The constraint the GA write-up leaves out is this: its guarantees cover what the worker code does, not whether the installed code is the code Microsoft wrote. For most teams that gap is theoretical. For one specific group it was not.
The overlap is narrow and concrete. According to SafeDep, the malicious hook ran every time Python started, so no import was needed. StepSecurity lists the substrings the stealer matched in environment-variable names, including CONNECTION, KEY, AZURE and AGENT. SafeDep says it also requested Azure managed-identity tokens. Microsoft's .NET example reads the scheduler connection from DURABLE_TASK_SCHEDULER_CONNECTION_STRING through configuration. In common hosting setups that value comes from an environment variable, though it could also come from a settings file or a vault. A .NET worker does not start a Python interpreter, so the stealer would only reach it if the same machine or CI job also ran Python with the bad package installed.
Our reading is conditional. A Python durable worker, or a build or CI environment shared with one, was exposed only if all three of these held:
- It installed agent-framework 1.26.1 or 1.26.2 during the window between their upload on 17 November and their removal.
- Python started in that environment afterwards.
- The scheduler connection string sat in an environment variable there, or a managed identity was reachable that could request tokens.
If any one of these is false, the durable deployment was not exposed through this incident. Nothing published shows that any scheduler credential was actually taken.
Two facts remain unknown, and they would settle the question:
- whether agent-framework-durabletask or agent-framework-azurefunctions depends on the agent-framework metapackage, or only on agent-framework-core;
- whether the durable packages are published through the same ESRP path that Wiz believes was abused.
A pip dependency tree for the durable packages answers the first. A Microsoft statement about the release path answers the second. Until then, SafeDep's point about attestation is the practical one: consumers had no cryptographic way to tell a clean upload from a malicious one, so lockfile hashes and environment hygiene are the only controls teams have.
Why it matters
For builders adopting the durable extension:
- Pin Agent Framework packages by hash, and confirm you are on 1.26.0 or a later release you have verified.
- Run pipdeptree on agent-framework-durabletask to see whether the metapackage is in your tree at all.
- Search site-packages for unexpected .pth files.
- Keep scheduler connection strings, and any identity that can request runtime tokens, out of the environment where packages are installed. Build identities and runtime identities should be separate.
- If any machine ran 1.26.1 or 1.26.2 while it held scheduler credentials, rotate those credentials along with the cloud and CI tokens.
Separately, read the idempotency guarantee precisely. Schema 2.0.0 stops a completed turn from running again. It does not stop a tool from repeating a side effect when a crash lands between the tool call and the saved receipt. Tools that create tickets, send payments or open incidents still need their own idempotency keys.
For buyers, the GA is a real reliability improvement. The questions to put to Microsoft are which release path the durable packages use, and when Agent Framework packages on PyPI will carry attestations.
The strongest counter-argument is that these are separate stories. The compromised package was the metapackage, the durable packages were not named, Wiz's ESRP finding is unconfirmed, and the GA design should be judged on its own merits. That is correct for the design, and this take does not dispute it. The warning applies only to deployments. Whether a given durable worker was exposed is a question about its dependency tree and install environment, and the GA write-up does not raise it.
What happens next
- Microsoft publishes a GitHub security advisory or MSRC entry naming the malicious agent-framework releases within a month. (1 month, 30%). Watch for: A GHSA entry appears under the microsoft/agent-framework repository's Security tab, or an MSRC blog post names 1.26.1/1.26.2 before 2026-12-31. Resolves on 2027-01-02, yes if: The microsoft/agent-framework GitHub security advisories page or the MSRC blog contains an entry naming agent-framework 1.26.1 or 1.26.2 on 2027-01-02.
- The same-day maintainer account vibiret is no longer listed as a maintainer of agent-framework on PyPI within a month. (1 month, 65%). Watch for: The maintainers sidebar on the agent-framework PyPI project page drops vibiret, or one of the five related projects shows an ownership change. Resolves on 2027-01-02, yes if: The PyPI project page for agent-framework lists no maintainer named vibiret on 2027-01-02.
- Agent Framework release files on PyPI carry attestations (trusted-publisher provenance) within three months. (3 months, 20%). Watch for: A new agent-framework or agent-framework-core release on PyPI shows a provenance entry in its file details, or the microsoft/agent-framework release workflow adds a PyPI trusted-publishing step. Resolves on 2027-03-01, yes if: The PyPI project page for agent-framework shows an attestation record for at least one release file uploaded after 2026-12-02, checked on 2027-03-01.
Limits and uncertainty
The durable Python packages were not reported as compromised. Whether they pull in the agent-framework metapackage is not stated in Microsoft's post or the incident write-ups, so exposure has to be checked deployment by deployment. Nothing published shows that any scheduler credential or Copilot session ID was stolen. Install counts for the bad versions are unknown. Wiz presents the ESRP compromise as an assessment, not a confirmed finding, and Microsoft has not published an incident report. It is also unknown whether the durable packages share that release path. The connection-string point rests on Microsoft's .NET sample, and production deployments may load the value from a vault or use managed identity with narrow permissions. Durable Task Scheduler's access-control options could limit what a stolen token reaches. That has not been independently checked. The May durabletask incident involved a different package and different infrastructure, and it does not show any link to the Durable Task extension. This take could be wrong in the reassuring direction: if the durable packages depend only on agent-framework-core and ship through a separate path, the exposure for durable-only deployments was close to nil.
Competing readings
- Conditional deployment risk: the GA guarantees are sound, but they cover runtime behaviour, not install-time code. Durable workers that shared an environment with the bad metapackage and held scheduler credentials or identity were exposed (likely, about 60%). What would tell it apart: The durability guarantees cover completed turns and recovery, and leave tool-side idempotency to the developer (devblogs.microsoft.com); The stealer ran at startup, harvested env vars matching CONNECTION/AZURE and requested managed-identity tokens, with no attestation to detect it (safedep.io)(stepsecurity.io).
- Unrelated events: the compromise hit only the metapackage through a pipeline failure that does not touch durable-extension deployments, which depend on separately released packages (unlikely, about 30%). What would tell it apart: The durable packages were not reported compromised, and the ESRP cause is unconfirmed (safedep.io); Exposure requires the metapackage in the tree, which is undocumented for the durable packages (devblogs.microsoft.com).
- The bigger production risk in the GA is duplicate side effects from tools without their own idempotency keys, not the supply chain (very unlikely, about 10%). What would tell it apart: Microsoft explicitly leaves crash-between-tool-and-receipt duplicates to tool-level checks (devblogs.microsoft.com).
Base rate
Of 179 earlier release stories about companies or products in the New Runtime archive over the last 12 months that are at least 3 months old, 163 (91%) were followed within 3 months by a access-change or pricing story on the same company or product line. In 163 of 179 earlier release stories, an access-change or pricing story on the same product line followed within 3 months. That makes a Durable Task Scheduler access or pricing follow-up likely. The base rate says nothing about whether Microsoft adds provenance or publishes an incident report, so the forecasts here do not rely on it.
What would change this view
- A pipdeptree of agent-framework-durabletask and agent-framework-azurefunctions shows no dependency on the agent-framework metapackage, and Microsoft states the durable packages ship through a release path separate from the abused one (signal): Durable-only deployments had no realistic exposure path, and the two stories are separate.
- Agent Framework release files on PyPI start carrying verifiable attestations tied to source commits (open-source signal): Consumers gain a cryptographic check, and hash pinning stops being the only defence.
- Durable Task Scheduler docs and samples drop connection strings in favour of narrowly scoped managed identity as the default for workers (signal): The environment-variable harvesting path against durable workers is largely closed.
Skill to build now
Audit installs and runtime identity together in CI. Exercise for this week:
- Add a job that creates a fresh virtualenv and installs your agent stack with pip install --require-hashes from a lockfile.
- Run pipdeptree and fail if agent-framework resolves to 1.26.1 or 1.26.2. Record whether agent-framework-durabletask pulls in the metapackage at all.
- List every .pth file in site-packages and fail on any line starting with "import" that is not on an allowlist.
- Assert that DURABLE_TASK_SCHEDULER_CONNECTION_STRING and the variables that grant managed identity or cloud tokens are absent from that job's environment, so the identity that installs packages is not the one that runs workers.
Reader takeaway
Before moving an agent workload onto the Durable Task extension, add one CI job that does three things:
- Install from a hash-pinned lockfile.
- Fail on any .pth file in site-packages that is not on your allowlist.
- Fail if DURABLE_TASK_SCHEDULER_CONNECTION_STRING, or any variable granting a runtime identity, is visible during the install step.
Then run pipdeptree on agent-framework-durabletask so you know whether the compromised metapackage was ever in your tree.
Open question
If the attacker really did publish through Microsoft's own ESRP signing path, would PyPI attestations have blocked the agent-framework releases, or would they just have given the malicious wheels a valid-looking provenance record?