Doctoral thesis
Cite …

Timing Sensitive Dependency Analysis and its Application to Software Security

DOI: 10.5445/IR/1000123689
PDF published on Sep 21, 2020
Abstract

I present new methods for the static analysis of timing sensitive information

flow control in software systems. I apply these methods in the

analysis of concurrent Java programs, as well as the analysis of timing

side-channels in implementations of cryptographic primitives.

Methods for information flow control aim to control the flow of information

(e.g.: between different external interfaces of a software

component) with respect to explicit flow policies. Such methods can

protect confidentiality as well as integrity of information. In this setting,

the goal of sound static program analysis is to proof that in all

executions of a given program, a corresponding flow policy is respected.

Such a proof requires a security criterion which formalizes

under which condition this is indeed the case.

Every formal security criterion implicitly corresponds to a program

and attacker model. Simple non-interference criteria, for example, apply

only to non-interactive programs. These are programs which allow

input and output only at the beginning and the end of the execution.

In the corresponding attacker model, the attacker does know the

program, but observes only certain (public) output and input, or provides

those. A program is non-interferent if from these observations

the attacker cannot infer any properties of secret input and output

of terminating executions. From non-terminating executions in this

model, the attacker is allowed to infer properties of secret input.

Side channels occur if an attacker can infer properties of secret information

from observations of real systems which are impossible to

infer in the formal model. Typical side channels include (i.e., typically

unmodeled are): nontermination as well as energy consumption and timing

channels: By observing the program’s execution time, the attacker

(partially or completely) infers the program’s secret input on

which the execution time depends.

In my dissertation I present new dependency analysis sensitive to both

nontermination and timing channels. With respect to nontermination,

I introduce new methods for the computation of control dependencies.

For this purpose, I develop a generalized framework in which

nontermination-sensitive as well as nontermination-insensitive control

dependencies result from (mutually dual) postdominance notions. For

timing channels, I develop new notions of control dependencies, and

corresponding methods for their computation. In two applications, I

substantiate my thesis:

Timing sensitive control dependencies facilitate sound static information flow

control in the presence of timing channels.

For this purpose, I develop new analysis for concurrent programs,

based on timing sensitive control dependencies. In this setting, timing

sensitive control dependencies are relevant even for timing insensitive

attacker models, since there internal timing channels between concurrent

threads of execution may become observable externally. My implementation

for concurrent Java programs is based on the JOANA

program analysis framework.

I also present new analysis for timing channels caused by microarchitectural

dependencies. I illustrate these by a study of AES256

block cipher implementations. For some implementations, data caches

cause the execution time to depend on key and plaintext, making them

inferrable from the execution time. For other implementations, my

automatic static analysis proves (assuming a simple concrete cache

micro-architecture) the absence of such timing channels.