arXiv:2608.30105cs.CRAug 2026

Manuscript Offprint

arXiv:2608.30105

A Simple Transformer Pipeline for Full-Key Side-Channel Attacks on Uncropped Datasets

Jimmy Gammell, Kaushik Roy

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Jimmy Gammell and Kaushik Roy

Elmore Family School of Electrical and Computer Engineering Purdue University, West Lafayette, IN 47907, USA {jgammell, kaushik}@purdue.edu

Abstract. Deep learning-based side-channel analysis has historically focused on single-byte targets and manually cropped traces, which risks discarding exploitable leakage. While recent work has proposed specialized architectures and resampling techniques to address this gap, the literature lacks a simple transformer baseline for simultaneous full-key attacks on uncropped traces. We present an open-source transformer implementation for uncropped full-key attacks which uses the standard transformer encoder backbone, adapting only the input and output layers to the side-channel setting. We release our implementation, training recipes, and pretrained weights for uncropped ASCADv1f, ASCADv1r, and CHES-CTF-2018 which achieve performance competitive with previously-reported results, while using less than 10GB of VRAM and requiring at most 3.34 hours of training on a single NVIDIA A6000 (link).

Keywords: Side-Channel Analysis · Deep Learning · Transformers

1 Introduction

Deep learning-based side-channel analysis (DLSCA) has emerged as a powerful tool for evaluating the vulnerability of cryptographic hardware to physical side-channel attacks [8]. However, much of the literature targets only one key byte, and crops traces to ~1% of their original length after manually identifying regions expected to leak that byte. This reduces modeling cost, but risks discarding exploitable leakage from unexpected instructions or locations [4]. Such preprocessing is undesirable in defensive use cases where designers want to test the full execution for leaks without assuming where or why they occur.

Recent work has advanced beyond these simplified settings, successfully attacking multiple key bytes [7,4] and raw [6,2], long [5], or resampled [7] traces. In particular, [2,5] have demonstrated the effectiveness of transformer-style architectures in long-trace settings. However, these specialized architectures depart significantly from standard transformer encoders, and the community lacks a simple baseline which leaves the standard transformer backbone unchanged. Additionally, no prior work to our knowledge has simultaneously attacked all key bytes from uncropped traces.

This artifact fills that gap with an installable PyTorch implementation of a standard transformer-based pipeline for full-key attacks on uncropped traces with no manual feature selection or cropping. We release training recipes and pretrained

Jimmy Gammell and Kaushik Roy

WorkTrace preprocessingArchitectureTarget
EFSS [7]Downsampling/resamplingMLP/CNNFull key (16 independent attacks)
PART [6]None (raw traces)Specialized LSTMSingle byte
EstraNet [5]Cropping (long traces)Specialized transformerSingle byte
GPAM [2]None (raw traces)Specialized transformerSingle byte + random nonces
OursNone (raw traces)Boilerplate transformerFull key

Table 1. Positioning of our artifact relative to representative prior work.

weights for the uncropped variants of ASCADv1f, ASCADv1r [1], and CHES-CTF-2018 [9], achieving competitive performance with results reported in prior work. Table 1 positions the artifact relative to representative prior work. Our aim is to reduce the engineering effort required for uncropped attacks and provide a deliberately simple baseline against which future side-channel-informed architectures can be benchmarked.

Our artifact supports OPTIMIST's goals by providing an open-source case study, reference implementation, and reproducible benchmark results for applying standard modern deep learning techniques to public side-channel datasets without manual feature selection or cropping. The intended users are DLSCA researchers studying uncropped attacks who want pretrained models without doing costly training and hyperparameter tuning, a simple and performant backbone to extend, or a reproducible baseline for boilerplate transformer-based attacks.