MCP server image signature verification off by default
Description
MCP server image signature verification is disabled by default, and even when enabled it only applies to images whose reference begins with mcp/ — any other image is pulled and executed unverified.
Details
In pull.go, only references prefixed mcp/ are added to the verifiable set, and verifyImages returns immediately when the verify-signatures flag is false. That flag defaults to false and is not enabled in either the in-container or on-host default config. When an operator does opt in, the mcp/ prefix filter still lets any non-mcp/ image (e.g. docker.io/..., ghcr.io/..., an attacker registry) be pulled and run without a signature check.
Impact
A server definition from an external catalog or registry can name an arbitrary image that the gateway pulls and executes with no signature check, leading to code execution in the gateway's container runtime via a compromised/MITM'd registry or a malicious shared profile.
Preconditions
- A server definition referencing an attacker-influenced image is loaded (untrusted catalog, registry, or shared profile).
Workarounds
- Only load server definitions from trusted catalogs/registries.
- Pin images by digest where possible.