arXiv Science⌕ Search

arXiv subjects

Florian Lanzinger

Publications and source records attributed to Florian Lanzinger.

3 recordsLinked to original sources

Quantifying the Risk of Software Attacks Using Formal Verification

The success of an attack on a software system depends both on the software's architecture and on its implementation. But existing security analyses of software architecture models and attacker models do not consider unknown bugs in the source code that introduce new, unforeseen weaknesses. Source-code analyses, on the other hand, are often too fine-grained to be practical and also miss crucial information about the software's deployment that is not represented in the source code. Based on the QuAC approach for quantitative safety analysis, we present a novel attack-tree--based quantitative security analysis that combines a high-level architectural analysis with a modular low-level source-code analysis to capture both kinds of weaknesses. We combine the high- and low-level analysis results to infer exhaustive attack trees for the given system and attacker models. The inferred attack trees can then be analyzed using standard attack-tree analyses to compute various measures like attack risk. We evaluate our approach by applying it to CoRReCt, an approach for executing code on untrusted hardware, and showing that using CoRReCt lowers the risk of integrity attacks.

cs.SE↗

More Powerful Constant Value Checking with SMT Solving

Pluggable type systems extend the basic type system of a programming language by introducing additional type hierarchies to specify more complex properties and dependencies between variables. We consider the Constant Value Checker, a pluggable type checker for Java implemented using the Checker Framework, which provides various pluggable type systems and corresponding checkers. The Constant Value Checker lets users specify restrictions on the values a primitive integer or boolean variable can hold using a set or range of constant values. However, the current implementation of the Value Checker makes use of a limited set of syntactic typing rules that, in practice, often fail to verify well-typedness of more complex code. In this paper, we introduce an extension to the Checker Framework using Satisfiability Modulo Theories (SMT) solvers to address these limitations by creating corresponding first-order logic formulas for expressions whose type checks fail with the current syntactic typing rules and determining their well-typedness based on the satisfiability of these formulas. Furthermore, we introduce new dependent types for specifying allowed values with expressions that can depend on other variables in the program.

cs.PL↗

Quantifying Software Correctness by Combining Architecture Modeling and Formal Program Analysis

Most formal methods see the correctness of a software system as a binary decision. However, proving the correctness of complex systems completely is difficult because they are composed of multiple components, usage scenarios, and environments. We present QuAC, a modular approach for quantifying the correctness of service-oriented software systems by combining software architecture modeling with deductive verification. Our approach is based on a model of the service-oriented architecture and the probabilistic usage scenarios of the system. The correctness of a single service is approximated by a coverage region, which is a formula describing which inputs for that service are proven to not lead to an erroneous execution. The coverage regions can be determined by a combination of various analyses, e.g., formal verification, expert estimations, or testing. The coverage regions and the software model are then combined into a probabilistic program. From this, we can compute the probability that under a given usage profile no service is called outside its coverage region. If the coverage region is large enough, then instead of attempting to get 100% coverage, which may be prohibitively expensive, run-time verification or testing approaches may be used to deal with inputs outside the coverage region. We also present an implementation of QuAC for Java using the modeling tool Palladio and the deductive verification tool KeY. We demonstrate its usability by applying it to a software simulation of an energy system.

cs.SE↗