Imagine a small battery-powered device — a wearable or implantable pump controller — that continuously models a patient's hormone system and adjusts drug dosing in real time. The system it models is the renin-angiotensin system (RAS), a biochemical seesaw with two opposing arms: a harmful arm where angiotensin II drives vasoconstriction, inflammation, and tissue death, and a protective arm where the enzyme ACE2 converts angiotensin II into the vasodilator angiotensin-(1-7). When the protective arm fails — after a virus binds and removes ACE2, or when a drug or toxin blocks it — the seesaw tips toward multi-organ injury. A device that watches this seesaw and titrates therapy faster than a clinician could is an attractive target for exactly the edge hardware the side-channel literature has already broken. Every computation a CMOS chip performs draws data-dependent current, and that current — visible in the power supply or as electromagnetic radiation — betrays what the chip is thinking. Prior work has shown these leaks recover cryptographic keys and neural network weights from microcontrollers; here the leaked secret would be something more personal: a patient's hidden inflammatory and cardiovascular state.
The proposal below asks a question no paper in either literature has asked: when a closed-loop RAS controller runs on commodity edge silicon, how much private physiological state leaks through its physical emissions, and can it be stopped without breaking the real-time deadlines that the therapy depends on? The closest existing work extracts network weights from generic classifiers — digit recognition on FPGAs and microcontrollers (CSI Neural Network: Using Side-channels to Recover Your Artificial Neural Network Information; MaskedNet: A Pathway for Secure Inference against Power Side-Channel Attacks; PermuteV: A Performant Side-channel-Resistant RISC-V Core Securing Edge AI Inference) — but never a clinical state variable, never under a control-loop deadline, and never with an attack metric other than key or weight recovery. All three explicitly name healthcare and medical implants as motivation and then evaluate on MNIST, leaving the actual medical workload uncharacterized.
Core Claim
The claim is threefold. First, a lightweight neural network that infers hidden RAS state (the local ACE-to-ACE2 balance, or the imminence of inflammatory decompensation) from observable physiological signals can be built and run on edge silicon, because the biological literature gives enough mechanistic structure to simulate it: SARS-CoV-2 removes ACE2 via receptor-mediated endocytosis (Immune modulation: the key to combat SARS-CoV-2 induced myocardial injury), cationic PAMAM dendrimers physically occlude the ACE2 active site in a charge-dependent way (Cationic nanoparticles directly bind angiotensin-converting enzyme 2 and induce acute lung injury in mice), metabolic syndrome pre-tilts the baseline ACE/ACE2 ratio toward inflammation (The cardiac molecular setting of metabolic syndrome in pigs reveals disease susceptibility and suggests mechanisms that exacerbate COVID-19 outcomes in patients), and sarcoidosis converges on the same injury from the opposite direction, overproducing ACE (From COVID-19 to Sarcoidosis: How Similar Are These Two Diseases?). Second, profiled side-channel attacks will recover that hidden patient state from power and electromagnetic traces — not just the network's weights, but the input-dependent clinical variable the network is estimating. Third, because the leaked quantity is a continuous physiological state rather than a discrete key, the right defenses are different: cheap temporal hiding of the sort PermuteV provides is worth far more per unit of overhead than heavyweight masking, because in a closed-loop controller latency is not just a cost but a safety constraint.
The conceptual shift is that the attack metric changes. Cryptographic side-channel analysis asks "how many traces until the key is recovered?"; here the question is "how many traces until an attacker reconstructs a patient's inflammatory trajectory well enough to be a privacy violation or to infer a diagnosis?" That reframing — from key recovery to physiological state reconstruction — is what makes this intersection substantive rather than decorative.
Research Program
The work has four components, each grounded in material from the file.
The first component is the physiological model. We build a compact ordinary-differential-equation digital twin of the RAS seesaw — concentrations of angiotensin I, angiotensin II, angiotensin-(1-7), and the receptors AT1R and Mas, coupled to a simplified NLRP3 inflammasome module, since Fraxinol attenuates LPS-induced acute lung injury by equilibrating ACE-Ang II-AT1R and ACE2-Ang (1-7)-Mas and inhibiting NLRP3 shows that inflammasome activation must be modeled alongside the two arms to reproduce the injury dynamics. The twin is calibrated qualitatively against the four insult scenarios above (viral ACE2 depletion, nanoparticle occlusion, metabolically pre-tilted baseline, ACE overproduction), with observable outputs chosen to match what the animal and clinical studies actually measure: lung wet-to-dry weight ratio, arterial oxygen tension, lung elastance, serum potassium and bicarbonate, and the cytokines TNF-α and IL-1β. We are explicit that this is a simulation calibrated to published qualitative behavior: no reported result found on Lacuna for numerical effect sizes of the fraxinol injury-score or wet-to-dry reductions, no reported result found on Lacuna for the porcine ACE/ACE2 expression ratio, and no reported result found on Lacuna for the hazard ratios or AUCs in the hypokalemia and bicarbonate cohorts (Assessment of hypokalemia and clinical prognosis in Patients with COVID-19 in Yangzhou, China; Bicarbonate concentration as a predictor of prognosis in moderately severe COVID-19 patients: A multicenter retrospective study). Where a number is needed we will use ranges consistent with the qualitative claims, and we will report sensitivity of every downstream result to those choices.
The second component is the target network and its silicon. A small multilayer perceptron or 1-D convolutional network (sized to the tens-of-neurons regime that CSI Neural Network: Using Side-channels to Recover Your Artificial Neural Network Information shows is already single-shot attackable, so we study a realistic rather than artificially hardened target) consumes a sliding window of the observable signals and outputs two things: a public control signal (the recommended antagonist dose) and a private state estimate (the current ACE/ACE2 balance and a decompensation-risk score). The network is deployed bare-metal on an ARM Cortex-M3 and on a RISC-V core on a FPGA fabric of the kind PermuteV uses, and the controller closes the loop in simulation: the dose output feeds back into the digital twin, mimicking AT1R-blocker rescue of the sort that Cationic nanoparticles directly bind angiotensin-converting enzyme 2 and induce acute lung injury in mice demonstrated with Losartan pre-treatment in mice. Real-time is defined by the twin: the inference must complete within one sampling period for the controller to keep oxygenation and edema inside a safe band during the acute insult.
The third component is the attack suite, and this is where methodology transfers from the side-channel literature. Classical correlation power analysis will be run, but we expect it to struggle for a structural reason: CPA tests a hypothesis over a small discrete key space using a linear leakage model, whereas our secret is a continuous trajectory with no natural hypothesis function. So the main attack is profiled deep learning on a clone device, following A Simple Transformer Pipeline for Full-Key Side-Channel Attacks on Uncropped Datasets, which processes full uncropped traces and defeated first-order masked AES with a minimum traces-to-disclosure of 1.000 on both ASCADv1f and ASCADv1r. We adapt its objective from byte classification to regression on the hidden state (mean absolute error on the ACE/ACE2 ratio, and AUC on the binary decompensation-risk task). We also reuse the denoising architectures of Deep learning-based improved side-channel attacks using data denoising and feature fusion — the LSTM-based LU-Net and multi-scale InceptionNet — since physiological measurements are noisy and misaligned in exactly the way those networks were built to absorb; the same paper reports LU-Net cutting trace requirements from 5,800 to 1,600 under Gaussian noise and from 290 to 50 under permutation noise, which is the evidence that denoising matters when traces are dirty.
The fourth component is the defense evaluation. We implement two defenses and hold them to the control deadline. The first is MaskedNet-style masking of the network's arithmetic, which MaskedNet: A Pathway for Secure Inference against Power Side-Channel Attacks reports survives 100,000 traces of first-order differential power analysis on an unprotected-200-trace baseline — at a cost of 2.8× latency and 2.3× area. The second is PermuteV-style loop-index permutation, which PermuteV: A Performant Side-channel-Resistant RISC-V Core Securing Edge AI Inference reports protects weights against 1,000,000 EM traces on a core compromised in as few as 22 traces unprotected, at 4.12% LUT and 1.36% flip-flop overhead with negligible runtime cost. The decisive question is not which is more secure in isolation but which keeps the patient-side loop stable: a 2.8× latency multiplier on a device with a hard sampling deadline may convert a security defense into a clinical hazard, and we will measure exactly where that line falls by running the closed-loop twin under each defense during a simulated acute insult.
Baselines
The naive reference point is the unprotected network on the same silicon, which prior work already characterizes: CSI Neural Network: Using Side-channels to Recover Your Artificial Neural Network Information reports that single-shot attacks reliably extract weights to a precision of 0.01 for networks with at least 40 neurons in the first hidden layer, and PermuteV: A Performant Side-channel-Resistant RISC-V Core Securing Edge AI Inference reports an unprotected baseline core compromised in as few as 22 EM traces. We will reproduce this on our own target as the floor: same device, same trace counts, same attack code. Beating the floor means nothing; it is included so the marginal value of each defense is measured against reality.
The strongest competitor on the protection question is MaskedNet, the best-documented neural-network-specific defense in the file: MaskedNet: A Pathway for Secure Inference against Power Side-Channel Attacks reports first-order DPA resistance after 100,000 traces on a SAKURA-X FPGA binarized network whose unprotected version falls to 200 traces. We will port its masked arithmetic to our network architecture rather than re-implementing from scratch, to keep the comparison honest, and we will grant it the same tuning budget, the same clone-device profiling data, and the same attack suite (classical CPA, the transformer of A Simple Transformer Pipeline for Full-Key Side-Channel Attacks on Uncropped Datasets, and the InceptionNet/LU-Net models of Deep learning-based improved side-channel attacks using data denoising and feature fusion) that our preferred defense faces. The result that counts as beating it is a two-condition win: state-recovery error statistically indistinguishable from the noise floor at the same 100,000-trace exposure, and a latency overhead small enough that the closed-loop controller keeps the simulated animal inside the safe oxygenation band during the acute insult — a condition the 2.8×-latency defense may fail by construction.
The strongest competitor on the attack question is the transformer pipeline, which reports a minimum traces-to-disclosure of 1.000 on both ASCADv1f and ASCADv1r and 99.97% accuracy on the ASCADv1r "Byte 2" benchmark, against 95.94% for the prior GPAM transformer (A Simple Transformer Pipeline for Full-Key Side-Channel Attacks on Uncropped Datasets), with InceptionNet reporting key recovery from 30 traces on ASCAD where prior methods needed 50 to 510, and from 1 trace on DPA Contest v4 where others needed 3 (Deep learning-based improved side-channel attacks using data denoising and feature fusion). Our defense must survive this attack at full strength, not a weakened version, and we will report the state-recovery metric alongside the classical traces-to-disclosure so the attack-side numbers remain comparable to the literature.
The key ablation isolates what leaks. We train an architecturally identical network, with identical traces and identical compute, on a deliberately non-sensitive target — predicting the next value of a public, non-diagnostic signal — and compare leakage of the hidden state across the two. If the sensitive-target network leaks no more than the public-target one, the problem is generic weight-and-input leakage, and the RAS framing adds only a motivation; if it leaks substantially more, the physiological target itself is the leak, and defenses must be aimed at the state estimate rather than the weights. A second ablation runs the PermuteV-defended core with permutation disabled, holding everything else fixed, to attribute any protection to the temporal hiding rather than to incidental circuit changes.
Why not just…?
Why not just encrypt the data and run it inside a trusted execution environment? Because the leak is below the software layer. CSI Neural Network: Using Side-channels to Recover Your Artificial Neural Network Information shows that physical power and EM measurement extracts network weights to 0.01 precision in a single shot, bypassing operating-system controls entirely, and A Theoretical Framework for the Analysis of Physical Unclonable Function Interfaces and its Relation to the Random Oracle Model makes the general point that proofs confined to digital interfaces say nothing about physical emissions. Encryption also does not help at the moment of computation: the network must operate on plaintext physiological inputs inside the chip, and that is precisely when the leakage occurs. Additionally, Towards Secure and Efficient DNN Accelerators via Hardware-Software Co-Design documents that enclave-style protection carries roughly a 30% penalty in execution time and memory traffic, which on a real-time loop is not obviously cheaper than the hardware defenses we evaluate.
Why not just mask the network and be done? Masking is the strongest known defense in isolation, and we treat it as our primary baseline rather than dismissing it. But it has two documented weaknesses. MaskedNet: A Pathway for Secure Inference against Power Side-Channel Attacks itself reports a 2.8× latency and 2.3× area cost, and in a closed-loop therapeutic controller latency is a safety variable, not a benchmark convenience — our experiments will measure whether that multiplier pushes the simulated patient out of the safe band during an acute insult. And first-order masking is now breakable: the transformer of A Simple Transformer Pipeline for Full-Key Side-Channel Attacks on Uncropped Datasets achieves a minimum traces-to-disclosure of 1.000 against first-order masked AES implementations, so a defense that only holds against first-order attacks is defending yesterday's attacker. This is a real threat to our own preferred defense too, and we will run the transformer attack against the permutation defense specifically to test whether temporal hiding degrades more gracefully than masking against a nonlinear learned adversary.
Why not just use classical correlation analysis instead of deep learning attacks? Classical CPA is cheaper and more transparent, and we will run it. But it presumes a discrete, enumerable hypothesis space and a roughly linear leakage model, and our secret is a continuous physiological trajectory. The empirical record also shows classical pipelines collapse exactly where physiological signals live — under noise and misalignment: standard denoising needed 5,800 traces under Gaussian noise where LU-Net needed 1,600, and 290 versus 50 under permutation noise (Deep learning-based improved side-channel attacks using data denoising and feature fusion). If classical CPA alone turns out to recover patient state as well as the deep models on our traces, that is itself a finding — it would mean the leakage is so strong that simple defenses of the attack surface are misallocated — and we will report it rather than bury it.
Why not just use fixed-dose pharmacology and skip the edge device entirely? This is the most serious objection, because it attacks the premise rather than the method. The biological literature itself supplies the counterargument: Fraxinol attenuates LPS-induced acute lung injury by equilibrating ACE-Ang II-AT1R and ACE2-Ang (1-7)-Mas and inhibiting NLRP3 shows that single-receptor blockade leaves the counter-regulatory arm and the inflammasome unaddressed — ACE2 inhibition with MLN-4760 or Mas-receptor blockade with A779 fully reversed the protection — and The cardiac molecular setting of metabolic syndrome in pigs and From COVID-19 to Sarcoidosis show that baselines diverge so much (pre-tilted ratios, ACE overproduction versus ACE2 depletion) that one fixed dosing trajectory cannot fit all patients. Still, we are honest: the security question is conditional on closed-loop devices existing, and the proposal's value is in characterizing the privacy exposure before such devices are deployed, not in proving they should be. The digital twin also lets us quantify the closed-loop-versus-fixed-dose question directly, and we will report that comparison as a byproduct.
Proposed Experiments and Decisive Checks
Experiment one measures state leakage on unprotected silicon. The network runs on the Cortex-M3 and the RISC-V target across the four insult scenarios; an attacker with a clone device trains the transformer and InceptionNet pipelines on 50,000 profiling traces (matching the ASCAD split used by Deep learning-based improved side-channel attacks using data denoising and feature fusion) and attacks with 10 to 1,000 traces. Decisive check: does the attacker's mean absolute error on the ACE/ACE2 ratio fall below the band that separates the four insult scenarios, and does the decompensation-risk AUC exceed what is achievable from the public outputs alone? If yes, the privacy leak is real and specific; if the public-target ablation shows the same leakage, the finding is generic and the framing weakens.
Experiment two evaluates the two defenses under equal attack pressure. MaskedNet-style masking and PermuteV-style permutation each face the full attack suite, with the trace budget extended to 100,000 traces to match the exposure MaskedNet survived (MaskedNet: A Pathway for Secure Inference against Power Side-Channel Attacks) and to 1,000,000 EM traces to match the exposure PermuteV survived (PermuteV: A Performant Side-channel-Resistant RISC-V Core Securing Edge AI Inference). Decisive check: which defenses keep state-recovery error at the noise floor at those budgets, and what does each cost in latency, area, and energy per inference.
Experiment three is the safety test that has no analogue in the prior side-channel literature. The closed-loop twin runs an acute nanoparticle-style insult while the controller executes on defended and undefended silicon; we record oxygen tension, wet-to-dry ratio, and controller deadline misses. Decisive check: does the 2.8× latency of masking produce deadline misses that let the simulated injury progress measurably beyond the undelayed case, and does the permutation defense's negligible runtime overhead leave the loop intact? A defense that fails this test is not deployable in this regime regardless of its trace count.
The deliverables are the calibrated RAS digital twin, the first power/EM trace dataset paired with ground-truth continuous physiological state labels, the adapted attack metric (state-recovery error alongside traces-to-disclosure), and a head-to-head defense comparison under a control deadline. The honest caveats are that the twin is simulated against qualitatively reported biology — the file contains no numerical RAS effect sizes to calibrate against, and we will publish the sensitivity analysis that follows from that — and that the closed-loop device is a scenario we evaluate rather than an existing product. Both caveats cut in favor of doing the work now: the whole point of characterizing this leak is that by the time such devices are deployed, the attack surface will already be in patients.
References
- CSI Neural Network: Using Side-channels to Recover Your Artificial Neural Network Information
- MaskedNet: The First Hardware Inference Engine Aiming Power Side-Channel Protection
- PermuteV: A Performant Side-channel-Resistant RISC-V Core Securing Edge AI Inference
- Immune modulation: the key to combat SARS-CoV-2 induced myocardial injury
- Cationic nanoparticles directly bind angiotensin-converting enzyme 2 and induce acute lung injury in mice
- The cardiac molecular setting of metabolic syndrome in pigs reveals disease susceptibility and suggests mechanisms that exacerbate COVID-19 outcomes in patients
- From COVID-19 to Sarcoidosis: How Similar Are These Two Diseases?
- Fraxinol attenuates LPS-induced acute lung injury by equilibrating ACE-Ang II-AT1R and ACE2-Ang (1-7)-Mas and inhibiting NLRP3
- Assessment of hypokalemia and clinical prognosis in Patients with COVID-19 in Yangzhou, China
- Bicarbonate concentration as a predictor of prognosis in moderately severe COVID-19 patients: A multicenter retrospective study
- A Simple Transformer Pipeline for Full-Key Side-Channel Attacks on Uncropped Datasets
- Deep learning-based improved side-channel attacks using data denoising and feature fusion
- A Theoretical Framework for the Analysis of Physical Unclonable Function Interfaces and Its Relation to the Random Oracle Model
- Towards Secure and Efficient DNN Accelerators via Hardware-Software Co-Design