APAIIF 亞太人工智能產業總會APAIIFAI Knowledge
Latest AI Technology

Plugin4Shell Zero-Click Vulnerability Shocks AI Security: Claude Code, OpenAI Codex, GitHub Copilot, Gemini CLI Hit by Supply Chain Attack — Microsoft Yet to Patch

September 22, 20263 Views
Plugin4Shell Zero-Click Vulnerability Shocks AI Security: Claude Code, OpenAI Codex, GitHub Copilot, Gemini CLI Hit by Supply Chain Attack — Microsoft Yet to Patch
AI安全
Plugin4Shell
供應鏈攻擊
AI編碼代理
零點擊漏洞

Plugin4Shell Zero-Click Vulnerability Shocks AI Security: Four Major AI Coding Agents Hit by Supply Chain Attack

Vulnerability Overview: A Supply Chain Crisis for AI Coding Agents

On September 18, 2026, security firm Air Security publicly disclosed a critical zero-click remote code execution (RCE) vulnerability named Plugin4Shell, affecting four major AI coding agents: Claude Code, OpenAI Codex, GitHub Copilot, and Google Gemini CLI.

The severity of this vulnerability lies in its "zero-click" nature — attackers can execute malicious code on target systems without any user interaction. Since AI coding agents typically run with the same system privileges as the user, a successful attack grants attackers complete access to local files, credentials, and connected production systems.

Air Security discovered the vulnerability in May 2026 and conducted responsible disclosure to vendors in June. By the time of public disclosure on September 18, vendor patch status varied significantly.

Technical Analysis: The Fatal Flaw in SHA-Pinning

Root Cause

Plugin4Shell is a supply chain vulnerability stemming from a fundamental flaw in how AI coding agents handle plugin installation.

These agents use SHA-pinning to ensure plugin security — locking plugins to specific, reviewed commit hashes. In theory, this should prevent plugin tampering. However, these agents fail to verify that the code actually fetched during installation matches the pinned hash.

Attack Vector

Attackers exploit the fact that some Git hosting services (like Bitbucket or self-hosted servers) allow creating branches named after hash values:

  1. Attacker creates a malicious branch named identically to a legitimate commit hash
  2. Pushes malicious code to that branch
  3. The AI agent is tricked into installing the malicious version during plugin installation
  4. The agent falsely reports that the legitimate pinned version is installed

Zero-Click Nature

For agents with background auto-update enabled (the default for Claude Code and OpenAI Codex), the malicious swap can occur completely automatically without any user interaction. This means even cautious users could be attacked without their knowledge.

Affected Products and Patch Status

Product Vendor Patch Status Patched Version
Claude Code Anthropic ✅ Patched v2.1.179
OpenAI Codex OpenAI ✅ Patched v0.146.0
GitHub Copilot Microsoft ❌ Unpatched
Gemini CLI Google ⚠️ Product Retired Migrate to Antigravity

Vendor Response Details

Anthropic: Responded most swiftly, cooperating actively after receiving the vulnerability report and completing the patch in Claude Code v2.1.179.

OpenAI: Also responded proactively, patching the vulnerability in OpenAI Codex v0.146.0.

Microsoft: As of the public disclosure date, GitHub Copilot has still not released a patch, drawing widespread criticism from the security community.

Google: Took an unusual approach — choosing to completely retire the Gemini CLI product and advising users to migrate to its next-generation agent "Antigravity," which is reportedly not susceptible to this specific attack vector.

Potential Impact Scope

AI coding agents are extremely prevalent in the global developer community. According to industry data, the percentage of developers writing half or more of their code with AI assistance has jumped from 12% last year to 42% in 2026. This means the potential victim pool for Plugin4Shell is enormous.

More concerning, AI coding agents typically have high-risk access to:

  • Read/write local file systems (including SSH keys, API keys, and other sensitive files)
  • Access code repositories and version control systems
  • Connect to databases and cloud services
  • Execute system commands

Once an agent is compromised, attackers may gain complete control over the entire development environment.

Mitigation and Defense Recommendations

Immediate Actions

  1. Update software: Claude Code users should immediately upgrade to v2.1.179 or higher; OpenAI Codex users should upgrade to v0.146.0 or higher
  2. GitHub Copilot users: Until Microsoft releases a patch, disable plugin auto-updates and use only officially approved plugins
  3. Gemini CLI users: Follow Google's recommendation to migrate to Antigravity

Long-Term Defense Strategies

Restrict plugin sources: Establish allowlists permitting only plugins from trusted marketplaces and authors, and disable auto-updates in production environments.

Zero-trust principles: Implement network segmentation and egress security controls to limit the "blast radius" if an AI agent is compromised.

Sandboxed execution: Run AI coding agents in isolated environments to ensure that even if an agent is compromised, attackers cannot access sensitive production credentials or intellectual property.

Regular audits: Periodically review installed plugins, verify their integrity, and monitor for anomalous network activity.

Broader AI Security Implications

The Plugin4Shell vulnerability reveals a fundamental challenge in AI agent security: the more capable an AI agent, the more severe the consequences of its compromise.

As AI agents gain increasingly broad system access and autonomous execution capabilities, traditional security models require fundamental rethinking. The security community is calling for:

  • Dedicated security standards and certification systems for AI agents
  • Mandatory regular third-party security audits for AI agent vendors
  • Security as a core consideration from the AI agent design phase

Conclusion

Plugin4Shell is an important wake-up call for the AI security field. As AI coding agents become central tools in modern software development, their security is no longer merely a technical issue — it's a strategic matter affecting the entire software supply chain. Enterprises and individual developers should take immediate action to ensure the security of their AI toolchains.

FAQ

Related Articles

Anthropic Releases Inaugural R&D Automation Index: Claude Leads 26% of Internal Research Tasks, 30,000 AI Agents Running Simultaneously, Revealing True Progress of AI Self-Improvement
Latest AI Technology

Anthropic Releases Inaugural R&D Automation Index: Claude Leads 26% of Internal Research Tasks, 30,000 AI Agents Running Simultaneously, Revealing True Progress of AI Self-Improvement

Anthropic released its inaugural R&D Automation Index on September 17, 2026, revealing Claude leads 26% of internal research tasks (up from under 1% in February 2026), with 30,000 AI agents running simultaneously processing over 1 billion decisions monthly, setting a new standard for AI transparency reporting.

Sep 21, 20264
Zhipu AI Launches GLM-5.3-FlashX: 100,000 Domestic Chips Power 200 Tokens/Second, a New Milestone for China's AI Infrastructure
Latest AI Technology

Zhipu AI Launches GLM-5.3-FlashX: 100,000 Domestic Chips Power 200 Tokens/Second, a New Milestone for China's AI Infrastructure

Zhipu AI launched GLM-5.3-FlashX on September 18, 2026, achieving 200 tokens/second inference speed powered by over 100,000 domestic AI chips—a 5-6x improvement over the standard version. More breakthrough: AI agent InfraAgent improved system throughput by 3.2x within two weeks, becoming one of China's first documented recursive self-improvement cases in production.

Sep 20, 20264
UN and Google Build AI-Ready Global Data Platform: MCP Protocol Enables AI Agents to Query Authoritative Statistics Directly, Solving the 21% Accuracy Crisis
Latest AI Technology

UN and Google Build AI-Ready Global Data Platform: MCP Protocol Enables AI Agents to Query Authoritative Statistics Directly, Solving the 21% Accuracy Crisis

The UN launched the UN System Data Commons on September 17, 2026, built on Google's Data Commons framework with MCP integration, enabling AI agents to directly query authoritative statistics from 20 UN entities, addressing the alarming 21.2% accuracy rate of leading AI models on global development indicator queries.

Sep 19, 20264