Hammering the Diagnosis: Rowhammer-Induced Stealthy Trojan Attacks on ViT-Based Medical Imaging
Authors:
- Banafsheh Saber LatibariBLBanafsheh Saber Latibari
- Najmeh NazariNNNajmeh Nazari
- Hossein SayadiHossein Sayadi
- Houman HomayounHHHouman Homayoun
- Abhijit MahalanobisAMAbhijit Mahalanobis
Preprint
Abstract
Vision Transformers (ViTs) have emerged as powerful architectures in medical image analysis, excelling in tasks such as disease detection, segmentation, and classification. However, their reliance on large, attention-driven models makes them vulnerable to hardware-level attacks. In this paper, we propose a novel threat model referred to as Med-Hammer that combines the Rowhammer hardware fault injection with neural Trojan attacks to compromise the integrity of ViT-based medical imaging systems. Specifically, we demonstrate how malicious bit flips induced via Rowhammer can trigger implanted neural Trojans, leading to targeted misclassification or suppression of critical diagnoses (e.g., tumors or lesions) in medical scans. Through extensive experiments on benchmark medical imaging datasets such as ISIC, Brain Tumor, and MedMNIST, we show that such attacks can remain stealthy while achieving high attack success rates about 82.51% and 92.56% in MobileViT and SwinTransformer, respectively. We further investigate how architectural properties, such as model sparsity, attention weight distribution, and the number of features of the layer, impact attack effectiveness. Our findings highlight a critical and underexplored intersection between hardware-level faults and deep learning security in healthcare applications, underscoring the urgent need for robust defenses spanning both model architectures and underlying hardware platforms.Keywords
All Related Versions
This publication has 4 references indexed in Scilit:
- Optimizing Vision Transformers: Unveiling ‘Focus and Forget’ for Enhanced Computational EfficiencyIEEE Access, 2025
- Evaluating and enhancing the robustness of vision transformers against adversarial attacks in medical imagingMedical & Biological Engineering & Computing, 2024
- ViTH-RFG: Vision Transformer Hashing With Residual Fuzzy Generation for Targeted Attack in Medical Image RetrievalIEEE Transactions on Fuzzy Systems, 2023
- Adversarial attacks and adversarial robustness in computational pathologyNature Communications, 2022