{"id":"MAL-2026-20101","aliases":[],"title":"Malicious code in agent-framework (PyPI)","originalDescription":"Malicious releases of the legitimate \"agent-framework\" package (Microsoft Agent Framework). Versions 1.26.1 and 1.26.2 add a credential stealer that is not present in the last clean release, 1.26.0. Both releases were published on 2026-11-17 (1.26.1 at 20:35 UTC as a wheel only, 1.26.2 at 21:08 UTC) and have since been removed from PyPI. How it triggers: each wheel adds an executable .pth startup hook that imports a helper module. Python runs .pth files at every interpreter start, so the code executes as soon as the package is installed, without importing agent_framework. In 1.26.1 the files are agent_framework_meta.pth and agent_framework_meta/_telemetry.py, started from a hook added to agent_framework_meta/__init__.py. In 1.26.2 they are renamed to af_runtime_diag.pth and af_runtime_diag.py; agent_framework_meta/__init__.py is identical to the clean 1.26.0 and the module calls its own _start() on import, so the .pth is the only trigger. The helper detaches into a background process (os.fork, os.setsid), is guarded by the environment marker _AF_TEL, and silences all errors. The rest of the wheel matches 1.26.0 and the dependency is unchanged (agent-framework-core[all]==1.26.0). Wh","severity":{"cvss":null,"vector":null,"label":null},"exploitation":{"kev":null,"epss":null,"exploitDb":null},"affected":[],"references":[{"url":"https://pypi.org/project/agent-framework/1.26.2/","type":"package"},{"url":"https://pypi.org/project/agent-framework/1.26.1/","type":"package"},{"url":"https://opensourcemalware.com/blog/agent-framework-pypi-compromised","type":"web"},{"url":"https://bad-packages.kam193.eu/pypi/campaign/2026-11-compr-agent-framework","type":"web"}],"sources":[{"name":"osv","at":"2026-11-18T00:34:01.247Z","url":"https://osv.dev/vulnerability/MAL-2026-20101","license":"CC-BY 4.0","firstSeenAt":"2026-11-17T22:54:58.679Z"}],"firstSeenAt":"2026-11-17T22:54:58.679Z","publishedAt":"2026-11-17T21:55:49.000Z","modifiedAt":"2026-11-17T23:15:03.541Z"}