From model to service: a systematic review of security assurance for model-as-a-service (MaaS)From Models to Services: Systematizing Security Assurance for Model-as-a-Service
The authors encode 120 MaaS studies with a five-layer, five-boundary model and evaluate 50 defenses, stating that 44.2% concentrate on behavioral integrity and that provider-resistant mechanisms all require provider cooperation.
- MaaS couples models, tenant data, context, and billing in the service pipeline, but the related research is scattered and uses different threat models, making it difficult to determine which risks a deployment covers, whether mechanisms can be combined, and where the gaps are.
- The authors divide MaaS into five layers, five trust boundaries, six attacker types, and six security goals, and on that basis code 120 studies, assess 50 defenses against six criteria, and then compare them with seven groups of standards and regulations.
- The authors report that 44.2% of studies involve behavioral integrity, and G4 through G6 total 13.3%; the production service evaluation rate is 64.3% for attack and measurement studies and 30.0% for defenses, and cryptographic or hardware mechanisms against providers all require their cooperation.
- The authors state that the corpus is incomplete, that collection is less complete for 2025 and 2026, that G3 is a representative sample, and that coding consistency is lower for adaptive evaluation and deployability; percentages describe only this corpus, and counts such as G5 and AT should be regarded as lower bounds.
- Metrics
- 研究目标、攻击者与层级的编码分布生产服务评测比例客户可部署性≥7B参数模型演示自适应攻击评测Cohen’s κ
From a service perspective, the researchers systematically reviewed research on the security assurance of Model-as-a-Service (MaaS), decomposing MaaS into a five-layer architecture and five trust boundaries, defining six classes of adversaries and six security goals, and on this basis coding 120 studies and evaluating 50 defenses under a unified standard. The results show that 44.2% of the studies focus on behavioral integrity, while service integrity, availability and cost, and accountability together account for only 13.3%; the proportion of defenses evaluated on production services is less than half that of attacks, and none of the existing cryptographic or hardware mechanisms for guarding against service providers can be adopted unilaterally by customers. The paper concludes by proposing a research agenda in light of current standards and regulations.
Related events and news
1 events · 0 news mentions
- This event's paper
研究系统梳理MaaS安全并评估50项防御
Paper analysis
What problem does this paper attempt to solve?
The authors aim to unify the scattered threat models of MaaS and locate gaps in research, deployment, and standards coverage.
The core problem is: MaaS security research is scattered across different fields and threat models, making it difficult to determine which risks a given service deployment actually covers and which safeguards can be combined.
- Service scenario: providers host models, developers layer on system prompts, RAG, and tools, and users interact through applications; natural language makes instructions and data share a channel, and the shared inference runtime introduces cross-tenant interference and conflicts of interest in usage-based billing.
- Shortcomings of existing surveys: the authors state that trustworthy LLM and security/privacy surveys are mostly organized by model properties or attack types, agent surveys focus on the agent loop, and the guardrails SoK only goes deep on one class of defenses; they do not uniformly address provider misreporting of service, the shared runtime attack surface, and the distribution of research effort.
- Core observation: model-centric taxonomies do not cover service integrity, availability, and cost objectives arising from the commercial relationship between customers and providers; a defense's trust anchor also determines whom it can defend against and who deploys it.
- Paper outputs: proposes a system model with five layers, five trust boundaries, six attacker classes, and six objectives, codes 120 studies, evaluates 50 defenses against six criteria, maps them item by item against seven sets of standards and regulations, and gives five lessons and seven open problems.
- Threat model: this is a systematization of research rather than a single attack scheme; Table II defines six attacker classes by access and the boundaries crossed.
- Objectives: include extracting models or data, corrupting behavior, inferring other tenants' content, replacing models or misreporting usage, exhausting resources, and implanting backdoors.
- Knowledge and capabilities: AQ has only black-box text and optionally log-probabilities or embeddings; AF can upload fine-tuning data; AC controls content entering the context.
- Insider and outsider attackers: AT observes co-tenant timing or encrypted traffic; AP views prompts, outputs, and service configuration; AS controls training data, checkpoints, adapters, or loaders.
- Victim systems: the five-layer MaaS stack in public APIs, dedicated or private deployments, intermediary deployments, and decentralized or edge deployments.
What related research exists?
Related work is divided into existing surveys, six classes of attacks, nine groups of safeguard mechanisms, and benchmarks and adaptive evaluation.
Existing surveys and SoKs
- Papernot et al. (2018): systematizes machine learning security and privacy in the MLaaS era, discussing the training and inference attack surface; the authors note that it predates LLMs and their inference runtimes.
- Liu et al. (2023), Huang et al. (2024) with Yao et al. (2024), and Das et al. (2025): organize trustworthy LLM and security/privacy research by model properties and by attack and defense types, respectively.
- Ng and Chow (2023), Wang et al. (2025), Deng et al. (2025), and Wang et al. (2026): study cryptographic neural network computation, the LLM supply chain, agent threats, and jailbreak guardrails, respectively; the authors note that Ng and Chow consider only a curious server and do not cover the remaining service layers.
Attack and measurement studies
- Model and data confidentiality: Carlini et al. and Finlayson et al. study log-probability leakage, Krishna et al., Wallace et al., and Gudibande et al. study functionality imitation; Carlini et al., Nasr et al., and membership inference work study training data leakage.
- Behavioral and service security: GCG, PAIR, TAP, AutoDAN, and multi-turn and long-context work study jailbreaks; Greshake et al., Liu et al., InjecAgent, and PoisonedRAG study injection and knowledge base poisoning.
- Runtime, provider, and cost: Song et al., Gu et al., PromptPeek, and Weiss et al. study cache or traffic side channels; Gao et al., Cai et al., and Sun et al. study model replacement, output bias, and hidden token billing, while sponge examples, Engorgio, and OverThink study resource consumption.
Safeguard mechanisms and evaluation practice
- Defense grouping: the authors discuss hardware isolation, cryptographic inference, verifiable services, runtime isolation, statistical privacy, model hardening, input-output mediation, architectural isolation, and provenance, and uniformly code 50 defenses in Table V.
- Benchmarks and comparisons: related work uses DecodingTrust, TrustLLM, HarmBench, JailbreakBench, AgentDojo, InjecAgent, BIPIA, Agent Security Bench, and AgentHarm; this paper does not itself run these benchmarks or set model baselines.
- Adaptive evaluation: Zhan et al. (2025) and Nasr et al. (2026) re-attack indirect injection, jailbreak, and injection defenses, respectively; the authors use this to discuss the difference between static evaluation and full adaptive attacks.
The authors position this paper as taking the service as the modeling object, including providers and co-tenants as attackers, introducing service integrity and cost objectives, and comparing mechanisms from the perspectives of customer deployability and quantitative literature coding; Table VII gives an item-by-item comparison with related surveys.
How does the paper address this problem?
The authors first build the service layer, boundary, and objective model, then screen and code the literature and uniformly review defenses and standards.
The overall approach is to take MaaS rather than a single model as the object of analysis, code the literature with the same set of layers, boundaries, attackers, and objectives, and then compare safeguards by trust anchor and deployer.
Service stack and trust boundaries
- Five-layer structure: L1 is model supply and customization, L2 is the inference runtime, L3 is the interface and metering, L4 is context assembly, and L5 is output and downstream use; Figure 1 also marks the assets and attacker entry points at each layer.
- Five boundary types: TB1 connects customers and the interface, TB2 separates tenants, TB3 separates system prompts, user input, and third-party content, TB4 connects customers with providers or intermediaries, and TB5 connects providers with the upstream supply chain.
- Deployment forms: public APIs, dedicated or private deployments, intermediary deployments, and decentralized or edge deployments share this stack, but different parties control different layers; the authors use this to judge the trust conditions a defense presupposes.
Attackers and security objectives
- Six attacker classes: AQ is a query-only user, AF is a customization user, AC is a content injector, AT is a side-channel observer, AP is a provider or intermediary, and AS is a supply-chain attacker; the classes are not ordered by strength, and the same party can hold multiple classes.
- Six objectives: G1 model and application confidentiality, G2 user and data confidentiality, G3 behavioral integrity, G4 service integrity, G5 availability and cost, G6 accountability and provenance.
- G4 formalization: ∀ x∈ X:D(S(x),M∗(x))≤ϵ and c(S,x)=π(τS(x)), requiring that the actual service distribution be close to the contractually agreed model and that billing equal the public price function applied to the actual number of tokens consumed; the full generated sequence includes hidden reasoning tokens that are not returned.
- Additional requirements: G4 also requires that loaded model artifacts execute no code beyond the declared computation; the authors state that a customer seeing only a single output cannot detect covert model replacement or misreported token counts.
Literature collection, screening, and coding
- Search scope: searches of DBLP, Google Scholar, ACM Digital Library, and IEEE Xplore, covering work up to June 2026, prioritizing security, machine learning, and language venues, with three rounds of forward and backward snowballing.
- Screening process: 2,316 records remain 1,487 after deduplication, title and abstract screening retains 268 full texts, 177 are excluded leaving 91, snowballing and targeted additions add 29, for a final total of 120.
- Corpus composition: includes 52 attacks, 18 measurements or benchmarks, and 50 defenses, published from 2020 to 2026; G3 includes only representative studies, while the remaining objectives and AT- and AP-related studies aim for comprehensive coverage.
- Coding dimensions: Table I specifies type, layer, attacker, objective, evaluation environment, safeguard type, adaptive evaluation, customer deployability, and whether demonstrated on a model of at least 7B parameters; when there are multiple settings, the strongest setting is recorded.
- Quality control: the first author coded all studies, and the second author independently coded a random 30 studies (25.0%), with Cohen's κ of 0.71 to 0.94 across dimensions; disagreements were resolved by discussion, and the resulting rules were used to recheck the remaining codes, with full results listed in Table VIII of Appendix A.
Analysis of defenses, standards, and open problems
- Six defense criteria: Table V records the target attacker, safeguard type, whether customers can deploy it independently, ≥7B demonstration, production service evaluation, and adaptive evaluation; Figure 3 groups by mechanism family and deployer.
- Attack taxonomy: Table IV organizes 25 attack categories by objective, attacker, required access, boundary, and whether a representative study validates it on a production service.
- Standards mapping: Table VI maps OWASP, MITRE ATLAS, CSA, NIST, ISO/IEC 42001, the EU AI Act, and China's Interim Measures and GB/T 45654-2025 item by item as covered, partially covered, or not covered.
- Scope exclusions: hallucination and factuality without an adversary, open-weight model security requiring direct weight modification, and general cloud and hardware security unrelated to model services are excluded unless they interact with MaaS.
What experiments did the paper conduct?
The paper does not run model experiments; its main evidence is coding of 120 papers, review of 50 defenses, and standards mapping.
Experimental Setup
- Nature of the study: The authors did not train or attack models, nor did they run benchmarks themselves; the evidence comes from literature screening, full-text coding, figures from existing work reports, and comparison against standard clauses.
- Analysis objects: 120 primary studies comprise 52 attacks, 18 measurement or benchmark studies, and 50 defenses; Table IV separately summarizes 25 attack categories, and Table V evaluates all 50 defenses.
- Models and benchmarks under test: This paper has no models under test or benchmark list of its own; GPT, LLaMA, BERT, and FreshQA, SQuAD, etc. appear only in paraphrases of the coded studies and cannot be regarded as experiments reproduced by the authors.
- Metrics: The distribution of studies by target, attacker, and layer, as well as the proportions of production-service evaluation, ≥7B demonstration, customer deployability, and adaptive evaluation; layer, attacker, and target are multi-value coded.
- Counting rules: A single study can enter multiple cells, so the Figure 4 row sums do not equal 120; for multiple settings, the strongest evaluated setting is taken, and studies with both measurement and defense are assigned to only one category based on primary contribution.
- Consistency and duplication: The second author reviewed a random 30 studies (25.0%), with Cohen’s κ ranging from 0.71 for adaptive evaluation to 0.94 for type; retrieval used three rounds of snowballing, and the paper does not report statistical significance tests for the coded proportions.
Main Results
Coded finding Count and proportion Source Published in 2023 or later 108 studies (90.0%) Section VIII Published in 2024 or later 89 studies (74.2%) Section VIII G3 behavioral integrity 53 studies (44.2%) F1 G2 user and data confidentiality 46 studies (38.3%) F1 G1 model and application confidentiality 25 studies (20.8%) F1 G4, G5, G6 combined 16 studies (13.3%) F2 Attack and measurement studies including production-service evaluation 45/70 (64.3%) F5 Defenses including production-service evaluation 15/50 (30.0%) F5 - Research concentration: The authors state that the field concentrates on G3 and AQ; AQ appears in 65 studies (54.2%), and the largest cell in Figure 4(a) is AQ×G3, with 30 studies.
- Few service targets: F2 breaks down G4 as 7 studies, G5 as 5 studies, and G6 as 5 studies, with one study involving both G4 and G5; none of the 50 defenses targets G5.
- Asymmetric evaluation environments: The authors state that most defenses are evaluated only on open-weight models controlled by the defender, and whether they transfer to the APIs used in actual deployment has not yet been tested.
Provider Threats and Deployment Conditions
- Asymmetry between research and defenses: AP appears in 20/50 defenses (40.0%) but in only 6/70 attack and measurement studies (8.6%); of these, 3 invert embeddings held by the storage provider, and only 2 study providers that misreport the content they serve.
- Strong guarantees require cooperation: F4 states that none of the 10 cryptographic or hardware mechanisms targeting the provider can be adopted by the customer alone; of the 8 cryptographic inference protocols, only 2 are demonstrated on models with at least 7B parameters.
- Scope of customer deployability: Of the 20 defenses targeting AP, only 6 can be deployed by the customer, namely 5 prompt sanitization schemes and model equality testing; Figure 3 overall gives 20/50 on the customer side and 30/50 on the provider side.
Adaptive Evaluation and Runtime Isolation
- G3 defense evaluation: Of the 20, 5 (25.0%) report full adaptive evaluation, 7 are partial evaluations, and 8 have none; the Adapt. column of Table V records the situation for each mechanism.
- Third-party re-evaluation: Zhan et al. bypass all 8 indirect injection defenses they tested, with ASR above 50% for each; Nasr et al. bypass all 12 jailbreak and injection defenses, with ASR above 90% for most of them, whereas most original evaluations were near zero.
- AT coverage: All 4 attack or measurement studies involving AT were published in 2024 or 2025, and 3 demonstrate leakage on production systems; SafeKV is the only defense targeting AT in the corpus, is evaluated only on an open-source serving framework, relies on sensitive-content detection, and has no adaptive evaluation.
Other Ablations and Analyses
- Cross-layer combinations: Only 7 studies (5.8%) span multiple layers, and all address only one target; no study evaluates how mechanisms at different layers combine (F8).
- Customization and supply chain: AF appears in 3 studies and AS in 5 studies, and the corpus contains no defense targeting AS (F8).
- Standards mapping: The authors state that none of the seven framework groups covers G4 from the customer perspective; OWASP, ATLAS, and CSA list G5 risks, but the coded defenses do not address G5 (Table VI).
- Cited measurement results: Gao et al. audit 4 Llama models across 9 commercial inference providers, and 11 of 31 endpoints have output distributions different from Meta’s reference weights; this is a paraphrase of the literature, not a re-test by this paper.
- Cited defense results: model equality testing uses 10 samples per prompt on average and reports 77.4% median power; CoIn reports a detection success rate of up to 94.7%, both of which must be understood according to the original study settings.
What are some points that can be further explored?
The authors explicitly list limitations of the corpus and coding, and propose seven directions including verifiable service, isolation, and adaptive evaluation.
Limitations and Future Directions Noted by the Authors
- Corpus coverage: Limitations in Section III states that the corpus is incomplete and its composition is affected by search terms and venue priority; studies from 2025 and 2026 are less completely collected, and counts for directions such as G5 and AT should be regarded as lower bounds.
- Sampling and scope of interpretation: The same section states that G3 is a representative sample, and the actual share of G3 in the field is no lower than the figure in this paper; all percentages describe only this corpus and are used to reflect the concentration of research effort.
- Coding judgments: The same section states that coding involves judgment, and that consistency is lowest for the adaptive evaluation and deployability dimensions; the lowest Cohen’s κ in the second author’s review is 0.71.
- Production-scale verification: P1 in Section X proposes low-overhead verification of closed-source model identity and billed usage, and notes that CoIn requires provider cooperation and cannot confirm that hidden tokens are generated by the contracted model.
- Isolation and confidentiality: P2 seeks a definition of tenant isolation that does not depend on content judgment and a measurable loss of cache efficiency; P3 proposes possible directions such as hybrid TEE and cryptographic approaches and split local and remote inference.
- Composition, evaluation, and accountability: P4 addresses composable information flow across multi-agent, memory, and tool ecosystems; P5 requires benchmarks to include side channels, service integrity, and cost attacks and to report adaptive attack budgets; P6 focuses on covert fine-tuning coding and artifact scanning, and P7 proposes auditable logs for customers and regulators.
Scope of Experimental Coverage
- Evidence types: This paper does not itself run models, attacks, defenses, or benchmarks; the quantitative results come from coding 120 papers and paraphrasing the original study reports (Sections III, V, VI, VIII).
- Time and types: The corpus covers 2020 to 2026 and includes 52 attacks, 18 measurement or benchmark studies, and 50 defenses; G3 uses representative sampling, while the remaining goals and AT and AP studies aim for comprehensive coverage.
- Defense review: Table V uniformly records six criteria for the 50 defenses, and Figure 3 groups them by deployer; production service, ≥7B, and adaptive evaluation are all coded according to the original study reports.
- Standards scope: Table VI maps seven groups of frameworks and regulations, with ratings based on specific clauses; the authors do not report separate standards-compliance testing.
- Review scale: Independent review covers a random 30 studies (25.0%); the paper does not report double independent coding of all 120 studies, nor confidence intervals or statistical significance tests for the coded proportions.
Summarize the main content of the paper
This is a SoK on MaaS security that uses a unified service model to quantify gaps in research, evaluation, and deployment.
This is a systematic knowledge study oriented toward Model-as-a-Service; its focus is not on proposing new attacks or defenses, but on incorporating the shared services, commercial metering, and multi-party trust behind model capabilities into security analysis.
- Problem: Existing research is organized in a scattered way by model attributes or attack types, making it difficult to answer service-level questions such as providers misreporting models or usage, co-tenant side channels, and combinations of defenses at different layers.
- Method: The authors establish a five-layer stack, five trust boundaries, six attacker types, and six security goals, and define service integrity with Eq. 1; they screen and code 120 studies, review 50 defenses against six criteria, and then map seven groups of standards and regulations.
- Research distribution: G3 behavioral integrity involves 53 studies (44.2%), G4, G5, and G6 combined involve 16 studies (13.3%); AQ appears in 65 studies (54.2%), and only 7 studies (5.8%) are cross-layer.
- Evaluation realism: 45/70 attack and measurement studies (64.3%) include production services, versus 15/50 defenses (30.0%); among the 20 G3 defenses, full, partial, and no adaptive evaluation are 5, 7, and 8 studies, respectively.
- Deployment gap: All 10 cryptographic or hardware mechanisms targeting the provider require provider cooperation; of the 20 AP defenses, only 6 can be deployed by the customer, and none of the 50 defenses targets G5.
- Authors’ conclusion: The authors state that research on jailbreaks and prompt injection is progressing relatively quickly, whereas research on dishonest service, service-layer leakage, cost abuse, and combinations of cross-layer protections is relatively scarce; the follow-up agenda includes production-scale verifiable service, runtime isolation, practical confidentiality against the provider, guarantees for agent composition, adaptive service-level evaluation, supply-chain defenses, and auditable accountability.