Supporting Secured Integration of Microarchitectural Defenses
Kartik Ramkrishnan, Stephen McCamant, Antonia Zhai, Pen-Chung Yew
TL;DR
The paper tackles the problem that integrating multiple microarchitectural defenses can create new security vulnerabilities (MDAVs). It introduces a two-step methodology: (1) Maestro, an event-based modeling framework with semantic composition, coupled with Alloy to exhaustively check security properties, and (2) GEM5-based simulation to validate concrete implementations against attacks. Key contributions include identifying eight MDAVs, achieving a ~15x Alloy LoC efficiency, enabling semantic composition, and demonstrating that certain integrated defenses can be resilient while others reveal MDAVs requiring fixes. The work provides a practical framework for early-stage defense integration, offering a path to safer, more scalable secure microarchitectures by systematically screening defenses before full hardware implementation.
Abstract
There has been a plethora of microarchitectural-level attacks leading to many proposed countermeasures. This has created an unexpected and unaddressed security issue where naive integration of those defenses can potentially lead to security vulnerabilities. This occurs when one defense changes an aspect of a microarchitecture that is crucial for the security of another defense. We refer to this problem as a microarchitectural defense assumption violation} (MDAV). We propose a two-step methodology to screen for potential MDAVs in the early-stage of integration. The first step is to design and integrate a composed model, guided by bounded model checking of security properties. The second step is to implement the model concretely on a simulator and to evaluate with simulated attacks. As a contribution supporting the first step, we propose an event-based modeling framework, called Maestro, for testing and evaluating microarchitectural models with integrated defenses. In our evaluation, Maestro reveals MDAVs (8), supports compact expression (~15x Alloy LoC ratio), enables semantic composability and eliminates performance degradations (>100x). As a contribution supporting the second step, we use an event-based simulator (GEM5) for investigating integrated microarchitectural defenses. We show that a covert channel attack is possible on a naively integrated implementation of some state-of-the-art defenses, and a repaired implementation using our integration methodology is resilient to the attack.
