By using this site, you agree to the Privacy Policy and Terms of Use.
Accept
Felly ViralFelly ViralFelly Viral
Notification Show More
Font ResizerAa
  • Home
  • Nigeria
    NigeriaShow More
    US considers 10-year ban for a category of foreign nationals
    November 12, 2026
    "You're 50, not 20": My husband shamed my birthday outfit — Then I reacted
    November 12, 2026
    3 countries publish list of occupations in need of workers
    November 11, 2026
    I married my dying fiancée — After her funeral, her lawyer revealed her secret
    November 11, 2026
    Prominent journalisr Daniel Ojukwu jailed on 12 charges in Nigeria, read details
    November 11, 2026
  • Technology
    TechnologyShow More
    Xbox announces Wolfenstein 3
    November 13, 2026
    Whoop launched a social network where every user has a ‘verified heartbeat’
    November 12, 2026
    Whoop launched a social network where every user has a ‘verified heartbeat’
    November 12, 2026
    Microsoft Outlook is still down
    November 12, 2026
    Microsoft Outlook is still down
    November 12, 2026
  • Sports
  • World News
    World NewsShow More
    Flood victim, 95, lived in Wetherspoons after her home was destroyed and died before she could return
    November 12, 2026
    Hamilton urges Israel to 'let the aid trucks in' to Gaza after Rafah border visit
    November 11, 2026
    'It can kill us': Kenyans fear impact of El Niño with floods predicted
    November 11, 2026
    The US military seems to be getting nervous about the launch supply crunch
    November 10, 2026
    Ukraine peace talks resume with 'some flexibility' by warring sides, US officials say
    November 10, 2026
  • Politics
    PoliticsShow More
    Young, Welsh and torn on independence
    November 12, 2026
    "We have a phone call from the grave of Buhari": ADC chieftain
    November 12, 2026
    Military base asylum plans granted planning approval
    November 12, 2026
    Angela Rayner grants planning approval for asylum centre in Piddington despite local opposition
    November 12, 2026
    US opens green card route for children of 4 types of foreigners
    November 12, 2026
  • Science
  • Entertainment
    EntertainmentShow More
    Humble Bundle redesign removes two-factor verification from settings
    November 12, 2026
    Humble Bundle redesign removes two-factor verification from settings
    November 12, 2026
    Netflix releases new trailer for Ray Gunn
    November 12, 2026
    Netflix releases new trailer for Ray Gunn
    November 12, 2026
    Clean water, hidden risks: New technology reveals neurotoxicity missed by conventional water quality monitoring
    November 11, 2026
  • Crypto
    CryptoShow More
    Chainalysis says hackers stole credentials and tokens for all of its customers
    November 6, 2026
    Chainalysis says hackers stole credentials and tokens for all of its customers
    November 6, 2026
    Binance says hackers used fake job interviews and an internal AI tool to pull off the $6.3 billion heist
    November 3, 2026
    North Korea denies being behind record $6.3bn Binance hack
    November 3, 2026
    Binance users withdraw $3.6bn after record crypto hack
    November 2, 2026
  • About Us
  • Contact
Reading: A single git trick beat the safety lock on four AI coding agents
Share
Font ResizerAa
Felly ViralFelly Viral
  • Home
  • Entertainment
  • Science
  • Technology
  • Business
  • Crypto
  • Health
  • Nigeria
  • Politics
  • Sports
  • World News
Search
  • Home
  • About Us
  • Contact Us
  • Categories
    • Nigeria
    • Technology
    • Entertainment
    • Science
    • Health
    • Sports
    • Politics
    • World News
    • Business
    • Crypto
Have an existing account? Sign In
Follow US
Felly Viral > Blog > Technology > A single git trick beat the safety lock on four AI coding agents
Technology

A single git trick beat the safety lock on four AI coding agents

admin
Last updated: September 21, 2026 12:53 pm
admin Published September 21, 2026
Share
SHARE
September 21, 2026 at 12:53 pmIn: Technology

Credit: Fotis Fotopoulos / Unsplash The AI industry already knew attackers could poison plugin marketplaces. Its answer was to lock every plugin to one reviewed version of its code. That lock is what just broke. Researchers at Air Security published a vulnerability on Thursday that they call Plugin4Shell.

It affects the four most widely used AI coding agents. Those are Anthropic’s Claude Code, OpenAI’s Codex, GitHub Copilot and Google’s Gemini CLI. Or Nevo, Dor Granat and Niv Hoffman call it zero-click remote code execution. The attacker needs no action at all from the victim.

Jessica Lyons first reported it for The Register. Anthropic fixed it in Claude Code 2.1.179 and OpenAI in Codex 0.146.0. Microsoft has shipped no fix for Copilot. Google will not fix the Gemini CLI, because it is retiring it.

What Plugin4Shell actually does Coding agents install add-ons from marketplaces. To keep those add-ons safe, a marketplace pins each one to a commit hash. That is a 40-character string identifying one exact snapshot of the code. Review the snapshot once, pin it, and the agent should run that same audited code forever.

Air found that the agents ask for the pinned snapshot but never check what they got. Git lets a branch carry almost any name, including a string that looks exactly like a commit hash. When a name is both a valid branch and a valid object, git quietly prefers the branch. So whoever controls a plugin’s repository can create a branch named after the pinned hash.

They point it at different code and make it the default. The agent checks out the branch, installs the attacker’s code, and reports a clean install at the pinned commit. The Gemini CLI breaks a different way. It fetches the right commit, then runs a checkout that a default branch named FETCH_HEAD can capture.

The correct code never reaches the disk. The fix is one line. After checking out, resolve what actually sits in the working tree, then abort unless it matches the pin. Why nobody has to click Agents refresh installed plugins in the background.

Claude Code and Codex do this by default. So the attack does not need anyone to install anything new. It replaces a plugin the developer already trusts and already runs. Air lays out the sequence.

Publish something genuinely useful. Pass review, gather users. Ship a routine update so the marketplace re-pins to a new commit. Then create a branch named after that new pin and fill it with malicious code.

Every agent’s auto-update does the rest. A plugin runs with the same access as the person using the agent. The swapped code therefore reaches their files, their stored credentials and every system they can log in to. OWASP flagged that same problem this month, moving excessive agency to third place in its 2026 top ten.

GitHub says its users are not exposed GitHub rejects branch names shaped like commit hashes, so the branch trick fails there. A spokesperson told The Register that this mitigation stops anyone exploiting the vulnerability on GitHub. Air disagrees. Marketplaces can sit elsewhere, including on Bitbucket and on a company’s own git server.

Both of those allow hash-shaped branch names, and Anthropic’s own documentation lists them as valid marketplace backends. Copilot supports those hosts too, which is where Air says the risk sits. Microsoft did not respond to The Register. This is not the first time GitHub has contested a researcher’s finding about Copilot.

It is worth noting that roughly 90% of Fortune 500 companies use Copilot, on Microsoft’s own figure, and Copilot is one of the two agents with no patch. How much of this reaches real developers Plugin4Shell is narrower in practice than the headline count of four agents suggests, and the most useful reporting on that came from The Hacker News. Swati Khandelwal checked the marketplaces the agents ship with on 18 September and found that every plugin in Anthropic’s community catalogue, and in the default catalogues for Claude Code and Copilot, points to a GitHub repository. The two halves of the attack also pull apart.

Background auto-update is the part that makes it zero-click. It runs by default only for the agents’ own built-in marketplaces, and those live on GitHub. For outside marketplaces it stays off or optional. A developer who installs only from the default catalogues never meets the branch-name version.

That reasoning does not cover the Gemini CLI. Its variant relies on a branch named FETCH_HEAD rather than a hash, and GitHub’s rule does not clearly block that name. It is also the one agent nobody will ever patch. Four months, no CVE Air built a working proof of concept in May and disclosed to all four vendors in June.

Anthropic confirmed its fix on 17 June. Google said on 4 August that none would ship. Codex was verified fixed on 12 August. As of 18 September, The Hacker News found no CVE identifier assigned and no security advisory published by any of the four vendors.

Anthropic’s release notes for 2.1.179 do not mention the fix at all, so Air’s post is the only public account that it exists. There is no sign the flaw has been used in a real attack. Four months of silence is a long time for a flaw in software the Fortune 500 runs. It also sits awkwardly beside where European rules are heading.

The Cyber Resilience Act sets a 24-hour reporting deadline for actively exploited vulnerabilities and pushes hard towards documented software supply chains. The third time this has happened Air has been working this seam for months. It planted a malicious skill in a marketplace and reached about 26,000 agents. It then hijacked 925 skills already in use, affecting 134,000 agents, by taking over the repositories behind them.

SHA pinning was the industry’s answer to both. Five labs agreed a common plugin standard in August. Attackers now go after the distribution layer underneath the models rather than the models themselves. The same design error appeared in four products from four different companies, which suggests nobody checked the assumption rather than that one team slipped.

One thing the published accounts do not settle: whether updating an affected agent removes a plugin that was already swapped, or only stops the next swap. Developers who have seen Claude Code hijacked before, or watched OpenAI agents turn up inside RubyGems, will recognise the pattern. The Gemini CLI stays vulnerable permanently. Google points users at Antigravity instead, which the attack cannot reach because it has no plugin pinning to bypass.

The question worth revisiting in a year: how many Gemini CLI installs are still running.

You Might Also Like

California has banned personalised feeds for under-16s, going further than Australia or the DSA

Feds get ready to rewrite car headlight rules

Apple's unveils its first folding iPhone

It’s the year of smartphone price hikes

Microsoft reportedly projects $1,200 to $1,800 price for 2028 Project Helix

Share This Article
Facebook Twitter Email Print
Leave a comment

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

What's Hot

Badenoch accuses Burnham of kicking defence spending into the long grass

Zack Polanski says he'll run for former PM Starmer's seat in by-election

Tragedy averted as fan slips and falls in front of Burna Boy's ₦9bn Bugatti

Rewetting peatlands may curb warming-driven CO₂ emissions

Davido reacts to video of Burna Boy taking delivery of his ₦9billion customised Bugatti Chiron

Bridging interfacial water structure and reactivity in photocatalytic hydrogen evolution at TiO₂ interfaces

Categories

Business

417 Articles

Politics

1483 Articles
- Advertisement -
Ad image

Categories

  • Sports
  • Politics
  • Technology
  • Science
  • World News
  • Business
  • Entertainment
  • Nigeria
  • Health
  • Crypto

About US

Welcome to Felly Viral, your destination for the latest trends, breaking stories, engaging updates, and conversations shaping the world around us
Quick Link
  • Home
  • About Us
  • Contact
  • Member Login
  • Profile
  • My Bookmarks
  • Privacy Policy
  • Terms and Conditions
Top Categories
  • Entertainment
  • Sports
  • World News
  • Politics
  • Technology
  • Science
  • Business
  • Health
  • Crypto

Subscribe US

Subscribe to our newsletter to get our newest articles instantly!

© Foxiz News Network. Ruby Design Company. All Rights Reserved.

Powered by CookieAdmin
Necessary cookies enable essential site features like secure log-ins and consent preference adjustments. They do not store personal data.
None
Functional cookies support features like content sharing on social media, collecting feedback, and enabling third-party tools.
None
Analytical cookies track visitor interactions, providing insights on metrics like visitor count, bounce rate, and traffic sources.
None
Advertisement cookies deliver personalized ads based on your previous visits and analyze the effectiveness of ad campaigns.
None
Unclassified cookies are cookies that we are in the process of classifying, together with the providers of individual cookies.
None
Powered by CookieAdmin
Welcome Back!

Sign in to your account