Small devices that live on harvested energy, such as a wrist bracelet powered by a solar film plus a body-heat thermoelectric generator, increasingly run secret-bearing computation on the device itself: encryption keys, and the weights of on-device neural networks. Such devices can be attacked through their power draw. An attacker records many power traces, lines them up in time, and averages away the noise until the secret-dependent signal appears. The standard defense is temporal desynchronization: randomly shifting when computation happens, for example by hopping the clock frequency or inserting random delays, so that the traces no longer line up. These defenses were designed and measured on bench power supplies. Every frequency hop, every wake-up, and every inserted delay costs energy and time, and on a harvesting device that energy is scarce and arrives unevenly.
This note proposes measuring and optimizing desynchronization under an explicit switching-cost budget on a device powered by replayed multi-source harvesting traces. The core observation is that on such devices the most visible event in a power trace is the wake-up transition itself. A cheap defense that only randomizes the start of a computation will be undone by attackers that segment traces automatically. A defense that hops frequency inside the computation is effective but pays a transition cost on every hop. The research question is how much attack resistance can be bought per microjoule, and whether a scheduler that places frequency hops and delays only where their switching cost is covered can match always-on clock randomization at a fraction of the energy.
Core Claim
Treat each defensive state change as a purchase with a known price, and spend a per-operation energy budget that the harvester can actually sustain. Let $E_{sw}$ be the measured energy of one clock-frequency transition and $\tau_{sw}$ its latency. Let $E_{op}(f)$ be the energy of the protected operation at frequency $f$. Let $E_{d}$ be the energy of inserted delay, which is spent either busy-waiting or in a sleep state. Sleep is only an option when the delay exceeds the break-even time, meaning the idle duration at which the energy saved by sleeping repays the cost of entering and leaving sleep. For each protected operation, the scheduler picks a number of intra-operation hops $N$, their random placement and frequency levels, and a random start offset relative to wake-up, so that
$$ N\,E_{sw} + E_{op}(f_1,\dots,f_N) + E_{d} \le B(t), $$
where $B(t)$ is the energy budget available at time $t$, estimated from stored charge and the harvesting rate.
The claim has two parts. The first is a hypothesis to be tested, not an established result. Against a segmenting attacker, attack resistance depends mainly on the hops inside the operation, not on the random start offset. This would make start-offset-only defenses look cheap but remain weak. The second part concerns the cost of protection. A budgeted scheduler can restrict itself to a few frequency levels, can sleep through long random delays and busy-wait only through short ones, and can place hops in slack that energy-saving schedulers already create. Such a scheduler should approach the attack resistance of always-on clock randomization at a substantially lower energy per protected operation. All randomness comes from an on-chip true random number generator, never from harvesting fluctuations. The reason is given below.
Positioning Against Prior Work
The defenses this proposal budgets come from a line of side-channel work that treats energy as a secondary cost. JARVIS builds an open RISC-V platform with a random number generator, a frequency-scaling unit and decoy threads, and shows that clock randomization drives attack success to near zero. It reports area (10,667 LUTs) but not the energy of its frequency transitions. Chameleon records more than 600 GB of real traces under frequency scaling, random delay, morphing and decoy threads, and shows that real frequency switching distorts traces in ways simulated noise does not. It also does not optimize the energy those switches cost. Island-based Random Dynamic Voltage Scaling shows that randomizing the voltage of four independent regions of an AES accelerator survives 200,000 traces where a single region falls in 16,000. The authors acknowledge power and area trade-offs without quantifying them. All three papers supply the mechanisms this proposal reuses. None asks what each switch costs or whether the device can afford it.
Two papers motivate the energy framing directly. Energy Efficient Obfuscation optimizes where to inject noise under an energy budget and reports an average energy efficiency of 0.4803 versus 0.0782 for uniform random noise. Its model assumes that noise and leakage are synchronized, and it names asynchrony as an open problem. This proposal addresses the time axis that paper leaves out, but with time-shifting defenses rather than amplitude noise. Breier et al. inject Gaussian random delays into neural-network activation functions on a Cortex-M4. They bring leakage-test statistics from above 60 to below the 4.5 threshold at 2.8% to 11% runtime overhead on VGG-19. They count time but not energy, and they ignore sleep states.
The switching-cost side supplies the method. Mittal's surveys (embedded systems) define break-even time and report that three to four discrete voltage levels capture most of the benefit of frequency and voltage scaling, which justifies restricting the hop alphabet. Li shows that delaying tasks to merge fragmented idle periods ("strategic procrastination") cuts idle energy by 80% relative to a cycle-shedding scaling scheme. This proposal reuses that slack as the place to put random offsets. Kling et al. prove that ignoring transition cost under adversarial arrivals gives unbounded competitive ratios. That result constrains the design: an attacker who can trigger wake-ups must not be able to force unlimited paid transitions.
The harvesting regime comes from InfiniWolf. It pairs solar film (up to 24.7 mW outdoors) with a thermoelectric generator (24 to 155 µW) to sustain 24 stress classifications per minute at 1.2 µJ each. It does not consider side channels or model the cost of waking its accelerator. Enspect supplies a four-channel logger for real solar and thermoelectric traces that can be replayed.
The defense is also constrained by stronger attackers. EstraNet is a shift-invariant transformer for side-channel analysis. A Deep-Learning Technique to Locate Cryptographic Operations and Chameleon's sliding-window segmenter (84% to 91% overlap with the true operation boundaries) locate operations automatically. These tools are the reason start-offset randomization alone is suspected to be insufficient. The proposal therefore evaluates against them, not only against correlation attacks.
Research Program
The work has four stages. The first is a cost characterization. On the JARVIS RISC-V core on a NewAE CW305 FPGA, we measure $E_{sw}$ and $\tau_{sw}$ for every pair of frequency levels. On an FPGA, a frequency change includes the clock generator re-locking, so these costs are platform-specific and will be reported as such. We also measure the energy and break-even time of the core's sleep state and the energy per operation at each frequency. The voltage-island results cannot be reproduced on an FPGA, so they enter only as reported reference points.
The second stage builds the harvesting testbed. Solar and thermoelectric traces logged with Enspect across indoor, outdoor and dark-wear conditions are replayed through a programmable source into a storage capacitor that powers the board. This produces realistic brown-outs and wake-ups.
The third stage is the budgeted scheduler. It runs on the core and, for each protected AES call or MLP inference (the InfiniWolf stress model trained on the PhysioNet driver-stress data), draws its random choices from the on-chip random number generator subject to the inequality above. Short random delays are busy-waited and delays longer than break-even time are slept. Hops are limited to three or four levels. Hop count is capped per wake-up so that an attacker who triggers wake-ups cannot force unbounded spending; this follows the lesson of Kling et al.
The fourth stage is the attack evaluation. Each configuration faces correlation analysis, template attacks, a convolutional network, an EstraNet-style shift-invariant model, and a pipeline that first segments traces with the Chameleon segmenter and then attacks the segments. We report traces-to-disclosure, guessing entropy, the leakage test statistic, and energy per protected operation. The headline quantity is attack resistance per microjoule.
Baselines
The do-nothing reference is the unprotected core running at maximum frequency and sleeping immediately afterwards ("race to sleep"), on the same harvesting replay. JARVIS reports that unprotected AES falls to correlation analysis in 180 traces and to template attacks in 3. Chameleon's unprotected baseline falls to a convolutional attack in 14 traces. Our measurement must reproduce numbers of this order before any comparison means anything.
The strongest existing defense is always-on, random-number-driven frequency randomization as implemented in JARVIS. Chameleon reports that it lowers convolutional attack success to 0.7%. Decoy threads are a second strong defense: JARVIS reports 0% success, and Chameleon reports that a deep-learning attack needs 104 traces. No reported result was found on Lacuna for the energy per operation of either defense, so we will measure both on our testbed. Every defense gets the same board, the same capacitor and harvesting replay, the same random number generator, and the same attacker training budget (equal trace counts and an equal hyperparameter search per attack). The budgeted scheduler beats frequency randomization if it reaches equal or higher traces-to-disclosure against the segment-then-attack pipeline at no more than half the energy per protected operation. It also beats it if, at equal energy, it sustains more protected operations per day without brown-out.
Two ablations isolate the key ingredient. In the first, random delay injection in the style of Breier et al. keeps only the random start offset and removes all intra-operation hops. In the second, the scheduler is made cost-blind: the same hop distribution, but with the switching cost ignored and sleep never chosen. If the first ablation matches the full method against segmenting attacks, the claim about intra-operation hops is false. If the second matches it on energy, the budgeting adds nothing.
Why not just…?
Why not just inject random delays, which already costs only 2.8% to 11%? This is the most serious threat, because it is cheap and passes leakage tests in Breier et al.. The weakness we expect is that a delay before or between operations leaves each operation's internal timing intact. Automatic segmenters then recover the operation boundaries; Chameleon reports 84% to 91% overlap even under random delay. The first ablation tests exactly this. If random delays plus a segmenter still resist the EstraNet-style attack as well as intra-operation hops do, we will drop the hop machinery and reduce the contribution to sleep-aware delay placement.
Why not just run always-on frequency randomization and accept the energy cost? On a bench supply this is reasonable. On a thermoelectric trickle of tens of microwatts, the energy cost may determine whether a protected inference runs at all. The harvesting replay tests this directly by counting completed protected operations per day under dark-wear conditions. If the measured $E_{sw}$ turns out to be negligible relative to $E_{op}$, the budgeting question disappears, and we will report that outcome as a finding.
Why not just use the harvester's own fluctuations as free randomness, instead of spending energy on a random number generator? The attacker can control the harvester: a lamp sets the solar input and a warm hand sets the thermal gradient. We will run this variant against an attacker who pulses light to trigger wake-ups. We expect fluctuation-driven jitter to collapse to near-synchronized traces. That outcome would be a cautionary result, not a design to adopt.
Why not just mask the computation or make it constant-time? Masking does not carry over cleanly to non-linear neural-network inference. Breier et al. note that constant-time activation functions are expensive. A masked AES baseline will nonetheless be included for the cryptographic workload, so that the comparison is fair.
Proposed Experiments
The decisive experiment crosses three defenses with three attackers on the AES and MLP workloads under replayed indoor, outdoor and dark harvesting. The defenses are the start-offset-only ablation, always-on frequency randomization, and the budgeted scheduler. The attackers are correlation analysis, a convolutional network, and segmentation followed by a shift-invariant model. For each cell we report traces-to-disclosure up to 200,000 traces (matching the island-scaling evaluation), the leakage statistic against the 4.5 threshold, energy per protected operation, and protected operations completed per simulated day.
Three checks determine whether the proposal holds. Intra-operation hops must outlast start-offset-only delays against the segmenting attacker; otherwise the first claim fails. The budgeted scheduler must reach resistance comparable to always-on randomization at clearly lower energy; otherwise the budgeting is unnecessary. The light-pulse wake-trigger attack must break fluctuation-driven jitter but not the random-number-driven scheduler, which shows that the hop cap per wake-up holds under adversarial energy arrival.
As a secondary validation, frequency-scaling and random-delay traces from the Chameleon dataset will be used to check that our segmenter matches its reported 84% to 91% overlap before it is applied to our own traces.
References
- An FPGA-Based Open-Source Hardware-Software Framework for Side-Channel Security Research
- Chameleon: A Dataset for Segmenting and Attacking Obfuscated Power Traces in Side-Channel Analysis
- Island-based Random Dynamic Voltage Scaling vs ML-Enhanced Power Side-Channel Attacks
- Energy Efficient Obfuscation of Side-Channel Leakage for Preventing Side-Channel Attacks
- A Desynchronization-Based Countermeasure Against Side-Channel Analysis of Neural Networks
- A survey of techniques for improving energy efficiency in embedded computing systems
- Analysis of Power Management for Hard Real-Time Embedded System between Adaptive Power Management Method and Idle Energy Reduction Method
- Slow Down and Sleep for Profit in Online Deadline Scheduling
- InfiniWolf: Energy Efficient Smart Bracelet for Edge Computing with Dual Source Energy Harvesting
- Poster: Enspect: Simplifying the Design of Energy Harvesting Systems
- EstraNet: An Efficient Shift-Invariant Transformer Network for Side-Channel Analysis
- A Deep- Learning Technique to Locate Cryptographic Operations in Side-Channel Traces