From Models to Services: Systematizing Security Assurance for Model-as-a-Service
Zhou et al. in Inference & systems
What gets missed when language models become services?
From Models to Services: Systematizing Security Assurance for Model-as-a-Service
The model sits inside a service stack

Model-as-a-Service (MaaS) serves models via provider APIs; developers build apps around them. Its five layers span model supply to output; the framework uses five trust boundaries, six adversaries and six goals.
Five trust boundaries create different attack surfaces
- 1
Client to API (TB1)
Prompts enter; callers can observe text, log-probabilities, embeddings or latency.
- 2
Between tenants (TB2)
Shared batching and prefix caches let one tenant's requests affect another tenant's latency.
- 3
Inside the context (TB3)
Developer instructions, user input and third-party content become one token sequence, with no enforcement point between them.
- 4
Customer/provider and supply chain (TB4-TB5)
Customers receive claims about the model and token count; upstream corpora, checkpoints and software can also be compromised.
The security target includes the service contract
The survey finds that model-centric work often leaves provider-side model substitution and usage reporting outside its threat model.
At published decoding settings, sequence distributions (hidden reasoning included) must match the contracted model within agreed tolerance; bills track actual tokens at published prices; loaded artifacts execute only declared code.
Research attention tilts away from service-level goals

Across 120 coded studies, behavioral integrity leads (53; 44.2%). Service integrity, availability and cost, and accountability together account for 16 distinct studies (13.3%); none of 50 defenses targets availability and cost.
Production tests favor attacks and measurements over defenses
45 of 70 attack and measurement studies (64.3%) included a production service.
15 of 50 defense studies (30.0%) included a production service.
Transfer of open-model defense results to the APIs most deployments use remains untested.
Who has to install the defense?

The figure groups defenses by deployer. Developers or users can deploy 20 of 50 without provider cooperation; the other 30 require it. None of the ten cryptographic or hardware defenses against the provider is unilateral.
Treat the counts as a map, not a census
Search coverage
Search terms and venue priorities shape the 120-study corpus; newer work and less-studied goals may be undercounted.
Representative G3 sample
Behavioral-integrity studies are representative, not exhaustive, so their share is a lower bound.
Coding judgment
Agreement was lowest for adaptive-evaluation and client-deployability codes.
Why it matters
- MaaS security covers model behavior, shared inference, mixed-trust context, and the provider-customer contract.
- For a deployment, map each defense to its trust boundary, target adversary, evaluation setting, and actual deployer.
- Can customers verify the served model and billed tokens on production APIs at scale without provider cooperation?
9 slides, 2 min
5 days ago