[Paper Review] Osiris: Automated Discovery of Microarchitectural Side Channels
Osiris is a fuzzing-based framework that automatically discovers timing-based microarchitectural side channels in CPUs using a machine-readable ISA specification. It identifies instruction-sequence triples (reset, trigger, measurement) that form side channels, discovering four novel side channels on Intel and AMD CPUs, including a KASLR break and a high-bandwidth cross-VM covert channel.
In the last years, a series of side channels have been discovered on CPUs. These side channels have been used in powerful attacks, e.g., on cryptographic implementations, or as building blocks in transient-execution attacks such as Spectre or Meltdown. However, in many cases, discovering side channels is still a tedious manual process. In this paper, we present Osiris, a fuzzing-based framework to automatically discover microarchitectural side channels. Based on a machine-readable specification of a CPU's ISA, Osiris generates instruction-sequence triples and automatically tests whether they form a timing-based side channel. Furthermore, Osiris evaluates their usability as a side channel in transient-execution attacks, i.e., as the microarchitectural encoding for attacks like Spectre. In total, we discover four novel timing-based side channels on Intel and AMD CPUs. Based on these side channels, we demonstrate exploitation in three case studies. We show that our microarchitectural KASLR break using non-temporal loads, FlushConflict, even works on the new Intel Ice Lake and Comet Lake microarchitectures. We present a cross-core cross-VM covert channel that is not relying on the memory subsystem and transmits up to 1 kbit/s. We demonstrate this channel on the AWS cloud, showing that it is stealthy and noise resistant. Finally, we demonstrate Stream+Reload, a covert channel for transient-execution attacks that, on average, allows leaking 7.83 bytes within a transient window, improving state-of-the-art attacks that only leak up to 3 bytes.
Motivation & Objective
- Automate the discovery of timing-based microarchitectural side channels in modern CPUs, which are typically found through labor-intensive manual analysis.
- Address the challenge of identifying complex instruction interplays that induce measurable microarchitectural side effects without requiring deep low-level microarchitectural reverse engineering.
- Enable systematic and scalable detection of side channels that can be exploited in transient-execution attacks like Spectre or Meltdown.
- Support early detection of side channels during CPU design by integrating with ISA specifications, improving security by default.
- Extend the scope of automated side-channel discovery beyond contention-based or cache-based channels to include novel timing-based side channels.
Proposed method
- Represent side channels as triples: a reset sequence, a trigger sequence, and a measurement sequence, enabling systematic modeling of microarchitectural state changes.
- Use a fuzzing-like approach to generate and test instruction-sequence combinations from a machine-readable x86/ARMv8 ISA specification.
- Filter candidate instructions to only those executable by unprivileged users, reducing the search space to practical and relevant combinations.
- Measure execution time differences between sequences to detect timing-based side channels, using inline assembly for high-precision timing.
- Apply feedback mechanisms to handle microarchitectural side effects across fuzzing iterations, improving convergence and stability.
- Integrate with performance counters and low-level interfaces (e.g., Intel VISA/ITP-XDP) for future extension to eviction-based side channels.
Experimental results
Research questions
- RQ1Can a generic, automated framework discover novel timing-based microarchitectural side channels without prior knowledge of microarchitectural behavior?
- RQ2To what extent can a fuzzer based on ISA specifications identify side channels that are not reliant on contention or cache eviction?
- RQ3Can such a framework discover side channels that are exploitable in real-world attacks, such as KASLR bypass or covert channels?
- RQ4How effective is the framework in detecting side channels with minimal timing differences, and what are the practical limitations in commodity environments?
- RQ5Can the framework be extended to support multi-instruction sequences and other side-channel types beyond single-instruction timing channels?
Key findings
- Osiris discovered four novel timing-based microarchitectural side channels on Intel and AMD CPUs, including one enabling a KASLR break via non-temporal loads (FlushConflict) that works on Ice Lake and Comet Lake.
- The framework enabled the creation of a cross-core, cross-VM covert channel transmitting up to 1 kbit/s without relying on the memory subsystem, demonstrated successfully on AWS.
- A new variant of the Stream+Reload attack was demonstrated, achieving an average leakage of 7.83 bytes per transient window—improving upon prior state-of-the-art attacks that leaked only up to 3 bytes.
- Osiris successfully rediscovered known side channels such as Flush+Reload and the AVX2 side channel, validating its detection capability.
- Despite limitations in detecting sub-100-cycle timing differences due to OS-level noise, Osiris identified exploitable side channels within 500 hours of runtime on diverse CPUs.
- The framework is extensible to other architectures like ARMv8 and can be enhanced with performance counters or debug interfaces to detect eviction-based side channels in future versions.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.