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 secret scanning cuts false alarms for AWS, Google and Alibaba cloud keys and adds a SpaceX detector

GitHub's 5 November 2026 secret scanning update tightens detectors for AWS, Google Cloud and Alibaba keys, relevant to teams building software with AI coding tools that can paste credentials into code.

Read ›

GitHub's Copilot code review can now be managed by API, with review effort levels and AI credit costs shown

GitHub's 6 November 2026 update lets organisations manage Copilot code review by API and see the review effort and AI credits each AI code review used, a sign AI-assisted development is becoming auditable.

Read ›

GitHub's Copilot impact dashboard now counts chat and VS Code agent use, and drops the 'passive users' label

On 6 November 2026 GitHub added Copilot Chat and the VS Code Agents window to its Copilot impact dashboard, bringing it to nine tracked experiences, and renamed 'Passive users' to 'Chat-first users'.

Read ›

Claude Code 2.1.319: a setting that denies permission prompts so AI agent runs don't stall

Claude Code 2.1.319 (6 November 2026) adds a permissions.denyInsteadOfPrompting setting and moves long MCP tool calls to the background, a sign AI-assisted development is being built for unattended runs.

Read ›

GitHub now reports how often developers act on Copilot code review comments

On 5 November 2026 GitHub added code review metrics, including an addressed rate, to the Copilot usage metrics API. For AI software development buyers, it is the first first-party number for how much AI review feedback is acted on.

Read ›

Dependabot can now keep AI agent skills and prompts up to date

GitHub's Dependabot gained Agent Package Manager (APM) support on 3 November 2026, treating AI agent skills, prompts and instructions as dependencies that need updating like any other software.

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