
On 17 Nov 2026, attackers published two poisoned versions of Microsoft's agent-framework Python package to PyPI, the public download site for Python code. Both ran a credential stealer every time Python started, so any build job that installed them exposed the secrets it held. Replacing those secrets afterwards (rotation) would not have covered everything the stealer reached.
CI/CD credential theft is the stealing of the passwords and access tokens that automated build-and-release jobs (the CI/CD pipeline) can read or request while they run. A pipeline job often holds more access than any developer, because it has to publish packages, deploy code and sign releases.
Aikido cites about 190,000 downloads a month for the package. That figure only caps the possible exposure. None of the sources we reviewed says how many installs were affected.
Key takeaways
- A poisoned dependency runs with the job's own access. The stealer simply read the environment variables and credential files the job already had.
- Rotating stored secrets does not cover tokens the stealer requests. SafeDep notes that rotation misses tokens the code obtains from the platform, such as cloud identity tokens. In wfx-loot, the attacker also changed cloud trust settings, which rotation does not undo.
- Two different doors led to the same room. The agent-framework compromise started with a poisoned package. The wfx-loot campaign started with stolen GitHub tokens. Both ended at CI secrets.
- Six controls shrink the blast radius, meaning the damage one compromised job can do. They cover job separation, token requests, cloud trust rules, dependency locking, outbound traffic and the cleanup plan.
- Passwork supports the credential side. Service accounts, vaulted secrets and the Activity Log help limit what a job holds and give you a record when you clean up.
What happened in the agent-framework PyPI compromise
For under an hour on 17 Nov 2026, anyone who installed Microsoft's agent-framework from PyPI could receive a version that steals credentials.
The last clean release, 1.26.0, went out on 12 Nov 2026. Five days later, two bad versions, 1.26.1 and 1.26.2, appeared. Each hid a small startup file, called a .pth file. Python reads these files every time it starts, and a line beginning with "import" in one runs as code. So the stealer ran whenever anything used Python there, including the installer (pip) and the test runner (pytest), even if no one imported the package (StepSecurity, Socket).
| Date | Time (UTC) | Event | Reported by |
|---|---|---|---|
| 12 Nov 2026 | 18:24 to 18:25 | Version 1.26.0, the last clean release, is published | StepSecurity; Wiz |
| 17 Nov 2026 | 20:35 | Version 1.26.1 is uploaded to PyPI | Aikido; StepSecurity |
| 17 Nov 2026 | 21:06 | PyPI quarantines 1.26.1 | StepSecurity |
| 17 Nov 2026 | 21:08 | Version 1.26.2 is uploaded | Aikido; StepSecurity |
| 17 Nov 2026 | 21:16 to 21:30 | 1.26.2 is quarantined at 21:16; Wiz says both versions were gone by 21:30 | StepSecurity; Wiz |
| 18 Nov 2026 | 14:00 | Wiz adds its analysis of the stolen data | Wiz |
| 20 Nov 2026 | Not stated | The Hacker News adds a Microsoft statement: some repositories were made private during the investigation | The Hacker News |
Nobody has confirmed how the attacker got permission to publish. Researchers offer three theories:
- A stolen certificate. Wiz says it appears a client certificate and private key from a Microsoft release pipeline were compromised.
- A stolen token or session. The Cloud Security Alliance suggests a long-lived PyPI token or maintainer session and, citing JFrog, says the wheel was built locally, not by the release pipeline.
- A second maintainer account. SafeDep points to a second PyPI maintainer,
vibiret, created on 17 Nov, as the suspected uploader. This is unconfirmed.
No source has confirmed how the attacker got in. The Hacker News and BleepingComputer both call it unclear.
What did the stealer take, and what does rotation miss?
The stealer did two things. It read what was lying around, and it asked the platform for more. Most write-ups agree on the list below. StepSecurity cautions that its analysis shows attempted token requests and cannot confirm that each one succeeded.
| What the stealer collected | Where it lives | Does rotating stored secrets cover it? |
|---|---|---|
| Environment variables with names like TOKEN, SECRET, KEY, AZURE or GITHUB (StepSecurity) | The job's environment | Yes |
Credential files: Azure CLI, .npmrc, pip.conf, .netrc, .git-credentials, Docker config, Hugging Face token (Socket) |
Runner disk | Yes |
Environment variables of other programs running on the same machine, from /proc (Aikido) |
Process memory | Yes, including other jobs on a shared runner (SafeDep) |
| An Azure DevOps identity (OIDC) token requested from the platform (may fail depending on setup, per Aikido) | Issued by the platform on request | No |
| Azure managed identity tokens requested from the machine's metadata service (StepSecurity, Chainguard) | Issued by the platform on request | No |
| GitHub Actions OIDC tokens, in version 1.26.2 only (StepSecurity) | Issued by the platform on request | No |
OIDC (OpenID Connect) lets a build job prove who it is without a stored password. The job asks the platform for a short-lived signed token and exchanges it for cloud access. GitHub's documentation says that token is valid for a single job, and a job needs the id-token: write permission before it can request one (GitHub Docs).
But the stealer runs inside the job. If the job can ask for a token, so can the stealer.
Wiz reports that stolen managed identity and OIDC-exchanged tokens can be valid for up to 24 hours. The Cloud Security Alliance notes that Entra access tokens typically last about an hour, so treat 24 hours as the worst case. Either way, a stolen token can outlive a slow incident response unless someone revokes it.
This is the same lesson our post on token revocation after the Chainalysis breach drew: a reset and a revocation fix different things.
Our advice: treat any token a job can request as exposed to every step in that job. Rotation closes the list of stored secrets. Only limiting which job can request tokens closes the other list.
Is wfx-loot the same problem through a different door?
wfx-loot began with account access and ended in the same place: CI secrets. According to Chainguard, the campaign, called wfx-loot, began around 12:45 UTC on 10 Nov 2026. Attackers used stolen GitHub tokens to open pull requests (proposed code changes) titled "docs: dependency audit notes". They then pushed malicious code that read the repository's CI secrets and undid the commit about a minute later, according to Chainguard.
Aikido's write-up puts numbers on it: 4,837 compromised accounts opened pull requests in 61,764 repositories, and the malicious code ran in at least 1,800 of them. Aikido says the true count may be higher because the attacker deleted workflow run logs. Two changes the attacker made matter most for cleanup, according to Aikido:
- AWS: the stealer rewrote a role's trust policy (the rule for who may use that role) to allow any AWS account.
- Azure: it added federated identity credentials, named
wfx-ci-…, to Azure AD applications, pointing back to the compromised repository.
Both changes survive secret rotation. A team that rotates every key and stops there leaves the door open.
This is the pattern we covered earlier in the Gheist section of our LiteLLM post: a stolen token turns CI workflows into secret harvesters. Here the scale is larger and the persistence is cloud-side.
Why do CI runners attract CI/CD credential theft?
A CI runner is the machine that carries out your build and deploy jobs. It holds credentials a laptop never needs: deploy keys, registry tokens and cloud roles. The GitGuardian State of Secrets Sprawl Report 2026 gives the scale.
| Finding in the GitGuardian 2026 report | Figure |
|---|---|
| New secrets detected in public GitHub commits in 2025 | 28,649,024 |
| Machines compromised in the Shai-Hulud 2 campaign that were CI/CD runners, not personal workstations | 59% |
| Compromised machines that held more than 10 secrets | 44% |
| Valid secrets detected in 2022 that were still active and exploitable four years later | 64% |
The Verizon 2026 Data Breach Investigations Report points to the same risk. It says breaches involving a third party rose by 60% from last year's data and now make up 48% of all breaches.
A March 2025 incident shows how far one compromised GitHub Action can spread. Attackers compromised tj-actions/changed-files, a popular action (a reusable build step) used by more than 23,000 repositories. It was made to print CI secrets into build logs (Unit 42, BleepingComputer).
A leaked secret stays useful for a long time, and a compromised runner tends to hold many of them. For the storage side of the problem, see our guides on secrets sprawl in 2026 and the secrets rotation lifecycle.
None of this needs a new kind of attack. A malicious package, a poisoned build action or a stolen token all end in the same place: code running in a job that has credentials.
Our advice: rank your runners by how many secrets each one can reach, and fix the top one first. GitGuardian's figure that 44% of compromised machines held more than 10 secrets is the reason the order matters.
Six controls that limit the damage one CI job can do
These controls assume a hostile dependency or a stolen token will eventually run in one of your jobs. The goal is to leave that job holding as little as possible. Lines marked "Our advice" are ours. The rest come from the sources cited.
- Keep installs away from deploy credentials. Install dependencies and run tests in jobs that hold no deploy secrets and no cloud access. Give deployment its own job in a protected environment.
GitHub's secure use reference says required reviewers can gate environment secrets, so a job cannot read them until someone approves.
Our advice: treat the install step as the least trusted step in the pipeline. - Request OIDC tokens only in the job that deploys. Set workflow permissions to read-only by default and add
id-token: writeto the deploy job alone. A job without that permission cannot request a token.
Wiz tells teams to treat OIDC tokens as exposed for any workflow that installed 1.26.2 withid-token: write. - Tighten the trust condition on every federated credential. A trust condition is a rule that says which repository and environment may get cloud access.
GitHub's documentation says you must define at least one, so untrusted repositories cannot obtain tokens, and recommends environment protection rules.
Bind trust to one repository and one environment. Organization-wide trust is too broad.
Our advice: also cut the cloud role to the minimum, since a stolen token works for as long as the role allows. - Lock the whole dependency tree, and slow down new releases. SafeDep points out that pinning
agent-frameworkalone leaves its sibling packages free to update, and recommends locking the full dependency tree with hashes, which are fingerprints of each file.
Computing reports that Renovate, a tool that proposes dependency updates automatically, opened upgrade pull requests within six minutes of the first malicious upload.
Our advice: review updates before re-locking, and wait a short period before adopting a brand-new release. - Restrict outbound traffic from runners. The stealer sent its data in one web request to a webhook.site address, a free service that catches incoming data (Aikido, Wiz, StepSecurity).
StepSecurity warns that blocking the request does not remove the hook or prove earlier runs were safe.
Our advice: allow only the hosts a job needs. - Write the cleanup plan before you need it. Contain first.StepSecurity advises against running
pipor Python in an affected environment, because that starts the hook again.
Rebuild runners from a clean image, rotate from a clean system, revoke runtime identities (tokens the jobs obtained while running), and then check the cloud side for trust changes that rotation does not remove.
Our advice: keep a list of every secret each job can reach, so rotation follows a checklist.
How Passwork helps limit CI/CD credential theft
Passwork narrows what a job needs to hold and gives you a record when you have to clean up. The table shows where its documented capabilities support each of the six controls.
| Control | How Passwork supports it |
|---|---|
| 1. Keep installs away from deploy credentials | Service accounts are dedicated accounts for automation, separate from human users, with API tokens and a role per pipeline. Role-based access, with vault and folder permissions, limits which secrets each account can reach. |
| 2. Request OIDC tokens only where needed | Passwork keeps the static secrets that remain, such as API keys, database connection strings and SSH keys, in one vault. The token rules themselves are set in your CI platform. |
| 3. Tighten cloud trust conditions | Passwork controls and records who can access the credentials behind your cloud roles. The trust rules themselves are set in your cloud provider. |
| 4. Lock dependencies | Registry and publishing tokens can sit in a vault with version history and an action log, instead of in CI settings. |
| 5. Restrict outbound traffic | Indirectly. Allow-lists are set on the network and the runner. If traffic looks wrong, Passwork's Activity Log shows which credentials were accessed and by whom. |
| 6. Write the cleanup plan | The Activity Log records user, admin and system actions and exports to SIEM tools (security monitoring systems), which helps identify affected credentials. The REST API, CLI and Docker image support scripted rotation. |
Passwork covers the credential side: who can reach each secret, and a record of every access. Pipeline, cloud and network settings stay with the tools that own them. Together, these controls reduce what one job can lose. The capabilities above are described in Passwork's documentation on service accounts, secrets management and the Activity Log. See how Passwork handles CI/CD secrets.
How fast would you notice CI/CD credential theft?
Security vendors flagged both campaigns first. SafeDep flagged 1.26.1 at 20:57 UTC, 22 minutes after the upload. Do not count on a vendor getting there before you. Test the five alerts below against your own logs.
| Signal | In these incidents | Alert to test |
|---|---|---|
| Unexpected outbound call | agent-framework: data sent to webhook.site. wfx-loot: data sent over plain HTTP to raw IP addresses on port 8080 (Chainguard) | Runner traffic to hosts outside the allowlist |
| Token requests from the wrong job | OIDC and managed identity requests from a job that never deploys | An OIDC token issued to a workflow that has no deploy step |
| Cloud trust changes | AWS trust policy opened to any account; Azure credentials named wfx-ci-… (Aikido) |
Any new federated credential or trust policy edit outside change control |
| Unexpected Python startup hooks | .pth files agent_framework_meta.pth and af_runtime_diag.pth |
A scan for executable .pth lines in site-packages |
Then run one tabletop exercise, a talk-through drill that touches no live systems. Assume a job installed a hostile package at 20:35 UTC. Which secrets and tokens could it reach? How long until you could list them?
Where to start: One pipeline, three steps
Start with the one pipeline that deploys to production:
- List every secret and token its jobs can reach.
- Mark each one as stored, or requested from the platform.
- Remove
id-token: writefrom every job that does not deploy.
Frequently asked questions
What is CI/CD credential theft?
CI/CD credential theft is the stealing of secrets, tokens and keys that continuous integration and delivery jobs can read or request. Attackers reach them through a malicious dependency, a poisoned workflow or a stolen developer token.
How can a Python package steal credentials without being imported?
A .pth file in site-packages (the folder where Python keeps installed packages) can contain a line that starts with import, and Python runs it at startup. The agent-framework versions 1.26.1 and 1.26.2 used this, so any Python process in that environment ran the stealer.
Does rotating secrets fix CI/CD credential theft?
Only partly. Rotation replaces stored secrets, such as keys in environment variables and files. It does not cancel tokens the stealer requested from the platform, which Wiz says can stay valid for up to 24 hours. It also does not undo cloud changes, such as the trust policy edits Aikido reports in wfx-loot. Review the cloud side after you rotate.
Is the agent-framework compromise a Microsoft data breach?
No source reviewed reports that Microsoft customer data was accessed. It is a compromise of the path that published the package. Microsoft has said it made some repositories private while it investigates, and the root cause is unconfirmed.
Who was affected by the agent-framework hack?
Any environment that installed 1.26.1 or 1.26.2 on 17 Nov 2026, between 20:35 UTC and about 21:30 UTC. Sources differ on when both versions were removed. SafeDep says the number of installs is not known. Builds that restored a cached copy may also be affected, because StepSecurity advises removing affected cached artifacts. Version 1.26.0 is the last clean release.



Table of contents
- Key takeaways
- What happened in the agent-framework PyPI compromise
- What did the stealer take, and what does rotation miss?
- Is wfx-loot the same problem through a different door?
- Why do CI runners attract CI/CD credential theft?
- Six controls that limit the damage one CI job can do
- How Passwork helps limit CI/CD credential theft
- How fast would you notice CI/CD credential theft?
- Where to start: One pipeline, three steps
- Frequently asked questions
Table of contents
- Key takeaways
- What happened in the agent-framework PyPI compromise
- What did the stealer take, and what does rotation miss?
- Is wfx-loot the same problem through a different door?
- Why do CI runners attract CI/CD credential theft?
- Six controls that limit the damage one CI job can do
- How Passwork helps limit CI/CD credential theft
- How fast would you notice CI/CD credential theft?
- Where to start: One pipeline, three steps
- Frequently asked questions
Self-hosted password manager for business
Passwork provides an advantage of effective teamwork with corporate passwords in a totally safe environment. Double encryption and zero-knowledge architecture ensure your passwords never leave your infrastructure.
Learn more


