dfence provides fine-grained speculation barriers with under 1% performance overhead
dfence mitigates Spectre-PHT and Spectre-STL with minimal hardware support and less than 1% average overhead
Security & privacy arXiv 6 Aug 2026 Defense Prototype evidence
Published as “dfence: Fine-Grained Speculation Barriers for Efficient and Effective Hardware-Software Protection in the Spectre Era (Extended Version)”
Why it matters
The negligible overhead and small hardware footprint make dfence a practical drop-in defense for real software, especially cryptographic libraries, without the performance penalties of full fences or SLH+SSBD.
Summary
dfence protects against Spectre-PHT and Spectre-STL with less than 1% average performance overhead and minimal hardware cost; security tests show all 40 protected programs leak no secrets. Evidence includes a negative average overhead for Spectre v1.1 protection and a hardware area increase of only up to 2.5%. The paper provides a type system to verify correct placement of dfence.
What they found 3
- dfence eliminates leaks in all tested programs when correctly placed.
“All 40 programs were found to be secure with both signal sets, providing evidence that our protections effectively close the leaks for all secure programs.”
- dfence can yield negative average runtime overhead for Spectre v1.1 protection.
“The overhead induced by dfence to prevent Spectre v1.1 is negative on average for both the variants.”
- Hardware area impact of dfence is very small (+0.2% unoptimized, +2.5% optimized).
“The unoptimized dfence implementation measures 0.7872 mm2 (+0.2%), while the optimized dfence with speculation tracking is 0.8053 mm2 (+2.5%).”
Caveats 2
- The type system of dfence only accepts programs that are speculative constant-time.
- Our results also show that the unoptimized implementation of dfence shows a good trade-off between implementation cost and performance overhead: while its performance overhead is greater than the one of the optimized dfence, it is still negligible and its hardware cost is smaller.
What’s new here 4
- Introduces a new CPU instruction, dfence, that extends SLH to cover Spectre-STL as well as Spectre-PHT.
- Requires only minimal hardware changes, implemented in the Proteus RISC-V core.
- Provides a static type system that automatically verifies correct dfence insertion.
- Demonstrates sub-1% average runtime overhead and negligible area increase compared to existing defenses.