Ingenious AI · Agent security · Free self-check
Try to break your own agent's command allowlist
On 5 November 2026, CVE-2026-113663 (CVSS 8.8, GHSA-2h4w-29cv-2cmv) landed on AG2 / autogen's SandboxShellTool: its restricted modes — an explicit allowed=[...] list and readonly=True — validated commands with prefix and operator checks that missed embedded newlines and shell expansions, then passed the raw string to sh -c. An allowlist that validates the string but executes a shell is a suggestion. This page generates the same bypass corpus against your own allowlist entries, so you can run it against your own validator first.
What this does — and does not do
Does: take the allowlist entries you paste (one per line — e.g. git status, ls) and generate the standard bypass mutation corpus locally: embedded newlines, $() and backtick substitution, operator variants (;, &&, |), and expansions (${IFS}, globbing, tilde). Each mutation is labelled with the validation type it defeats — prefix-only checks, operator scans that forget newlines, validators that never expand — so you can feed the corpus to your own validator as a test set, plus a hardening checklist.
Does not: execute any command, anywhere. This page only produces strings — test inputs for your own defensive validation, in the same spirit as the advisory's own proof of concept. It does not probe any framework, hosted service or third party. Use the corpus only against systems you own or are authorized to test. Nothing is sent or stored.
Paste your allowlist entries
Hardening checklist — what a validator has to do instead
The facts behind this check
GHSA-2h4w-29cv-2cmv (CVE-2026-113663): "SandboxShellTool's restricted modes — allowed=[...] (explicit command allowlist) and readonly=True (implicit READONLY_COMMANDS allowlist) — can both be bypassed by embedding a newline character inside the command." The validation looked for the allowed prefix and scanned for shell operators, but a newline is the operator nobody scanned for — and because the validated string went to sh -c verbatim, everything after the newline ran unrestricted. AG2 before 1.1.1 and autogen 0.13.2–0.14.1 were affected. Every framework with an “allowed commands” setting shares the design question; this corpus is how you answer it for yours, defensively, before a prompt-injection does it for you.
Sources
GitHub Advisory GHSA-2h4w-29cv-2cmv — CVE-2026-113663 (AG2 SandboxShellTool)
Building agents that run commands? TrustGate watches the MCP side of your stack. This page is a one-off self-test kit, not monitoring.