Discovered Power Side-Channel Vulnerability: We discovered that the built-in sleep function in the Linux kernel induces a power spike during its initialization. Since the sleep function triggers a context switch, the observed power spike shows a correlation with the Hamming weight of the data stored in the registers prior to the context switch.
Compared to traditional power trace (first figure), discovered side-channel creates a sudden spike on the power trace (second figure). This power spike directly correlates with the power consumption during the context-switching.
Experimental Setup: The experiment was conducted on a Raspberry Pi 4 Model B featuring a Broadcom BCM2711 SoC with an integrated ARM Cortex-A72 CPU. External peripherals such as a mouse, keyboard, and monitor were connected via HDMI and USB ports. The device was connected to the internet through an Ethernet cable. We used GNU/Linux Debian 12 (Bookworm) with kernel version 6.6 and GLIBC version 2.36 as the operating system. For power trace acquisition, we used a Keysight DSOX1102G oscilloscope, with the probe connected to the 5V and GND pins of the Raspberry Pi. The oscilloscope was controlled via the VISA (Virtual Instrument Software Architecture) protocol. To smooth the captured traces, we applied a simple running average with a window size of 10 before identifying the peak values.
Experiment Code: This repository contains three experiments designed to evaluate the effectiveness of the sleep-induced power spike as a side-channel vulnerability.
- HW_Testing – Captures the relationship between the Hamming weight of register values before the context switch and the power spike induced by the sleep function.
- SIKE_Attack – Performs two attacks on the Cloudflare's CIRCL SIKE implementation under two different threat models:
- circl_inside_sleep: A proof-of-concept attack on a modified SIKE implementation, assuming the attacker can modify the library.
- circl_outside_sleep: An attack on the original CIRCL SIKE implementation.
- Processing – Contains scripts for trace collection and analysis.
Experiment Procedure: Instructions for running each experiment are provided in the README.md files located in their respective folders.
Expected Results: The experiments will generate figures as follows demonstrating the effectiveness of the sleep-induced power spike as a side-channel leakage source.
- HW_Testing : The effect of varying the Hamming Weight (HW) of data in registers prior to the context switch. An increase in HW results in a corresponding increase in the mean peak power.
- circl_inside_sleep: Probability distribution of measured sleep-induced peak power amplitudes over the first ten bits of the secret key used in SIKE implementation. k[i-1] != k[i] (orange color) is the case when anomalous zero was triggered and k[i-1] = k[i] (blue color) is the case when it is not.
- circl_inside_sleep: Results of the first SIKE Attack, where we invoked the sleep after the Montgomery three-point ladder using the flexible threat model. Anomalous zero was triggered when k[i-1] != k[i] (green colored data points) and it was not when k[i-1] = k[i] (orange colored data points).
- circl_outside_sleep: Results of the second SIKE Attack, where we invoked the sleep after the original SIKE decapsulation process with the realistic threat model. Anomalous zero was triggered when k[i-1] != k[i] (green colored data points) and it was not when k[i-1] = k[i] (orange colored data points).




