AI

agent-framework PyPI Malware: Check 1.26.1/1.26.2 and Rotate Keys

On November 17, 2026, two poisoned releases of the Microsoft agent-framework package went up on PyPI. Versions 1.26.1 and 1.26.2 carry a credential stealer hidden in a .pth startup hook. OSV tracks the agent-framework PyPI malware as MAL-2026-20101. If either version landed in a virtualenv, a CI runner or a container image, every Python process started there handed its environment variables and credential files to a public webhook.

Original content from computingforgeeks.com - post 196099

The first check most people reach for, pip show agent-framework, starts Python and runs the stealer again. So we check lockfiles, environments, caches, CI logs and images with grep and find only. Then we compare what pip-audit and osv-scanner report, pin the last clean release and rotate secrets in the order that matters. The lab used harmless stand-in wheels that carry the real file names, so no step installs the real payload. All of it was tested in November 2026 on Ubuntu 26.04.1 LTS with Python 3.14.4, uv 0.13.10, Poetry 2.3.2, pip-audit 2.10.1 and osv-scanner 2.7.1.

The two poisoned releases and the timeline

agent-framework 1.26.1 and 1.26.2 are malicious, and 1.26.0 is the last safe release. Wiz Research reports 1.26.1 was published at 20:35 UTC and 1.26.2 followed 33 minutes later at 21:08 UTC. Both were off PyPI within about an hour of the first upload: Endor Labs saw 1.26.1 gone by 21:13 UTC, Aikido saw both gone by 21:20 UTC and Wiz found them gone by about 21:30 UTC. Wiz counts roughly 41,000 downloads a week for the package, so even a short window reaches real installs.

Microsoft acknowledged the incident through its own issue tracker. SecurityWeek reports that a maintainer confirmed in GitHub issue #10411 on the microsoft/agent-framework repository that the releases were removed and an investigation was under way. That repository has returned a 404 since about November 18, so the statement is only readable through the SecurityWeek report. The facts that drive the cleanup are these:

  • Only the agent-framework meta package was poisoned; Endor Labs checked 22 sibling packages such as agent-framework-core and found none touched.
  • No npm package was published; npm matters only because the stealer read .npmrc and NPM_* variables.
  • The advisories are MAL-2026-20101, GHSA-764m-3ppc-5m73 and PYSEC-2026-4388.
  • The 1.26.1 wheel has SHA-256 d27fa34414e6201d5e03e559ef634f020057554d7b3f4898dd5d7cd3e989e110 and the 1.26.2 wheel has 3d20a8bc91351a9a16b6db243b848ceca0206b7a8623b02d2af553a9c9f7e0a9.

Wiz traces the root cause to a stolen client certificate for the Microsoft ESRP release pipeline and says the attacker’s tooling called itself Cairn. That finding is attributed to Wiz, so treat it as their analysis rather than a confirmed Microsoft statement. How the certificate was taken is still unknown, which is one more reason to assume the worst about anything the stealer touched.

What the stealer collected

The hook does not wait for your code to import agent_framework. Python reads every .pth file in site-packages at interpreter start, and a line that begins with import gets executed. The payload then forks into its own session (or falls back to a daemon thread), sets _AF_TEL=1 so child processes do not run it twice, and sends one zlib-compressed JSON document to webhook.site. The two versions differ in ways that change what you search for:

Item1.26.11.26.2
Startup hookagent_framework_meta.pthaf_runtime_diag.pth
Payload fileagent_framework_meta/_telemetry.pytop-level af_runtime_diag.py
agent_framework_meta/__init__.pymodified, starts the stealerrestored to the clean 1.26.0 file
Environment variablesnames containing TOKEN, SECRET, PASSWORD, KEY, AZURE, AWS, GITHUB, OPENAI, HF_, NPM, PIP, NUGET and moresame, plus ACTIONS, OIDC, RUNNER and ARM_
Other processessecret-looking values from up to 300 /proc/*/environ filessame
Credential filesup to 60: ~/.azure/, .npmrc, pip.conf, .netrc, .git-credentials, .docker/config.json, Hugging Face tokens, Azure DevOps agent credentials, .env and JSON under /app and /workspaceup to 80, adding /home/runner/work/_temp/* and /home/runner/.azure/
Cloud tokensAzure DevOps OIDC, managed-identity tokens for 12 Azure resources, instance metadatasame, plus GitHub Actions OIDC for api://AzureADTokenExchange and https://management.azure.com/
User-Agent on the POSTaf-runtime-diagnostics/1runtime-diagnostics/1

Look at the 1.26.2 row for __init__.py. Any check that only looks for the 1.26.1 file names will pass a 1.26.2 install as clean, and that’s the version that added GitHub Actions OIDC theft. Every search below matches both sets of names.

Do not read the victim count as small either. Wiz analysed the 50 requests the free webhook.site endpoint kept and found three unique, successful exfiltrations among them. That free tier keeps at most 100 requests for 7 days and answers the rest with HTTP 410 or 429, so the real number of hosts that ran the payload is unknown. Your own logs are the only way to know whether yours was one of them.

Why pip show is the wrong first check

pip is a Python program, so asking an infected environment which version it holds starts the interpreter there, and the interpreter runs the hook. We proved it with a stand-in 1.26.1 whose hook only appends a line to /tmp/af-hook-fired.log. The log did not exist before the query, and this is the command that created it:

~/apps/billing-agent/.venv/bin/pip show agent-framework

The version came back as 1.26.1, and the hook log gained an entry whose argv is the pip show call itself. With the real wheel, that line would have been one more POST of your secrets.

pip show agent-framework runs the .pth startup hook, proven by the hook log entry it writes

uv is written in Rust, so it’s tempting to think uv pip show is safe. It isn’t. uv queries the project interpreter to learn its paths and tags, and that query is a Python start:

cd ~/apps/triage-agent && uv pip show agent-framework

It reported the version without complaint:

Name: agent-framework
Version: 1.26.2
Location: /home/mercy/apps/triage-agent/.venv/lib/python3.14/site-packages
Requires:
Required-by:

One second later, the hook log had a second entry, this time from the 1.26.2 hook, with -c as the argument list of the interpreter uv had just started:

18:01:57 1.26.1 pid=5519 argv=/home/mercy/apps/billing-agent/.venv/bin/pip show agent-framework
18:01:58 1.26.2 pid=5524 argv=-c

The same goes for uv run, pytest and an IDE that indexes the venv with its interpreter. Until the hook file is gone, treat every interpreter start in that environment as a fresh theft. The checks that follow read files from the outside.

Lockfiles and requirements pins

Lockfiles tell you which projects resolved a bad version, even on machines that have since been rebuilt. Start with plain requirements files. The pattern below accepts a hyphen, underscore or dot in the name, because pip treats all three spellings as the same package. It also stops at the patch digit, so it will not match 1.26.10 or 1.26.11 if those ever ship:

grep -rnE --include='requirements*.txt' --include='*.in' 'agent[-_.]framework[[:space:]]*==[[:space:]]*1\.26\.[12]([^0-9]|$)' ~/apps

uv and Poetry put the name and the version on separate lines, so a single-line grep misses them. Pull the line after each name = "agent-framework" and filter for the bad versions:

grep -rn -A1 --include='uv.lock' --include='poetry.lock' '^name = "agent-framework"$' ~/apps | grep -E 'version = "1\.26\.[12]"'

Across four test projects, the two commands flagged exactly the three that were infected: a pip requirements.txt on 1.26.1, a uv.lock on 1.26.2 and a poetry.lock on 1.26.1. The clean project on 1.26.0 stayed silent. A requirements file with no pin or a range such as agent-framework>=1.25 passes this grep whatever it installed, so treat those projects as unknown and run the installed-environment and CI log checks below on them.

grep finds agent-framework 1.26.1 and 1.26.2 pins in requirements.txt, uv.lock and poetry.lock

Run the same pair over your Git hosting search or a mirror of every repository, not only the checkouts on your laptop. A hit in a lockfile means some machine resolved that version; you still need the next check to find where it was installed. If you manage projects with uv, the uv command reference covers where it keeps lockfiles and environments.

The .pth hook on installed environments

An installed environment is compromised when the hook file is present, whatever the lockfile says. find reads directory entries without starting Python, so it is safe to run as root across the whole filesystem. This search covers both versions’ hook and payload files plus the dist-info directories:

sudo find / -xdev \( -name 'agent_framework_meta.pth' -o -name 'af_runtime_diag.pth' -o -name 'af_runtime_diag.py' -o -name '_telemetry.py' -path '*agent_framework_meta*' -o -name 'agent_framework-1.26.[12].dist-info' \) 2>/dev/null

It found the three infected venvs, as expected, and two places a venv-only check would miss. One was the unpacked uv wheel cache under ~/.cache/uv/archive-v0/. The other was a container image layer under /var/lib/containerd/, because Docker on Ubuntu 26.04 stores image snapshots there and -xdev stays on the root filesystem that holds them.

Host-wide find for agent_framework_meta.pth and af_runtime_diag.pth across venvs, uv cache and containerd layers

Drop -xdev if your venvs or Docker data live on a separate mount, such as /home or /srv on its own volume. A hit in an image layer means every container started from that image ran the stealer, even if you deleted the venv on the host.

Names can change in a third release, so also run a broader audit that lists every .pth in a site-packages or dist-packages directory with an executable import line:

sudo find / -xdev -name '*.pth' -path '*-packages/*' -exec grep -lE '^import[[:space:]]' {} + 2>/dev/null

On the test host it listed four infected hooks and two legitimate files:

/usr/lib/python3/dist-packages/distutils-precedence.pth
/var/lib/containerd/io.containerd.snapshotter.v1.overlayfs/snapshots/12/fs/usr/local/lib/python3.14/site-packages/af_runtime_diag.pth
/home/mercy/apps/triage-agent/.venv/lib/python3.14/site-packages/af_runtime_diag.pth
/home/mercy/apps/docs-agent/.venv/lib/python3.14/site-packages/agent_framework_meta.pth
/home/mercy/apps/docs-agent/.venv/lib/python3.14/site-packages/_virtualenv.pth
/home/mercy/apps/billing-agent/.venv/lib/python3.14/site-packages/agent_framework_meta.pth

Expect distutils-precedence.pth from setuptools and _virtualenv.pth from virtualenv-created environments (Poetry uses virtualenv) on most hosts. Read every other hit with cat before you decide it is benign.

Package caches, CI logs and container images

A cached wheel reinstalls the malware offline, long after PyPI pulled it. Wheel files are zip archives, and zip stores member names uncompressed, so a binary-safe grep finds the hook names inside a cached wheel without unpacking it:

grep -rlaE 'agent_framework_meta\.pth|af_runtime_diag\.pth' ~/.cache/pip ~/.cache/uv ~/.cache/pypoetry 2>/dev/null

It found the 1.26.2 RECORD in the uv archive and the full 1.26.1 wheel in the Poetry artifact cache:

/home/mercy/.cache/uv/archive-v0/KZ8kWgQgGA10SCBK/agent_framework-1.26.2.dist-info/RECORD
/home/mercy/.cache/pypoetry/artifacts/eb/51/37/269972415b86035a446e52f5db59574f103596b89fa049c792a5dbd40d/agent_framework-1.26.1-py3-none-any.whl

pip’s HTTP cache stores wheel bodies the same way. Our local test index never got cached, so we checked the method against real PyPI: after downloading the clean 1.26.0 wheel, a grep for its dist-info name hit a body file under ~/.cache/pip/http-v2/. On shared CI runners, run this as the runner user, and check any cache directory your pipeline restores between jobs.

Build logs are often the only record of an ephemeral runner, and each installer writes the version differently. pip prints agent_framework-1.26.2-py3-none-any.whl and agent-framework-1.26.2, uv prints + agent-framework==1.26.2, and Poetry prints Installing agent-framework (1.26.1). This pattern covers all three forms:

grep -rnE 'agent[-_]framework(-|==| \()1\.26\.[12]([^0-9]|$)' ~/ci-logs

It also stops at the patch digit, so 1.26.10 never matches. On a saved pip build log from the lab, both version lines matched:

/home/mercy/ci-logs/build-4411.log:3:  Downloading http://127.0.0.1:8080/simple/agent-framework/agent_framework-1.26.2-py3-none-any.whl (1.7 kB)
/home/mercy/ci-logs/build-4411.log:5:Successfully installed agent-framework-1.26.2

Pull logs for every run from 20:35 UTC on November 17 from the API or log archive of your CI provider, then grep them the same way. PyPI stopped serving the files by about 21:30, but a runner that restores a dependency cache or installs through a private mirror can keep installing the bad wheel until the pin is fixed, so end the window there, not at 21:30. A run that matched there ran the stealer with every secret of that job in its environment.

For images that never touched this host, export the filesystem of a throwaway container and list it with tar. Nothing inside the image runs:

docker export $(docker create triage-agent:2026-11-17) | tar -t | grep -E '(agent_framework_meta|af_runtime_diag)\.pth$|agent_framework-1\.26\.[12]\.dist-info/$'

The 1.26.2 hook and its dist-info showed up in the image’s site-packages:

docker export piped to tar lists af_runtime_diag.pth inside a container image built with agent-framework 1.26.2

docker create leaves a stopped container behind. Remove that one container with docker rm and the ID from docker ps -a, rather than a prune that deletes every stopped container on a shared build host. Loop this over every tag your registry received between November 17 and the day you pinned, not only the tags you run today.

What pip-audit and osv-scanner report

Both scanners read files rather than importing packages, so neither runs the hook, but they do not agree by default. The default PyPI service in pip-audit asks PyPI about each pinned version, and PyPI no longer has 1.26.1:

cd ~/apps/billing-agent && pip-audit -r requirements.txt --no-deps --disable-pip

The result is a pass with a footnote, which a CI gate reads as green:

No known vulnerabilities found
Name            Skip Reason
--------------- -------------------------------------------------------------------------------
agent-framework Dependency not found on PyPI and could not be audited: agent-framework (1.26.1)

Switch the vulnerability service to OSV with -s osv and the same file fails with both advisories:

cd ~/apps/billing-agent && pip-audit -r requirements.txt --no-deps --disable-pip -s osv

It listed PYSEC-2026-4388 and MAL-2026-20101 against 1.26.1, with no fix version, because removing the package is the fix.

pip-audit skips agent-framework 1.26.1 on the PyPI service but flags MAL-2026-20101 with the OSV service

If your pipeline runs pip-audit without -s osv, it passed this release and it will pass the next removed one too. Add the flag, or make the skip table fail the job.

osv-scanner reads uv and Poetry lockfiles as well as requirements files. It is not in the Ubuntu archive, so we ran the official Google container image with the projects mounted read-only:

docker run --rm -v ~/apps:/src:ro ghcr.io/google/osv-scanner:v2.7.1 scan source -L /src/billing-agent/requirements.txt -L /src/triage-agent/uv.lock -L /src/docs-agent/poetry.lock # pin: tested tag #https://github.com/google/osv-scanner/releases

All three lockfiles came back flagged with both IDs. The “failed resolution … no candidates at all” lines are osv-scanner trying to resolve transitive dependencies for a version PyPI no longer serves; the direct match still works.

osv-scanner flags MAL-2026-20101 and PYSEC-2026-4388 in requirements.txt, poetry.lock and uv.lock

For a quick check of one version from any machine, the OSV API answers without a scanner installed:

curl -s https://api.osv.dev/v1/query -d '{"package":{"name":"agent-framework","ecosystem":"PyPI"},"version":"1.26.2"}' | jq -r '.vulns[] | .id, .summary'

It returns the two records and their summaries:

MAL-2026-20101
Malicious code in agent-framework (PyPI)
PYSEC-2026-4388
agent-framework 1.26.1 and 1.26.2 contain credential-stealing code

Scanners confirm a lockfile hit, but they do not see a venv that was installed without one, a cached wheel or an image layer. Keep the find and cache sweeps as the source of truth.

Removing the release and pinning 1.26.0

Delete the hook before anything else touches the environment, because the tools that uninstall or reinstall start Python too. Then throw the venv away instead of trusting an uninstall to clean it, since the stealer may have written elsewhere in a run you never saw. PyPI already refuses the bad versions, so a fresh resolve can only land on 1.26.0 or older.

The same order applies to pip, uv and Poetry projects, and skipping step 1 means the reinstall itself fires the stealer one more time:

  1. The hook file is deleted with find -delete before any Python tool touches the environment.
  2. The whole venv is removed and created again from scratch.
  3. The pin or lock says 1.26.0 exactly.
  4. The reinstall resolves against PyPI, not a cache or mirror that still holds the bad wheel.

For a pip-managed venv, those four steps are five commands:

cd ~/apps/billing-agent
find .venv -name 'agent_framework_meta.pth' -delete -print
rm -rf .venv && python3 -m venv .venv
sed -i 's/^agent-framework==1\.26\.[12]$/agent-framework==1.26.0/' requirements.txt
.venv/bin/pip install -q -r requirements.txt

Each removal find names the hook of the version that venv had: agent_framework_meta.pth for 1.26.1 and af_runtime_diag.pth for 1.26.2. If you are not sure which, run it once with each name. After the reinstall, pip show is safe again and confirms the pin:

Name: agent-framework
Version: 1.26.0

For a uv project, remove the hook and the venv, then let uv add rewrite the lock and sync. The --default-index flag was only needed here because the test project had been locked against a local index; drop it if yours uses PyPI already.

cd ~/apps/triage-agent
find .venv -name 'af_runtime_diag.pth' -delete -print && rm -rf .venv
uv add --default-index https://pypi.org/simple 'agent-framework==1.26.0' #https://pypi.org/project/agent-framework/#history
grep -A1 '^name = "agent-framework"$' uv.lock

The lock now records the clean release:

name = "agent-framework"
version = "1.26.0"

Run uv cache clean agent-framework afterwards so the cached 1.26.2 archive the earlier sweep found can’t come back, then repeat the cache grep: it should print nothing. Fedora users can find the same project workflow in the uv guide for Fedora.

Poetry follows the same pattern with poetry add. Our test project kept its venv inside the project as .venv, which is what virtualenvs.in-project true gives you. Poetry’s default is different: the venv lives under ~/.cache/pypoetry/virtualenvs/<name>-<hash>-py3.x, and the host-wide find from the installed-environment section prints that path. In that case, run the find and the rm -rf against that directory instead of .venv, and do it before any other poetry command, because Poetry starts the env’s interpreter to inspect it. Ours failed first, which is covered in the next subsection:

cd ~/apps/docs-agent
find .venv -name 'agent_framework_meta.pth' -delete -print && rm -rf .venv
poetry add agent-framework==1.26.0 #https://pypi.org/project/agent-framework/#history

On the test project, that poetry add stopped in the resolver before installing anything, so nothing was left half-installed. The fix is a change to the project metadata, not to the pin.

Error: “The current project’s supported Python range (>=3.11) is not compatible”

Poetry resolves for every Python your project claims to support, and agent-framework 1.26.0 pulls in pieces that do not cover all of them. A project created with requires-python = ">=3.11" fails like this:

The current project's supported Python range (>=3.11) is not compatible with some of the required packages Python requirement:
  - agent-framework-azurefunctions requires Python >=3.13, so it will not be installable for Python >=3.11,<3.13

Raising the floor to >=3.13 alone isn’t enough: the next run fails on redisvl, whose release metadata on PyPI caps Python below 3.14, 3.15 or 3.16 depending on the version. An upper bound fixes both. Set it in pyproject.toml and add again:

sed -i 's/^requires-python = ">=3.11"$/requires-python = ">=3.13,<3.16"/' pyproject.toml
poetry add agent-framework==1.26.0 #https://pypi.org/project/agent-framework/#history
grep -A1 '^name = "agent-framework"$' poetry.lock

Poetry installed 204 packages and wrote a lock on 1.26.0. The real dependency tree is large, which is why the stand-in wheels in this lab had none. Afterwards, delete the exact wheel file the cache sweep printed under ~/.cache/pypoetry/artifacts/ with rm, then run that cache grep again and expect no output, so no later install can pick it up offline.

Credential rotation, long-lived secrets first

Rotate by how long a stolen value stays useful, not by how scary it sounds. Wiz notes that stolen managed-identity and OIDC-exchanged tokens are valid for up to 24 hours, so those expired days ago and the job there is an audit. Tokens, keys and passwords that live until someone revokes them are still working for the attacker today, and they go first. Rotate on every host and runner the sweeps flagged, whether or not it reached the webhook:

SecretWhere the stealer found itValid untilAction
Azure DevOps PATs and service connection secretsenvironment, agent .credentialsrevoked or expiredRevoke the PAT, recreate the secret of each service connection
Azure CLI user sessions~/.azure/, /home/runner/.azure/refresh token revokedRevoke sessions for the signed-in user in Entra ID, then sign in again
Azure service principal client secrets and certificates~/.azure/ (plaintext on Linux and macOS)secret or certificate expiryIn Entra ID, App registrations, Certificates & secrets: delete it, add a new one, update every consumer
npm tokens.npmrc, NPM_* variablesrevokedRevoke and reissue; check the registry for releases you didn’t publish
PyPI and NuGet tokenspip.conf, .netrc, PIP_* and NUGET_* variablesrevokedDelete the token in the registry account and issue a scoped one
Docker registry credentials.docker/config.jsonrevokedRevoke the access token or reset the password, then docker login again
Hugging Face tokenstoken file, HF_* variablesrevokedInvalidate the token in account settings
Git credentials.git-credentials, .netrc, GITHUB_* variablesrevoked or expiredRevoke the PAT and review recent pushes
Cloud and AI API keysAWS_*, OPENAI_*, AZURE_*, FOUNDRY_* variablesrotatedRotate in the provider console
Anything in .env files.env and JSON under /app and /workspacerotatedRotate every value in the file
Managed-identity tokensIMDS or App Service identity endpointup to 24 hoursAudit sign-in and activity logs for those identities
Azure DevOps and GitHub Actions OIDC tokenspipeline OIDC endpoints (GitHub only in 1.26.2)up to 24 hours once exchangedReview federated credentials and the matching app registrations’ sign-ins

Wiz and Aikido both list npm tokens among the secrets to rotate, even though no npm package was published. That’s the answer to “is agent-framework on npm affected”: the npm package isn’t, but an npm token on a Python CI runner is. For any GitHub Actions job that installed either version, rotate the repository and organisation secrets that job could see; id-token: write only adds the OIDC token to what 1.26.2 took. Microsoft documents that the Azure CLI keeps service principal entries as plaintext files on Linux and macOS (Azure CLI token cache), which is why the table above lists them. Self-hosted Azure DevOps agents on a flagged host should also be removed and registered again, because the agent’s own .credentials file sat within reach. The same runner hygiene applies as in the Git recursive clone fix: a runner that executes untrusted code sees every secret the job holds.

Rotation fixes the future; your logs tell you about the past. Search proxy, DNS and firewall logs for the webhook UUID and both user agents (the shorter pattern also matches the 1.26.1 agent):

sudo grep -rIlE 'd381fd80-ec62-42ad-8f5c-d1b15103c9bb|runtime-diagnostics/1' /var/log --exclude=auth.log --exclude-dir=journal

Keep those excludes. Without them, our clean test host returned /var/log/auth.log as a hit, because sudo logs every command line it runs, IOC pattern included. The journal can hold the same line, and once logrotate runs, auth.log.1 matches too, so widen the exclude to --exclude='auth.log*' on a host with rotated logs. Point the search at the log directory of your proxy, or run the same pattern in your SIEM. Wiz reads the status codes this way:

  • An HTTP 200 next to the URL means the webhook accepted the data from that host.
  • An HTTP 410 or 429 means the free-tier request limit had already been reached and the data was most likely rejected.
  • No hit at all only counts as clean when your logs cover the host for the whole time the bad version was installed.

A 410 or 429 is not a reason to skip rotation. The secrets still left the host over a network you do not control, and you cannot prove nobody else saw the request.

Interpreter flags and false positives

Two questions come up once people start poking at infected venvs: can a flag make Python safe to run there, and which .pth hits are noise. We tested both against the stand-in 1.26.2 hook.

python -I still runs the .pth hook; python -S does not

Isolated mode (-I) ignores PYTHON* variables and the user site directory, but it still imports site, and site processes the .pth files in the venv. The hook fired. -S skips importing site altogether, and the hook stayed silent:

python -I still runs the .pth hook while python -S skips it, with the legitimate .pth files shown for comparison

-S also means site-packages is never added to sys.path, so it is no way to run pip or your app. It’s only useful for a one-off script that reads files and needs nothing installed. Deleting the hook is still the fix.

distutils-precedence.pth and _virtualenv.pth in the audit

Both are legitimate and show up because they also start with import. distutils-precedence.pth ships with setuptools and contains a one-line SETUPTOOLS_USE_DISTUTILS shim, while _virtualenv.pth contains only import _virtualenv. The infected hooks contain import af_runtime_diag or import agent_framework_meta. Anything else that imports a module you cannot trace to the RECORD of an installed package deserves the same suspicion.

ERROR: No matching distribution found for agent-framework==1.26.1

That’s PyPI refusing a removed release, and it’s the good outcome. A build that fails with it was about to install the malware from a stale pin, so fix the pin rather than hunting for a mirror that still has the file. A clean index currently lists 1.26.0 as the newest version:

agent-framework (1.26.0)
Available versions: 1.26.0, 1.25.0, 1.24.0, 1.23.0, 1.22.0, 1.21.0, 1.20.0, ...

If the install succeeds anyway, your build pulled from a private mirror or a cache that kept the wheel. Purge it there, and in any proxy that replicates PyPI on a schedule. If you are choosing agent tooling after this, our list of books on agentic AI systems covers how these frameworks are put together, and the agent-browser setup shows another agent tool installed from a public registry. The same pinning habits apply there. Router owners dealing with a different kind of compromise can follow the GL.iNet malware check.

Post-incident audit checklist

Work through these in order on every developer machine, runner and image pipeline that builds Python. Each item is a condition that must hold before you close the incident:

  1. No requirements file, uv.lock or poetry.lock in any repository pins agent-framework 1.26.1 or 1.26.2.
  2. A host-wide find returns no agent_framework_meta.pth, af_runtime_diag.pth or af_runtime_diag.py, including under /var/lib/containerd and /var/lib/docker.
  3. The pip, uv and Poetry caches on every runner contain neither hook name.
  4. Every image tag built since November 17 has been listed with docker export and none contains the hooks.
  5. CI logs for runs from 20:35 UTC on November 17 until the pin was fixed have been searched for both version strings.
  6. pip-audit in CI runs with -s osv, or osv-scanner gates the build.
  7. Every long-lived secret on a flagged host or runner has been revoked and reissued.
  8. Proxy and DNS logs show no request to the webhook UUID, or each hit has an owner and a rotation record.
  9. Entra ID sign-in logs for reachable managed identities and federated credentials show no access you cannot explain.
  10. Every project pins agent-framework 1.26.0 exactly until Microsoft ships a release you’ve reviewed.

Item 6 is the one that outlasts this incident. A scanner that skips removed versions will stay quiet through the next poisoned release too, and the Wiz write-up is worth keeping as the IOC reference while you work through the rest.

Keep reading

Java4Shell (CVE-2026-114938): Find and Patch Vulnerable JVMs Security Java4Shell (CVE-2026-114938): Find and Patch Vulnerable JVMs UFW Firewall Commands with Examples on Ubuntu 26.04 / 24.04 Security UFW Firewall Commands with Examples on Ubuntu 26.04 / 24.04 Open Source LLM Comparison Table (2026) AI Open Source LLM Comparison Table (2026) Install InvokeAI 7 on Linux with NVIDIA: Tested VRAM per Model AI Install InvokeAI 7 on Linux with NVIDIA: Tested VRAM per Model Install openSUSE with Claude Code: Agama MCP Server Tested AI Install openSUSE with Claude Code: Agama MCP Server Tested How To Install Libreswan on Ubuntu 22.04|20.04|18.04|16.04 VPN How To Install Libreswan on Ubuntu 22.04|20.04|18.04|16.04

Leave a Comment

Press ESC to close