Πανεπιστήμιο Πατρών
Cybersecurity on HW/SW : data security attacks on architecture and hardware level
Abstract
dc:description.abstractPublic-key cryptography as deployed today rests on two mathematical problems, integer factorization and the discrete logarithm. Shor’s algorithm solves both in polynomial time on a sufficiently large quantum computer, reducing RSA, DSA and elliptic-curve cryptography to a single shared point of failure. Malicious entities, however, do not wait for such a machine to exist. Encrypted traffic captured today can be stored and decrypted retroactively the moment one does exist, so any secret that must remain confidential for years is already exposed. Post-quantum cryptography answers this by rebuilding the public-key primitives on problems believed to resist quantum attack, a process NIST partially concluded in 2024 with ML-KEM, ML-DSA and SLH-DSA being standardizes through FIPS 203-205. However, standardization settles which mathematical problems will protect digital communications once large-scale quantum computers exist, but it does not settle how the schemes built on those problems behave when they run on real silicon. A scheme whose security reduces to a provably hard lattice or multivariate quadratic problem can still surrender its private key through the power its processor draws or the electromagnetic radiation it emmits while computing, and no amount of cryptanalytic hardness prevents this. As post-quantum TLS already runs on constrained embedded devices, that gap between algorithmic and implementation security is a deployed exposure rather than a hypothetical one. Closing the gap is harder than the classical experience suggests. Where a block cipher offers a single primitive whose exploitable intermediate has been settled for two decades, a post-quantum signature is an assembly of structurally dissimilar sub-operations, each admitting a different family of attack and some admitting none at all, so that choosing where to focus is itself a research question. The quantity that leaks must be discovered rather than assumed, and it is rarely the secret itself. What ships compounds the difficulty, since the standards mandate nothing about side-channel resistance and the code deployed in practice is unprotected reference code compiled for speed, where an optimizing compiler relocates the very operations an attack depends upon. Profiled machine learning models raise a further demand, because a secret that never changes caps what any one victim can teach, and the diversity a model needs must come from many keys rather than many traces. Even the definition of success is unsettled. Side-channel results are conventionally scored by how highly the correct key ranks among the candidates, a measure that suffices when the key is small enough that rank one is the break. The secrets studied here run to thousands of values and a verifier accepts them only in their entirety, so a near miss and a wild guess fail alike. A favorable rank is therefore evidence of leakage rather than proof of a break, and only a complete key and a signature the verifier accepts settle the question. This thesis attacks implementations rather than mathematics. A single side-channel methodology, spanning leakage models chosen by hand and leakage models learned from data, is developed and then carried across three targets chosen so that its findings cannot be an artifact of any one scheme: an elliptic-curve scalar multiplier in hardware, a latticebased signature scheme, and a multivariate one on NIST reference systems. Each conceals a structurally different secret, and each step escalates both the sophistication of the attack and the complexity of the target. The methodology is established first on a Binary Edwards Curve scalar multiplier implemented on FPGA, where the ground truth is under complete control. Feature-based classifiers, trained on five signal properties per ladder round, recover the secret scalar bit at 94.1% to 97.7% on the unprotected design, and a convolutional network combined with dimensionality reduction and class balancing reaches 100%. The same design is then defended by a parallelized field-operation schedule and a per-round projective-coordinate randomization, both original to this work. Against that defense, every model falls to between 61.5% and 67.91%, which is what the countermeasure is worth once the adversary learns the leakage instead of assuming it. The protection is therefore real in practice against advanced ML attacks, and the residual accuracy above the random baseline is what motivates the deeper profiled attacks that follow. Our attention then turns to post-quantum targets. For ML-DSA, the lattice signature standardized as FIPS 204, the signing operation is mapped in full to locate the computations in which the private key participates, and the polynomial multiplications of the rejectionsampling loop are identified as the ideal correlation power analysis target before a single exploitation trace is spent. Traces captured from a commercial off-the-shelf ARM CortexM4 board running the unmodified reference implementation show individual coefficient multiplications separable by eye, which establishes that the divide-and-conquer precondition of correlation power analysis holds on hardware anyone can buy. Lastly, SNOVA, a multivariate scheme from the NIST additional-signatures track, receives the same treatment at greater depth. A three-layer characterization provides for the first time a mapping of all seven phases of the signing operation and classifies each by the attack family it admits, ruling out two candidate attacks analytically and identifying the construction of the F21 matrix as the primary target. A horizontal correlation attack recovers the secret there, and an algebraic completion step that exploits the key’s internal structure extends partial recovery to the complete secret at no additional trace cost. Compiler optimization defeats that analytic attack by relocating the leakage rather than removing it, whereupon a profiled deep learning model recovers the key in its place, generalizing to keys never present in its training data. In both cases the recovered secret is carried past ranked key recovery to a signature that the unmodified reference verifier accepts for the first time in our knowledge, with two independent controls confirming that the recovery is driven by device leakage rather than by an artifact of the attack’s own algebra. In combination, the results establish that the side-channel resistance of a post-quantum implementation cannot be inferred from the security of the mathematics beneath it, that an optimizing compiler affords no protection it was never designed to provide, and that a profiled adversary with physical access can convert measured leakage into a forged signature on hardware that is already deployed.
Degree
thesis:*- Grantor dc:publisher
- Πανεπιστήμιο Πατρών
- Year dc:date.issued
- 2026
Author and committee
dc:creator, dc:contributor.*- Author dc:creator
-
- Δημόπουλος, Χάρης
- Contributors dc:contributor
-
- Dimopoulos, Charis
Subjects
dc:subject × 8Rights
dc:rights- Statement dc:rights
-
- CC0 1.0 Universal
- Licence dc:rights.uri
- Language dc:language.iso
- en
Identifiers
dc:identifier.*- Handle dc:identifier.uri
- https://hdl.handle.net/10889/33221