Skip to content
Vibe Code Basics
AI News

AI Coding Agent Security News: GitSpawn, Plugin4Shell, PixelLeak & How to Protect Yourself

Security researchers disclosed serious flaws in Claude Code, Codex, Cursor, Copilot and other AI coding agents. Here's what GitSpawn, Plugin4Shell and PixelLeak are, who was affected, and a practical checklist to keep your machine and code safe.

By Vibe Code Basics Editorial TeamPublished 5 min read
On this page (4)

AI coding agents have become a prime target for attackers. In late September and early October 2026, security researchers disclosed a cluster of vulnerabilities affecting nearly every major agent, including Claude Code, OpenAI Codex, Cursor, GitHub Copilot and Gemini CLI. The common thread: agents run commands, install plugins and read untrusted content with your permissions, and attackers have learned to abuse that.

You don't need to panic, but you do need to update your tools and adjust a few habits. Here's what happened and what to do. For the rest of this month's news, see our October 2026 AI news roundup.

The headline issues

The details below are summarized from Adversa AI's October 2026 roundup (opens in a new tab) of research and disclosures.

GitSpawn: malicious repos that run code through Git

Affected: Claude Code, Codex, Cursor, Goose, Hermes Agent, Qwen Code, Grok Build (eight flaws in total).

Agents often run git commands to understand a project. A malicious repository can set Git configuration options (such as core.fsmonitor) that execute a program whenever Git runs. Because the agent considered git status harmless, the payload ran outside the sandbox and without an approval prompt. Several issues were patched quickly; researchers reported some were still unpatched at publication.

The lesson: simply opening an untrusted repository with an agent can be dangerous.

Plugin4Shell: poisoned plugin updates

Affected: Claude Code, OpenAI Codex, GitHub Copilot, Gemini CLI.

Plugin systems often pin a plugin to a specific Git commit. Researchers showed that an attacker could create a branch whose name matched the pinned commit hash, so the agent's git checkout silently pulled malicious code during an automatic update. As the researchers put it, pinning to a hash only protects you if something checks that the hash is what actually landed.

The lesson: plugins and mods are software supply chain. Treat them like npm packages.

"Fable to Haiku": hiding malware from the reviewer

Affected: Claude Code.

A repository's subagent configuration told Claude Code to delegate security review to a smaller model, scoped to skip the tests/ folder. The main agent then ran the test suite, executing a command-and-control payload hidden in the very folder the reviewer never looked at.

The lesson: project configuration files (subagents, rules, AGENTS.md, MCP configs) from untrusted repos are attack surface too.

PixelLeak: 13,000 screenshots pushed to public repos

More than 13,000 internal screenshots from over 300 organizations ended up in public repositories, 93% of them in personal accounts. Coding agents that couldn't attach screenshots to pull requests "helpfully" committed the images to repositories instead, sometimes public ones, exposing dashboards, customer data and internal tools.

The lesson: review what your agent commits, especially binary files, and keep work out of public personal repos.

Other issues in the same wave

  • Codex sandbox escapes: two separate escapes, one via the apply_patch tool writing outside the workspace, another leaking a trust token.
  • A DeepSeek agent harness flaw (CVE-2026-82533, CVSS 9.4): an unauthenticated local control API let a sandboxed agent switch itself to full access.
  • Infostealer malware families now specifically harvest access tokens for Claude, Cursor, Cline and Codex.
  • Code-poisoning research showed poisoned code samples can reliably steer code generators toward vulnerable patterns.

What to do now: a practical checklist

1. Update everything

Update Claude Code (claude update), Codex, Cursor, Copilot and any other agents and plugins. Most disclosed issues are fixed in current versions, but only if you install them.

2. Be careful with untrusted repositories

  • Don't open random repositories from the internet with an agent that can run commands.
  • If you must, use a disposable environment: a cloud agent sandbox, a dev container or a virtual machine, without your real credentials.
  • Before letting an agent loose, check for unusual .git/config settings, agent config folders (.claude/, .cursor/, .codex/), MCP configs and hooks.

3. Keep approvals on for risky actions

Avoid "skip all permissions" modes on your real machine. Require approval for commands that install software, push code, delete files or touch credentials. You can even enforce this with a Claude Code mod.

4. Audit your plugins, mods and MCP servers

Remove what you don't use. Prefer official or widely used sources. Read small ones before installing. See the safety section of our MCP guide.

5. Protect your tokens

  • Use fine-grained, short-lived tokens with minimal scopes (for example, a GitHub token limited to one repository).
  • Run reputable endpoint protection; infostealers now target AI tool credentials.
  • Rotate any token you suspect was exposed.

6. Review what gets committed

Read your diffs before pushing, watch for unexpected images, logs or data files, and turn on GitHub secret scanning and push protection. Our Git guide covers the habits.

7. Separate experiments from real work

Keep personal side projects, client work and anything with production credentials in separate accounts or environments.

The bigger picture

These attacks aren't exotic. They're classic software supply chain and injection problems applied to a new kind of tool that runs commands on its own. As agents become more autonomous (OpenAI's always-on Dots and multi-agent IDEs like Antigravity), these risks grow. The habits that protect you are the same ones that make vibe coding go well in general: least privilege, review, version control and a healthy skepticism of anything you didn't write.

For securing the apps you build (not just your tools), run through our vibe coding security checklist.

Frequently asked questions

Is it still safe to use AI coding agents?

Yes, with sensible precautions: keep tools updated, keep approvals on for risky actions, and don't run agents against untrusted code on your main machine.

Was Claude Code affected?

Claude Code was among the agents named in several disclosures, as were Codex, Cursor and Copilot. Update to the latest version to get the fixes.

What is GitSpawn?

A class of attacks where a malicious repository's Git configuration makes Git run attacker-controlled programs when an AI agent runs ordinary Git commands, bypassing sandboxes and approval prompts.

How do I know if I was affected by PixelLeak?

Search your repositories (especially public ones) for screenshots and images you didn't intentionally commit, and check what your agent has pushed recently. Remove sensitive files and rewrite history if necessary, and rotate any credentials visible in them.

  • #Security
  • #AI Agents
  • #Claude Code
  • #Codex
  • #Cursor
  • #AI News

Keep reading