Skip to content

AG-RC-001 · rce-vectors

Detects remote-code-execution vectors in how servers are launched and what their tools can execute.

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 … | sh pattern (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|sh patterns in repo files (critical).
  • Dynamic code-execution primitives — eval(, new Function(, child_process/execSync shell spawns (medium) — review how inputs reach them.

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.

  • Launch servers directly (binary + args array), not via sh -c one-liners.
  • Never pipe remote scripts into interpreters — download, review, pin, then run.
  • Prefer sandboxed/containerized exec tools, and gate them behind agentgate lock so their surface can’t silently grow.