SOURCE // NEWS

Microsoft Repos Hacked to Target Claude Code and Gemini CLI Users with Malware

Microsoft Repos Hacked to Target Claude Code and Gemini CLI Users with Malware

Microsoft has abruptly shut down dozens of its official GitHub repositories, including those associated with Azure and AI developer agents, amid an ongoing investigation into a data breach. The incident, confirmed by cybersecurity researchers and a statement given to 404 Media, represents a highly targeted supply chain threat.

According to #security experts, hackers compromised these trusted repositories to plant credential-harvesting malware. The malicious payloads are designed to execute when developers interact with the source code using next-generation AI coding tools, such as Anthropic's Claude Code or Google's Gemini CLI.

While the full scale and origins of the compromise remain under investigation, Microsoft has taken the preemptive measure of disabling more than 70 repositories. Security researchers pointed to a specific, previously compromised software package that served as the entry point for hackers to compromise these high-reputation Microsoft assets.

[AgentUpdate Depth Analysis] This targeted attack on Claude Code and Gemini CLI users via compromised Microsoft repositories marks a pivotal inflection point for AI Agent security. Unlike traditional static packages, autonomous AI Coding Agents operate with broad local execution privileges, making them a high-value vector for interactive exploitation. If an agent parses untrusted, maliciously-crafted code without rigid sandbox isolation, payloads can be executed automatically. This incident underscores that the productivity gains of AI Agents introduce a highly complex attack surface. Going forward, the AI Agent ecosystem must transition toward zero-trust architectures and mandatory run-time sandboxing. Relying solely on the reputation of upstream repositories is no longer sufficient when agents autonomously fetch, interpret, and run external code.