Illustration of a PyPI package listing flagging unauthorized malicious Microsoft Agent Framework versions 1.26.1 and 1.26.2, alongside a checklist for dependency approval, isolation, release monitoring and safe incident response

Discovering a new software dependency is not the same as approving it for use.

Imagine installing a package from a reputable software producer and exposing your development or build environment simply by starting Python, without ever importing that package into your application.

That is what made the November 17, 2026 Microsoft Agent Framework supply chain incident particularly concerning. What prevents unapproved software from entering environments with access to valuable credentials and critical systems?

What Happened to Microsoft Agent Framework?

Two unauthorized versions of Microsoft’s agent-framework Python meta-package, 1.26.1 and 1.26.2, were published to the Python Package Index (PyPI) containing credential-stealing code.

Wiz Research places the initial publication at 20:35 UTC and reports that neither version remained available by 21:30 UTC. StepSecurity reports that the second version appeared after the first was quarantined.

The Python ecosystem security advisory describes executable startup hooks in .pth files that could run when Python started normally, even without an explicit Agent Framework import. The targeted credentials included cloud identities, CI/CD tokens, API keys and locally stored credentials.

In its November 25 update, Microsoft reported that the malicious code was present in the distributed packages, not the source repository. Microsoft identified version 1.26.0 and earlier, other Agent Framework Python packages, .NET packages and Semantic Kernel as unaffected by this incident.

Wiz reported a suspected compromise of publishing-service credentials. As of December 2, 2026, the public evidence reviewed does not establish the original access mechanism, definitive root cause or complete downstream impact.

Could Our Development Pipeline Become an Entry Point?

Microsoft identifies unpinned installations, CI or container builds without pins or lockfiles, and merged automated dependency updates as potential consumption paths.

Consider a hypothetical automated dependency update workflow:

  1. A new package version becomes available.
  2. Automation creates a dependency update pull request.
  3. A CI pipeline installs the candidate dependency.
  4. Automated tests execute.
  5. The update is approved and merged.

If the evaluation pipeline has privileged access, malicious software could expose credentials before an engineer reviews the pull request. Every functional test might still pass.

We should continue automating dependency updates. Delaying legitimate security fixes also introduces risk. Evaluate candidates in restricted environments, approve specific artifacts through policy, and enforce that approval in trusted builds.

Three Practices for Reducing Software Supply Chain Risk

1. Control what enters your environments

Enforce approved dependency versions, lockfiles and artifact hashes where supported, including transitive dependencies.

For example, Python’s pip hash-checking mode uses --require-hashes to check installed distribution artifacts against expected hashes. Automatically accepting a new version and its accompanying hash does not independently establish approval.

Consider a minimum release age for routine dependency updates. Dependabot supports configurable cooldowns for version-update pull requests, but not security updates.

Waiting gives maintainers and researchers time to discover problems; it does not establish safety or approval. Check whether release-age policies govern actual dependency resolution and installation, rather than only update proposals. Unrestricted installation paths can bypass a bot-level cooldown.

Maintain an expedited, but still controlled and approved, process for urgent security fixes.

2. Limit what newly introduced software can access

Evaluate candidate dependencies in disposable, restricted environments without unnecessary access to production systems, sensitive data or publishing credentials.

Review more than stored secrets. Automatically issued workload identity tokens, persistent runners, shared caches and internal network access can also expose valuable resources.

Separate the identities used to build, validate, publish and deploy software. Prevent untrusted jobs from acquiring privileged identities or modifying shared trusted state. GitHub Actions security guidance provides a starting point for reviewing workflow permissions and untrusted execution.

Restrict and monitor outbound network access where practical. These measures reduce potential impact rather than prove that a dependency is safe.

3. Know what you consume and monitor changes in trust

Maintain visibility into dependencies used in development environments, build pipelines, released artifacts, container images and deployed applications.

A Software Bill of Materials (SBOM) can support exposure assessment when it accurately represents an artifact and is mapped to actual deployments. Supplement it with operational inventories where coverage is incomplete.

Correlate inventories with security advisories and assign responsibility for responding when previously approved software becomes unacceptable. Advisory monitoring can identify known compromises, but cannot guarantee detection of newly introduced malware.

Trusted Source Code Does Not Guarantee Trusted Releases

Software producers should also examine their release processes.

Hashes establish whether bytes match a trusted expected value. Verified signatures bind artifacts to signing identities. Verified provenance provides evidence about their origin and build process. Release authorization determines whether particular artifacts are approved for publication.

These assurances are complementary, not interchangeable.

For example, a protected release process could require verification of an approved source revision, expected build provenance and exact artifact digest before publication. Constrain publishing permissions and alternate publication paths so that this policy cannot be bypassed within the protected release boundary.

The SLSA artifact verification guidance describes verification against trusted expectations. This is a proposed engineering control, not a conclusion about which controls failed at Microsoft.

Were Your Environments Affected?

If your organization consumes Microsoft Agent Framework, examine lockfiles, archived build logs, existing package inventories, container images, caches and internal package repositories for either affected version. Microsoft’s notice and the Python advisory list additional indicators.

Do not start Python, run Python-based inspection tools, launch suspect images or rerun affected CI jobs to investigate exposure. Inspect existing records and filesystem evidence using trusted tools without executing suspect software.

Microsoft advises treating environments that installed either affected version as compromised. In response:

  • Isolate affected environments and block additional consumption.
  • Revoke or rotate every credential those environments could access, without waiting for proof of theft.
  • Rebuild from clean images instead of downgrading in place. Remove affected cached copies and assess downstream artifacts before reuse.
  • Review cloud and CI audit records beginning November 17, preserving relevant evidence without delaying urgent containment.

For unaffected consumers, Microsoft’s November 25 guidance recommends pinning to agent-framework==1.26.0 or exact versions of the required sub-packages pending further guidance. Consult Microsoft’s incident notice for current recommendations.

Removing a malicious package does not reverse credential exposure or restore trust in an affected environment.

Evaluate Your Own Software Supply Chain

The engineering concerns extend beyond Python to NuGet packages, npm packages, container images, SDKs, build tools and GitHub Actions.

Choose one application or build pipeline and ask:

  • What prevents an unapproved dependency from being installed?
  • What resources can that dependency access?
  • Can we identify every environment where it has been used?
  • Can we prevent further consumption if it is compromised?
  • How would we verify that recovery is complete?

Assign an owner to address one weakness identified through this exercise. Start with environments where a compromised dependency could have the greatest consequences.

Sources and Further Reading