Science & Tech · Cybersecurity · 3 hrs ago

Compromised Microsoft Python package stole developer credentials

Compromised Microsoft Python package stole developer credentials

Attackers uploaded two malicious versions of Microsoft's Agent Framework Python package to PyPI on November 17.

The open-source toolkit helps developers build AI agents, and the package has about 190,000 downloads a month.

The malware ran when Python started, even if users did not directly use the package, and could collect secrets from files, environment settings and cloud services.

The second version also sought authentication tokens from GitHub Actions, while both sent collected data to an attacker-controlled website.

The releases were quarantined on PyPI, and version 1.26.0 is identified as the latest clean release.

The way the attackers gained publishing access remains unknown, and Microsoft is investigating.

Users should isolate affected systems, rebuild them with a clean version and rotate exposed credentials, then check logs for signs that data was sent out.

4 sources

Related

What people are saying

SocketSecurity research firm
Both versions install Python startup hooks that silently collect credentials, environment data, and cloud identity tokens, then exfiltrate them to a webhook[.]site endpoint
via The Hacker News
Endor LabsSecurity research firm
Python executes import lines in .pth files on every interpreter start, so the stealer runs on any Python launch in an affected environment, including pip itself, whether or not anything imports Agent Framework.
via The Hacker News
SafeDepSecurity research firm
Besides reading credentials already on disk, the code asks the platform to issue new ones.
via The Hacker News
OpenSourceMalwareSecurity research group
That combination of passive theft and active token requests makes it especially dangerous in cloud build environments, because even short-lived tokens are useful when they're exfiltrated right away,
via The Register