arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2510.23673cs.CRcs.AI
收藏

MCPGuard:自动检测MCP服务器中的漏洞

MCPGuard : Automatically Detecting Vulnerabilities in MCP Servers

Bin Wang, Zexin Liu, Hao Yu, Ao Yang, Yenan Huang, Jing Guo, Huangsheng Cheng, Hui Li, Huiyu Wu

AI总结:

本文针对模型上下文协议MCP的安全漏洞问题,系统梳理三类威胁并调研现有防御策略,指出MCP安全是攻击面扩展至自然语言语义解释的新范式,需针对性构建防御机制。

摘要:

模型上下文协议(Model Context Protocol,MCP)已成为一种标准化接口,可实现大语言模型(Large Language Models,LLM)与外部数据源及工具之间的无缝集成。尽管MCP显著降低了开发复杂度并提升了智能体能力,但其开放性和可扩展性带来了严重安全漏洞,对系统可信度和用户数据保护构成威胁。本文系统分析了基于MCP的系统的安全格局,确定了三大主要威胁类别:(1)由协议设计缺陷引发的智能体劫持攻击;(2)MCP服务器中的传统Web漏洞;(3)供应链安全问题。为应对这些挑战,我们全面调研了现有防御策略,既考察了主动式服务器端扫描方法(涵盖分层检测流水线、智能体审计框架到零信任注册系统),也研究了可提供持续监督和策略执行的运行时交互监控方案。我们的分析表明,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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑