Microsoft package carried a cloud-credential stealer
A credential stealer in Microsoft's agent-framework PyPI package ran at Python startup to harvest cloud secrets; PyPI quarantined both malicious versions.
The credential stealer planted in Microsoft’s agent-framework PyPI package ran during normal Python startup in affected environments, even when nothing imported the package. Two malicious versions, 1.26.1 and 1.26.2, were published on November 17, 2026 under Microsoft’s official project, which pulls roughly 200,000 downloads a month. Both kept their dependency on the legitimate agent-framework-core 1.26.0, so the framework behaved normally while the stealer worked in the background.
The trick is the .pth file. Python processes .pth files in site-packages at interpreter startup, and any line beginning with import gets executed. That means a package can run code every time the interpreter starts, with no import of the package itself required. Socket and StepSecurity report that version 1.26.1 shipped agent_framework_meta.pth, which executed the stealer in agent_framework_meta/_telemetry.py at startup. Version 1.26.2 restored the original package initializer and moved the malicious code into af_runtime_diag.pth and af_runtime_diag.py. The mechanism was the same, under different filenames.
Version 1.26.1 harvested secrets from environment variables, local configuration files, and other running processes where permissions allowed, targeting Azure, AWS, GitHub, Docker, Hugging Face, OpenAI, and other services. It also attempted to obtain Azure managed identity access tokens and Azure DevOps OIDC tokens, which could hand the attacker access to additional cloud resources. Version 1.26.2 added GitHub Actions OIDC token requests and searches of GitHub runner directories. Both versions sent what they collected to the same attacker-controlled endpoint, https://webhook[.]site/d381fd80-ec62-42ad-8f5c-d1b15103c9bb.
The timeline around PyPI’s response is the part worth sitting with. PyPI quarantined the first malicious release. About 2.5 minutes later the attacker published a second version, which was quarantined roughly eight minutes after that. Publishing a second release after the first was quarantined means the attacker still held publishing access to Microsoft’s official project through the quarantine. Quarantining one release did nothing to cut off the publishing access behind it. It remains unclear how the attacker gained the ability to publish under Microsoft’s project, and Microsoft had not responded to BleepingComputer’s questions about the point of breach by publication time.
The attack was discovered and documented by multiple firms, including Socket, StepSecurity, and Ox Security.
What this does to your assumptions
Two things about this one break common habits. First, the stealer runs at Python startup, not when you import the package. A developer who pinned the bad version, installed it, and never wrote a line of code against the framework still ran the stealer the next time a normal Python startup happened in that environment. That is also why the advice covers pip and not only Python: running pip can initiate Python startup too. Second, the framework still worked. Nothing broke, no import failed, so there was no functional signal that anything was wrong. Keeping the dependency on the real agent-framework-core let the framework behave normally.
The OIDC targeting is the detail that should worry anyone running these builds in CI. Harvesting a static AWS key off disk is bad but boundable; you rotate the key. GitHub Actions OIDC tokens and Azure DevOps OIDC tokens are short-lived, but they are the thing your pipelines trade for cloud access, and version 1.26.2 requested GitHub Actions OIDC tokens and searched GitHub runner directories. Those runner-directory searches read as code aimed squarely at a CI environment.
What to do if you pulled either version
If you installed 1.26.1 or 1.26.2, treat the environment as compromised. Isolate it, and do not run Python or pip in it until it is secured, because startup is the trigger. Rebuild from a known-clean environment on the safe 1.26.0 release. Rotate every credential that was within reach of the compromised environment, not only the ones you think were used; the stealer harvested from environment variables, config files, and other processes where permissions allowed.
To scope the actual damage rather than assume worst case, pull your egress logs and search for the specific webhook.site path above. Separate blocked requests from completed transfers. A connection your egress controls refused is a different incident from one that finished, and your egress logs are where you can tell them apart.
Keep Reading
supply-chainA malicious LiteLLM release stole credentials on install
LiteLLM 1.107.0 on PyPI shipped a credential stealer and an hourly backdoor that ran at every Python startup; the upstream GitHub source never had them.
github-actionsGhostAction hit 318 repositories in 16 minutes
The GhostAction campaign injects fake security-audit workflows into GitHub repos to exfiltrate secrets from Actions settings and full git history.
hardware-walletsTrezor firmware 2.13.1 blocks the implant, not past captures
Trezor confirmed hidden implants in three Safe 5 wallets sold by reseller CryptoBilis that copy recovery phrases off the screen and send them to attackers.
Latest on the Wire
Full wire →- Australian IVF Provider Monash Hit by Data BreachBleepingComputer
- Brazilian Court Fines Google for Fake-Doctor YouTube ChannelsHacker News
- Claude Controls a Drone to Center Wall PicturesHacker News
- Datasette Agent: AI Assistant for SQLite DatabasesSimon Willison
New signal daily · RSS
Stay in the loop
New writing delivered when it's ready. No schedule, no spam.