SecureMCP: A Policy-Enforced LLM Data Access Framework for AIoT Systems via Model Context Protocol
Wonbae Kim, Hee-Kyong Yoo

TL;DR
SecureMCP is a comprehensive framework that enforces fine-grained security policies on LLM-generated SQL queries in AIoT systems, significantly reducing injection risks while maintaining query accuracy.
Contribution
It introduces a multi-layer defense framework combining RBAC and specialized modules to protect against prompt injection attacks in LLM-based SQL query generation.
Findings
Defense modules maintain high query accuracy (65.1%-76.4%) across roles.
SecureMCP achieves 82.3% policy compliance against adversarial queries.
Check_policy module accounts for 78.7% of query blocks.
Abstract
The deployment of Large Language Model (LLM)-generated SQL queries in Artificial Intelligence of Things (AIoT) systems introduces critical security risks, as prompt injection attacks can manipulate LLMs into producing unauthorized queries that expose sensitive data or execute destructive operations. Existing NL2SQL research focuses on query accuracy, while MCP server implementations provide only SQL-level protections without fine-grained role-based access control. This paper proposes SecureMCP, a policy-enforced LLM data access framework integrating Role-Based Access Control (RBAC) with an MCP server to establish multi-layer defense for LLM-generated SQL execution. The framework incorporates five defense modules -- check_policy for table-and-column-level RBAC, explain_gate for cost-explosive query blocking, SQL Interceptor for dangerous pattern detection, Risk Level Filter for SQL risk…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
