Don't rely on 'safe command' prefix lists to skip approval; keep agent shells in a sandbox and review find, xargs and similar commands by hand
OmniAgent marked any command starting with 'find' as safe, so a prompt-injected agent could run other programs via -execdir · Security incident · GitHub · github · Nov 10, 2026
What happened
GitHub advisory GHSA-3ph8-93x7-786r (CVE-2026-125368, rated High, published 10 Nov 2026) says OmniAgent through commit 12b98c5 treated any bash command beginning with find as safe in ReflexionAgent._is_safe_bash_command without checking -execdir arguments. A prompt-injected agent could use find -execdir to launch binaries such as dd, nc, perl or openssl through an unsandboxed shell, overwriting files or running code without human approval.
How to prevent it
Approve by exact command, not by prefix, block -exec, -execdir and -delete style flags in auto-approve rules, and run agent shells in a container without network or secrets.
Fix prompt for your own AI tool
Copy this into your own AI tool (Cursor, Lovable, Claude Code, Bolt…). It's general guidance written by us. Review what the AI suggests before applying it.
I use OmniAgent, which can read web pages, files, emails or tool output. Help me reduce the risk of prompt injection (hidden instructions in content the AI reads). 1) List what my setup can access (files, terminal, browser, MCP servers, email, databases) and what it can do without asking me. 2) Point out the riskiest combinations, e.g. reading untrusted content while also having access to secrets or the ability to send data out. 3) Suggest concrete settings: require approval for commands and network calls, remove MCP servers I don't need, use read-only tokens, and keep the tool updated. 4) Give me a short checklist to follow before opening untrusted repos or documents. Don't change anything until I've approved your plan. Never ask me to paste API keys, passwords or .env contents; tell me where to check them myself.
Why this keeps happening: trusting agents & ai input
An AI agent treats everything it reads as possible instructions: a web page, a README, an email, a code comment or the output of another tool. If that content was written by an attacker, the agent can be steered into running commands, reading files or sending data somewhere it should not.
A quick checklist before you ship
- Give each agent only the tools and folders it needs for the task at hand.
- Require manual approval before it runs shell commands, sends network requests, deletes files or spends money.
- Do not open untrusted repositories or MCP configs with auto-run turned on.
- Keep API keys and production credentials out of any environment an agent can read.
More on this: every trusting agents & ai input story and our related guide.
Tools involved
OmniAgent stories, AI agent stories
Related stories
- If you run Hermes Agent with Bot Desktop inside a docker or ssh terminal backend, upgrade to 0.23.2 or later
Hermes Agent: code inside its Docker or SSH backend could set env vars on the agent's own machine, fixed in 0.23.2 - If you give an AI agent mcp-server-git, upgrade it to 2026.11.18 or later today, and don't point it at repos you haven't checked
mcp-server-git: six more ways a repo's own Git config could run commands, fixed in 2026.11.18 - Give AI assistant connectors their own scoped, short-lived tokens, never full session tokens
Mittwald's MCP server leaked customer session tokens, and an attacker used them to get into 56 hosting projects
Source: original post on GitHub ↗. Summarised in our own words; numbers are as stated by the source. Browse all stories.