Skip to content
Open access

SchemaGuard: Structure-Aware Detection of Tool-Poisoning and Skill-File Attacks in the LLM Agent Tool Supply Chain

2026 · Computers, Materials & Continua · pp. 1-10 · 0 citations · 44 references

TL;DR

SchemaGuard is introduced, a structure-aware guard model that screens MCP tool manifests, tool and parameter descriptions, and skill files for supply-chain poisoning at admission time and confirms that explicit structure-awareness, rather than model scale, is the dominant driver of accuracy.

Abstract

: Large Language Model (LLM) agents increasingly extend their capabilities by integrating third-party tools, most prominently via the Model Context Protocol (MCP), and by loading reusable skill files that inject procedural knowledge at runtime. This composability has created a new and largely unguarded software supply chain: an agent trusts the natural-language descriptions, parameter schemas, and skill bodies it ingests, yet any of these artifacts may carry adversarial instructions crafted to hijack tool selection, exfiltrate credentials, or install persistent policy-like directives. Existing defenses overwhelmingly operate at run time, inspecting model inputs and outputs while the agent executes, and they treat the incoming artifact as flat, undifferentiated text. We argue that a complementary and under-explored line of defense is pre-integration vetting: analyzing a candidate tool or skill before it is ever admitted into the agent. This paper introduces SchemaGuard, a structure-aware guard model that screens MCP tool manifests, tool and parameter descriptions, and skill files for supply-chain poisoning at admission time. We scope the contribution to this one-time admission decision, and position it as a necessary layer that composes with, rather than replaces, runtime containment and post-approval lifecycle controls such as signing and rescanning. SchemaGuard serializes each candidate artifact into a typed, field-delimited representation so that a compact fine-tuned language model can reason about where in the structure a malicious instruction hides, and it couples this static analyzer with a lightweight dynamic sandbox that flags capability and declaration mismatches. The model emits a calibrated trust score, a multi-label attack-category prediction, and a span-level localization of the offending text. We construct SchemaGuard-Bench, a labeled corpus of benign and poisoned artifacts spanning six attack families, and evaluate under a random split, a zero-shot held-out-category split, and an adaptive-attacker split. SchemaGuard attains an F1 of 0.946 and an Area Under the Receiver Operating Characteristic Curve (AUROC) of 0.981 on the random split, retains an F1 of 0.883 on entirely unseen attack categories, and outperforms a keyword baseline, an off-the-shelf prompt-injection guard, and a much larger frontier LLM-as-judge, while processing artifacts roughly two orders of magnitude more cheaply than the frontier judge. Ablations confirm that explicit structure-awareness, rather than model scale, is the dominant driver of accuracy.

Read PDF

Similar papers

Book Open access Sep 2026

Authority Is Not a String: A Capability-Scoped Harness for Prompt-Injection-Resistant Coding Agents

Coding agents use system-level tools to read files, execute commands, and modify source code. Within the agent’s sandbox, these tools often carry ambient authority: naming a resource is sufficient to act on it. Indirect prompt injection exploits this authority by placing instructions in repository files or tool output...

D. S. Bouras, Yi-Han Dai, Sergey Mechtaev · 4 citations
Book Open access Oct 2026

Formal Runtime Verification for Tool-Using LLM Agents: An Offline Same-Benchmark Study on AgentDojo and STAC

Results show that formal temporal monitoring adds value exactly when the trace exposes trustworthy history, and quantify how far current benchmarks are from that point and propose a twelve-field enforcement-ready trace schema.

Nikolaos Kekatos, Stylianos Basagiannis, Marinelio Chintri et al. · 2 citations
#artificial intelligence Preprint Sep 2026

ToolFence: Fine-Grained Authorization for Secure Tool-Using LLM Agents

This work introduces ToolFence, which compiles a typed authorization blueprint before execution, enforces it through a deterministic monitor, and when the blueprint is incomplete asks a judge to grant new capabilities rather than adjudicate each concrete call, improving runtime efficiency.

Yan-Jie Li, Xiang-Yu He, Xue-Long Dai et al. · 0 citations
#natural language process... Preprint Aug 2026

Beyond the Payload: How User Invocation Shapes Coding Agent Vulnerability to Repository Poisoning

CIPR (Coding In Poisoned Repos), the first benchmark that systematically varies PLCs in poisoned real-world repositories, is introduced and highlights that coding agent vulnerability is not a static property, but a dynamic outcome shaped by everyday user configurations.

Fu-Kang Zhu, Bin-Bin Zhao, Rui-Xiao Lin et al. · 1 citation
#artificial intelligence Review Sep 2026

ActionGuard: Tool Call Authorization under Poisoned Skills

Results show that execution-boundary authorization grounded in trusted user intent and runtime evidence can restrict unauthorized Tool Calls induced by skill injection, while maintaining high benign-task completion.

Ji-Hun Han, Ye-Jin Jang, Byung Il Kwak et al. · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.