← Back to feed

Plugin4Shell: Zero-Click RCE Bypass of SHA Pinning in AI Coding Agent Plugin Ecosystems

Date: 2026-09-27
Tags: supply-chain, malicious-tool

Executive Summary

Plugin4Shell is a high-severity, zero-click remote code execution vulnerability affecting major AI coding agents, including Anthropic Claude Code, OpenAI Codex, GitHub Copilot, and Google Gemini CLI. The flaw allows a malicious plugin update to execute attacker-controlled code without requiring a user to click, approve, or reinstall anything. The bug, dubbed Plugin4Shell, breaks SHA pinning, the mechanism developers rely on to lock an installed plugin to a specific, reviewed version of its code.

Campaign Summary

FieldDetail
Campaign / MalwarePlugin4Shell
AttributionAIR Security Research (confidence: high)
TargetAI coding agent users and enterprises deploying Claude Code, Codex, GitHub Copilot, Gemini CLI
VectorMalicious Git branch name collision; plugin marketplace compromise; automatic plugin updates
Statusactive
First Observed2026-05-27

Detailed Findings

AIR found the bug in May 2026, with working proof-of-concept exploits against all four agents, and disclosed it to each vendor the following month. Researchers said an attacker can abuse a repository branch named FETCH_HEAD to redirect the checkout to malicious content rather than the fetched commit. The vulnerability becomes zero-click because of automatic plugin updates. The risk is especially significant for enterprises using AI coding agents with broad access to development and production environments. A successful exploit could give an attacker the same reach as the developer's account, potentially exposing proprietary code, API keys, CI/CD credentials, internal systems, and cloud environments. Anthropic fixed the issue in Claude Code version 2.1.179, while OpenAI patched Codex in version 0.146.0. Microsoft had not issued a fix for Copilot at the time of disclosure. Google said Gemini CLI is deprecated and will not receive a fix, advising users to migrate to Antigravity.

MITRE ATT&CK Mapping

TechniqueIDContext
Supply Chain CompromiseT1195.003Plugin marketplace compromise enables silent code injection into trusted developer tools
ExecutionT1204Automatic plugin updates execute attacker payload without user interaction

IOCs

Domains

_No specific IOCs published; vulnerability is in plugin resolution logic affecting all marketplace-distributed plugins across platforms_

Full URL Paths

_No specific IOCs published; vulnerability is in plugin resolution logic affecting all marketplace-distributed plugins across platforms_

Splunk Format

_No IOCs available for Splunk query_

Affected Platforms

Anthropic Claude Code
OpenAI Codex
GitHub Copilot
Google Gemini CLI

Detection Recommendations

Monitor for plugin version mismatches between marketplace records and deployed agent systems. Implement runtime integrity checks comparing plugin SHA checksums against marketplace records before execution. Enforce strict plugin marketplace policies requiring signed manifests and re-consent flows when tool definitions change. Pin agents to specific plugin versions and require manual re-approval for any updates rather than automatic silent patching. Monitor for unexpected branch or tag creation matching commit SHA patterns in plugin repositories.

References