GuardFall: decades-old shell tricks bypass safety guards in 10 of 11 popular AI coding agents

Security researchers at Adversa AI found that 10 of the 11 most-used open-source AI coding agents — a combined 548,000 GitHub stars — can be tricked into running dangerous shell commands using bash quoting and variable-expansion tricks that have been public knowledge for decades, because their safety filters check the command text rather than what bash actually executes.

Adversa AI published research on 30 June showing that Aider, Cline, Goose, Open Interpreter, OpenHands, opencode, Plandex, Roo-Code, SWE-agent and NousResearch Hermes all share the same architectural flaw: they gate shell commands with string-matching filters that inspect the command as written, not as bash will actually interpret it. Attackers can hide a dangerous command inside quote removal, variable expansion or other decades-old bash behaviours so the filter sees something benign while bash executes something destructive. Only Continue, among the eleven agents tested, was built with a guard architecture that structurally closes the gap. Because these tricks can be planted in a README, a Makefile, or any other file an agent reads while working in a repo, the risk isn’t limited to commands a developer types directly — it extends to anything the agent ingests while doing routine work, including in CI pipelines running with auto-approve enabled.

This is the third distinct class of AI-coding-agent exploit we’ve flagged this month, after the symlink-based “GhostApproval” sandbox bypass and the README-based “Friendly Fire” social-engineering exploit. GuardFall is different from both: it’s not a one-off bug in one product, it’s a design pattern — agent talks to shell, gated by pattern matching — that fails the same way across nearly every open-source agent that uses it. Commercial, closed-source agents with more deliberate sandboxing (the kind most agencies build client work around) are less exposed, but “open source” and “cheaper” often go together for teams evaluating AI coding tools on cost alone.

So what

If anyone on your team — internal or a contractor — is running an open-source AI coding agent with auto-approve or CI access, this is worth an immediate check against Adversa’s list. More broadly, it’s a reason to ask any development partner how they isolate agent shell access, not just which AI tool logo is on the pitch deck. We treat that as a baseline requirement in AI-assisted development work — get in touch if you’d like your current setup reviewed against it.

← All research

More research.

GitHub Copilot SDK is becoming the Microsoft Copilot SDK: what builders of AI products should know

On 28 October 2026 GitHub said its Copilot SDK is being renamed Microsoft Copilot SDK, the programmable layer for the shared Microsoft and GitHub agent harness. No immediate action is needed.

Read ›

GitHub Agent Merge: Copilot now watches your pull requests and fixes what blocks the merge

On 28 October 2026 GitHub added Agent Merge to pull requests: a 'Watch and fix' option where Copilot repairs failing Actions workflows and merge conflicts in the cloud, optionally with auto-merge.

Read ›

Claude Code 2.1.314 adds a setting that blocks AI file writes outside the project folder

Claude Code 2.1.314 (30 October 2026) adds permissions.blockWritesOutsideWorkingDirectories, so Claude's file-editing tools refuse any path outside the project in every permission mode.

Read ›

GitHub Enterprise now includes Copilot: seats are bundled, AI usage moves to your budget

From 28 October 2026 account-team customers can get Copilot included with every GitHub Enterprise licence, with AI usage metered against an enterprise budget from the first request. Standalone Copilot is $10 per user per month.

Read ›

GitHub Copilot Fusion goes GA: one pick, many models, and a 30% launch discount

On 28 October 2026 GitHub made Copilot Fusion generally available: instead of choosing a model, developers pick an effort level and Copilot routes each task across models. Paid plans get 30% off model costs for a limited time.

Read ›

GitHub Agentic Workflows is generally available: automations written in plain Markdown

On 28 October 2026 GitHub made Agentic Workflows generally available: AI agents that triage issues, analyse CI failures and update docs, defined in Markdown and run inside GitHub Actions with read-only defaults.

Read ›

Start a project

Building with AI? Let's talk.

Tell us what you are building. We'll give you an honest view of the right approach.

Start a projectSee our work