GitHub Security and PyPI quarantine backdoored AI agent-framework package stealing cloud and developer tokens

· GitHub

GitHub Security and PyPI quarantine backdoored AI agent-framework package stealing cloud and developer tokens

GitHub reported that two compromised versions of the agent-framework Python package contained credential stealers. The malicious code ran automatically on Python startup to steal developer secrets.

Key numbers

What was published

Source: GitHub — Malicious code in agent-framework (PyPI) · GHSA-764m-3ppc-5m73 · GitHub Advisory Database · GitHub

Anyone who installed agent-framework versions 1.26.1 or 1.26.2 should treat their environment as exposed and rotate all accessible secrets immediately.

GitHub published an advisory disclosing malicious releases of the agent-framework package on PyPI. Versions 1.26.1 and 1.26.2 were uploaded on 2026-11-17 and later taken down. The last clean release remains 1.26.0.

The compromised packages placed an infostealer that triggered automatically whenever Python launched, even if agent_framework was never imported. Attackers used executable startup hooks: agent_framework_meta.pth in version 1.26.1 and af_runtime_diag.pth in version 1.26.2. The injected script detached into a background process using os.fork and muted runtime errors to hide its activity.

1.26.1First compromised release
1.26.2Second compromised release
80File search limit in 1.26.2
1.26.0Last clean release

What was stolen

The background process gathered system details, process memory, and local configuration files before exfiltrating the data via HTTP POST to an external webhook. Targeted assets included:

Source: https://github.com/advisories/GHSA-764m-3ppc-5m73

Tags: Agentic AI, Credential Theft, GitHub, Microsoft, PyPI, Python, Supply chain

Read on AI Gist