Back to search

Nanyang Technological University

Securing machine learning as a service: attack identification and defense design

Abstract

dc:description.abstract

The rapid development of deep learning (DL) has fostered numerous innovative applications across various fields. One important application is Machine Learning as a Service (MLaaS), which enables users to enjoy DL models in a convenient and cost-effective way. However, these DL-based applications have also raised concerns about the inherent privacy and security vulnerabilities. This has led to a significant body of research dedicated to identifying potential vulnerabilities and building defense solutions for DL models. With the recent evolution of DL algorithms and computing infrastructure, many of the latest models, such as diffusion models and large language models, have become integral to MLaaS, exhibiting new security risks and necessitating new protection solutions. Motivated by these, this thesis aims to investigate the security challenges posed by the cutting-edge DL models in MLaaS, including privacy, safety, and intellectual property (IP) protection. This thesis can be divided into two parts, consisting of four concrete works. In the first part, we study the security problems associated with the AI model. We consider the privacy vulnerability and IP protection of DL models in MLaaS. Specifically, our first work focuses on model extraction attacks, aiming at stealing a remote model's functionalities. We explore a novel scenario in which the target model is adversarially robust, and the adversary seeks to fully replicate the model's functionalities, including both robustness and accuracy. A new model extraction attack is proposed, which can adaptively steal all functionalities of the victim models with limited accessible data. We present the vulnerabilities faced by models with experimental results. In our second work, we consider the IP protection of image-to-image generative adversarial networks (GANs). We design a new fingerprinting solution, which achieves IP protection without additional fine-tuning, thereby ensuring high usability. Our scheme is robust against various adaptive attacks, unique in identifying stolen models and other models, and stealthy during the verification process. Through comprehensive studies, we demonstrate how model owners can implement fingerprinting schemes to identify and protect against stolen models, safeguarding their intellectual property. In the second part, we shift our research interest to the security problems associated with the AI-generated content. We are particularly interested in the generative MLaaS, which leverages advanced generative models to produce rich content (e.g., images, and language texts). However, such AI-generated content could be misused for illegal or unsafe purposes. In our third work, we consider content regulation, with a focus on content watermarking. This technique embeds secret messages into generated images as watermarks, which can later be extracted to verify the image's origin. However, we discover that existing content watermarking methods are highly vulnerable, even against a black-box adversary. To demonstrate this, we propose two distinct attacks: one that removes the watermark and another that forges it. Our findings expose the inherent risks of current content watermarking methods and offer insights that will inspire future research in this area. In our fourth work, we develop an automated testing methodology to identify safety risks in the generated content by text-to-image models. It is crucial to ensure that the emerging text-to-image models do not generate illegal or unsafe images in response to user prompts. Unlike previous works that focus on adversarially crafted prompts, our approach centers on the risks faced by benign users who use text-to-image models with harmless prompts. This is essential because normal users represent the majority in real-world applications, and understanding the security risks they encounter is vital, yet often overlooked. Our automatic red-teaming method reveals that many popular text-to-image models are unsafe, as they can generate illegal content even when given safe prompts. Therefore, our solution serves as a powerful tool for model developers to evaluate and enhance the safety of their applications. In summary, this thesis explores various security risks faced by modern deep learning models as the backend of MLaaS, including model privacy, model and content IP protection, and content safety. We propose innovative solutions and uncover previously overlooked risks, paving the way for the development of more advanced AI applications and systems.

Degree

thesis:*
College dc:contributor.school
College of Computing and Data Science
Grantor dc:publisher
Nanyang Technological University
Year dc:date.issued
2025

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Li, Guanlin
Advisor dc:contributor.supervisor
  • Zhang Tianwei

Subjects

dc:subject × 1

Rights

dc:rights
Statement dc:rights
  • This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License (CC BY-NC 4.0).
Language dc:language.iso
en

Identifiers

dc:identifier.*
Dc Identifier Citation
Li, G. (2025). Securing machine learning as a service: attack identification and defense design. Doctoral thesis, Nanyang Technological University, Singapore. https://hdl.handle.net/10356/182889

Chain of custody

source
Harvested from
Nanyang Technological University
Base URL
dr.ntu.edu.sg/oai/request
Last updated
2026-11-27
Source record
OAI-PMH GetRecord
citation

Li, Guanlin. Securing machine learning as a service: attack identification and defense design. Nanyang Technological University, 2025. https://doi.org/10.32657/10356/182889