Agents and CodeHigh importance
Official Microsoft Agent Framework package on PyPI gains two versions with credential stealer, published 33 minutes apart
Versions 1.26.1 and 1.26.2 of the agent-framework package, the Python metapackage for Microsoft Agent Framework to build AI agents, were published on PyPI on Tuesday (11/17), 33 minutes apart, by someone who used valid publishing credentials, according to Aikido Security. The malicious code ran every time Python started, even without the package being imported, and collected environment variables that looked like secrets, credential files for Azure, npm, Git, Docker, and Hugging Face, as well as tokens for Azure DevOps pipelines and, in the second version, GitHub Actions. The data was sent to a webhook.site address. Both versions were removed around 9:20 PM (UTC) the same day, and version 1.26.0 became the latest again. The recommendation is to pin version 1.26.0, look for the agent_framework_meta.pth or af_runtime_diag.pth files, and rotate all secrets that the affected machines could access.
Published in edition no. 38 of Noticiário do Joãozinho ·
Translated by Joãozinho AI from the original Brazilian Portuguese edition. Facts, numbers and sources are the same as in the original; quotes, video titles and source names stay in their original language. Read the original in Portuguese
Original source
https://aikido.dev/blog/two-malicious-agent-framework-releases-hit-pypi-in-33-minutes