arXiv Science⌕ Search

arXiv subjects

Mingming Zha

Publications and source records attributed to Mingming Zha.

2 recordsLinked to original sources

Agent Smith in Action: Internet-scale, Automated Security Analysis of MCP Tools

The Model Context Protocol (MCP) has rapidly emerged as a common interface through which AI applications and agents connect to external tools, raising a software-engineering challenge for security analysis: independently developed tools are often composed at run time by a large language model (LLM) or a user through files, shared state, parameters, and conversational context, allowing exploitable tool chains to arise even when each individual tool appears benign. These implicit cross-tool dependencies are absent from conventional source-level call graphs, limiting the effectiveness of existing rule-based and interprocedural analyzers for ecosystem-scale MCP auditing. We present SCAN-MCP, a tool-chain-aware framework for detecting security flaws in MCP servers. SCAN-MCP combines LLM-assisted tool-handler mapping, Tree-sitter-based static slicing, semantic source-and-sink inference, inter-tool dependency graph construction, and deterministic structural and type checks. The LLM proposes mappings, flows, and proof-of-concept sketches. Source-level and structural checks screen proposals, and analysts manually validate reports from the sampled servers in an isolated sandbox. From a corpus of 10,121 MCP servers with 90,200 discovered tools, SCAN-MCP produced 27,123 reported findings, including 8,422 tool-chain reports (31.05%). On a language- and marketplace-stratified subset of 100 of these servers, we confirmed 105 of 130 single-tool reports and 19 of 20 tool-chain reports (124/150, 82.67% overall precision). SCAN-MCP achieved the highest observed precision among the evaluated analyzers on this subset. Sink-only controls reproduced the asserted effect in 0 of the 19 confirmed tool-chain cases under the tested conditions. These results show that securing the MCP ecosystem requires analyzing tool compositions, not only individual tool implementations.

cs.CR↗

Autonomous LLM Agent Worms: Cross-Platform Propagation, Automated Discovery and Temporal Re-Entry Defense

Autonomous LLM agents operate as long-running processes with persistent workspaces, memory files, scheduled task state, and messaging integrations. These features create a new propagation risk: attacker-influenced content can be written into persistent agent state, re-enter the LLM decision context through scheduled autoloading, and drive high-risk actions including configuration changes and cross-agent transmission. We present the first systematic framework for automated analysis of persistent worm propagation in file-backed multi-agent LLM ecosystems. SSCGV, our automated source-code graph analyzer, traces data flow from file I/O to LLM context injection points and ranks carriers by context injection position without manual analysis. SRPO, our summary-resilient payload optimizer, generates worm payloads robust to LLM-mediated summarization and paraphrasing across multi-hop communication. Evaluated on three production agent frameworks, we demonstrate zero-click autonomous propagation, 3-hop cross-platform transmission without platform-specific adaptation, inter-agent privilege escalation, and data exfiltration. We identify two empirical insights: user prompt carriers achieve higher attack compliance than system prompt carriers, and read operations represent the primary integrity threat in LLM-mediated systems. To defend against this class of attacks, we develop RTW-A, proven under a formal No Persistent Worm Propagation theorem. RTW blocks write-before-exposed-read re-entry; sealed configuration protects static files; typed memory promotion prevents untrusted summaries from entering trusted memory; and capability attenuation limits high-risk actions after external reads. These mechanisms eliminate the persistence, re-entry, action chain while preserving ordinary workflows. Affected systems are anonymized pending coordinated disclosure.

cs.CR↗