Skip to main content
QUICK REVIEW

[Paper Review] Jif: Language-based Information-flow Security in Java

Kyle Pullicino|arXiv (Cornell University)|Dec 30, 2014
Security and Verification in ComputingComputer Science1 references5 citations
TL;DR

This paper presents Jif, a Java extension that enforces information-flow security through a type system augmented with confidentiality and integrity policies via security labels. By statically analyzing data flows using labeled types, Jif prevents unauthorized leakage of sensitive data, as demonstrated in a booking system example where it blocks improper access to credit card details.

ABSTRACT

In this report, we examine Jif, a Java extension which augments the language with features related to security. Jif adds support for security labels to Java's type system such that the developer can specify confidentiality and integrity policies to the various variables used in their program. We list the main features of Jif and discuss the information flow problem that Jif helps to solve. We see how the information flow problem occurs in real-world systems by looking at two examples: Civitas, a ballot/voting system where voters do not necessarily trust voting agents, and SIF, a web application container implemented using Jif. Finally, we implement a small program that simulates information flow in a booking system containing sensitive data and discuss the usefulness of Jif based on this program.

Motivation & Objective

  • To address the critical security problem of unintended information flow in software systems, particularly in applications handling sensitive data.
  • To demonstrate how Jif’s integration into Java enables developers to formally specify and enforce confidentiality and integrity policies at the type level.
  • To evaluate Jif’s practicality and effectiveness through a real-world booking system example involving multiple principals with distinct access rights.
  • To identify limitations in Jif’s usability and adoption, particularly for developers unfamiliar with its labeling system and type constraints.

Proposed method

  • Extends Java’s type system with security labels that encode confidentiality and integrity policies using a lattice-based model of principals.
  • Uses principal-based access control, where each data variable is annotated with a label specifying which principals may read (confidentiality) or modify (integrity) it.
  • Employs a program counter that tracks the most restrictive security policy in effect, ensuring that data flows do not violate policy constraints.
  • Applies method-level begin-labels to enforce that method execution begins only under the correct security policy and maintains integrity constraints during writes.
  • Implements a static type checker that rejects code where information flow would violate confidentiality or integrity policies.
  • Validates the approach through a practical implementation of a booking system with users (Alice, Bob), an operator (Chuck), and sensitive data (card numbers), showing how Jif prevents unauthorized access.

Experimental results

Research questions

  • RQ1How can information-flow security be effectively enforced in a statically-typed, object-oriented language like Java?
  • RQ2To what extent can Jif’s labeling system prevent unintended data leakage in real-world applications such as voting systems and web applications?
  • RQ3What are the practical challenges developers face when using Jif’s type system to express correct security policies?
  • RQ4How does Jif’s static analysis compare to dynamic or runtime enforcement mechanisms in terms of expressiveness and developer burden?
  • RQ5What are the key usability and adoption barriers that limit Jif’s effectiveness despite its strong theoretical foundation?

Key findings

  • Jif successfully prevents information leakage in the booking system example by rejecting attempts to assign a less restrictive label to data that originates from a more sensitive source.
  • The compiler enforces that Bob cannot access Alice’s full card number because his label {Bob->*} is less restrictive than Alice’s {Alice->*}, resulting in a compile-time error.
  • Chuck can safely access only the first six digits of Alice’s card number, and Jif enforces this by requiring a combined confidentiality label that reflects both Alice’s and Chuck’s policies.
  • Despite its correctness, Jif’s complexity leads to significant developer challenges, particularly in selecting correct labels, which can lead to trial-and-error or workarounds like removing labels altogether.
  • The lack of widespread adoption and tooling support (e.g., IDE integration, code suggestions) hinders effective use, especially for new developers.
  • Jif is a sound and effective solution for information-flow security when used correctly, but its success is highly dependent on developer discipline and proper tooling.

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.