Back to search

Nanyang Technological University

Deep learning under the microscope: hardware-oriented attacks and robust defenses

Abstract

dc:description.abstract

Deep learning models are increasingly deployed across heterogeneous platforms, ranging from specialized AI hardware to large-scale cloud servers. While this enables impressive accuracy and efficiency, it also exposes new attack surfaces at the low-level system and hardware layers. Typical examples include side-channel leakages and fault-induced bit flips, which could undermine the target model's confidentiality, availability, and integrity. This thesis presents a series of hardware-oriented studies towards Deep Learning (DL) security, covering both new attack discovery and defense designs for side-channel and bit-flip threats. From the attack perspective, we first propose Mercury, an automated remote power side-channel attack that recovers the architecture of a victim Deep Neural Network (DNN) from a single execution trace. Mercury leverages a time-to-digital converter (TDC)-based timing/power monitor and formulates architecture recovery as a sequence-to-sequence learning task. By using RNN-CTC and Transformer-based decoders with attention, it reconstructs layer sequences with very low error rates and localizes the most informative leakage regions, thereby enabling downstream exploits such as adversarial example generation and membership inference without prior knowledge of the model. We further introduce BitHydra, the first bit-flip inference-cost attack against Large Language Models (LLMs). The attack objective is to induce the computational overhead of LLM generation. Instead of relying on adversarial prompts, BitHydra directly perturbs the model's parameters, which can achieve the goal consistently across all users and queries. BitHydra optimizes a loss that suppresses the probability of emitting the end-of-sequence (<EOS>) token and performs a gradient-guided search over the <EOS> embedding row to identify a small set of critical bits. Then it triggers hardware-level bit flips (e.g., via Rowhammer-like faults). Experiments on diverse families of LLMs show that flipping only a few (e.g., 3-30) bits can force models to generate extremely long, syntactically coherent outputs, with a high fraction of prompts reaching maximum generation length and strong robustness against existing mitigation solutions. From the defense perspective, we design AdvProtego, a unified framework against various forms of side-channel attacks. Its key idea is to inject adversarially crafted execution noise to disrupt machine-learning-assisted side-channel analysis. We formalize two complementary defense goals---reducing model similarity and reducing model utility from the attacker's perspective-as adversarial perturbation problems in the space of low-level execution traces. AdvProtego is instantiated through a frontend-middleware-backend pipeline on multiple representative platforms (including power, cache, and memory side-channels), substantially degrading model-extraction accuracy while incurring modest performance and accuracy overheads, and remaining effective even when the attacker applies adversarial training. Finally we propose ObfusBFA, a holistic defense framework against versatile bit-flip attacks on DNNs, covering both weight-level and implementation-level vulnerabilities. ObfusBFA incorporates a vulnerability searcher that pinpoints bit-flip--sensitive components across model parameters and low-level code, an obfuscation pattern generator that introduces structured redundancy and dummy operations, and an enforcer that embeds these patterns into mainstream deep learning infrastructures and compiler toolchains. We instantiate ObfusBFA across C++ inference runtimes, PyTorch-based systems, and TVM-based compilers, demonstrating that it can substantially mitigate targeted, untargeted, and adaptive bit-flip attacks with acceptable computational and storage overheads. Overall, this thesis advances the understanding of how hardware-level behaviors and implementations interact with modern deep learning systems, and provides both practical attack methodologies and deployable defense mechanisms. By jointly studying side-channel leakage, fault-induced bit flips, and obfuscation-based defenses, it contributes towards building more robust and secure deep learning applications in realistic environments.

Degree

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

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Yan, Xiaobei
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.*

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

Yan, Xiaobei. Deep learning under the microscope: hardware-oriented attacks and robust defenses. Nanyang Technological University, 2026. https://doi.org/10.32657/10356/221240