MCPGuard:自动检测MCP服务器中的漏洞 MCPGuard : Automatically Detecting Vulnerabilities in MCP Servers 预印本

⚠️ 本文为 预印本(arXiv 公开版本),尚未经过正式同行评审。作者自发公开,结论未经期刊审稿验证,阅读时请知悉。
发布时间:2025-10-27
👁️ 预览文献
💡 AI 中文简介
这篇论文研究MCP(模型上下文协议)服务器的安全问题。MCP让大语言模型能连接外部工具和数据,但开放的设计也带来了安全风险。作者系统分析了三类主要威胁:代理劫持攻击、传统Web漏洞和供应链安全,并梳理了现有防御策略,包括服务器端扫描和运行时监控。核心发现是:MCP安全是范式转变,攻击面从代码执行扩展到自然语言元数据的语义解释,需要全新的防御机制。
领域网络安全 / 大语言模型系统安全
适合谁读需要一定专业背景,适合安全研究人员和LLM系统开发者
核心贡献首次系统梳理MCP系统的安全威胁模型,提出三类主要威胁分类;指出MCP安全是范式转变,攻击面从代码执行扩展到自然语言元数据的语义解释,为新型防御机制设计提供理论基础。
关键数据暂无显著硬数据
推荐理由如果你在搞LLM应用或MCP服务器开发,这篇论文能帮你提前看清安全坑,避免被代理劫持和供应链攻击坑到。
关键词["模型上下文协议", "漏洞检测", "大语言模型安全", "代理劫持", "供应链安全", "运行时监控"]

原文摘要

查看英文原文摘要

The Model Context Protocol (MCP) has emerged as a standardized interface enabling seamless integration between Large Language Models (LLMs) and external data sources and tools. While MCP significantly reduces development complexity and enhances agent capabilities, its openness and extensibility introduce critical security vulnerabilities that threaten system trustworthiness and user data protection. This paper systematically analyzes the security landscape of MCP-based systems, identifying three principal threat categories: (1) agent hijacking attacks stemming from protocol design deficiencies; (2) traditional web vulnerabilities in MCP servers; and (3) supply chain security. To address these challenges, we comprehensively survey existing defense strategies, examining both proactive server-side scanning approaches, ranging from layered detection pipelines and agentic auditing frameworks to zero-trust registry systems, and runtime interaction monitoring solutions that provide continuous oversight and policy enforcement. Our analysis reveals that MCP security fundamentally represents a paradigm shift where the attack surface extends from traditional code execution to semantic interpretation of natural language metadata, necessitating novel defense mechanisms tailored to this unique threat model.