By Vero SecurityBuilt and funded by Vero Security, the AI Security Engineering platform.Read the charter

Allowlist pitfalls and argument injection

Commands that look read-only, such as find, grep, rg, git and go test, accept flags that run arbitrary programs. Research in 2025 showed one-prompt remote code execution through these flags in production agents, plus prefix-matching bypasses in Gemini CLI. Prefer narrow, exact allow rules and count on the sandbox to contain what slips through.

Read in this order

  1. ArticlePrompt injection to RCE in AI agents (Trail of Bits)Start here: the flag tricks that turn safe-looking commands into code execution.
  2. ArticleCode execution through deception: Gemini AI CLI hijack (Tracebit)A real prefix-matching bypass in Gemini CLI, step by step.
  3. Open sourcetrailofbits/claude-code-configA working hardened config you can copy and compare to yours.

Save your progress

We email you a sign-in link. No password.

By signing in you agree to the terms. The privacy policy explains how we use your details.

Join the AI security engineering community

Free. Roadmap updates, chapters near you, and first word when credentials open.

We’ll email you community updates. Unsubscribe anytime. By sending this you agree to the terms. The privacy policy explains how we use your details.