Skip to content

Malicious agent-framework 1.26.1 and 1.26.2 on PyPI steal Azure and CI credentials

Two malicious releases of Microsoft's agent-framework PyPI package ran a credential stealer on Python startup, targeting Azure and CI secrets.

Covered by 3 outlets

First reported Summary updated

Read the coverage
Public PoC
Not known
Exploited
Not known
Severity
Not rated

What happened

On 17 November 2026, a malicious version 1.26.1 of the agent-framework package was uploaded to PyPI, followed by version 1.26.2 about 33 minutes later.2

Both malicious versions dropped a .pth file that caused the credential stealer to run on every Python interpreter start, even if agent-framework was never imported.2

The stealer collected environment variables, credential files, and cloud identity tokens, then sent them to a webhook.site endpoint.3

The attacker appears to have compromised a client certificate and private key for Microsoft's ESRP signing service, and the first publish attempt from AWS was rejected by IP filtering.2

Both malicious versions were removed from PyPI by about 21:30 UTC, and version 1.26.0 is the most recent safe release.2

Who is affected

  • agent-framework (Microsoft Agent Framework) PyPI package, 1.26.1 and 1.26.23

Is there a public exploit?

Not known None of the sources mentions public exploit code yet.

Exploited in the wild?

Not known None of the sources reports attacks using it so far.

What to do

  • Pin agent-framework to version 1.26.0 and rebuild affected environments.1
  • Check for the presence of agent_framework_meta.pth or af_runtime_diag.pth in site-packages directories, including CI caches and container images.1
  • Treat every secret the machine could reach as stolen and rotate credentials.1
  • Review Entra ID sign-in logs for the service principals and federated credentials used by pipelines and workflows.1
  • Search proxy and DNS logs for connections to webhook.site.1

Indicators of compromise

As the sources state them. Domains and URLs are defanged ([.] and hxxp) so they are never a link; copy a block to search your logs.

URLs · 1
hxxps://webhook[.]site/d381fd80-ec62-42ad-8f5c-d1b15103c9bb?t=telemetry
SHA-256 hashes · 7
d27fa34414e6201d5e03e559ef634f020057554d7b3f4898dd5d7cd3e989e110
3d20a8bc91351a9a16b6db243b848ceca0206b7a8623b02d2af553a9c9f7e0a9
c275ccbe520ef3c0f02dc6a35389e427f9f1b4e0b12e140cd7bf7179ce143f02
39fa329f2a93f734b0bb8f5adb203ea3331d1ae479832a5015a54cb17aabd663
54d885b7d7161c9ed96489c66364c4bfbf635929166843bba10d97d46b5a2e1f
21f28e8517a10ffe431f8d68f5875c85eca4001ae6d118322b0a41873998eb5e
325e7e9f0ec94e41ad1a1b7a3f18a6b8b5bffece2e2b97b8d3369eb967452f93
What each indicator is
  • hxxps://webhook[.]site/d381fd80-ec62-42ad-8f5c-d1b15103c9bb?t=telemetry Exfiltration URL3
  • d27fa34414e6201d5e03e559ef634f020057554d7b3f4898dd5d7cd3e989e110 SHA256 of agent_framework-1.26.1 wheel3
  • 3d20a8bc91351a9a16b6db243b848ceca0206b7a8623b02d2af553a9c9f7e0a9 SHA256 of agent_framework-1.26.2 wheel3
  • c275ccbe520ef3c0f02dc6a35389e427f9f1b4e0b12e140cd7bf7179ce143f02 SHA256 of agent_framework_meta/init.py3
  • 39fa329f2a93f734b0bb8f5adb203ea3331d1ae479832a5015a54cb17aabd663 SHA256 of _telemetry.py3
  • 54d885b7d7161c9ed96489c66364c4bfbf635929166843bba10d97d46b5a2e1f SHA256 of af_runtime_diag.py3
  • 21f28e8517a10ffe431f8d68f5875c85eca4001ae6d118322b0a41873998eb5e SHA256 of agent_framework_meta.pth3
  • 325e7e9f0ec94e41ad1a1b7a3f18a6b8b5bffece2e2b97b8d3369eb967452f93 SHA256 of af_runtime_diag.pth3

For bug hunters

This incident is a supply-chain compromise that abused Python's .pth startup mechanism to execute a credential stealer. Bug bounty hunters should look for similar code execution or credential exposure issues in package registries, CI/CD pipelines, and build systems. Test for insecure handling of publishing credentials, misconfigured OIDC trust relationships, and secrets stored in environment variables or files that could be harvested by malicious code.

What to test

  • Check if CI/CD pipelines expose secrets in environment variables or files accessible to build steps.
  • Test for overly permissive OIDC trust configurations that allow token exchange for cloud access.
  • Review package publishing workflows for weak authentication or IP filtering bypasses.
  • Look for .pth files or other startup hooks in Python environments that could execute arbitrary code.

The Leaked secrets lesson Every Leaked secrets report

Written by bugbounty.wiki with AI from the 3 outlets below. Every statement above comes with a quote we checked against the source it cites (the numbers link to it); anything we could not check was left out. It can still be wrong, so read the coverage before relying on a detail.

Coverage

3 articles, oldest first. Each headline opens the outlet's own article.

  1. 1

    Aikido

    Two malicious agent-framework releases hit PyPI in 33 minutes
    “agent-framework 1.26.1 and 1.26.2, two malicious releases of Microsoft Agent Framework's PyPI meta-package published 33 minutes apart on Nov 17, 2026, run a credential stealer…”
  2. 2

    Wiz

    Microsoft agent-framework Compromised: Credential Stealer Targets Azure and CI Pipelines
    “At 20:35 UTC on November 17, 2026, a malicious version (1.26.1) of the agent-framework package (Microsoft Agent Framework) was uploaded to PyPI.”
  3. 3

Disclosed reports for Microsoft

View all

The newest public reports from its bug bounty program.

Reports about Leaked secrets

View all

Disclosed reports of the same bug class, clearest first.

More news

View all

Other stories from the last month, Leaked secrets first.