Skip to main content
QUICK REVIEW

[Paper Review] Type-Driven Repair for Information Flow Security

Nadia Polikarpova, Jean Yang|arXiv (Cornell University)|Jul 12, 2016
Security and Verification in ComputingComputer Science14 references7 citations
TL;DR

Lifty is a programming language that enforces information flow security through type-driven repair: programmers annotate sensitive data with refinement types, and the system automatically inserts access checks to prevent leaks. It formalizes noninterference via decidable refinement types and synthesizes secure code, reducing policy burden and successfully preventing real-world information leaks.

ABSTRACT

We present Lifty, a language that uses type-driven program repair to enforce information flow policies. In Lifty, the programmer specifies a policy by annotating the source of sensitive data with a refinement type, and the system automatically inserts access checks necessary to enforce this policy across the code. This is a significant improvement over current practice, where programmers manually implement access checks, and any missing check can cause an information leak. To support this programming model, we have developed (1) an encoding of information flow security in terms of decidable refinement types that enables fully automatic verification and (2) a program repair algorithm that localizes unsafe accesses to sensitive data and replaces them with provably secure alternatives. We formalize the encoding and prove its noninterference guarantee. Our experience using Lifty to implement a conference management system shows that it decreases policy burden and is able to efficiently synthesize all necessary access checks, including those required to prevent a set of reported real-world information leaks.

Motivation & Objective

  • To reduce the burden of manually implementing access checks for information flow security.
  • To eliminate information leaks caused by missing or incorrect access control checks.
  • To provide a fully automatic, verifiable method for enforcing information flow policies in practice.
  • To formalize information flow security using decidable refinement types for automatic verification.
  • To develop a repair algorithm that locally fixes unsafe data accesses with provably secure alternatives.

Proposed method

  • Encoding information flow security as decidable refinement types to enable fully automatic verification.
  • Using refinement type annotations on sensitive data sources to specify security policies.
  • Applying a program repair algorithm that identifies unsafe accesses and replaces them with secure alternatives.
  • Formalizing the security model and proving a noninterference guarantee for the encoding.
  • Integrating the repair process into a programming language to support end-to-end secure-by-construction development.
  • Evaluating the approach on a conference management system to demonstrate practicality and effectiveness.

Experimental results

Research questions

  • RQ1Can information flow policies be automatically enforced using refinement types in a way that guarantees noninterference?
  • RQ2How effective is type-driven repair in synthesizing correct access checks without manual intervention?
  • RQ3Can the system prevent real-world information leaks that arise from missing access checks?
  • RQ4To what extent does the approach reduce the programmer's burden in enforcing security policies?
  • RQ5Is the repair process sound and scalable enough for practical systems?

Key findings

  • Lifty successfully synthesized all necessary access checks for a conference management system, preventing known real-world information leaks.
  • The system reduced the burden of policy enforcement by automating access check insertion through type annotations.
  • The formalization guarantees noninterference, ensuring that low-security outputs do not depend on high-security inputs.
  • The use of decidable refinement types enabled fully automatic verification of security properties.
  • The repair algorithm localized unsafe accesses and replaced them with provably secure alternatives without requiring manual code changes.
  • The approach demonstrated practical feasibility on a realistic system, showing that automatic enforcement is viable in real-world scenarios.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.