微软在恶意 PyPI 包事件后继续下线 Agent Framework 仓库
微软就其在出现窃取凭据的 Python 包后继续将 Agent Framework 仓库下线一事致歉,但未给出恢复访问的日期。据该公司称,恶意代码是通过 PyPI 上的两个未经授权的版本分发的,而非通过该仓库本身。
受影响的是 agent-framework Python 元包的 1.26.1 和 1.26.2 两个版本,它们于 11 月 17 日被上传到 PyPI,现已被移除。微软首席产品架构师 Dan Taylor 在 11 月 25 日的更新中表示,这两个版本都包含窃取凭据的代码,在微软确认安全之前仓库将持续不可用。他强调 Agent Framework 并未被 discontinued,其他 Agent Framework Python 包、.NET 包和 Semantic Kernel 均未受影响,下线仓库是必要的预防措施。
任何安装过 1.26.1 或 1.26.2 的用户都应将受影响的机器、容器或 CI 任务视为已遭入侵,因为即使从未导入该包,恶意代码也会在 Python 启动时运行。微软建议轮换该环境可访问的所有凭据,从干净镜像重新构建而非原地降级,移除缓存和镜像副本,并审查云和 CI 审计日志。未安装这两个版本的用户应在获得进一步指引前将 agent-framework 固定为 1.26.0,或固定所需的特定子包。
Microsoft keeps Agent Framework repo offline after malicious PyPI releases
Microsoft has apologized for keeping its Agent Framework repository offline after credential-stealing Python packages were published, but has given no date for restoring access. The malicious code was distributed through two unauthorized releases on PyPI, not through the repository itself, according to the company.
The malicious versions of the agent-framework Python meta-package, 1.26.1 and 1.26.2, were uploaded to PyPI on November 17 and have since been removed. In a November 25 update, Microsoft principal product architect Dan Taylor said both releases contained code that steals credentials and that the repository would remain unavailable until Microsoft can establish it is safe to restore. He stressed that Agent Framework has not been discontinued, that other Agent Framework Python packages, .NET packages, and Semantic Kernel were not affected, and that keeping the repo offline is a necessary precaution.
Anyone who installed version 1.26.1 or 1.26.2 should treat the affected machine, container, or CI job as compromised, since the malicious code runs when Python starts even if the package is never imported. Microsoft advises rotating every credential accessible to that environment, rebuilding from a clean image rather than downgrading in place, removing cached and mirrored copies, and reviewing cloud and CI audit logs. Users who installed neither release should pin agent-framework to 1.26.0, or pin specific sub-packages, pending further guidance.
猎鹰不保存原文正文。标题与摘要用于快速发现信息,事实细节请以来源原文为准。