Trapdex Subscribe

CampaignsPublisher / pipeline compromise

Microsoft agent-framework PyPI releases 1.26.1 and 1.26.2 carried a credential stealer

Am I affected?

  • agent-framework 1.26.1 or 1.26.2 is installed on a host or CI runnerRead-only checkpip list 2>/dev/null | grep -E "^agent[-_]framework +1\.26\.[12]"
  • A stealer file is in site-packagesRead-only checkfind / \( -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

  1. Pin agent-framework to 1.26.0
  2. Search site-packages for af_runtime_diag.py, _telemetry.py and unexpected .pth files
  3. 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

  1. 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

  2. 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.

  3. Actor

    No source we cite attributes this activity to an actor.

  4. 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

  1. First seen
  2. Aikido reports
  3. Wiz reports
  4. Socket reports
  5. Last seen
  6. 1.26.1 published at 20:35 UTC; 1.26.2 published at 21:08 UTC and 1.26.1 removed
  7. Both versions removed from PyPI about 21:20 to 21:30 UTC; 1.26.0 restored as latest
  8. StepSecurity reports
  9. Status checked: Taken down

Indicators

CSVJSON

All values are defanged (how to read them).

TypeValueCopy
urlhxxps://webhook[.]site/d381fd80-ec62-42ad-8f5c-d1b15103c9bb
sha256d27fa34414e6201d5e03e559ef634f020057554d7b3f4898dd5d7cd3e989e110
sha2563d20a8bc91351a9a16b6db243b848ceca0206b7a8623b02d2af553a9c9f7e0a9
sha25639fa329f2a93f734b0bb8f5adb203ea3331d1ae479832a5015a54cb17aabd663
sha25621f28e8517a10ffe431f8d68f5875c85eca4001ae6d118322b0a41873998eb5e
sha25654d885b7d7161c9ed96489c66364c4bfbf635929166843bba10d97d46b5a2e1f
sha256325e7e9f0ec94e41ad1a1b7a3f18a6b8b5bffece2e2b97b8d3369eb967452f93
packageagent-framework==1.26.1
packageagent-framework==1.26.2
filenameaf_runtime_diag[.]py
filename_telemetry[.]py

Defender actions

  1. Pin agent-framework to 1.26.0. Search site-packages for af_runtime_diag.py, _telemetry.py and unexpected .pth files
  2. 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
  3. 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.