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 AI usage API now returns per-model token counts, so Copilot spend can finally be traced to models

GitHub's AI credit usage REST API now returns six raw token counts per model for enterprises, organisations and individuals, giving Copilot cost tracking a real audit trail.

Read ›

Claude Code 2.1.335: add remote MCP servers from the terminal, a new Interrupt hook, and a harness audit for older models

Claude Code 2.1.335 adds a one-line command to register remote MCP servers as claude.ai connectors, an Interrupt hook event and a /claude-api harness-audit command for agent code written for older models.

Read ›

GitHub Copilot model controls shift: Claude Opus 4.8 (fast) retired, targeted model rules end 12 January 2027

GitHub retired Claude Opus 4.8 (fast) in Copilot on 30 November and is closing the targeted organisation model rules preview, with migration on 12 January 2027.

Read ›

Claude Code 2.1.334: REVIEW.md now works at folder level, plus a model search box and a visible auto-compact setting

Claude Code 2.1.334 extends REVIEW.md so AI code reviews follow rules held in folders, adds a search box for long model lists and shows the auto-compact window in settings.

Read ›

GitHub Copilot for JetBrains adds scheduled automations in preview and drops support for IDE 2025.2

GitHub Copilot for JetBrains can now run automated tasks on a schedule (preview), adds Microsoft Foundry and Azure OpenAI models to its agent, and no longer supports JetBrains IDEs 2025.2.

Read ›

Claude Code 2.1.333: REVIEW.md shapes AI code reviews, and you can stop one workflow agent

Claude Code 2.1.333 lets teams write their code review rules in a REVIEW.md file, lets one running agent in a workflow be stopped without halting the rest, and changes how permission lists are passed in scripts.

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