paper-with-me

Papers

Can LLM Infer Risk Information From MCP Server System Logs?

2025-11-08 · Jiayi Fu, Yuansen Zhang, Yinggui Wang arxiv

Large Language Models (LLMs) demonstrate strong capabilities in solving complex tasks when integrated with external tools. The Model Context Protocol (MCP) has become a standard interface for enabling such tool-based interactions. However, these interactions introduce substantial security concerns, particularly when the MCP server is compromised or untrustworthy. While prior benchmarks primarily focus on prompt injection attacks or analyze the vulnerabilities of LLM-MCP interaction trajectories, limited attention has been given to the underlying system logs associated with malicious MCP servers. To address this gap, we present the first synthetic benchmark for evaluating LLMs' ability to identify security risks from system logs. We define nine categories of MCP server risks and generate 1,800 synthetic system logs using ten state-of-the-art LLMs. These logs are embedded in the return values of 243 curated MCP servers, yielding a dataset of 2,421 chat histories for training and 471 queries for evaluation. Our pilot experiments reveal that smaller models often fail to detect risky system logs, leading to high false negatives. While models trained with supervised fine-tuning (SFT) tend to over-flag benign logs, resulting in elevated false positives, Reinforcement Learning with Verifiable Reward (RLVR) offers a better precision-recall balance. In particular, after training with Group Relative Policy Optimization (GRPO), Llama3.1-8B-Instruct achieves 83 percent accuracy, surpassing the best-performing large remote model by 9 percentage points. Fine-grained, per-category analysis further underscores the effectiveness of reinforcement learning in enhancing LLM safety within the MCP framework. Code and data are available at https://github.com/PorUna-byte/MCP-RiskCue.

📄 PDF Abstract BibTeX arXiv:2511.05867

Code (0)

등록된 구현이 없습니다.

Tasks

Reinforcement Learning

Similar Papers 제목 키워드 기반

Client Error Clustering Approaches in Content Delivery Networks (CDN)

2022-10-11 · Ermiyas Birihanu, Jiyan Mahmud, Péter Kiss, Adolf Kamuzora 외

Content delivery networks (CDNs) are the backbone of the Internet and are key in delivering high quality video on demand (VoD), web content and file services to billions of users. CDNs usually consist of hierarchically o…

Clustering

End-to-end solution for linked open data query logs analytics

2024-03-09 · Dihia Lanasri

Important advances in pillar domains are derived from exploiting query-logs which represents users interest and preferences. Deep understanding of users provides useful knowledge which can influence strongly decision-mak…

Decision Making

Evoflux: Inference-Time Evolution of Executable Tool Workflows for Compact Agents

2026-06-10 · Kushal Raj Bhandari, Ling Yue, Ching-Yun Ko, Dhaval Patel 외 arxiv

Compact language models (LMs) reduce cost, latency, and deployment risk for tool agents. Yet MCP-style tool use requires more than isolated function calling: an agent must discover tools from live catalogs, satisfy schem…

Security Logs to ATT&CK Insights: Leveraging LLMs for High-Level Threat Understanding and Cognitive Trait Inference

2025-10-23 · Soham Hans, Stacy Marsella, Sophia Hirschmann, Nikolos Gurney arxiv

Understanding adversarial behavior in cybersecurity has traditionally relied on high-level intelligence reports and manual interpretation of attack chains. However, real-time defense requires the ability to infer attacke…

Intrusion Detection

Vicious Classifiers: Assessing Inference-time Data Reconstruction Risk in Edge Computing

2022-12-08 · Mohammad Malekzadeh, Deniz Gunduz

Privacy-preserving inference in edge computing paradigms encourages the users of machine-learning services to locally run a model on their private input and only share the models outputs for a target task with the server…

Edge-computingPrivacy PreservingReconstruction Attack