HomeServicesAboutIntelligenceLibraryConnectBitSovRun a NodeWhitepaperBook a Call
← Back to Intelligence
AISeptember 22, 20264 min read
← All articles

The Pin Never Checked Out

On September 17, 2026, Air Security published Plugin4Shell: Claude Code, Codex, Copilot, and Gemini CLI checked out marketplace SHA pins but never verified HEAD matched them. Fix meter: Claude Code 2.1.179 / Codex 0.146.0 / Copilot unpatched / Gemini CLI → Antigravity. Assert `git rev-parse HEAD` equals the pin after checkout.

On September 17, 2026, Air Security researchers Or Nevo, Dor Granat, and Niv Hoffman published Plugin4Shell: four major coding agents checked out a marketplace SHA pin and never verified that HEAD on disk matched it. Claude Code, Codex, GitHub Copilot, and Gemini CLI all failed the same assert.

Marketplace SHA-pinning was the industry answer after earlier plugin rug-pulls. Air's own prior chain, Story of Skills (~26,000 agents) and SkillJacking (925 skills → 134,000 agents), is why the pin existed. Plugin4Shell shows the pin was theater at the client.

The Pin Was Theater

The marketplace records a reviewed Git commit. The agent is supposed to install that commit. Air's quote, carried by The Register, is blunt: the agent checks out the exact commit the marketplace pinned but never verifies it landed there.

For Claude Code, Codex, and Copilot, an attacker who owns the plugin repo creates a branch whose name is the 40-hex pinned SHA, sets it as the default branch, and lets git checkout <pin> resolve to the branch. Git prefers a ref over a same-named object id and emits only a "refname is ambiguous" warning. The pin string stays untouched. The code on disk is not the reviewed commit.

Gemini CLI takes a different path: git fetch origin <pin> then git checkout FETCH_HEAD. If the default branch is itself named FETCH_HEAD, checkout resolves to the branch and the fetched commit is discarded.

Plugin auto-update, default on Claude Code and Codex, re-runs that checkout after a marketplace re-pin. The swap is zero-click.

Who Fixed What

Agent fix status, Plugin4Shell

Air's coordinated timeline: May 2026 PoC against all four; June disclosure; June 17 Anthropic confirms Claude Code 2.1.179; August 4 Google confirms no fix for deprecated Gemini CLI (migrate to Antigravity, the attack does not reach it); August 12 Codex 0.146.0 verified fixed. Public post September 17.

Microsoft's GitHub Copilot had no client fix at disclosure. OpenAI's own release note for Codex 0.146.0, as quoted by The Hacker News, admits Git "can interpret a requested commit SHA as a branch name," so a plugin source can "materialize a different commit than the one it pinned." Anthropic's 2.1.179 release notes do not mention the fix; Air's post is the public account that it exists.

One line closes both variants. After checkout, assert resolved HEAD, not the ref that was requested:

test "$(git rev-parse HEAD)" = "<pin>" || abort

Score the verify step. The pin string alone is not a control.

GitHub Narrows the Surface | It Does Not End It

GitHub rejects branch and tag names that resemble commit SHAs. A GitHub spokesperson told The Register the mitigation "ensures the reported vulnerability cannot be exploited on GitHub." As of The Hacker News check on September 18, every plugin in Anthropic's community catalogue and the default catalogues for Claude Code and Copilot pointed at a GitHub repository. Default-catalogue-only users are not fully exposed to the branch-name variant.

Air notes marketplaces can sit on Bitbucket or self-hosted git, which allow hash-shaped branch names. Anthropic docs list those backends as valid; Copilot supports them. That is where Air places remaining Copilot risk. Gemini CLI's FETCH_HEAD variant is not clearly blocked by GitHub's hash-shaped-name rule, and Google will not patch the deprecated CLI.

Sources do not say whether updating an agent removes a plugin already swapped, or only stops future swaps. Do not invent that answer.

No CVE, Still an Operator Meter

As of mid-late September 2026, The Hacker News September 18, The Next Web September 21, Cloud Security Alliance research note September 19, no CVE identifier and no vendor security advisory from any of the four. No in-the-wild exploitation reported in those sources. The Missing CVE does not change the meter: if your agent installs marketplace plugins, assert git rev-parse HEAD equals the pin after every checkout.

Vendor caveat, stated once: Air sells Air Marketplace / Air Filter and says enterprises on those products were not affected. This piece rests on the mechanism and the version numbers, Claude Code 2.1.179, Codex 0.146.0, Copilot unpatched, Gemini CLI → Antigravity, not on Air's product pitch.

Primary: Air Security Plugin4Shell (2026-09-17). Secondaries: The Register, The Hacker News, The Next Web, CSA AI Safety Initiative research note.

← Back to Intelligence