{"id":247434,"date":"2026-11-19T19:22:29","date_gmt":"2026-11-19T19:22:29","guid":{"rendered":"https:\/\/www.europesays.com\/ai\/247434\/"},"modified":"2026-11-19T19:22:29","modified_gmt":"2026-11-19T19:22:29","slug":"malicious-versions-of-microsofts-ai-development-framework-published-on-pypi-credential-stealing-package-raises-cloud-takeover-fears","status":"publish","type":"post","link":"https:\/\/www.europesays.com\/ai\/247434\/","title":{"rendered":"Malicious Versions of Microsoft&#8217;s AI Development Framework Published on PyPI, Credential-Stealing Package Raises Cloud Takeover Fears"},"content":{"rendered":"<p>The Python package for Microsoft Agent Framework, an open-source SDK for AI agent development developed by U.S.-based Microsoft, was maliciously altered, and versions that transmit cloud service credentials to an external destination were published on PyPI, Python&#8217;s official package repository. Security firms Socket, StepSecurity, and OX Security reported the incident in succession, and GitHub&#8217;s security advisory database, the GitHub Advisory Database, is also warning users.<\/p>\n<p>The affected versions are &#8220;1.26.1&#8221; and &#8220;1.26.2,&#8221; which were published in quick succession on November 17, 2026 (Coordinated Universal Time). The two versions were posted about 33 minutes apart, and both were quarantined by PyPI and subsequently deleted. Versions 1.26.0 and earlier are not affected.<\/p>\n<p>Agent Framework was announced in October 2025 as an SDK to support building AI agents and coordinating multiple agents, and its official 1.0 release was published in April 2026. It supports Python and .NET and is positioned as the successor to the existing Semantic Kernel and AutoGen. Its monthly download count on PyPI reaches roughly 190,000 to 200,000.<\/p>\n<p>A distinctive feature of this attack is that the malicious code executes automatically every time Python is launched in an environment where the package is installed, even if the developer never calls Agent Framework in their code. It exploits the &#8220;.pth&#8221; file mechanism that Python loads at startup: version 1.26.1 placed &#8220;agent_framework_meta.pth&#8221; and version 1.26.2 placed &#8220;af_runtime_diag.pth&#8221; directly under site-packages.<\/p>\n<p>VersionPublication time (UTC)Malicious fileMain added functions1.26.1November 17, 2026agent_framework_meta.pthCollection and external transmission of credentials1.26.2November 17, 2026 (about 33 minutes later)af_runtime_diag.pthTheft of GitHub Actions OIDC tokens, expanded environment variable scanning<\/p>\n<p>Note: Time to quarantine is said to be about 30 minutes for 1.26.1 and about 8 minutes for 1.26.2<\/p>\n<p>The theft targets are wide-ranging. In addition to environment variables, the malware targets Azure CLI (~\/.azure\/*.json), .npmrc, pip.conf, .netrc, .git-credentials, Docker&#8217;s config.json, Hugging Face and Azure DevOps agent-related settings, and .env and JSON files. It also issues requests for Azure DevOps OIDC tokens and Azure managed identity tokens, attempting to obtain access rights to other resources in the cloud. Version 1.26.2 added GitHub Actions tokens to its targets.<\/p>\n<p>The collected information was compiled into JSON format, compressed with zlib and Base64-encoded, and then sent via HTTPS to a specific URL on the attacker-prepared external service &#8220;webhook.site.&#8221;<\/p>\n<p>According to StepSecurity, version 1.26.1 was quarantined by PyPI about 30 minutes after publication, but the attacker published version 1.26.2, which moved the malicious code to a different file, about two minutes later. That version was also quarantined about eight minutes later. This sequence shows that the attacker retained the privilege to publish packages even after the first quarantine. The firm also confirmed that a new maintainer account was created and added to the project on the same day.<\/p>\n<p>How the attacker obtained publishing privileges on Microsoft&#8217;s official project remains unclear at this point.<\/p>\n<p>The GitHub Advisory Database is urging that environments where version 1.26.1 or 1.26.2 was installed be treated as having already suffered an information leak. All credentials reachable from such environments must be reissued, it says. StepSecurity additionally warns that simply running a pip command could reactivate the malicious code, and is calling for network isolation of affected environments, suspension of Python and pip execution until safety is ensured, pinning to version 1.26.0, and rebuilding clean environments.<\/p>\n<p>To check the scope of impact, it is recommended to inspect whether malicious versions were downloaded or executed between roughly 8:35 p.m. and 9:20 p.m. (UTC) on November 17, 2026. Users should check proxy and DNS logs for communications to the relevant webhook.site URL and, if a leak is possible, update credentials from a clean system. Auditing Azure IDs, checking sign-in and activity logs, and inspecting GitHub Actions workflows that deploy to Azure are also necessary.<\/p>\n<p>OX Security points out that this case illustrates how the ecosystem for AI developers and the CI pipelines behind it are being targeted. It analyzes the attack as one that directly targeted a legitimate Microsoft package while hijacking the package generation process to embed malicious logic.<\/p>\n<p>This is the second time this year that a Microsoft-related PyPI package has been compromised. In May 2026, three malicious versions of &#8220;durabletask,&#8221; a Python client for a workflow execution framework, were published and used to spread the worm &#8220;Mini Shai-Hulud.&#8221;<\/p>\n<p>As AI agent development expands, the supply chain risk of the open-source packages that developers depend on has once again been brought into sharp relief. In development environments that handle cloud credentials, measures such as pinning dependency versions, using lock files, and minimizing privileges in CI\/CD are becoming increasingly important.<\/p>\n","protected":false},"excerpt":{"rendered":"The Python package for Microsoft Agent Framework, an open-source SDK for AI agent development developed by U.S.-based Microsoft,&hellip;\n","protected":false},"author":2,"featured_media":247435,"comment_status":"","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[420,7829,19619,109456,320,85533,7828,61404,62882,109435,109436,109457],"class_list":["post-247434","post","type-post","status-publish","format-standard","has-post-thumbnail","category-microsoft","tag-azure","tag-azure-ai","tag-github-actions","tag-github-advisory-database","tag-microsoft","tag-microsoft-agent-framework","tag-microsoft-ai","tag-ox-security","tag-pypi","tag-socket","tag-stepsecurity","tag-webhook-site"],"_links":{"self":[{"href":"https:\/\/www.europesays.com\/ai\/wp-json\/wp\/v2\/posts\/247434","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.europesays.com\/ai\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.europesays.com\/ai\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.europesays.com\/ai\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.europesays.com\/ai\/wp-json\/wp\/v2\/comments?post=247434"}],"version-history":[{"count":0,"href":"https:\/\/www.europesays.com\/ai\/wp-json\/wp\/v2\/posts\/247434\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.europesays.com\/ai\/wp-json\/wp\/v2\/media\/247435"}],"wp:attachment":[{"href":"https:\/\/www.europesays.com\/ai\/wp-json\/wp\/v2\/media?parent=247434"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.europesays.com\/ai\/wp-json\/wp\/v2\/categories?post=247434"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.europesays.com\/ai\/wp-json\/wp\/v2\/tags?post=247434"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}