Verified secure compilation for mixed-sensitivity concurrent programs

被引:0
|
作者
Sison, Robert [1 ,2 ,3 ]
Murray, Toby [1 ]
机构
[1] Univ Melbourne, Sch Comp & Informat Syst, Melbourne, Vic, Australia
[2] CSIROs Data61, Sydney, NSW, Australia
[3] UNSW Sydney, Sydney, NSW, Australia
关键词
MODEL; FLOW;
D O I
10.1017/S0956796821000162
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Proving only over source code that programs do not leak sensitive data leaves a gap between reasoning and reality that can only be filled by accounting for the behaviour of the compiler. Furthermore, software does not always have the luxury of limiting itself to single-threaded computation with resources statically dedicated to each user to ensure the confidentiality of their data. This results in mixed-sensitivity concurrent programs, which might reuse memory shared between their threads to hold data of different sensitivity levels at different times; for such programs, a compiler must preserve the value-dependent coordination of such mixed-sensitivity reuse despite the impact of concurrency. Here we demonstrate, using Isabelle/HOL, that it is feasible to verify that a compiler preserves noninterference, the strictest kind of confidentiality property, for mixed-sensitivity concurrent programs. First, we present notions of refinement that preserve a concurrent value-dependent notion of noninterference that we have designed to support such programs. As proving noninterference-preserving refinement can be considerably more complex than the standard refinements typically used to verify semantics-preserving compilation, our notions include a decomposition principle that separates the semantics preservation from security preservation concerns. Second, we demonstrate that these refinement notions are applicable to verified secure compilation, by exercising them on a single-pass compiler for mixed-sensitivity concurrent programs that synchronise using mutex locks, from a generic imperative language to a generic RISC-style assembly language. Finally, we execute our compiler on a non-trivial mixed-sensitivity concurrent program modelling a real-world use case, thus preserving its source-level noninterference properties down to an assembly-level model automatically. All results are formalised and proved in the Isabelle/HOL interactive proof assistant. Our work paves the way for more fully featured compilers to offer verified secure compilation support to developers of multithreaded software that must handle data of multiple sensitivity levels.
引用
收藏
页数:60
相关论文
共 50 条
  • [1] Verified Compilation of C Programs with a Nominal Memory Model
    Wang, Yuting
    Zhang, Ling
    Shao, Zhong
    Koenig, Jeremie
    [J]. PROCEEDINGS OF THE ACM ON PROGRAMMING LANGUAGES-PACMPL, 2022, 6 (POPL):
  • [2] Secure Compilation of Constant -Resource Programs
    Barthe, Gilles
    Blazy, Sandrine
    Hutin, Remi
    Pichardie, David
    [J]. 2021 IEEE 34TH COMPUTER SECURITY FOUNDATIONS SYMPOSIUM (CSF 2021), 2021, : 237 - 248
  • [3] Tagged-MapReduce: A General Framework for Secure Computing with Mixed-Sensitivity Data on Hybrid Clouds
    Zhang, Chunwang
    Chang, Ee-Chien
    Yap, Roland H. C.
    [J]. 2014 14TH IEEE/ACM INTERNATIONAL SYMPOSIUM ON CLUSTER, CLOUD AND GRID COMPUTING (CCGRID), 2014, : 31 - 40
  • [4] Towards Certified Separate Compilation for Concurrent Programs
    Jiang, Hanru
    Liang, Hongjin
    Xiao, Siyang
    Zha, Junpeng
    Feng, Xinyu
    [J]. PROCEEDINGS OF THE 40TH ACM SIGPLAN CONFERENCE ON PROGRAMMING LANGUAGE DESIGN AND IMPLEMENTATION (PLDI '19), 2019, : 111 - 125
  • [5] Multiobjective control for multivariable systems with mixed-sensitivity specifications
    Stoustrup, J
    Niemann, H
    [J]. INTERNATIONAL JOURNAL OF CONTROL, 1997, 66 (02) : 225 - 243
  • [6] CompCertELF: Verified Separate Compilation of C Programs into ELF Object Files
    Wang, Yuting
    Xu, Xiangzhe
    Wilke, Pierre
    Shao, Zhong
    [J]. PROCEEDINGS OF THE ACM ON PROGRAMMING LANGUAGES-PACMPL, 2020, 4 (04):
  • [7] Robust control of the gasifier using a mixed-sensitivity H∞ approach
    Prempain, E
    Postlethwaite, I
    Sun, XD
    [J]. PROCEEDINGS OF THE INSTITUTION OF MECHANICAL ENGINEERS PART I-JOURNAL OF SYSTEMS AND CONTROL ENGINEERING, 2000, 214 (I6) : 415 - 426
  • [8] AN OPERATOR-THEORETIC APPROACH TO THE MIXED-SENSITIVITY MINIMIZATION PROBLEM
    FAGNANI, F
    [J]. SYSTEMS & CONTROL LETTERS, 1991, 17 (03) : 227 - 235
  • [9] Processing of Mixed-Sensitivity Video Surveillance Streams on Hybrid Clouds
    Zhang, Chunwang
    Chang, Ee-Chien
    [J]. 2014 IEEE 7TH INTERNATIONAL CONFERENCE ON CLOUD COMPUTING (CLOUD), 2014, : 9 - 16
  • [10] Yaw Stability Control Design Through a Mixed-Sensitivity Approach
    Cerone, Vito
    Milanese, Mario
    Regruto, Diego
    [J]. IEEE TRANSACTIONS ON CONTROL SYSTEMS TECHNOLOGY, 2009, 17 (05) : 1096 - 1104