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