Memory Backdoor Attacks on Neural Networks
Eden Luzon, Guy Amit, Roy Weiss, Torsten Kraub, Alexandra Dmitrienko, Yisroel Mirsky
TL;DR
Federated learning exposes data privacy through updates that can be manipulated by a malicious server. The authors introduce a memory backdoor that encodes training data as patterns and enables deterministic reconstruction via an iterable index trigger, achieving high capacity with minimal impact on primary task performance. They validate the approach on vision tasks (classification/segmentation) and large language models, demonstrating extraction of hundreds to thousands of authentic samples and even entire datasets under realistic constraints. The work highlights a serious supply-chain privacy risk in distributed training and motivates stronger integrity checks and transparent auditing of training code, with open-source artifacts to support reproducibility.
Abstract
Neural networks are often trained on proprietary datasets, making them attractive attack targets. We present a novel dataset extraction method leveraging an innovative training time backdoor attack, allowing a malicious federated learning server to systematically and deterministically extract complete client training samples through a simple indexing process. Unlike prior techniques, our approach guarantees exact data recovery rather than probabilistic reconstructions or hallucinations, provides precise control over which samples are memorized and how many, and shows high capacity and robustness. Infected models output data samples when they receive a patternbased index trigger, enabling systematic extraction of meaningful patches from each clients local data without disrupting global model utility. To address small model output sizes, we extract patches and then recombined them. The attack requires only a minor modification to the training code that can easily evade detection during client-side verification. Hence, this vulnerability represents a realistic FL supply-chain threat, where a malicious server can distribute modified training code to clients and later recover private data from their updates. Evaluations across classifiers, segmentation models, and large language models demonstrate that thousands of sensitive training samples can be recovered from client models with minimal impact on task performance, and a clients entire dataset can be stolen after multiple FL rounds. For instance, a medical segmentation dataset can be extracted with only a 3 percent utility drop. These findings expose a critical privacy vulnerability in FL systems, emphasizing the need for stronger integrity and transparency in distributed training pipelines.
