CampaignsPublisher / pipeline compromise
Microsoft agent-framework PyPI releases 1.26.1 and 1.26.2 carried a credential stealer
- Taken downas of
- Moderate confidence
- Exposure 55 minutes, 17 Nov 2026
- Indicators (11): CSV, JSON
- Seen
Am I affected?
- agent-framework 1.26.1 or 1.26.2 is installed on a host or CI runnerRead-only check
pip list 2>/dev/null | grep -E "^agent[-_]framework +1\.26\.[12]" - A stealer file is in site-packagesRead-only check
find / \( -name af_runtime_diag.py -o -name _telemetry.py \) -path "*site-packages*" 2>/dev/null - Egress or DNS logs show requests to webhook[.]site from developer machines or CI runners since 17 Nov 2026
Do this now
- Pin agent-framework to 1.26.0
- Search site-packages for af_runtime_diag.py, _telemetry.py and unexpected .pth files
- Rotate every credential reachable from any host that installed 1.26.1 or 1.26.2
What happened
On 17 Nov 2026, two poisoned agent-framework releases on PyPI ran a credential stealer on every Python start.
Affects: Python developers and CI runners that installed agent-framework 1.26.1 or 1.26.2
- PyPI
- GitHub Actions
Attack chain
-
Lure
Trust in the publisher. The poisoned wheels shipped under Microsoft's own package name as a routine patch release (1.26.0 to 1.26.1, then 1.26.2), so a normal pip install -U or an unpinned CI build pulled them in.
First seen
-
Artifact
agent-framework 1.26.1 (published 17 Nov 2026 20:35 UTC) and 1.26.2 (21:08 UTC). The attacker unpacked a legitimate wheel, added a stealer module plus a .pth file, and re-uploaded it with valid publishing credentials (Aikido). The .pth file runs on every Python start with no import needed and spawns a detached process. It targets environment variables whose names contain TOKEN, SECRET, KEY, AZURE, AWS, GITHUB or OPENAI, Azure CLI files, Docker, npm, pip, NuGet and git credential files, Azure DevOps pipeline and OIDC tokens, and managed identity tokens from the cloud metadata service. 1.26.2 added GitHub Actions OIDC token theft.
-
Actor
No source we cite attributes this activity to an actor.
-
Infrastructure
- hxxps://webhook[.]site/d381fd80-ec62-42ad-8f5c-d1b15103c9bb (public request-inspection service used as the drop)
- User-Agent af-runtime-diagnostics/1 (1.26.1) and runtime-diagnostics/1 (1.26.2)
- Exfil format is zlib-compressed, base64-encoded JSON
Last seen
Timeline
- First seen
- Aikido reports
- Wiz reports
- Socket reports
- Last seen
- 1.26.1 published at 20:35 UTC; 1.26.2 published at 21:08 UTC and 1.26.1 removed
- Both versions removed from PyPI about 21:20 to 21:30 UTC; 1.26.0 restored as latest
- StepSecurity reports
- Status checked: Taken down
Related campaigns
| Type | Value | Copy |
|---|---|---|
| url | hxxps://webhook[.]site/d381fd80-ec62-42ad-8f5c-d1b15103c9bb | |
| sha256 | d27fa34414e6201d5e03e559ef634f020057554d7b3f4898dd5d7cd3e989e110 | |
| sha256 | 3d20a8bc91351a9a16b6db243b848ceca0206b7a8623b02d2af553a9c9f7e0a9 | |
| sha256 | 39fa329f2a93f734b0bb8f5adb203ea3331d1ae479832a5015a54cb17aabd663 | |
| sha256 | 21f28e8517a10ffe431f8d68f5875c85eca4001ae6d118322b0a41873998eb5e | |
| sha256 | 54d885b7d7161c9ed96489c66364c4bfbf635929166843bba10d97d46b5a2e1f | |
| sha256 | 325e7e9f0ec94e41ad1a1b7a3f18a6b8b5bffece2e2b97b8d3369eb967452f93 | |
| package | agent-framework==1.26.1 | |
| package | agent-framework==1.26.2 | |
| filename | af_runtime_diag[.]py | |
| filename | _telemetry[.]py |
Defender actions
- Pin agent-framework to 1.26.0. Search site-packages for af_runtime_diag.py, _telemetry.py and unexpected .pth files
- If 1.26.1 or 1.26.2 was installed on any host or CI runner, rotate every credential reachable from it: cloud keys, service principals, registry and git tokens, GitHub federated credentials
- Check egress and DNS logs for webhook[.]site from developer machines and CI runners since 17 Nov 2026
Summary
On 17 Nov 2026 two hand-edited releases of Microsoft's agent-framework package reached PyPI within 33 minutes. Each added a .pth file that runs a credential stealer whenever Python starts, sending cloud, CI and package-registry secrets to a webhook[.]site endpoint. PyPI removed both versions within about an hour. Wiz traces the upload to a stolen certificate for Microsoft's internal release service.
Confidence: Moderate
Strong evidence, not yet confirmed by our own analysis. See the confidence scale for what each level requires. The sources below are the evidence.
Sources
Notes
- Wiz reports the attacker held a client certificate and private key for Microsoft's internal release and signing service. A first attempt from an AWS address was blocked by IP filtering and a second from a Microsoft-owned address succeeded. Aikido states the credential source is not yet known. We report the Wiz finding as theirs.
- No source attributes an actor. Wiz reports the operator used Cairn, an open-source AI penetration-testing framework. That is tooling, not an actor.
- Confidence is capped at Moderate: two independent research teams (Aikido, Wiz) describe the same versions, hashes and exfiltration endpoint, and PyPI removed both versions the same evening, but we have not run our own static analysis. Hashes and indicators are as the researchers published them.
Corrections
No corrections.
See the corrections policy. Spotted an error? Tell us.