
Understanding what enters our engineering environments, what it can access, and how we know our safeguards work.
Imagine that an automated dependency management tool discovers a new version of a library your application uses. It creates a pull request, your build pipeline installs the new version, and automated tests begin executing.
An engineer has not yet reviewed or approved the change.
Have we already allowed unapproved software to execute within a trusted engineering environment?
On November 17, 2026, two unauthorized versions of Microsoft’s agent-framework Python package, 1.26.1 and 1.26.2, were published to the Python Package Index (PyPI).
According to Microsoft’s November 25 disclosure and the Python ecosystem security advisory first published on November 17, the packages contained credential-stealing code that could execute during normal Python startup in an affected environment, even if the application did not explicitly use the compromised package.
The affected package was a meta-package that brings together other libraries as dependencies. Microsoft reported that its other Agent Framework Python packages, .NET packages and Semantic Kernel were not affected by this incident.
In its November 18 update, Wiz reported three distinct cases of successful data exfiltration within its observed sample. The full downstream impact remains unknown.
I examined this incident in my article, When Trusted Software Becomes a Security Risk: Lessons from Microsoft Agent Framework.
For this article, I want to explore a broader engineering question: how do we control the software entering our environments, and what evidence do we have that those controls work?
We do not need to use Python or Microsoft Agent Framework to benefit from examining these questions.
Where Does Software Enter Our Engineering Environments?
When we think about managing third-party software, we often start with our application’s dependencies. But those dependencies represent only part of our exposure.
Microsoft’s recovery guidance included examining build pipelines, container images, package caches, internal package mirrors and artifact proxies. Removing a compromised package from a public repository does not necessarily remove copies that have already been downloaded.
I would begin by tracing how software enters the environments used to develop, build, test and release one application.
| Entry point | What should we examine? |
|---|---|
| Developer environments | What happens when developers install or experiment with new software? |
| Application dependencies | Can an approved library introduce another library or version we have not approved? |
| Automated dependency updates | Can proposed updates execute before they are reviewed? |
| Build and test pipelines | What software can be introduced during installation, compilation or testing? |
| Repositories, caches and local files | Can software be obtained or reused outside our normal approval process? |
| Build tools and container images | What additional software executes during a build or becomes part of its output? |
A dependency required by another library rather than directly by our application is known as an indirect or transitive dependency. It may be installed without appearing in our application’s immediate dependency list.
Returning to our automated dependency update example, the next question is what resources the newly introduced software could access.
A developer environment might contain source code and developer credentials. A build pipeline might have access to package repositories, signing services or cloud resources, including credentials issued automatically to a running job.
Software can also influence later activities through shared caches, persistent runner state, build instructions or outputs consumed by more privileged jobs. A Python virtual environment, for example, manages dependencies but is not itself a security isolation boundary.
The people responsible for these environments may belong to different teams. Application developers may manage dependencies, platform teams may manage build infrastructure, and security or release teams may manage access and approval policies.
Before deciding that anything needs to change, we need to understand the entry paths, accessible resources, potential consequences and responsibilities associated with each environment.
What Protection Do We Already Have?
Suppose our application had been configured to use exactly version 1.26.0 of agent-framework before the incident.
If that version restriction was enforced, neither compromised version would have been selected through that installation path.
But what if our automated dependency management tool proposed changing the pinned version to 1.26.1? Could the build pipeline have installed and executed it before an engineer reviewed the change?
Both situations involve version pinning, but they provide different levels of protection.
The same distinction applies to package hash verification. A cryptographic hash acts like a digital fingerprint of a file, allowing us to compare downloaded software against an expected value.
If automation downloads a new package, calculates its hash and automatically accepts that hash, it has identified the downloaded bytes. It has not established that those bytes match a previously trusted expectation or that the software was authorized.
A checksum supplied by the download source can help detect corruption, but it does not independently establish approval.
Evaluating our existing safeguards
Rather than assuming we need additional controls, I would examine the safeguards we already rely on.
| Safeguard | Question to consider |
|---|---|
| Version pinning and lockfiles | Which direct and indirect dependencies are controlled, and can other installation paths bypass those restrictions? |
| Package hash verification | Who establishes and approves the expected hashes? |
| Internal package repositories | How are packages approved, and can builds obtain software elsewhere? |
| Minimum release age | Does it restrict installation or only delay update proposals? |
| Security scanning | What happens when malicious software has not yet been identified? |
| Producer release evidence | Does the evidence establish the origin and authorization of the specific distribution? |
| Code review and build controls | Can software execute before review, or can changes bypass existing safeguards? |
| Package caches | Can previously downloaded software be reused after it is identified as compromised? |
For each safeguard, we want to understand its coverage, ownership, enforcement evidence, limitations and the potential business consequences of any gaps.
What could we have known at the time?
The research for this article included comparing Microsoft Agent Framework releases on PyPI with their corresponding GitHub release records.
Our retained November 30, 2026 research records document successful lookups of the expected python-1.26.0 tag and release. Four requests to the corresponding tag-reference and release-by-tag endpoints for versions 1.26.1 and 1.26.2 returned HTTP 404.
These were specific unsuccessful lookups, not an exhaustive search. Microsoft reported temporarily making its repository unavailable during its response. Our later observations cannot establish whether matching records existed when the packages were published.
Even legitimate releases may have differences in the timing of their supporting records.
The PyPI release files for version 1.26.0 show a November 12 upload date. Wiz reported publication at 18:25 UTC that day, while the GitHub release record gives November 13 at 08:28 UTC.
Those recorded timestamps are approximately 14 hours apart. They do not establish exactly when all supporting information first became available.
Missing release information does not necessarily indicate compromised software. Similarly, matching release records do not necessarily establish authorization.
Wiz suspected a compromise of credentials associated with Microsoft’s publishing service, but how those credentials were obtained was unknown. Evidence originating from the same release process may not provide independent assurance.
When examined on December 2, the legitimate 1.26.0 distribution records also showed no provenance attestations and indicated that PyPI Trusted Publishing was not used. That observation does not establish that either omission contributed to the incident or characterize the entire project.
What evidence would our approval process require before accepting a new release? What happens when that evidence is unavailable?
Would delaying an update help?
Wiz reported that the first compromised version was published at 20:35 UTC on November 17 and that both versions were unavailable from PyPI by approximately 21:30 UTC.
The approximately 55-minute interval between the first reported malicious publication and the observed unavailability of both versions helps explain the interest in delaying routine dependency updates.
However, it does not establish how long consumers remained exposed. Previously downloaded or installed copies could still exist.
The relevance of a waiting period depends on its duration, the acquisition paths it covers and whether retained copies can still be used. Waiting is not evidence that software is safe.
These examples illustrate why we need to examine what our safeguards actually accomplish rather than assume what they protect us against.
Decide What Actually Needs to Change
An incident elsewhere provides a reason to examine our engineering practices. It does not necessarily mean those practices need to change.
Consider the difference between a developer experimenting in an isolated environment without access to sensitive resources and a build pipeline with access to signing services, production credentials and repositories used to distribute software to customers.
The potential consequences are different, and our decisions should reflect that difference.
I would consider the resources exposed, possible effects on customers and other systems, evidence supporting existing safeguards, implementation and maintenance costs, and the impact on engineering productivity.
Based on that assessment, I would place each finding into one of four categories.
| Decision | When is it appropriate? |
|---|---|
| Retain existing safeguards | Available evidence establishes adequate protection against the identified risk. |
| Gather additional evidence | Safeguards exist, but their effectiveness has not been established. |
| Implement improvements | A meaningful gap warrants corrective action. |
| Defer improvements | The appropriate leadership accepts the remaining risk, with a documented reason and review date. |
These decisions concern ordinary engineering improvements. Known compromised software is a different matter. Affected organizations should consult Microsoft’s incident recovery guidance rather than treat an active compromise as a routine improvement to defer.
We also need to consider the risks introduced by our safeguards.
A waiting period might reduce exposure to certain compromised releases, but it could also delay an important security fix. Requiring manual approval for every update could introduce unnecessary administrative work and discourage useful automation.
How would our existing process accommodate urgent updates? Would developers understand why software was held or rejected? Could we achieve the desired improvement using capabilities already available in our engineering platforms?
The objective is not to implement the greatest number of safeguards. It is to reduce meaningful risks without unnecessarily compromising our ability to develop and deliver software.
Where improvements are justified, the responsible teams can compare alternatives, prerequisites, implementation constraints and the evidence needed to support their eventual decision.
What Are We Actually Approving?
When we approve a dependency, are we approving a library, a version of that library, or the actual software files and associated dependencies we intend to consume?
These are not necessarily the same thing.
A version identifies a release, but that release may contain different distribution files for different platforms. A cryptographic hash, such as SHA-256, identifies the bytes of a particular file.
Other evidence addresses different questions:
- Publisher identity: Who published the software?
- Provenance: What do we know about where and how the software was produced?
- Release authorization: Was the specific distribution authorized for publication?
- Consumer approval: Has our organization approved that software for use?
- Safety: What evidence do we have concerning its behavior and associated risks?
These assurances are complementary. Establishing one does not necessarily establish the others.
Returning to our hypothetical dependency update, what does our approval record actually identify? Does it cover the distribution files and relevant dependencies? Can the process proposing an update also modify the policy or approval records governing that update?
Approval need not involve manual review of every dependency change. Automation may make decisions within established policies. The question is how those decisions are made, recorded, reconsidered and reflected in the software we actually consume.
Understanding our existing process
Discovery, evaluation, approval, building and releasing software describe different activities, even when the same systems perform several of them.
We can examine how our current process discovers updates, gathers information about candidates, manages access to sensitive resources, records approval decisions and identifies the inputs used to produce released artifacts.
These activities may overlap or occur in a different order. Describing them does not prescribe a particular architecture or establish that an arrangement is sufficient.
Understanding the current process helps identify which teams own the relevant decisions, what evidence exists and where additional collaboration may be needed.
What capabilities do our existing tools provide?
Package managers offer capabilities that may be relevant to the gaps we identify.
For example, Python’s package installer, pip, documents the following capabilities in version 26.3.
| Capability | Potential benefit | Important limitation |
|---|---|---|
| Exact version pinning | Restricts version selection. | Does not verify package contents. |
--require-hashes |
Enforces strict hash checking for distributions being resolved. | Does not establish authorization or rehash already-satisfied installations; the effective hash-checking mode matters. |
--no-index |
Disables package index searches. | Does not block direct references, local files or all acquisition paths. |
--find-links |
Adds a package candidate location. | Does not establish exclusive or authorized sourcing. |
--only-binary=:all: |
Restricts normal selection to prebuilt Python packages, known as wheels. | Does not make installation safe; explicit source and other build paths require consideration. |
--no-cache-dir |
Disables pip’s caching. | Does not remove installed software, purge other caches or enforce current approval. |
--isolated |
Ignores ordinary pip environment options and user configuration. | Global, site and special configuration-file settings can still apply; does not isolate execution or network access. |
--uploaded-prior-to |
Filters candidates by upload date or age. | Depends on supported metadata and does not establish safety or approval. |
These are documented capabilities, not a recommended combined configuration. Their applicability depends on the version, configuration and environment we use.
Additional details are available in pip’s secure installation guide, installation reference, general options, configuration guide, requirements file format and caching guide.
Why tool versions and configuration matter
Strict pip hash checking requires pinned and hashed requirements, including indirect dependencies being resolved. Pins can use exact versions or supported archive references.
According to the pip changelog, version 26.1 introduced support for hashes supplied through pinned constraints. Version 26.2 allowed automatic strict enforcement to be disabled while checking supplied hashes, with a correction to that partial mode in 26.3.
The presence of hashes does not establish that strict checking is active.
Different distribution files may also require different expected hashes. Hash checking is not general verification of installed files; for locally built cached wheels, it can refer to the original source distribution.
The upload-age option was introduced in pip 26.0, with day-based durations added in 26.1 and support for recorded lockfile upload times in 26.2.
Requirements files can introduce additional options and sources, including through nested files. Global, site and special configuration-file settings can also influence behavior.
These capabilities address aspects of package selection, acquisition and verification. They do not establish a security execution boundary. Installing untrusted software, including wheels, can expose an environment to code execution.
Application dependency settings also do not necessarily govern build-system dependencies, interpreters or container base images.
How Do We Know Our Safeguards Work?
Suppose we have established a process for approving third-party software, and the people responsible for our build pipeline believe it consumes only approved dependencies.
How do we know that is actually happening?
Returning to our automated dependency update example, consider what could happen under different circumstances.
| Scenario | What should we consider? |
|---|---|
| An approved package is being installed for the first time. | What evidence establishes that we obtained the software we approved? |
| A newer, unapproved version becomes available. | Could any of our existing processes select or execute it? |
| A package has the expected version but different contents. | Would our existing safeguards recognize the difference? |
| An approved package introduces an indirect dependency. | Does our approval process also account for that dependency? |
| The expected package version is already installed. | Does our tooling verify its contents or simply recognize that the version requirement is satisfied? |
| A previously approved package is no longer approved. | Could our builds continue using installed or cached copies? |
| The expected package is available from another source. | Does verifying its contents also establish that the source was authorized? |
| An automated update changes dependency or build configuration. | Could those changes also affect the safeguards governing the update? |
The answers will depend on the tools we use, how they are configured and the environments in which they operate.
What Evidence Do We Have?
Consider a build that completes successfully. Does that tell us which software was actually consumed, whether it was approved at the time, and whether our safeguards operated as we expected?
Similarly, if no unapproved software has been detected, does that demonstrate that our safeguards are effective, or have we simply not encountered a situation that challenges them?
I would explore these questions with the people responsible for the relevant engineering processes.
We may discover that our existing records provide sufficient evidence. We may also discover that our confidence is based on assumptions about how our tools and processes behave.
Where evidence is missing, we can return to our earlier decision framework and determine whether further investigation or improvements are warranted.
The objective is not to establish that every safeguard is perfect. It is to understand whether our safeguards adequately address the risks we have identified and whether we have sufficient evidence to support that conclusion.
Start With One Application
We do not need to begin with an organization-wide initiative, purchase new security products or redesign our engineering platforms.
I would start with one application and bring together the people responsible for its development, security, build and release processes.
Consider five questions:
- How does third-party software enter our engineering environments?
- How do we determine which software is approved for use?
- What safeguards ensure those decisions are respected?
- What evidence do we have that those safeguards work?
- Where gaps exist, do the potential consequences warrant improvements?
What we discover may confirm that our existing safeguards are adequate. It may reveal opportunities to improve them, clarify responsibilities or challenge assumptions that require further investigation.
The appropriate response depends on our own risks, circumstances and priorities.
That is the purpose of If We Knew Then What We Know Now.
We cannot change what happened elsewhere, but we can use what we have learned to make better-informed decisions about our own environments.
We do not need to experience a failure ourselves to learn from it.
Sources and References
Incident Reports
- Microsoft — Microsoft Agent Framework Repository Update
- Wiz — Malicious Version of Microsoft’s Agent Framework Published to PyPI
- OSV — Python Security Advisory PYSEC-2026-4388
Release Information
- PyPI — Microsoft Agent Framework 1.26.0 distribution files
- GitHub — Microsoft Agent Framework python-1.26.0 tag reference
- GitHub — Microsoft Agent Framework python-1.26.0 release record
The release-record observations are dated in the article; current records may differ.
Technical Documentation
- pip — Secure Installs
- pip — Installation Reference
- pip — General Options
- pip — Configuration
- pip — Requirements File Format
- pip — Caching
- pip — Release History
The discussion of pip capabilities refers to version 26.3 documentation reviewed on December 2, 2026.
The scenarios presented in this article are illustrative. They are intended to help readers evaluate their own engineering environments, not to establish the effectiveness of a particular security configuration.