Upstream Supply Chain Security in MCP: Structural Limits of SAST and Deployment-Side Defense
Abstract
The rapid growth of Generative AI (GenAI) has accelerated the adoption of Model Context Protocol (MCP) as a standardized interface connecting AI models with external tools and data. However, upstream supply chain vulnerabilities in MCP servers can propagate malicious behavior across many downstream agents. To address this issue, we introduce a three-dimensional taxonomy and five upstream attack objectives, including credential exfiltration, decision poisoning, covert channels, dependency confusion, and time-triggered logic bombs, and implement them in controlled testbeds. We then evaluated 39 widely used MCP-related repositories with an automated Static Application Security Testing (SAST) framework and manual triage. The results expose structural limitations of source-only, pattern-based scanning for upstream threats because such scanning cannot independently establish provenance, destination, or deployment-specific exploitability when the decisive evidence lies outside the scope of static analysis. Therefore, we propose a deployment-side defense model centered on provenance attestation, destination allow-listing, and runtime egress monitoring. We also present a control-coverage matrix that maps attack objectives to these controls and provides a basis for assessing MCP supply-chain risk beyond traditional severity scoring.