Skip to content
Brief Security & Trust ·

Two malicious agent-framework releases on PyPI carried a secret stealer, Aikido says

Aikido Security says Microsoft's Python package for building AI agents was hit on Nov 17, 2026.

In brief
  • Two malicious versions of agent-framework, 1.26.1 and 1.26.2, were on PyPI for about 45 minutes on Nov 17. Both have been removed.
  • Aikido says they were built to send Azure, Azure DevOps and GitHub Actions secrets to an outside web address. Aikido does not say how many people installed them.

Aikido Security said two malicious releases of agent-framework, 1.26.1 and 1.26.2, appeared on PyPI, Python's public package index, on Nov 17, 2026. The package is the main one for Microsoft Agent Framework, a toolkit for building AI agents. Version 1.26.1 went up at 20:35 UTC, and 1.26.2 followed 33 minutes later. Aikido says both were gone by about 21:20 UTC.

Aikido says the code ran on every Python start, because Python executes import lines in .pth files at launch. Nothing had to import the package. It copied environment variables with names such as TOKEN or SECRET, including those of other running processes, and asked for Azure access tokens. Version 1.26.2 also went after GitHub Actions identity tokens, which let an attacker act as a workflow. Aikido says it is not yet known how the attacker got publishing access. It gives no count of installs.

Aikido says the attacker replaced the first release within 33 minutes, so blocking one filename or hash was not enough. The update also kept the same dependency pin, which makes it look routine. Leaders should ask which builds installed fresh copies in that window, and whether loose rules such as agent-framework>=1.26 are allowed in CI. For affected machines, Aikido says to replace every secret and use 1.26.0.

A WebPulse Brief: a short report of an important event, written by the WebPulse Newsroom with AI assistance and checked against the reporting below. When there is more to explain, we follow up with a full story. How we use AI.

Reporting: Aikido Security.