hn.today

Microsoft's agent-framework PyPI package Compromised with Credential Stealer

socket.dev23 points3 comments
Screenshot of Microsoft's agent-framework PyPI package Compromised with Credential Stealer

Microsoft’s PyPI package agent-framework was compromised on November 17, 2026, in versions 1.26.1 and 1.26.2. Both releases add Python .pth startup hooks that run automatically when Python starts, launching hidden credential-collection code in a background process or thread. Version 1.26.2 relocates the payload, so checking only the package’s usual initializer will not reveal it, and expands its focus on GitHub Actions. The collected data is compressed and sent over HTTPS to a shared webhook.site endpoint; the reported payloads do not fetch or run additional code.

The malware searches environment variables and other processes for secrets, reads configuration and credential files, and requests fresh cloud identity tokens. Targets include Azure and Azure DevOps credentials, Azure managed-identity tokens, GitHub Actions OIDC tokens, and secrets for AWS, GitHub, OpenAI, Hugging Face, and other services. It also checks files used by pip, npm, Git, Docker, and related tools. Anyone who installed either affected version should remove it and rotate potentially exposed credentials, particularly cloud and CI/CD tokens. The compromised wheel hashes, startup-hook filenames, payload names, and exfiltration address are provided as indicators for identifying affected systems.

Read on socket.dev3 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in Security

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.