For the second time in weeks, Microsoft's verified open-source packages were compromised with credential-stealing malware, affecting 73 packages on GitHub. The attack, linked to threat actor TeamPCP, uses stolen OIDC tokens and spreads laterally through cloud infrastructures.
<p>Dozens of cryptographically verified open source packages from Microsoft were compromised late last week to add advanced credential-stealing code that was triggered when developers opened them in AI coding agents.</p>
<p>In all, <a href="https://www.stepsecurity.io/blog/miasma-worm-hits-microsoft-again-azure-functions-action-and-72-other-repositories-disabled-after-supply-chain-attack-targeting-ai-coding-agents">multiple</a> researchers <a href="https://opensourcemalware.com/blog/miasma-reaches-azure">said</a>, 73 packages were flagged as malicious when automated systems on GitHub blocked them on the platform. Rather than noting they are malicious—and that developers who used AI agents to work with them should assume their systems are compromised—the Microsoft-owned GitHub said it disabled the packages “due to a violation of GitHub's terms of service.” The text went on to encourage the package owner to contact GitHub.</p>
<h2>Devs: Assume compromise and proceed accordingly</h2>
<p>It wasn’t until Monday that Microsoft even raised the possibility the packages were infected. In an email, the company stated: “We have temporarily removed some repositories as we investigate potential malicious content.”</p><p><a href="https://arstechnica.com/security/2026/06/for-the-2nd-time-in-weeks-microsoft-packages-laced-with-credential-stealer/">Read full article</a></p>
<p><a href="https://arstechnica.com/security/2026/06/for-the-2nd-time-in-weeks-microsoft-packages-laced-with-credential-stealer/#comments">Comments</a></p>
# For the 2nd time in weeks, Microsoft packages laced with credential stealer
Source: [https://arstechnica.com/security/2026/06/for-the-2nd-time-in-weeks-microsoft-packages-laced-with-credential-stealer/](https://arstechnica.com/security/2026/06/for-the-2nd-time-in-weeks-microsoft-packages-laced-with-credential-stealer/)
Dozens of cryptographically verified open source packages from Microsoft were compromised late last week to add advanced credential\-stealing code that was triggered when developers opened them in AI coding agents\.
In all,[multiple](https://www.stepsecurity.io/blog/miasma-worm-hits-microsoft-again-azure-functions-action-and-72-other-repositories-disabled-after-supply-chain-attack-targeting-ai-coding-agents)researchers[said](https://opensourcemalware.com/blog/miasma-reaches-azure), 73 packages were flagged as malicious when automated systems on GitHub blocked them on the platform\. Rather than noting they are malicious—and that developers who used AI agents to work with them should assume their systems are compromised—the Microsoft\-owned GitHub said it disabled the packages “due to a violation of GitHub’s terms of service\.” The text went on to encourage the package owner to contact GitHub\.
## Devs: Assume compromise and proceed accordingly
It wasn’t until Monday that Microsoft even raised the possibility the packages were infected\. In an email, the company stated: “We have temporarily removed some repositories as we investigate potential malicious content\.”
The incident is the second supply\-chain attack in as many months to breach an official Microsoft repository account\. In mid May, the firm StepSecurity[documented](https://www.stepsecurity.io/blog/microsofts-durabletask-pypi-package-compromised-in-supply-chain-attack)the compromise of Microsoft’s durabletask Python SDK on PyPI\. The[package](https://learn.microsoft.com/en-us/azure/durable-task/common/what-is-durable-task)is a framework for building fault\-tolerant workflows and orchestrations to automate distributed transactions and other workflows\. It receives 400,000 downloads per month\.
The compromise packages executed a 28 KB payload that steals credentials from AWS, Azure, GCP, Kubernetes, password managers, and over 90 developer tool configurations\. It then spreads laterally through cloud infrastructures to infect other developer machines\. The attack, which has been linked to a threat actor tracked as TeamPCP, poisoned the durabletask package after compromising Microsoft credentials for publishing the package\. The technique allows attackers to bypass the repository’s build pipeline entirely\.
The malware used in the attack is tracked as Miasma\. It’s essentially a clone of TeamPCP’s Mini Shai\-Hulud toolkit, which the threat actor open\-sourced recently\. Security firm Cloudsmith[said](https://cloudsmith.com/blog/miasma-worms-path-of-destruction)the malware harvests OIDC \(OpenID\-Connect\) token credentials that are used in SLSA \(Supply\-chain Levels for Software Artifacts\)[provenance attestation](https://docs.github.com/en/actions/concepts/security/artifact-attestations), a method for providing cryptographically signed guarantees of a software’s integrity\.
As was the case in the May compromise of Microsoft’s durabletask, the one last week made use of the functionality to steal a legitimate Microsoft OIDC token\. It was also used in a separate supply\-chain attack poisoning[dozens of Red Hat packages](https://arstechnica.com/security/2026/06/dozens-of-red-hat-packages-backdoored-through-its-offical-npm-channel/)\.
Microsoft's open source projects on GitHub were hacked to inject password-stealing malware targeting AI developers using tools like Claude Code and Gemini CLI. The company temporarily removed dozens of repositories and is investigating the breach.
The npm account 'atool' was compromised, leading to the publication of 637 malicious versions across 317 packages. The payload harvests credentials, establishes persistence via AI coding tools and system services, and exfiltrates data through GitHub.
Russian state-backed hackers (Forest Blizzard/APT28) used known vulnerabilities in old routers to hijack DNS settings and steal OAuth authentication tokens from Microsoft Office users, compromising over 200 organizations and 5,000 consumer devices without deploying malware.
Dozens of Red Hat packages were backdoored through the company's official NPM channel using the Shai-Hulud worm, which compromised Red Hat's CI/CD pipeline via GitHub Actions OIDC. Red Hat has removed the malicious packages and stated they were internal only, but the attack underscores escalating supply-chain risks.
A hacker group called TeamPCP is conducting an unprecedented wave of software supply chain attacks, compromising hundreds of open source tools and breaching companies including GitHub, Anthropic, and Mercor.