Towards a Lightweight Machine Learning Classifier for Detecting Timing-Based Side-Channel Attacks on AES
Aditya Dhote
09/11/2026
AES (Advanced Encryption Standard) is a widely used cryptographic algorithm that has implementations prone to side-channel attacks (SCA). These implementations leak data, specifically timing data, that can be used to recover parts of or the whole cryptographic key. This paper studies whether or not an SVM (Support Vector Machine) classifier can run on constrained, lightweight hardware with a low CPU overhead and high accuracy to detect artificially injected timing anomalies in AES execution on said hardware. Lightweight detection is needed for constrained systems, where security software must operate alongside existing workloads without introducing significant overhead. For this experiment, we injected AES timing data with artificial timing anomalies, then processed 6 statistical features of this data. We trained an SVM classifier on these features and noted the accuracy as well as inference time per window. The SVM classifier had an internal accuracy of 96.26%, and an external accuracy of 94.15%, with a 1.800 ms average per window inference time. These results suggest that lightweight ML-based timing analysis may be a feasible approach for classifying the simulated timing anomalies used in this experiment with low inference latency. However, this experiment does not directly reproduce physical timing side-channel attacks or key-dependent cache leakage, which is a limitation and an area for future research.
