arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2605.11053cs.CRcs.AIcs.LG
收藏

LLM Agent工具调用流量中的内容感知攻击检测:特征、架构与评估协议的实证研究

Content-Aware Attack Detection in LLM Agent Tool-Call Traffic: An Empirical Study of Features, Architectures, and Evaluation Protocols

Department of Computer Engineering, Duzce University(杜兹大学计算机工程系)

Sultan Zavrak

AI总结:

针对MCP工具调用流量,提出基于图神经网络的攻击检测框架,通过内容嵌入和任务分离评估协议,实现AUROC超过0.89的检测性能,并揭示随机分割评估导致的高估问题。

摘要:

模型上下文协议(MCP)已成为LLM agent调用外部工具的广泛采用的接口,然而对MCP工具调用流量的学习监控仍未被充分探索。本文提出的检测器是一个针对MCP工具调用流量的攻击检测框架,它将每个agent会话编码为图(工具调用作为节点,顺序和数据流链接作为边),通过参数和响应的句子嵌入特征丰富节点,并将会话分类为良性或受攻击。评估了三种GNN架构(GAT、GCN、GraphSAGE)、一个无图MLP以及经典基线(XGBoost、随机森林、逻辑回归、线性SVM),完整架构比较在RAS-Eval(任务分层分割)上进行,GraphSAGE作为GNN基线保留在ATBench和组合源变体(均标签分层)上。得出三个发现。首先,内容级特征至关重要:仅元数据检测的AUROC停滞在0.64左右,无论架构如何,而内容嵌入将AUROC推高至0.89以上。其次,相对于任务不相交分割,朴素随机分割评估将AUROC高估多达26个百分点,这是先前agent检测工作未解决的记忆混淆问题。第三,检测信号主要存在于SBERT内容嵌入中:在池化嵌入上,树集成达到了0.975的AUROC,在大多数情况下优于主要RAS-Eval设置中的神经架构,包括GNN(0.917)和MLP(0.896),并且自监督预训练在此任务上未带来标签效率优势。

英文摘要:

The Model Context Protocol (MCP) has become a widely adopted interface for LLM agents to invoke external tools, yet learned monitoring of MCP tool-call traffic remains underexplored. In this article, the proposed detector is presented as an attack detection framework for MCP tool-call traffic that encodes each agent session as a graph (tool calls as nodes, sequential and data-flow links as edges), enriches nodes with sentence-embedding features over arguments and responses, and classifies sessions as benign or attacked. Three GNN architectures (GAT, GCN, GraphSAGE), a no-graph MLP, and classical baselines (XGBoost, random forest, logistic regression, linear SVM) are evaluated, with the full architecture comparison conducted on RAS-Eval (task-stratified splits) and GraphSAGE retained as the GNN baseline on ATBench and a combined-source variant (both label-stratified). Three findings emerge. First, content-level features are essential: metadata-only detection plateaus around an AUROC of 0.64 regardless of architecture, while content embeddings push the AUROC above 0.89. Second, naive random-split evaluation inflates AUROC by up to 26 percentage points relative to task-disjoint splits, a memorization confound that prior agent-detection work has not addressed. Third, the detection signal resides primarily in the SBERT content embeddings: an AUROC of 0.975 was reached by tree ensembles on pooled embeddings, performing, for the most part, better than the neural architectures in the primary RAS-Eval setting including GNNs (0.917) and the MLP (0.896), and self-supervised pre-training does not deliver a label-efficiency advantage on this task.

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

↑