<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/malicious-agent-framework-1-26-1-and-1-26-2-on-pypi-steal-ci-cd-credentials-rbqb2cskr" -->

---
title: Malicious agent-framework 1.26.1 and 1.26.2 on PyPI...
description: Two malicious versions of Microsoft's agent-framework PyPI package, 1.26.1 and 1.26.2, shipped a credential stealer. They were published 33 minutes apart on...
canonical: https://daily.dev/posts/malicious-agent-framework-1-26-1-and-1-26-2-on-pypi-steal-ci-cd-credentials-rbqb2cskr
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Malicious agent-framework 1.26.1 and 1.26.2 on PyPI steal CI/CD credentials | daily.dev
og:description: Two malicious versions of Microsoft's agent-framework PyPI package, 1.26.1 and 1.26.2, shipped a credential stealer. They were published 33 minutes apart on...
og:url: https://daily.dev/posts/malicious-agent-framework-1-26-1-and-1-26-2-on-pypi-steal-ci-cd-credentials-rbqb2cskr
og:image: https://api.daily.dev/og/posts/rBqB2cSkr.png
og:image:alt: Malicious agent-framework 1.26.1 and 1.26.2 on PyPI steal CI/CD credentials
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Malicious agent-framework 1.26.1 and 1.26.2 on PyPI steal CI/CD credentials

**[Collections](https://daily.dev/sources/collections)** · 2 min read · 8 upvotes · 0 comments

## Summary

Two malicious versions of Microsoft's agent-framework PyPI package, 1.26.1 and 1.26.2, shipped a credential stealer. They were published 33 minutes apart on Nov 17, 2026, and the package averages about 190,000 downloads a month. The malware runs via a `.pth` Python startup hook, so it fires every time Python starts, even without an import. It targets Azure, Azure DevOps, and GitHub Actions secrets and exfiltrates them to a webhook.site URL. Both versions were pulled from PyPI by 21:20 UTC. Pin to 1.26.0 or earlier, remove the bad versions, and rotate every secret on affected machines, including CI runners.

## Content

Two malicious versions of Microsoft's official `agent-framework` package, 1.26.1 and 1.26.2, were published to PyPI on November 17, 2026. They stole cloud and CI/CD credentials. The package gets roughly 190,000 to 200,000 downloads a month, and the last clean release is 1.26.0.

## Timeline

Version 1.26.1 went up at 20:35 UTC and 1.26.2 followed at 21:08 UTC, 33 minutes later. Elastic's monitor flagged 1.26.1 as malicious six minutes after it appeared. Both versions were gone from PyPI by 21:20 UTC, and PyPI quarantined them. No CVE has been assigned yet.

The attacker republished 1.26.2 about 2.5 minutes after 1.26.1 was quarantined. That suggests the publishing access was still compromised at that point. Both releases came from a maintainer account created the same day. One report says the compromise apparently came through unauthorized access to a Microsoft GitHub organization admin account, and Microsoft's agent-framework GitHub repo is currently offline.

## What the malware did

The payload installed a `.pth` startup hook, with file names such as `agent_framework_meta.pth` or `af_runtime_diag.pth`. Python runs these on every interpreter launch, so the stealer ran even if nobody imported the package.

It collected:

- environment variables, plus secrets from up to 300 running processes read via /proc
- up to 60 credential files, including .npmrc, .netrc, Docker configs, and Azure CLI token caches
- Azure, AWS, GitHub, pip, npm, Docker, Hugging Face, and OpenAI credentials (1.26.1 covered most of these; 1.26.2 added GitHub Actions OIDC token requests)

It didn't just copy what was lying around. It also requested fresh Azure managed identity, Azure DevOps, and GitHub Actions tokens, using OIDC and IMDS inside CI pipelines.

Everything was zlib-compressed, base64-encoded, and POSTed to a single webhook.site endpoint with a `?t=telemetry` parameter, dressed up as a telemetry module. The payloads don't download or run additional code. The package also still installed the genuine 1.26.0 framework code, so things kept working and the compromise was easy to miss.

## What to do

- Pin `agent-framework==1.26.0` or earlier.
- If you installed 1.26.1 or 1.26.2, remove it, isolate the machine, and treat every secret on that host as compromised.
- Rotate Azure, AWS, GitHub, npm, PyPI, Docker, and Hugging Face tokens, then rebuild from the clean release.
- Check build agents for the `.pth` files named above.

OX Security, Aikido, Endor Labs, Elastic Security Labs, and Socket have all published analysis, and Socket's includes indicators of compromise.

## Questions this post answers

### What versions of the agent-framework PyPI package are malicious?

Versions 1.26.1 and 1.26.2 of Microsoft's agent-framework package on PyPI contain a credential stealer. They were published 33 minutes apart on November 17, 2026. The malware uses a `.pth` file, a Python startup hook that runs every time Python starts, even without the package being imported. Pin to 1.26.0 or earlier instead.

_Teams pinning Python dependencies after supply chain scares can track fast-moving advisories like this on daily.dev._

### What data does the malicious agent-framework PyPI package steal?

It targets Azure, Azure DevOps, and GitHub Actions secrets along with other CI/CD credentials, sending stolen data to a webhook.site URL. Because the malware's `.pth` startup hook fires on every Python process start, any machine that installed version 1.26.1 or 1.26.2 should be treated as fully compromised, including CI runners.

_Developers auditing CI/CD credential exposure after a supply chain hit can follow fast-moving writeups like this on daily.dev._

### How do I protect my project from the malicious agent-framework PyPI versions?

Pin `agent-framework==1.26.0` or earlier, and remove versions 1.26.1 or 1.26.2 if installed. Rotate every secret on any machine that had either version installed, since the credential-stealing startup hook runs on every Python launch and could reach anything that machine could access, including CI runners.

_Engineers responding to this kind of supply chain incident can keep up with remediation steps on daily.dev._

## Community take

How the wider developer community reacted, aggregated from 2 discussions and 12 comments across x (as of 2026-11-18).

**TL;DR:** Discussion confirms the agent-framework PyPI compromise is real and focuses on practical mitigation: the malicious .pth hook fires on any Python startup in an affected environment, so rotation and auditing CI images matter more than just upgrading locally.

**Sentiment:** 0% positive · 15% mixed · 85% skeptical

**The pushback**

- The .pth startup hook executes on every Python process in the venv, not just the one that imports the package, so affected environments should be considered fully compromised.
- A clean local venv isn't sufficient; CI runners and container images still referencing 1.26.1/1.26.2 remain at risk.
- The GitHub Actions OIDC token theft only succeeds if a workflow grants id-token: write, so scoping that permission narrowly limits exposure.

**By community**

- x (skeptical): Replies treat the compromise as confirmed and serious, sharing technical detail about the startup hook and urging credential rotation and CI image audits.

**Open questions**

- Whether all downstream CI/CD images and cached environments still contain the malicious versions beyond what's been pulled from PyPI.

**Highlights**

> @SocketSecurity a startup hook in site-packages fires for every python process in that venv, not just the one that imported it, so the image is burned as soon as it resolves. pin the lockfile and stop letting agents pip install on their own.
> — [johnroodepic on x](https://x.com/johnroodepic/status/2122869779975573524)

> @SocketSecurity I'd also check the container images CI and production still use for agent-framework 1.26.1 or 1.26.2. A clean venv on your laptop won't help if tomorrow's CI run starts Python from an image that still has the affected package.
> — [SiuHarry202601 on x](https://x.com/SiuHarry202601/status/2122873341744959843)

> @SocketSecurity Worth adding: the GitHub Actions OIDC token grab in 1.26.2 only works if the workflow grants id-token: write. Set permissions at the top of every workflow and give id-token: write only to the job that actually deploys.
> — [caguilar51 on x](https://x.com/caguilar51/status/2122860082627276838)

> @SocketSecurity the .pth hook runs on every python start, no import needed. worth checking your runners find $(python3 -c 'import site;print(*site.getsitepackages())') -maxdepth 1 -name '*.pth' 2>/dev/null | xargs grep -l import anything that isn't setuptools or an editable install, open it
> — [pratikbin on x](https://x.com/pratikbin/status/2122896974093717893)

**Source threads**

- [x](https://x.com/SocketSecurity/status/2122832360366325864) · 48 points · 12 comments
- [x](https://x.com/CitePulseAI/status/2122814458427044270) · 0 points · 0 comments

## Similar posts on daily.dev

- [PyPI package with 1.1M monthly downloads hacked to push infostealer](https://daily.dev/posts/pypi-package-with-1-1m-monthly-downloads-hacked-to-push-infostealer-rlyztwgm9) · BleepingComputer · 1 upvotes · 0 comments
- [Massive PyPI Supply Chain Attack Harvests Cloud Credentials via Python Startup Hooks](https://daily.dev/posts/massive-pypi-supply-chain-attack-harvests-cloud-credentials-via-python-startup-hooks-pbx2b1ksk) · Orca Security Blog · 0 upvotes · 0 comments
- [Malicious Release of elementary-data PyPI Package Steals Cloud Credentials from Data Engineers](https://daily.dev/posts/malicious-release-of-elementary-data-pypi-package-steals-cloud-credentials-from-data-engineers-shmaxcjof) · Snyk · 0 upvotes · 0 comments

---

Tags: [#security](https://daily.dev/tags/security), [#cyber](https://daily.dev/tags/cyber), [#python](https://daily.dev/tags/python), [#cicd](https://daily.dev/tags/cicd)

[View this post on daily.dev](https://daily.dev/posts/malicious-agent-framework-1-26-1-and-1-26-2-on-pypi-steal-ci-cd-credentials-rbqb2cskr)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Malicious agent-framework 1.26.1 and 1.26.2 on PyPI steal CI/CD credentials","url":"https://daily.dev/posts/malicious-agent-framework-1-26-1-and-1-26-2-on-pypi-steal-ci-cd-credentials-rbqb2cskr","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/malicious-agent-framework-1-26-1-and-1-26-2-on-pypi-steal-ci-cd-credentials-rbqb2cskr"},"datePublished":"2026-11-18T00:41:49.167Z","dateModified":"2026-11-18T20:14:56.720Z","description":"Two malicious versions of Microsoft's agent-framework PyPI package, 1.26.1 and 1.26.2, shipped a credential stealer. They were published 33 minutes apart on...","isAccessibleForFree":true,"articleSection":"Collections","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Collections","logo":"https://media.daily.dev/image/upload/s--fk_6ycEi--/f_auto,q_auto/v1780996001/logos/collections?_a=BAMAMiWQ0","url":"https://daily.dev/sources/collections"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/malicious-agent-framework-1-26-1-and-1-26-2-on-pypi-steal-ci-cd-credentials-rbqb2cskr","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":8},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"security,cyber,python,cicd","timeRequired":"PT2M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Collections","item":"https://daily.dev/sources/collections"},{"@type":"ListItem","position":3,"name":"Malicious agent-framework 1.26.1 and 1.26.2 on PyPI steal CI/CD credentials"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/malicious-agent-framework-1-26-1-and-1-26-2-on-pypi-steal-ci-cd-credentials-rbqb2cskr#faq","mainEntity":[{"@type":"Question","name":"What versions of the agent-framework PyPI package are malicious?","acceptedAnswer":{"@type":"Answer","text":"Versions 1.26.1 and 1.26.2 of Microsoft's agent-framework package on PyPI contain a credential stealer. They were published 33 minutes apart on November 17, 2026. The malware uses a `.pth` file, a Python startup hook that runs every time Python starts, even without the package being imported. Pin to 1.26.0 or earlier instead. Teams pinning Python dependencies after supply chain scares can track fast-moving advisories like this on daily.dev."}},{"@type":"Question","name":"What data does the malicious agent-framework PyPI package steal?","acceptedAnswer":{"@type":"Answer","text":"It targets Azure, Azure DevOps, and GitHub Actions secrets along with other CI/CD credentials, sending stolen data to a webhook.site URL. Because the malware's `.pth` startup hook fires on every Python process start, any machine that installed version 1.26.1 or 1.26.2 should be treated as fully compromised, including CI runners. Developers auditing CI/CD credential exposure after a supply chain hit can follow fast-moving writeups like this on daily.dev."}},{"@type":"Question","name":"How do I protect my project from the malicious agent-framework PyPI versions?","acceptedAnswer":{"@type":"Answer","text":"Pin `agent-framework==1.26.0` or earlier, and remove versions 1.26.1 or 1.26.2 if installed. Rotate every secret on any machine that had either version installed, since the credential-stealing startup hook runs on every Python launch and could reach anything that machine could access, including CI runners. Engineers responding to this kind of supply chain incident can keep up with remediation steps on daily.dev."}}]}
```

