← Lab /Security & privacy

Template-free tool automatically generates precise ISA-level leakage contracts for black-box x86 and ARM CPUs

malcos can automatically synthesize precise and sound instruction-centric leakage contracts for black-box CPUs

Security & privacy arXiv 16 Jul 2026 Method Prototype evidence

Published as “Automated Template-free Synthesis of Instruction-Centric Leakage Contracts for Black-Box CPUs”

Why it matters

Developers can obtain ISA-level leakage specifications for commercial CPUs without vendor support, facilitating more accurate side-channel-resistant software development.

Summary

The paper shows that template-free synthesis can automatically produce instruction-centric leakage contracts for black-box CPUs that are precise and sound for all leaks observed during synthesis. They implement this in the malcos tool and evaluate it on x86 and ARM processors, achieving perfect soundness (1.0) and varying precision (up to 0.79) across several contract models. The evidence comes from extensive experiments synthesizing contracts for five ground-truth models using 10,000 random programs per target and measuring precision, soundness, and clause counts. However, the reported precision is below 1.0 for many models, indicating over-approximation on unseen leaks.

What they found 1

  1. malcos can synthesize contracts that capture ground-truth leaks with high precision and perfect soundness for observed leaks

    “Our results show that malcos is able to synthesize contracts that capture the ground-truth leaks and that these contracts have high precision, i.e., they do not unnecessarily over-approximate actual leaks.”

Caveats 3

  • Precision varies across models, e.g., TagIdx precision 0.14/1.0 without minimization and RFC precision 0.30/1.0, showing over-approximation for many contracts.
  • learned contracts are boundedly sound, i.e., they capture all leaks exposed during testing.
  • our contracts have high precision, i.e., they do not unnecessarily over-approximate actual leaks.

What’s new here 4

  • Synthesizes leakage contracts without requiring RTL designs, operating on commercial black-box CPUs.
  • Eliminates the need for user-provided contract templates by using a counterexample-driven approach.
  • Integrates relational leakage testing tools (Revizor, Scam-V) with Rosette-based synthesis for fine-grained contracts.
  • Guarantees capture of all leaks observed during testing, unlike prior template-based methods.