{"incident":{"slug":"microsoft-agent-framework-nov-2026-pypi","caseId":"BI-2026-023","organization":"Microsoft","title":"Microsoft agent-framework: malicious PyPI wheels ran .pth hooks to mint OIDC tokens","shortSummary":"Two unauthorized PyPI releases executed at Python startup to scrape /proc environments and mint GitHub Actions, Azure DevOps, and Azure IMDS tokens.","lede":"On Nov 17, 2026, an attacker published two unauthorized versions (1.26.1 and 1.26.2) of Microsoft’s official agent-framework Python meta-package to PyPI, pushing 1.26.2 just two minutes and 23 seconds after PyPI quarantined 1.26.1. Both wheels shipped executable .pth startup hooks that fired without any import, scraped sibling process environments, and minted live cloud OIDC and Azure managed-identity tokens before posting them to webhook.site.","incidentDate":"Nov 17, 2026","incidentDateIso":"2026-11-17","disclosedDate":"Nov 18, 2026","sourceUrl":"https://devblogs.microsoft.com/agent-framework/microsoft-agent-framework-repository-update/","sourceAuthor":"Microsoft Agent Framework Team, GHSA-764m-3ppc-5m73, and StepSecurity","vectorFilter":"CI supply chain","timeToDetect":"31 minutes (1.26.1), 41 minutes total","detectedBy":"PyPI quarantine and security researchers","initialAccess":{"label":"Unauthorized PyPI publish","detail":"Two wheel-only releases (1.26.1 and 1.26.2) were pushed to PyPI without provenance; how publish access was obtained has not been disclosed","evidence":"confirmed"},"secondaryVectorMeta":{"term":"Publish access source","label":"Not established publicly","evidence":"withheld"},"blastRadius":"CI runners and hosts installing 1.26.1 or 1.26.2 during ~41-minute window","whatItReachedShort":"Environment variables, up to 80 credential files, /proc/*/environ, and minted GitHub, Azure DevOps, and Azure IMDS tokens","whatHeldShort":"Official GitHub source repo, clean 1.26.0 and earlier, satellite Python packages, .NET packages, and Semantic Kernel","revisions":[{"id":"Rev A","date":"Nov 25, 2026","note":"First published from GHSA-764m-3ppc-5m73 (Nov 18, updated Nov 24), Microsoft’s Nov 25 repository update, and StepSecurity, Wiz, and JFrog static wheel analyses."}],"bodyMarkdown":"## How they got in\n\nOn Nov 17, 2026 at 20:35:20 UTC, an attacker published an unauthorized wheel-only release (1.26.1) of Microsoft’s official agent-framework Python meta-package to PyPI, five days after the clean 1.26.0 release. PyPI quarantined 1.26.1 at 21:06:16 UTC, thirty-one minutes later. Just two minutes and 23 seconds after quarantine, at 21:08:39 UTC, the attacker pushed a second upgraded release (1.26.2), proving that quarantining the first file had not yet cut off their publishing access. PyPI quarantined 1.26.2 eight minutes later at 21:16:44 UTC, ending a 41-minute live window.\n\nMicrosoft confirmed both releases were uploaded without authorization and temporarily took the GitHub repository offline as a precaution while verifying that the repository itself never contained the malicious code. Neither Microsoft nor independent researchers at StepSecurity have established how the attacker got PyPI publish access, so the entry method stays marked withheld and unverified social-media claims about GitHub organization access or signing certificates are excluded.\n\n## What it reached\n\nBoth wheels used a quiet Python feature: .pth startup files placed inside site-packages. Python executes import lines inside .pth files automatically every time the interpreter starts, even if an application never imports agent_framework. Running pytest, a linter, or even pip uninstall inside an infected environment fires the payload again.\n\nIn 1.26.1 the wheel dropped agent_framework_meta.pth and agent_framework_meta/_telemetry.py. In 1.26.2 the attacker cleaned up __init__.py, renamed the pair to af_runtime_diag.pth and af_runtime_diag.py, raised the stolen-file limit from 60 to 80, added /home/runner paths, and added GitHub Actions OIDC token theft. On startup, the script set an anti-recursion guard (_AF_TEL=1), detached into a background process with os.fork and setsid, swept 35 environment-variable patterns, credential files (~/.azure, .npmrc, .netrc, .git-credentials, .docker/config.json, Azure DevOps agent credentials, .env files), and /proc/[0-9]*/environ for up to 300 processes. It then actively requested fresh tokens from Azure IMDS (169.254.169.254 across 12 Azure resource audiences), Azure DevOps OIDC (SYSTEM_OIDCREQUESTURI), and GitHub Actions OIDC (ACTIONS_ID_TOKEN_REQUEST_URL), zlib-compressed and base64-encoded the bundle, and POSTed it to https://webhook.site/d381fd80-ec62-42ad-8f5c-d1b15103c9bb?t=telemetry.\n\n## What held\n\nMicrosoft’s GitHub source repository contained no malicious commits, and version 1.26.0 and earlier, satellite Python packages (such as agent-framework-core), .NET packages, and Semantic Kernel were all untouched. Any CI pipeline or workstation enforcing hash-pinned lockfiles or a multi-day package release cooldown skipped the 41-minute window completely.\n\n> **Why short-lived OIDC tokens still leak inside a hijacked build**\n>\n> Moving off static keys stops old secrets from working a week later, but a .pth startup hook runs directly inside the live CI runner while OIDC and IMDS endpoints are open.\n>\n> Stopping brief registry hijacks takes two layers together: hash-pinned lockfiles with a release cooldown so brand-new wheels never auto-install, and strict runner egress allowlists so a hijacked build cannot talk to webhook.site.","narrative":{"howTheyGotIn":["On Nov 17, 2026 at 20:35:20 UTC, an attacker published an unauthorized wheel-only release (1.26.1) of Microsoft’s official agent-framework Python meta-package to PyPI, five days after the clean 1.26.0 release. PyPI quarantined 1.26.1 at 21:06:16 UTC, thirty-one minutes later. Just two minutes and 23 seconds after quarantine, at 21:08:39 UTC, the attacker pushed a second upgraded release (1.26.2), proving that quarantining the first file had not yet cut off their publishing access. PyPI quarantined 1.26.2 eight minutes later at 21:16:44 UTC, ending a 41-minute live window.","Microsoft confirmed both releases were uploaded without authorization and temporarily took the GitHub repository offline as a precaution while verifying that the repository itself never contained the malicious code. Neither Microsoft nor independent researchers at StepSecurity have established how the attacker got PyPI publish access, so the entry method stays marked withheld and unverified social-media claims about GitHub organization access or signing certificates are excluded."],"whatItReached":["Both wheels used a quiet Python feature: .pth startup files placed inside site-packages. Python executes import lines inside .pth files automatically every time the interpreter starts, even if an application never imports agent_framework. Running pytest, a linter, or even pip uninstall inside an infected environment fires the payload again.","In 1.26.1 the wheel dropped agent_framework_meta.pth and agent_framework_meta/_telemetry.py. In 1.26.2 the attacker cleaned up __init__.py, renamed the pair to af_runtime_diag.pth and af_runtime_diag.py, raised the stolen-file limit from 60 to 80, added /home/runner paths, and added GitHub Actions OIDC token theft. On startup, the script set an anti-recursion guard (_AF_TEL=1), detached into a background process with os.fork and setsid, swept 35 environment-variable patterns, credential files (~/.azure, .npmrc, .netrc, .git-credentials, .docker/config.json, Azure DevOps agent credentials, .env files), and /proc/[0-9]*/environ for up to 300 processes. It then actively requested fresh tokens from Azure IMDS (169.254.169.254 across 12 Azure resource audiences), Azure DevOps OIDC (SYSTEM_OIDCREQUESTURI), and GitHub Actions OIDC (ACTIONS_ID_TOKEN_REQUEST_URL), zlib-compressed and base64-encoded the bundle, and POSTed it to https://webhook.site/d381fd80-ec62-42ad-8f5c-d1b15103c9bb?t=telemetry."],"whatHeld":["Microsoft’s GitHub source repository contained no malicious commits, and version 1.26.0 and earlier, satellite Python packages (such as agent-framework-core), .NET packages, and Semantic Kernel were all untouched. Any CI pipeline or workstation enforcing hash-pinned lockfiles or a multi-day package release cooldown skipped the 41-minute window completely."],"sideNoteTitle":"Why short-lived OIDC tokens still leak inside a hijacked build","sideNoteParagraphs":["Moving off static keys stops old secrets from working a week later, but a .pth startup hook runs directly inside the live CI runner while OIDC and IMDS endpoints are open.","Stopping brief registry hijacks takes two layers together: hash-pinned lockfiles with a release cooldown so brand-new wheels never auto-install, and strict runner egress allowlists so a hijacked build cannot talk to webhook.site."]},"claims":[{"group":"How they got in","claim":"Unauthorized wheel-only versions 1.26.1 (20:35:20 UTC) and 1.26.2 (21:08:39 UTC) of agent-framework were uploaded to PyPI on Nov 17, 2026 and removed after quarantine","evidence":"confirmed","source":"Microsoft Nov 25 blog, GHSA-764m-3ppc-5m73, and StepSecurity"},{"group":"How they got in","claim":"How the attacker obtained PyPI publish access (unverified social-media claims about GitHub org admin or ESRP certificates are not confirmed)","evidence":"withheld","source":"Microsoft and StepSecurity analysis"},{"group":"What it reached","claim":"Both wheels shipped .pth startup hooks (agent_framework_meta.pth in 1.26.1, af_runtime_diag.pth in 1.26.2) that forked a detached collector, scraped /proc/*/environ and up to 80 credential files, minted Azure IMDS, ADO OIDC, and GitHub Actions OIDC tokens, and POSTed them to webhook.site/d381fd80-ec62-42ad-8f5c-d1b15103c9bb","evidence":"confirmed","source":"GHSA-764m-3ppc-5m73 and StepSecurity static analysis"},{"group":"What held","claim":"The official GitHub repository, version 1.26.0 and earlier, satellite Python packages, .NET packages, and Semantic Kernel were not affected","evidence":"confirmed","source":"Microsoft Agent Framework update, Nov 25, 2026"}],"diagram":{"label":"How unauthorized PyPI wheels of agent-framework harvested cloud OIDC tokens","zones":[{"id":"pub","label":"PyPI publish","kind":"boundary","lane":0},{"id":"host","label":"CI runner or laptop","kind":"boundary","lane":1},{"id":"cloud","label":"Cloud identity and drop","kind":"boundary","lane":2},{"id":"safe","label":"Stayed safe","kind":"isolated","lane":1}],"nodes":[{"id":"ms-atk","zone":"pub","name":"Attacker","detail":"Publish source withheld","kind":"attacker","ev":"withheld","at":0,"story":"Uploaded unauthorized wheel-only releases 1.26.1 (20:35:20 UTC) and 1.26.2 (21:08:39 UTC) with User-Agent RestSharp/106.13.0.0 and no provenance attestation. Neither Microsoft nor StepSecurity has publicly established how publishing access was obtained.","when":"Nov 17, 20:35–21:08 UTC","steps":[1]},{"id":"ms-pypi","zone":"pub","name":"PyPI 1.26.1 and 1.26.2","detail":"Republished 2m after ban","kind":"compromised","ev":"confirmed","at":1,"story":"Version 1.26.1 shipped at 20:35:20 UTC and was quarantined at 21:06:16 UTC. Just 2 minutes 23 seconds later (21:08:39 UTC), the attacker published 1.26.2 with upgraded GitHub Actions OIDC theft until PyPI quarantined it at 21:16:44 UTC.","when":"Nov 17, 20:35–21:16 UTC","steps":[1,2],"ctl":["ms-k1"]},{"id":"ms-pth","zone":"host","name":"Python .pth startup hook","detail":"Runs before any import","kind":"compromised","ev":"confirmed","at":2,"story":"Installing the wheel placed agent_framework_meta.pth (1.26.1) or af_runtime_diag.pth (1.26.2) into site-packages. Python executes .pth import lines on every interpreter start, forking a detached collector (os.fork, setsid, _AF_TEL=1) without importing the framework.","when":"Next python invocation","steps":[2,3],"ctl":["ms-k2"]},{"id":"ms-env","zone":"host","name":"Env and /proc/*/environ","detail":"Up to 80 cred files","kind":"compromised","ev":"confirmed","at":3,"story":"Scraped 35 env-var patterns, up to 80 credential files (~/.azure, .npmrc, .netrc, .git-credentials, .docker/config.json, /home/runner paths in 1.26.2), and /proc/*/environ for the first 300 processes.","when":"Seconds after install","steps":[3,4]},{"id":"ms-oidc","zone":"cloud","name":"Minted OIDC and IMDS","detail":"GitHub, ADO, Azure MI","kind":"compromised","ev":"confirmed","at":3,"story":"Actively requested live tokens from Azure DevOps OIDC (SYSTEM_OIDCREQUESTURI), Azure IMDS (169.254.169.254 across 12 Azure resource audiences), and in 1.26.2 GitHub Actions OIDC (ACTIONS_ID_TOKEN_REQUEST_URL).","when":"Seconds after install","steps":[3,4],"ctl":["ms-k3"]},{"id":"ms-exfil","zone":"cloud","name":"webhook.site drop URL","detail":"Zlib + base64 POST","kind":"compromised","ev":"confirmed","at":4,"story":"Compressed and base64-encoded harvested secrets and minted tokens, POSTing to webhook.site/d381fd80-ec62-42ad-8f5c-d1b15103c9bb?t=telemetry with User-Agent af-runtime-diagnostics/1 or runtime-diagnostics/1.","when":"Nov 17, 20:35–21:16 UTC","steps":[4],"ctl":["ms-d1"]},{"id":"ms-repo","zone":"safe","name":"GitHub repo and 1.26.0","detail":"Clean source and SDKs","kind":"isolated","ev":"confirmed","at":0,"story":"Microsoft confirmed the GitHub source repo contained no malicious code. Version 1.26.0 and earlier, satellite Python packages, .NET packages, and Semantic Kernel were unaffected.","when":"Not reached"},{"id":"ms-pin","zone":"safe","name":"Hash-pinned builds","detail":"Skipped new wheels","kind":"isolated","ev":"confirmed","at":0,"story":"Pipelines pinned to cryptographic hash lockfiles or enforcing a multi-day package release cooldown never installed 1.26.1 or 1.26.2.","when":"Not reached"}],"edges":[{"id":"me1","from":"ms-atk","to":"ms-pypi","kind":"inferred","step":1},{"id":"me2","from":"ms-pypi","to":"ms-pth","kind":"attack","step":2},{"id":"me3a","from":"ms-pth","to":"ms-env","kind":"attack","step":3},{"id":"me3b","from":"ms-pth","to":"ms-oidc","kind":"attack","step":3},{"id":"me4a","from":"ms-env","to":"ms-exfil","kind":"attack","step":4},{"id":"me4b","from":"ms-oidc","to":"ms-exfil","kind":"attack","step":4}],"steps":[{"n":1,"time":"Nov 17, 20:35–21:08 UTC","short":"20:35–21:08","text":"Unauthorized 1.26.1 and 1.26.2 wheels uploaded to PyPI","say":"The attacker pushes 1.26.1 at 20:35:20 UTC. Just 2 minutes 23 seconds after PyPI quarantines it at 21:06:16 UTC, they push 1.26.2 at 21:08:39 UTC using retained publish access."},{"n":2,"time":"Nov 17, 20:35–21:16 UTC","short":"Install time","text":"Unpinned installs drop an executable .pth startup hook","say":"Any runner or laptop pulling agent-framework during the 41-minute window writes agent_framework_meta.pth or af_runtime_diag.pth into site-packages, running automatically on the next Python start."},{"n":3,"time":"Nov 17, 20:35–21:16 UTC","short":"Token minting","text":"Detached collector scrapes /proc and mints OIDC/IMDS tokens","say":"Forking into a detached process, the payload sweeps env vars, up to 80 credential files, and /proc/*/environ, and actively requests Azure IMDS, Azure DevOps OIDC, and GitHub Actions OIDC tokens."},{"n":4,"time":"Nov 17, 21:16 UTC","short":"21:16 banned","text":"Secrets posted to webhook.site; PyPI quarantines 1.26.2","say":"Harvested secrets and minted tokens are zlib-compressed and POSTed to a hardcoded webhook.site UUID endpoint. PyPI quarantines 1.26.2 at 21:16:44 UTC and removes both releases."}],"controls":[{"id":"ms-k1","step":1,"kind":"control","name":"Pin hashes and add cooldowns","tag":"Stops step 1","long":"Install Python packages strictly from hash-pinned lockfiles (uv --locked or pip --require-hashes) and set a 2 to 7 day release cooldown so 41-minute registry hijacks are skipped automatically.","nodeId":"ms-pypi"},{"id":"ms-k2","step":2,"kind":"detection","name":"Alert on .pth and /proc reads","tag":"Catches step 2","long":"Alert on new .pth files containing executable import lines in site-packages and on Python processes reading /proc/<other pid>/environ.","nodeId":"ms-pth"},{"id":"ms-k3","step":3,"kind":"control","name":"Block CI egress to drop sites","tag":"Stops step 4","long":"Enforce a CI runner egress allowlist (blocking webhook.site) and restrict GitHub Actions id-token: write permissions and Azure IMDS scopes to jobs that explicitly need them.","nodeId":"ms-oidc"},{"id":"ms-d1","step":4,"kind":"fired","name":"PyPI quarantine 21:06 & 21:16","tag":null,"long":"PyPI quarantined 1.26.1 at 21:06:16 UTC and 1.26.2 at 21:16:44 UTC, pointing installs back to clean 1.26.0.","nodeId":"ms-exfil"}],"detectedAt":{"time":"Nov 17, 21:06 UTC (1.26.1) / 21:16 UTC (1.26.2)","short":"Quarantined 21:06","text":"PyPI quarantined 1.26.1 31 minutes after upload; 1.26.2 followed 2 minutes 23 seconds later and was quarantined 8 minutes later at 21:16:44 UTC."},"rulerRange":{"dateLabel":"Nov 17, 2026","startHour":20,"endHour":22}},"plate":{"W":1015,"H":382,"label":"How unauthorized PyPI wheels of agent-framework harvested cloud OIDC tokens","zones":[{"id":"pub","label":"PyPI publish","kind":"boundary","x":8,"y":16,"w":229,"h":212},{"id":"host","label":"CI runner or laptop","kind":"boundary","x":275,"y":16,"w":459,"h":212},{"id":"safe","label":"Stayed safe","kind":"isolated","x":275,"y":248,"w":459,"h":110},{"id":"cloud","label":"Cloud identity and drop","kind":"boundary","x":772,"y":16,"w":235,"h":212}],"nodes":[{"id":"ms-atk","name":"Attacker","detail":"Publish source withheld","kind":"attacker","ev":"withheld","x":20,"y":52,"w":205,"at":0,"story":"Uploaded unauthorized wheel-only releases 1.26.1 (20:35:20 UTC) and 1.26.2 (21:08:39 UTC) with User-Agent RestSharp/106.13.0.0 and no provenance attestation. Neither Microsoft nor StepSecurity has publicly established how publishing access was obtained.","when":"Nov 17, 20:35–21:08 UTC","steps":[1]},{"id":"ms-pypi","name":"PyPI 1.26.1 and 1.26.2","detail":"Republished 2m after ban","kind":"compromised","ev":"confirmed","x":20,"y":154,"w":205,"at":1,"story":"Version 1.26.1 shipped at 20:35:20 UTC and was quarantined at 21:06:16 UTC. Just 2 minutes 23 seconds later (21:08:39 UTC), the attacker published 1.26.2 with upgraded GitHub Actions OIDC theft until PyPI quarantined it at 21:16:44 UTC.","when":"Nov 17, 20:35–21:16 UTC","steps":[1,2],"ctl":["ms-k1"]},{"id":"ms-pth","name":"Python .pth startup hook","detail":"Runs before any import","kind":"compromised","ev":"confirmed","x":388,"y":52,"w":232,"at":2,"story":"Installing the wheel placed agent_framework_meta.pth (1.26.1) or af_runtime_diag.pth (1.26.2) into site-packages. Python executes .pth import lines on every interpreter start, forking a detached collector (os.fork, setsid, _AF_TEL=1) without importing the framework.","when":"Next python invocation","steps":[2,3],"ctl":["ms-k2"]},{"id":"ms-env","name":"Env and /proc/*/environ","detail":"Up to 80 cred files","kind":"compromised","ev":"confirmed","x":388,"y":154,"w":232,"at":3,"story":"Scraped 35 env-var patterns, up to 80 credential files (~/.azure, .npmrc, .netrc, .git-credentials, .docker/config.json, /home/runner paths in 1.26.2), and /proc/*/environ for the first 300 processes.","when":"Seconds after install","steps":[3,4]},{"id":"ms-repo","name":"GitHub repo and 1.26.0","detail":"Clean source and SDKs","kind":"isolated","ev":"confirmed","x":287,"y":284,"w":210,"at":0,"story":"Microsoft confirmed the GitHub source repo contained no malicious code. Version 1.26.0 and earlier, satellite Python packages, .NET packages, and Semantic Kernel were unaffected.","when":"Not reached"},{"id":"ms-pin","name":"Hash-pinned builds","detail":"Skipped new wheels","kind":"isolated","ev":"confirmed","x":541,"y":284,"w":181,"at":0,"story":"Pipelines pinned to cryptographic hash lockfiles or enforcing a multi-day package release cooldown never installed 1.26.1 or 1.26.2.","when":"Not reached"},{"id":"ms-oidc","name":"Minted OIDC and IMDS","detail":"GitHub, ADO, Azure MI","kind":"compromised","ev":"confirmed","x":784,"y":52,"w":211,"at":3,"story":"Actively requested live tokens from Azure DevOps OIDC (SYSTEM_OIDCREQUESTURI), Azure IMDS (169.254.169.254 across 12 Azure resource audiences), and in 1.26.2 GitHub Actions OIDC (ACTIONS_ID_TOKEN_REQUEST_URL).","when":"Seconds after install","steps":[3,4],"ctl":["ms-k3"]},{"id":"ms-exfil","name":"webhook.site drop URL","detail":"Zlib + base64 POST","kind":"compromised","ev":"confirmed","x":784,"y":154,"w":211,"at":4,"story":"Compressed and base64-encoded harvested secrets and minted tokens, POSTing to webhook.site/d381fd80-ec62-42ad-8f5c-d1b15103c9bb?t=telemetry with User-Agent af-runtime-diagnostics/1 or runtime-diagnostics/1.","when":"Nov 17, 20:35–21:16 UTC","steps":[4],"ctl":["ms-d1"]}],"edges":[{"id":"me1","kind":"inferred","step":1,"pts":[[123,110],[123,154]]},{"id":"me2","kind":"attack","step":2,"pts":[[225,183],[307,183],[307,81],[388,81]]},{"id":"me3a","kind":"attack","step":3,"pts":[[504,110],[504,154]]},{"id":"me3b","kind":"attack","step":3,"pts":[[620,81],[784,81]]},{"id":"me4a","kind":"attack","step":4,"pts":[[620,183],[784,183]]},{"id":"me4b","kind":"attack","step":4,"pts":[[890,110],[890,154]]}],"balloons":{"1":[123,132],"2":[307,132],"3":[504,132],"4":[702,183]},"noroute":[{"x1":237,"x2":275,"y":278,"label":"No route"}],"bps":[{"id":"ms-k1","step":1,"kind":"control","at":[123,132],"name":"Pin hashes and add cooldowns","tag":"Stops step 1","lead":[[123,121],[123,104],[135,104]],"lx":141,"ly":108,"anchor":"start","long":"Install Python packages strictly from hash-pinned lockfiles (uv --locked or pip --require-hashes) and set a 2 to 7 day release cooldown so 41-minute registry hijacks are skipped automatically.","nodeId":"ms-pypi"},{"id":"ms-k2","step":2,"kind":"detection","at":[307,132],"name":"Alert on .pth and /proc reads","tag":"Catches step 2","lead":[[307,143],[307,154],[319,154]],"lx":325,"ly":158,"anchor":"start","long":"Alert on new .pth files containing executable import lines in site-packages and on Python processes reading /proc/<other pid>/environ.","nodeId":"ms-pth"},{"id":"ms-k3","step":3,"kind":"control","at":[504,132],"name":"Block CI egress to drop sites","tag":"Stops step 4","lead":[[504,121],[504,104],[516,104]],"lx":522,"ly":108,"anchor":"start","long":"Enforce a CI runner egress allowlist (blocking webhook.site) and restrict GitHub Actions id-token: write permissions and Azure IMDS scopes to jobs that explicitly need them.","nodeId":"ms-oidc"},{"id":"ms-d1","step":4,"kind":"fired","at":[702,211],"name":"PyPI quarantine 21:06 & 21:16","tag":null,"lead":[[702,222],[702,233],[690,233]],"lx":684,"ly":237,"anchor":"end","long":"PyPI quarantined 1.26.1 at 21:06:16 UTC and 1.26.2 at 21:16:44 UTC, pointing installs back to clean 1.26.0.","nodeId":"ms-exfil"}],"steps":[{"n":1,"time":"Nov 17, 20:35–21:08 UTC","short":"20:35–21:08","text":"Unauthorized 1.26.1 and 1.26.2 wheels uploaded to PyPI","say":"The attacker pushes 1.26.1 at 20:35:20 UTC. Just 2 minutes 23 seconds after PyPI quarantines it at 21:06:16 UTC, they push 1.26.2 at 21:08:39 UTC using retained publish access."},{"n":2,"time":"Nov 17, 20:35–21:16 UTC","short":"Install time","text":"Unpinned installs drop an executable .pth startup hook","say":"Any runner or laptop pulling agent-framework during the 41-minute window writes agent_framework_meta.pth or af_runtime_diag.pth into site-packages, running automatically on the next Python start."},{"n":3,"time":"Nov 17, 20:35–21:16 UTC","short":"Token minting","text":"Detached collector scrapes /proc and mints OIDC/IMDS tokens","say":"Forking into a detached process, the payload sweeps env vars, up to 80 credential files, and /proc/*/environ, and actively requests Azure IMDS, Azure DevOps OIDC, and GitHub Actions OIDC tokens."},{"n":4,"time":"Nov 17, 21:16 UTC","short":"21:16 banned","text":"Secrets posted to webhook.site; PyPI quarantines 1.26.2","say":"Harvested secrets and minted tokens are zlib-compressed and POSTed to a hardcoded webhook.site UUID endpoint. PyPI quarantines 1.26.2 at 21:16:44 UTC and removes both releases."}],"stripRows":[{"id":"sr-ms-atk","nodeId":"ms-atk","lineStyle":"inferred"},{"id":"sr-step-1","nodeId":"ms-pypi","step":1,"lineStyle":"solid","bpIds":["ms-k1"]},{"id":"sr-step-2","nodeId":"ms-pth","step":2,"lineStyle":"solid","bpIds":["ms-k2"]},{"id":"sr-step-3","nodeId":"ms-env","step":3,"lineStyle":"solid","companionNodeIds":["ms-oidc"],"bpIds":["ms-k3"]},{"id":"sr-step-4","nodeId":"ms-exfil","step":4,"lineStyle":"none","bpIds":["ms-d1"]}],"detectedAt":{"time":"Nov 17, 21:06 UTC (1.26.1) / 21:16 UTC (1.26.2)","short":"Quarantined 21:06","text":"PyPI quarantined 1.26.1 31 minutes after upload; 1.26.2 followed 2 minutes 23 seconds later and was quarantined 8 minutes later at 21:16:44 UTC."},"rulerRange":{"dateLabel":"Nov 17, 2026","startHour":20,"endHour":22}},"codeArtifacts":[{"id":"ms-pth-audit","filename":"check-pth-and-agent-framework.sh","language":"sh","description":"Inspect filesystems and lockfiles without invoking the compromised Python interpreter (since running pip or python inside an infected env fires the .pth hook again).","code":"# Inspect lockfiles and site-packages WITHOUT running Python inside a suspect venv\ngrep -rnE \"agent-framework.*1\\.26\\.[12]\" . 2>/dev/null || echo \"No 1.26.1/1.26.2 lockfile pin found\"\nfind / -name \"agent_framework_meta.pth\" -o -name \"af_runtime_diag.pth\" -o -name \"af_runtime_diag.py\" 2>/dev/null || true"},{"id":"ms-ci-egress","filename":"ci-egress-allowlist.yaml","language":"yaml","description":"GitHub Actions egress allowlist blocking webhook.site during Python dependency installs and restricting OIDC id-token permissions.","code":"permissions:\n  contents: read\nsteps:\n  - name: Restrict runner egress\n    uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a\n    with:\n      egress-policy: block\n      allowed-endpoints: >\n        pypi.org:443\n        files.pythonhosted.org:443\n        github.com:443"}],"reproductionLab":{"title":"Reproduction lab","summary":"Audits clean local environments and CI lockfiles for unexpected .pth startup hooks and verifies uv or pip hash-pinned installation settings.","bundleMeta":"Markdown playbook, MIT license","safetyNote":"Read-only filesystem check; installs no malicious packages.","commands":"# list every .pth file inside your active virtualenv without importing untrusted packages\nfind .venv -name \"*.pth\" -exec head -n 5 {} + 2>/dev/null || true"},"iocs":[{"type":"hash","value":"d27fa34414e6201d5e03e559ef634f020057554d7b3f4898dd5d7cd3e989e110","context":"SHA-256 of malicious PyPI wheel agent-framework 1.26.1 (drops agent_framework_meta.pth and _telemetry.py)."},{"type":"hash","value":"3d20a8bc91351a9a16b6db243b848ceca0206b7a8623b02d2af553a9c9f7e0a9","context":"SHA-256 of malicious PyPI wheel agent-framework 1.26.2 (drops af_runtime_diag.pth and af_runtime_diag.py)."},{"type":"url","value":"https://webhook.site/d381fd80-ec62-42ad-8f5c-d1b15103c9bb?t=telemetry","context":"Hardcoded base64-obfuscated exfiltration endpoint used by both wheels (User-Agent af-runtime-diagnostics/1 or runtime-diagnostics/1)."},{"type":"log","value":"GHSA-764m-3ppc-5m73 (uploader UA RestSharp/106.13.0.0, wheel-only, no provenance)","context":"Official GitHub Security Advisory tracking the Nov 17 PyPI hijack."}],"publishedAt":"2026-11-25T16:00:00Z","origin":"editorial"}}