AG-RC-001 · rce-vectors
Detects remote-code-execution vectors in how servers are launched and what their tools can execute.
What it checks
Section titled “What it checks”Config (static):
- Servers launched through a shell (
sh -c,cmd /c, PowerShell) (medium) — inline shell strings are an injection-prone launch vector. - Launch commands piping a remote download into an interpreter — the
curl … | shpattern (critical).
Tool surface (--live): tools that execute arbitrary commands/code. high with no documented sandboxing; low if the description claims a sandbox/isolated environment (verify the claim).
Source scan:
curl|shpatterns in repo files (critical).- Dynamic code-execution primitives —
eval(,new Function(,child_process/execSyncshell spawns (medium) — review how inputs reach them.
Why it matters
Section titled “Why it matters”An exec-capable tool gives every upstream influence on your agent (poisoned descriptions, injected page content) a direct path to code execution on your machine. CVE-2025-6514 (mcp-remote) showed the launch path itself can be the RCE.
Fixing findings
Section titled “Fixing findings”- Launch servers directly (binary + args array), not via
sh -cone-liners. - Never pipe remote scripts into interpreters — download, review, pin, then run.
- Prefer sandboxed/containerized exec tools, and gate them behind
agentgate lockso their surface can’t silently grow.