Reproduce “Quantifying Conversation Drift in MCP via Latent Polytope” on OpenResearch
Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.
Universal app for Apple silicon and Intel. Requires macOS 11 or later.
About this paper
Haoran Shi, Hongwei Yao, Shuo Shao, Shaopeng Jiao, Ziqi Peng, Zhan Qin, Cong Wang
Researchers from Zhejiang University and collaborators introduced SECMCP, a security framework for Model Context Protocol (MCP)-enabled LLM agents that quantifies conversational drift by analyzing internal LLM activation patterns. This method effectively detects malicious inputs, such as tool poisoning and indirect prompt injection, achieving an average AUROC of 0.98 in evaluations.
Key insights
- Adversarial instructions, even subtle ones, induce distinct activation patterns within the LLM's latent space, which can be identified as deviations from expected conversational trajectories.
- Defining an 'authorized access region' in a high-dimensional feature space using benign anchor points allows for the mathematical quantification of anomalous shifts in LLM behavior.
- Visualizations confirm that benign and malicious conversational samples form distinct clusters based on their activation deviations, supporting the premise of internal state-based detection.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.