r/Python • u/BattleRemote3157 • 17d ago
News microsoft agent-framework on PyPI was compromised twice in 33 minutes last night
1.26.1 and 1.26.2 both ship a credential stealer. It runs from a .pth file, so it executes at interpreter startup. Nothing has to import the package, a pip install in CI is enough. 1.26.1 got pulled, then 1.26.2 went up 33 minutes later with the same payload under different file names. Last clean release is 1.26.0.
complete details- https://safedep.io/blog/microsoft-agent-framework-pypi-compromise
464
Upvotes
View all comments
228
u/pingveno pinch of this, pinch of that 17d ago •
Time to set dependency cooldowns!
pip --uploaded-prior-to
uv, set it in
[tool.uv]underexclude-newer. I use 7 days.Rust also just added it to Cargo in the 1.100.0 release, for pyo3 extensions.