From Models to Services: Systematizing Security Assurance for Model-as-a-Service

Jianming Zhou, Yang Luo, Guangpu Chen, Zhaoyu Chen, Yifeng Gao, Qingni Shen, Zhonghai WuarXiv 2026

TL;DR

When you query an LLM API, you aren't just interacting with a neural network—you're plugging into a complex, multi-tenant, metered cloud pipeline where nobody fully trusts anybody. This paper steps back from isolated AI attacks to map out the entire "Model-as-a-Service" (MaaS) ecosystem, systematically analyzing 120 security papers to see what we are actually defending. Spoiler: researchers are obsessed with stopping users from jailbreaking models, while leaving massive blind spots around dishonest cloud providers, inflated token bills, and leaky shared caches.

What Problem Does This Paper Address?

Very few organizations run frontier LLMs on their own metal. Instead, we rely on Model-as-a-Service (MaaS): a cloud provider hosts the weights behind an API, a developer wraps them with system prompts and retrieval-augmented generation (RAG), and an end user chats with the resulting app.

Unlike older cloud ML classifiers, MaaS introduces tricky new dynamics: instructions and untrusted data share the exact same natural-language channel, requests from competing customers are batched together and share memory caches to save money, and billing happens per token (including "hidden" reasoning tokens you never even see).

Security research around LLMs is booming, but it is fractured into silos with conflicting assumptions. Cryptography papers assume a nosy cloud provider; jailbreak papers assume a malicious user and a saintly provider; prompt-injection papers blame third-party websites. Because these threat models don't talk to each other, nobody has a clear picture of how defenses fit together across a real-world service—or what happens when multiple vulnerabilities collide.

Fig. 2. One RAG application on a commercial API attacked across four trust boundaries

Methods

Instead of proposing a single new hack or patch, the authors conduct a Systematization of Knowledge (SoK) built around a unified, service-level architecture:

  • Architectural Decomposition: They slice MaaS into a five-layer stack (from model supply and the shared GPU serving runtime up to developer context assembly and output) divided by five trust boundaries (TB1–TB5).
  • Unified Threat Model: They define six adversary classes (ranging from query-only users to co-located tenants and dishonest providers) and six security goals (G1–G6). Crucially, they formalize two commercial goals ignored by model-centric taxonomies: Service Integrity (did the provider secretly swap in a quantized model or pad my hidden token bill?) and Availability and Cost (can an attacker trigger a "denial-of-wallet" slowdown?).
  • Literature Coding & Regulatory Mapping: Using systematic database searches and citation snowballing, they code 120 primary studies and evaluate 50 concrete defenses on practical criteria—like whether a customer can deploy the defense without the cloud provider's help. Finally, they map major frameworks (like OWASP, MITRE ATLAS, and the EU AI Act) onto these goals to expose policy blind spots.
The five-layer MaaS stack, showing where the five trust boundaries sit and where six distinct types of adversaries enter the pipeline.

Datasets

Because this is a meta-study rather than a model-training paper, no ML training datasets are used. Instead, the authors construct a curated literature corpus from 2,316 initial search records (spanning DBLP, Google Scholar, ACM, and IEEE up to June 2026). After screening, they analyze 120 primary studies published between 2020 and 2026: 52 attack papers, 18 measurement/benchmark studies, and 50 defense papers. (While they mention existing community benchmarks like HarmBench and AgentDojo in passing, no new empirical benchmark datasets are introduced.)

Key Insights and Ideas

  • Your optimizations are someone else's side channel: To make LLM serving affordable, engines share Key-Value (KV) prompt caches across tenants. By measuring response latency, a co-located tenant can play "twenty questions" with the cache to reconstruct another customer's private prompts token by token.
  • The "Deployability Trap": Cryptographic inference (like multi-party computation) and confidential GPUs offer mathematically or hardware-backed privacy against a snooping provider. However, zero of them can be turned on unilaterally by the customer. If your API provider doesn't set them up, your only DIY privacy option is sanitizing words locally before sending the prompt, which degrades answer quality.
  • "In-band" guardrails have a short shelf life: Defenses that ask an LLM (or a secondary guard LLM) to spot prompt injections rely on model behavior—and adaptive attackers consistently bypass them. Structural, out-of-band isolation (like restricting tool permissions in code outside the LLM) sacrifices flexibility, but offers guarantees that clever prompting can't sweet-talk away.
  • Standards forget the buyer: Global AI regulations and industry frameworks worry plenty about supply-chain backdoors and jailbreaks, yet none require providers to give customers a way to verify which model actually answered their API call or whether the token bill is honest.

Key Results

  • Lopsided Research: 44.2% of coded studies focus on behavioral integrity (G3: jailbreaks and prompt injections). Meanwhile, the goals that actually define a commercial service—service integrity (G4), cost/availability (G5), and provenance (G6)—combined make up just 13.3% of the literature. Remarkably, 0 out of 50 coded defenses protect against cost/resource exhaustion attacks.
  • Real-World Testing Gap: 64.3% (45/70) of attack and measurement papers validate their findings on live production APIs, compared to just 30.0% (15/50) of defense papers, most of which only test on local open-weight models.
  • Customer Helplessness: Out of 50 defenses, customers or app developers can deploy only 20 on their own. Against a dishonest or curious provider ($A_P$), customers can unilaterally deploy only 6 of 20 proposed defenses (5 local prompt-sanitization tools and 1 statistical output-auditing test).
  • Missing Adaptive Tests: Only 25.0% (5/20) of behavioral integrity defenses were tested against full adaptive attacks (where the attacker knows how the defense works).

Limitations and Future Work

The authors note that their 120-paper corpus is not exhaustive—behavioral integrity (G3) is so massive they only coded a representative sample, meaning the real-world skew toward jailbreak research is even more extreme than 44.2%. Newer 2025–2026 papers are also naturally underrepresented due to citation lag, and qualitative coding always requires human judgment (though dual-author spot-checks yielded solid agreement, with Cohen's $\kappa$ between 0.71 and 0.94).

Looking ahead, the authors lay out seven open challenges for the community:

  1. Low-overhead verifiable serving so customers can cryptographically or statistically verify model identity and hidden-token billing at scale.
  2. Content-agnostic tenant isolation in serving engines (akin to constant-time cryptography) to kill cache timing leaks.
  3. Practical client-provider confidentiality, such as hybrid local/remote split inference.
  4. Composable information-flow controls for complex, multi-agent tool ecosystems.
  5. Service-level adaptive benchmarks covering cost attacks, side channels, and live APIs.
  6. Robust defenses for fine-tuning APIs and model hubs against covert data encoding and malicious checkpoints.
  7. Two-way accountability via privacy-preserving, auditable logs that serve paying customers and regulators—not just the cloud provider.

Summary updated

Abstract

Large language models are mainly delivered as cloud services, in which the assets of different principals are coupled within a single service pipeline, while the related security research is scattered across several fields with differing threat models. This paper systematizes this research from a service perspective. We decompose Model-as-a-Service (MaaS) into a five-layer stack and five trust boundaries, define six adversary classes and six security goals, use them to code 120 studies, and evaluate 50 defenses under a unified set of criteria. The results show that 44.2% of the studies concentrate on behavioral integrity, while service integrity, availability and cost, and accountability together account for only 13.3%. Defenses are evaluated on production services at less than half the rate of attacks, and none of the cryptographic or hardware mechanisms that protect against the provider can be adopted unilaterally by customers. Finally, we propose a research agenda by comparison with current standards and regulations.
BibTeX
@misc{zhou2026from,
  author = {Jianming Zhou and Yang Luo and Guangpu Chen and Zhaoyu Chen and Yifeng Gao and Qingni Shen and Zhonghai Wu},
  title = {{From Models to Services: Systematizing Security Assurance for Model-as-a-Service}},
  year = {2026},
  eprint = {2611.34623},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.34623},
}
Figure