Affiliation:
1. Paderborn University (Germany)
Abstract
Today, software is traded worldwide on global markets, with apps being downloaded to smartphones within minutes or seconds. This poses, more than ever, the challenge of ensuring safety of software in the face of (1) unknown or untrusted software providers together with (2) resource-limited software consumers. The concept of Proof-Carrying Code (PCC), years ago suggested by Necula, provides one framework for securing the execution of untrusted code. PCC techniques attach safety proofs, constructed by software producers, to code. Based on the assumption that
checking
proofs is usually much simpler than
constructing
proofs, software consumers should thus be able to quickly check the safety of software. However, PCC techniques often suffer from the size of
certificates
(i.e., the attached proofs), making PCC techniques inefficient in practice.
In this article, we introduce a new framework for the safe execution of untrusted code called
Programs from Proofs
(PfP). The basic assumption underlying the PfP technique is the fact that the
structure
of programs significantly influences the complexity of checking a specific safety property. Instead of attaching proofs to program code, the PfP technique transforms the program into an efficiently checkable form, thus guaranteeing quick safety checks for software consumers. For this transformation, the technique also uses a producer-side automatic proof of safety. More specifically, safety proving for the software producer proceeds via the construction of an abstract reachability graph (ARG) unfolding the control-flow automaton (CFA) up to the degree necessary for simple checking. To this end, we combine different sorts of software analysis: expensive analyses incrementally determining the degree of unfolding, and cheap analyses responsible for safety checking. Out of the abstract reachability graph we generate the new program. In its CFA structure, it is isomorphic to the graph and hence another, this time consumer-side, cheap analysis can quickly determine its safety.
Like PCC, Programs from Proofs is a general framework instantiable with different sorts of (expensive and cheap) analysis. Here, we present the general framework and exemplify it by some concrete examples. We have implemented different instantiations on top of the configurable program analysis tool CPA
checker
and report on experiments, in particular on comparisons with PCC techniques.
Funder
German Research Foundation (DFG) within the Collaborative Research Centre “On-The-Fly Computing”
Publisher
Association for Computing Machinery (ACM)
Cited by
5 articles.
订阅此论文施引文献
订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献
1. Verification Witnesses;ACM Transactions on Software Engineering and Methodology;2022-09-08
2. Cooperation Between Automatic and Interactive Software Verifiers;Software Engineering and Formal Methods;2022
3. Cooperative verifier-based testing with CoVeriTest;International Journal on Software Tools for Technology Transfer;2021-04-25
4. MetaVal: Witness Validation via Verification;Computer Aided Verification;2020
5. FRed: Conditional Model Checking via Reducers and Folders;Software Engineering and Formal Methods;2020