T128 : Static Verification of Sancus Modules

Supervision:
Research group:
Distributed Software & Software Security
Context:

Ongoing research projects at iMinds-Distrinet involve Protected
Module Architectures (PMAs) and static software verification with VeriFast.
PMAs implement program counter based memory access control so as to provide
strong isolation of software modules. An implementation of Sancus for the
OpenMSP430 CPU is employed to demonstrate use cases that combine protected
software modules with untrusted components such as operating systems for
embedded devices.

VeriFast is a verification tool for C and Java. It takes as input a number
of source files annotated with method contracts written in separation
logic, inductive data type and fixpoint definitions, lemma functions and
proof steps. The verifier checks that (1) the program does not perform
illegal operations such as dividing by zero or illegal memory accesses and
(2) that the assumptions described in method contracts hold in each
execution.

This research proposed here complements ongoing research on Sancus and the
provision of operating system-like abstractions for protected software
module architectures, as well as ongoing work on protecting verified code
that executes in an unverified context.

Aim:

The goal of this project is to provide formal contracts for the
Sancus primitives that enable the verification of protected modules in
VeriFast. This may be extended so as to verify multiple interacting Sancus
modules or Sancus modules embedded in untrusted code, guaranteeing that all
modules and the untrusted code respect the isolation properties enforced by
a Sancus-enabled CPU. The research should be carried out based on case
studies recently implemented with Sancus, such as a preemptive scheduler, a
module that implements secure shared file system access, or trust
assessment modules for Internet of Things infrastructure.

Possible research questions:
  • Can we guarantee the safe execution of two interacting Sancus modules?
  • Can we guarantee the safe execution of Sancus modules in an untrusted
      environment?
  • Can formal specifications be extended to use VeriFast for the
      verification of information flow properties, e.g., that a protected
      module never leaks certain information?
Approach:

Students embracing this task will start working on annotating
and verifying demo applications for Sancus, then explore interactions
between these applications and evaluate their solution with respect to
extensibility.

Relevant literature:
  • Noorman et al.: Sancus: Low-cost trustworthy extensible networked
      devices with a zero-software Trusted Computing Base, USENIX Security 2013
  • Jacobs et al.: A quick tour of the VeriFast program verifier, LNCS vol.
      6461
  • VeriFast: http://www.cs.kuleuven.be/~bartj/verifast/
Student profile:

You should be able to familiarise yourself with
VeriFast and the internals of Sancus, which requires solid background
knowledge in computer architecture and the programming language C.

This topic is for 1 student(s).

This topic can be selected by

  • all Master in de Ingenieurswetenschappen: Computerwetenschappen (ir) students
  • all Master of Engineering: Computer Science students
  • all Master Toegepaste Informatica (toeinf) students

Clusters, in which this topic appears:
  • Secure Software
  • Theoretical Computer Science
  • Distributed Software
18-07-2008