AIINEWS

AIINEWS

Global intelligence on artificial intelligence and computing

Two agent-framework releases on PyPI carried cloud credential-stealing code

AIINEWS Editorial Board•security
22 November, 2026•2 min read
Two agent-framework releases on PyPI carried cloud credential-stealing code

Executive Briefing

“Security researchers reported that attackers placed credential-stealing code in two...”

Key Takeaways

  • 1.According to the research teams cited in the report, the malicious versions were 1.26.1 and 1.26.2, published 33 minutes apart on November 17, 2026.
  • 2.Socket said both versions installed Python startup hooks to collect credentials, environment data and cloud identity tokens. After installation, a .pth file caused the stealer to run whenever the interpreter started, even if a program did not import agent-framework.
  • 3.SafeDep said the code did more than read existing credentials. It also requested new tokens from the platform, including a federated token in the described Azure DevOps environment or managed-identity access tokens on Azure compute.
  • 4.The report says version 1.26.2 also sought GitHub Actions OIDC tokens and broadened its search for credential-related environment variables.
  • 5.Both versions had been quarantined on PyPI when the report was written. Guidance cited in the report recommended restoring version 1.26.0 in a clean environment and rotating exposed credentials from a clean system.

Security researchers reported that attackers placed credential-stealing code in two releases of the agent-framework package for Microsoft Agent Framework. PyPI has quarantined both versions.

Incident Details & Technical Context

According to the research teams cited in the report, the malicious versions were 1.26.1 and 1.26.2, published 33 minutes apart on November 17, 2026.

Socket said both versions installed Python startup hooks to collect credentials, environment data and cloud identity tokens. After installation, a .pth file caused the stealer to run whenever the interpreter started, even if a program did not import agent-framework.

SafeDep said the code did more than read existing credentials. It also requested new tokens from the platform, including a federated token in the described Azure DevOps environment or managed-identity access tokens on Azure compute.

The report says version 1.26.2 also sought GitHub Actions OIDC tokens and broadened its search for credential-related environment variables.

Both versions had been quarantined on PyPI when the report was written. Guidance cited in the report recommended restoring version 1.26.0 in a clean environment and rotating exposed credentials from a clean system.

Risk Assessment & Security Implications

The .pth startup mechanism makes a search for direct agent-framework imports insufficient. An environment with either version installed warrants review even if its application never uses the package.

Because the code could request newly issued tokens, replacing secrets stored in files may not address the whole risk. Reviewing identity access and activity in affected environments is relevant to recovery.

Mitigation & Factors to Watch

How the attackers obtained package-publishing access remains unclear.

The supplied account does not establish how many environments installed the two versions or how many credentials were actually taken.

Independently verified, edited, and published by AIINEWS Editorial Board
3-tier verified
Editorial standards
Share this intelligence report:
Expanded Perspectives & Intelligence

Related Dispatches & Deep Dives

Curated 8 specialized reports
Cloud recovery startup Dreeze launches Application Revival platform to solve cyber resilience gaps

Cloud recovery startup Dreeze launches Application Revival platform to solve cyber resilience gaps

Cloud startup Dreeze has emerged from stealth with 33 million dollars in seed funding and its Application Revival platform to address application recovery weaknesses in cloud environments. The company notes that restoring data alone is insufficient to bring systems back online without aligning underlying networks, identities, and external services.

2 min read2,187

Explore AIINEWS Intelligence Vault

Over 2,000 in-depth dispatches structured across 18 specialized tech & AI categories.

Browse all 18 categories
Two agent-framework releases on PyPI carried cloud... | AIINEWS