← Lab /Security & privacy

VellSSLH reduces speculative load hardening overhead by up to 22.7% on cryptographic code

VellSSLH provides lower runtime overhead than existing SLH approaches while preserving speculative constant-time security

Security & privacy arXiv 13 Nov 2026 Method Prototype evidence

Published as “VellSSLH: Sound Type-Guided Selective Speculative Load Hardening for LLVM IR”

Why it matters

Selective hardening can be deployed with modest overhead while offering formally verified protection against Spectre-v1 leaks in constant-time C code.

Summary

VellSSLH cuts runtime by 4.03% versus LLVM SLH and 19.65% versus Ultimate SLH on bare-metal Intel, showing modest performance gains while providing mechanized security guarantees. The paper supplies a formal type system, Rocq-verified proofs, and an LLVM implementation evaluated on 24 cryptographic primitives, but the preservation proof does not extend to the optimized variants they test.

What they found 1

  1. VellSSLH reduces geometric-mean runtime by 4.03% against LLVM SLH and 19.65% against full Ultimate SLH on bare-metal Intel.

    “On bare-metal Intel, VellSSLH reduces geometric-mean runtime by 4.03% against LLVM SLH and 19.65% against full Ultimate SLH, with version and campaign effects disclosed.”

Caveats 4

  • The preservation proof does not cover the optimized variants that are evaluated functionally.
  • Evaluated optimized variants are rechecked by VellSCT and tested functionally; this preservation proof does not cover those variants.
  • Placement is heuristic: we claim no minimum number of masks or optimality relative to Blade’s min-cut formulation.
  • The architectural insertion preservation theorem does not establish divergence preservation.

What’s new here 4

  • Mechanized SCT type system (VellSCT) for LLVM IR with speculative types and MSF typestate.
  • Rocq-verified soundness of the checker and architectural preservation of the insertion algorithm.
  • Automatic inference from public/secret annotations to insert selective speculative load hardening.
  • Backend that makes the misspeculation flag non-spillable without permanently reserving a physical register.