Skip to main content

Securing Concurrent Lazy Programs Against Information Leakage

Marco Vassena ( Chalmers University of Technology, Sweden )

Many state-of-the-art information-flow control (IFC) tools are implemented as Haskell libraries. A distinctive feature of this language is lazy evaluation. In his influencal paper on why functional programming matters John Hughes proclaims: "Lazy evaluation is perhaps the most powerful tool for modularization in the functional programmer’s repertoire”.

Unfortunately, lazy evaluation makes IFC libraries vulnerable to leaks via the internal timing covert channel. The problem arises due to sharing, the distinguishing feature of lazy evaluation, which ensures that results of evaluated terms are stored for subsequent re-utilization. In this sense, the evaluation of a term in a high context represents a side-effect that eludes the security mechanisms of the libraries. A naïve approach to prevent that consists in forcing the evaluation of terms before entering a high context. However, this is not always possible in lazy languages, where terms often denote infinite data structures. Instead, we propose a new language primitive, lazyDup, which duplicates terms lazily. By using lazyDup to duplicate terms manipulated in high contexts, we make the security library MAC robust against internal timing leaks via lazy evaluation. We show that well-typed programs satisfy progress-sensitive non-interference in our lazy calculus with non-strict references. Our security guarantees are supported by mechanized proofs in the Agda proof assistant.

Speaker bio

Marco Vassena is a second year PhD student at Chalmers University of Technology, Sweden. His research combines functional programming and language-based security techniques to build expressive programming languages in which programs are secure by construction. Marco has recently obtained the Licentiate degree (equivalent to the presentation and approval of the thesis proposal in the US), under the supervision of Prof. Alejandro Russo. The Licentiate thesis is available online (http://publications.lib.chalmers.se/publication/249247).

 

 

Share this: