Latenode

Wiz says hijacked Microsoft agent-framework on PyPI stole secrets

A compromised Python package can execute at interpreter startup, not just at import time. That makes package incidents harder to contain and raises the need for registry monitoring, CI hold periods for fresh releases, and fast secret rotation when build runners are exposed.

Wiz says hijacked Microsoft agent-framework on PyPI stole secrets

Researchers say attackers uploaded two malicious releases of Microsoft’s agent-framework package to PyPI on November 17, turning a dependency update into a credential-stealing foothold.

In Wiz’s analysis, the tainted builds were 1.26.1 and 1.26.2, published 33 minutes apart. PyPI quarantined both the same day, and 1.26.0 is the last known clean version.

The package reportedly abused .pth files in site-packages, letting its payload run whenever Python started in that environment, even if agent-framework was never imported. Wiz says the stealer collected environment secrets along with Azure, GitHub, and OIDC-related credentials, then sent the data to a webhook.site endpoint.

Researchers also say 1.26.2 was uploaded after 1.26.1 had already been quarantined, suggesting the publisher account still had release access during the response window. For teams that touched these versions, the immediate work is to rebuild affected environments, rotate reachable secrets, and check for unexpected .pth files or webhook.site egress.

When models and APIs shift keep the workflow running

Connect the models and apps from stories like this in one scenario. If a vendor changes routing, pricing, or availability, you update the workflow — you don't start over.

Start Free

Free forever plan. No credit card required.

What should Latenode build?

Continue without a prompt →