AI-generated editorial illustration; not a documentary photograph.
Security researchers at Air have disclosed Plugin4Shell, which they describe as a zero-click vulnerability affecting plugin updates in Claude Code, OpenAI Codex, GitHub Copilot and Gemini CLI. According to SecurityWeek, an attacker controlling a plugin repository could deliver malicious code through background updates without requiring action from users who had already installed the plugin.
How the attack works
The affected tools were intended to retrieve a specific, previously reviewed commit identified by its SHA hash. Air's researchers found that an attacker could create a branch named after that hash, causing Git to resolve the requested reference to the branch instead. The agents reportedly checked out the resulting code without confirming that it matched the expected commit.
Installed plugins remain in scope
The issue is not limited to new installations. Because the developer tools can update plugins automatically in the background, a compromised repository could distribute the substituted code to existing installations silently. This turns control of a plugin repository into a potential route for taking over the AI agent operating in a developer's environment.
Patch coverage varies
Anthropic and OpenAI have released fixes for Claude Code and Codex, respectively, SecurityWeek reported. Microsoft had not yet patched GitHub Copilot at the time of the report. Google said the affected Gemini CLI is deprecated and will not receive a fix, leaving users of that version without a vendor patch.
Supply-chain implications
Plugin4Shell highlights a verification gap between pinning a dependency to a specific commit hash and confirming the code actually retrieved. The reported attack depends on an adversary controlling the relevant plugin repository, but automatic updates could remove the need to compromise each developer separately once that condition is met.
Source: In Other News: Ransomware Developer Sentenced, Plugin4Shell AI Attack, Critical SAP Flaw

Leave a Reply