A Combinatorial Framework for Analyzing Randomization Defenses in Real Time Systems
Date
Authors
Journal Title
Journal ISSN
Volume Title
Publisher
Abstract
Embedded and real-time systems are increasingly connected and deployed in safety and mission-critical environments, making them a persistent target for attacks. At the same time, these devices often have strict real-time requirements that require predictable worst-case performance posing a unique problem of reconciling real-time behavior with software security. Techniques such as fuzzing and formal verification allow for finding security vulnerabilities ahead of program run-time, but they remain incomplete in practice. For this reason, systems must also require defenses that make remaining bugs probabilistically difficult to exploit, such as randomization techniques that significantly raise the cost of control flow hijacking.
However, these randomization defenses are often difficult to reconcile with real-time requirements, where changing virtual memory layout results in unpredictable cache behavior. Thus, we develop a combinatorial framework for analyzing such real-time defenses that operate under strict real-time constraints whilst providing measurable randomization entropy, and utilize it to enable DART, a real-time randomization defense that preserves virtual memory page-offsets and cache coloring so that execution time variance may be constrained.
We present the architectural and systems background needed for the design of a defense such as DART, including the exploits it protects against and the relevant cache structure it preserves. We then utilize results from chordal graph theory to derive a formal model of randomization entropy under these cache constraints, and explore its effectiveness on binaries run with the DART defense. Our results demonstrate that predictable timing is not inherently at odds with strong layout uncertainty and provide a formal model for exploration of techniques that enable this intersection.