TRANSMISSION // 2611.35948v1
A runtime checkpoint for AI database tools
Source published
A study of public database MCP servers finds broad permissions are common and tests MAP, which checks supported SQL messages against a server’s assigned role.

When an AI tool has database access, a valid password does not guarantee that each operation fits the tool’s job. Researchers studied this gap and tested a system that checks supported database commands before they are sent.
An AI assistant connected to a database can do more than answer questions: through a tool server, it may read or change stored information. The database usually sees the server’s account credentials, not the server’s intended role. If an analytics tool uses a credential that also permits deleting tables, the database may accept a destructive command as authorized—even if deletion is outside the tool’s job.
That mismatch is the focus of a preprint by Boyang Ma and colleagues. They ask whether database operations can be checked against the role assigned to the process that issued them, rather than relying only on the account’s permissions or on checks made earlier in the AI workflow.
Measuring the permission gap
The researchers began with records of 10,862 MCP servers in two public collections. They identified 272 repositories associated with relational SQL databases and retrieved 254, which they say represented 93.4% of that SQL-backed subset. For each repository, they compared permissions described in setup instructions, grant statements, and connection settings with SQL operations visible in the source code. They grouped operations into three broad classes: reading, modifying data, and administering database structures or roles.
In 207 of the 254 repositories, or 81.5%, documented credential authority exceeded the operation classes evident in the implementation. Forty-seven explicitly requested root, superuser, or all privileges; the authors report that 31 of those implementations contained only SELECT and INSERT operations. They also found hardcoded database credentials in 46 repositories, or 18.1%.
These are findings about the repositories and their documented configurations—not proof that every deployment uses those settings, or that every server can be exploited. The comparison also has limits: operations configured only at runtime may not appear in the source code, and some repositories could not be retrieved.
Checking supported commands at the host
The proposed system, MAP (MCP-Aware Privilege Enforcement), assigns a privilege ceiling to a server process at deployment. It then identifies which process is sending a database message, examines supported SQL protocol messages, classifies the operation, and blocks it before transmission if it exceeds that process’s ceiling. This check applies to the database-message paths MAP supports; traffic outside those paths continues under the database’s native controls. The database also applies its own permissions to operations MAP allows. The researchers designed MAP to work without changing MCP server source code or the database engine.
In an executable demonstration, adversarial context led a nominally read-only analytics server with administrative credentials to issue a DROP TABLE command. The database accepted the operation under the credential. With MAP assigning the process a read-only ceiling, the command was denied before reaching the database on the monitored path.
The team implemented a prototype for Ubuntu using eBPF, a Linux technology that can run checks at the operating-system boundary. Its evaluated protocol decoders covered MySQL and PostgreSQL query paths. In controlled tests, the researchers exercised eight SQL operations under each of three privilege ceilings through both MySQL COM_QUERY and PostgreSQL simple-query messages. Across 2,000 queries on these supported paths, classification and enforcement matched the expected policy, and database audit logs showed that denied commands did not arrive. This result does not validate all SQL statements or protocols.
The authors also evaluated unmodified servers. Of the 254 repositories, 123 executed successfully with their documented dependencies and database configuration; the other 131 lacked viable query paths in the study environment for reasons including incomplete code, unavailable dependencies, external authentication, or domain-specific infrastructure. Legitimate operations exercised in the 123-server tests continued to run under assigned ceilings, while tested out-of-class operations were blocked on supported paths.
A trade-off—and a bounded claim
In the reported workload, MAP added an average of 28 microseconds to query latency. Median throughput fell by 13.6%. The paper also reports higher latency costs at the far end of the distribution, so the average alone does not capture every performance effect. These performance measurements are separate from the compatibility tests on operational servers.
The results are evidence for a specific kind of protection, not a complete solution to database security. MAP uses broad operation classes—READONLY, WRITE, and ADMIN—not detailed rules about which tables or rows a query may access. The database’s own controls remain necessary for those decisions. The prototype covers particular message paths and SQL operations; traffic outside supported paths continues to rely on native database controls. The compatibility evaluation also covers only repositories that ran successfully under the study’s setup.
The central idea is to keep a tool’s job attached to the process that performs it, then check supported database operations as they leave the host. This could provide an additional boundary when credentials are broader than intended. But the work is a preprint, and its reported tests do not establish how MAP would perform across all database protocols, deployment environments, or real-world workloads. Independent evaluation would help clarify those questions.
- MCP security
- database authorization
- AI agents
- SQL
- runtime enforcement
- least privilege
Reviewed cross-references
These connections were reviewed by a model, not independently fact-checked by a human. Similarity does not imply agreement; consult the original papers and the evidence below.
When AI agents recover, can they lose their safeguards?
Supporting evidence: Both papers report controlled evaluations in which runtime enforcement blocks actions that violate an assigned security condition: MAP reports that denied SQL operations did not reach the database, while ARGUS reports no protection-loss events in its enforcement runs. This supports the bounded proposition that execution-time mediation can prevent specified violations in tested setups; MAP enforces process-level SQL operation ceilings, whereas ARGUS tracks workflow protection obligations across file, upload, and SQL tasks.
Model review: · openai-codex/gpt-6-luna
Evidence and provenance
Selected excerpts, not complete papers. PDF extraction can omit figures or damage equations, tables and reading order; sources may be preprints.
2611.35948v1 — Original paper
Excerpt reference:
static/papers/2611.35948v1.md:198-270
Basis: Paper text
Source file SHA-256:8d8da811b39a1d0ab2102397f5a5584b55f9bbf25cc5640b3b093c8cd30525792611.33605v1 — Original paper
Excerpt reference:
static/papers/2611.33605v1.md:122-176
Basis: Paper text
Source file SHA-256:4fa1a6f0bcdfdd9832460ce11e2a801a059806fa08981b433e4d0837dc3b4ff0
When AI agents change, should their permissions change too?
Supporting evidence: Both papers describe host-side checks at consequential execution boundaries: MAP denies out-of-role database operations before transmission, and ACCA reports that a local gateway rejected tested stale actions before the simulated-broker boundary. This supports only the bounded point that boundary enforcement can reject specified actions in evaluated systems; ACCA addresses authorization changes in a trading prototype, not MAP’s SQL privilege-ceiling threat, and its excerpt explicitly limits stronger effect-time guarantees.
Model review: · openai-codex/gpt-6-luna
Evidence and provenance
Selected excerpts, not complete papers. PDF extraction can omit figures or damage equations, tables and reading order; sources may be preprints.
2611.35948v1 — Original paper
Excerpt reference:
static/papers/2611.35948v1.md:198-270
Basis: Paper text
Source file SHA-256:8d8da811b39a1d0ab2102397f5a5584b55f9bbf25cc5640b3b093c8cd30525792611.05632v1 — Original paper
Excerpt reference:
static/papers/2611.05632v1.md:608-662
Basis: Paper text
Source file SHA-256:ca7168c9b84b129678897f8b70a3f5371eeae2f6ec21bf53deae52e8774c7b7c
Related reading
Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.
When an AI Tool Update Quietly Expands Its Powers
Source published
Shared keywords: ai agents, mcp security
Why an AI code gatekeeper cannot certify every safe program
Source published
Shared keywords: ai agents, runtime enforcement
When AI agents recover, can they lose their safeguards?
Source published
Shared keywords: runtime enforcement
Why SQL agents need knowledge while they work
Source published
Shared keywords: ai agents
How Taxi helps inspect AI-agent behavior at scale
Source published
Shared keywords: ai agents