Microsoft Hacked: Malware Planted in GitHub Repos Targets Claude and Gemini Users

Microsoft has shut down over 70 of its own GitHub repositories, including those related to Azure and AI coding agents, after a breach where hackers planted malware that harvests credentials from AI coding tool users, according to 404 Media and security researchers.
Attack Vector: Malware in Microsoft's Own Repos
Hackers compromised Microsoft's repositories and planted malicious code. The malware is designed to steal credentials when opened in AI coding tools like Claude Code or Gemini CLI. One researcher identified a specific compromised package but details are limited as Microsoft investigates.
Scope and Response
Microsoft took the unusual step of disabling more than 70 of its own repositories across GitHub. The repositories included code for Azure and AI coding agent integrations, making the breach particularly dangerous for developers using these tools.
Impact on AI Coding Agents
AI coding agents like Claude Code and Gemini CLI often execute code from repositories to perform tasks. If a developer clones a compromised repo and opens it in one of these tools, the malware can silently exfiltrate API keys, tokens, or other credentials. The attack specifically targets users of these popular AI CLI tools.
What Developers Should Do
If you have recently cloned any Microsoft GitHub repositories — especially those related to Azure or AI coding — check for suspicious files or dependencies. Avoid running untrusted code in Claude Code or Gemini CLI. Rotate any credentials that may have been exposed. Monitor GitHub for official updates from Microsoft on which repositories were affected.
📖 Read the full source: HN AI Agents
👀 See Also

OpenClaw SOC Agent Integration for SIEM Home Lab Threat Hunting
A Reddit user shares their open-source SIEM setup called Red Threat Redemption on Debian 13, integrating Elasticsearch, Kibana, Wazuh, Zeek, and pfSense with Suricata, then adds an AI agent for automated threat correlation, hunting, and alert triage.

Securing OpenClaw Infrastructure with Pomerium Identity-Aware Proxy
Use Pomerium as an identity-aware proxy for zero-trust authentication to secure OpenClaw server access.

Ward: Open-source tool intercepts npm installs to block supply chain attacks for Claude Code users
Ward is an open-source tool that hooks into package managers to check every package before install scripts run. When Claude Code executes npm install, Ward automatically screens packages for malware, typosquats, suspicious scripts, and version anomalies.

Claude Cowork 'Allow All Browser Actions' Permission Security Concerns and Proposed Fixes
A Reddit user highlights that Claude Cowork's 'Allow all' button grants permanent, unrestricted browser access across all future sessions with no visibility, boundaries, or expiration, creating security risks. The post proposes session-scoped or skill-scoped permissions as safer defaults.