Skip to main content
MalwarePublished

agent-framework (PyPI) · Malicious Code

Affects agent-frameworkSource GCVE Database

0

Malicious package : remove agent-framework and rotate any secrets on hosts that installed it.

Data as of 17 Nov 2026, 23:52 UTC

Classification

Malicious package

Published to PyPI · OSV MAL-2026-20101

What to do

Remove agent-framework from every project, lockfile and image that pulls it in. Treat any host that installed it as compromised: rotate the credentials, tokens and keys it could read, from a clean machine.

Affected software

ProductAffectedFixed in
PyPIagent-frameworkAffected
  • =1.26.2
  • =1.26.1
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

Description

Malicious versions 1.26.1 and 1.26.2 of the legitimate Python package agent-framework (Microsoft Agent Framework) were published on PyPI containing a credential-stealing backdoor. These releases add a .pth startup hook that executes code on every Python interpreter start, harvesting environment variables, credential files, cloud tokens, and other sensitive data. The stolen data is compressed, encoded, and exfiltrated via HTTP POST to a remote server. The malicious versions have been removed from PyPI. Versions 1.26.0 and earlier are not affected. Users who installed the compromised versions should consider their environments exposed and rotate all accessible credentials and secrets.

References

Community reviews

Loading reviews…