Skip to main content
QUICK REVIEW

[논문 리뷰] CommCSL: Proving Information Flow Security for Concurrent Programs using Abstract Commutativity

Marco Eilers, Thibault Dardinier|arXiv (Cornell University)|2022. 11. 15.
Security and Verification in ComputingComputer Science인용 수 1
한 줄 요약

이 논문은 공유 데이터 연산의 추상적 교환성(abstract commutativity)을 증명하여 동시 프로그램에서 정보 흐름 보안을 검증하는 관계적 동시 분리 논리인 CommCSL를 소개한다. 스레드 인터리빙이 공개적으로 관찰 가능한 데이터의 최종 값을 영향을 주지 않음을 보여주는 추상화를 통해 비교적 교환되지 않는 내부 동작을 숨기면, 시간에 대한 가정 없이도 표준 하드웨어에서 복잡한 시간 측정 사이드 채널이 존재하더라도 안전한 검증이 가능하다.

ABSTRACT

Information flow security ensures that the secret data manipulated by a program does not influence its observable output. Proving information flow security is especially challenging for concurrent programs, where operations on secret data may influence the execution time of a thread and, thereby, the interleaving between different threads. Such internal timing channels may affect the observable outcome of a program even if an attacker does not observe execution times. Existing verification techniques for information flow security in concurrent programs attempt to prove that secret data does not influence the relative timing of threads. However, these techniques are often restrictive (for instance because they disallow branching on secret data) and make strong assumptions about the execution platform (ignoring caching, processor instructions with data-dependent runtime, and other common features that affect execution time). In this paper, we present a novel verification technique for secure information flow in concurrent programs that lifts these restrictions and does not make any assumptions about timing behavior. The key idea is to prove that all mutating operations performed on shared data commute, such that different thread interleavings do not influence its final value. Crucially, commutativity is required only for an abstraction of the shared data that contains the information that will be leaked to a public output. Abstract commutativity is satisfied by many more operations than standard commutativity, which makes our technique widely applicable. We formalize our technique in CommCSL, a relational concurrent separation logic with support for commutativity-based reasoning, and prove its soundness in Isabelle/HOL. We implemented CommCSL in HyperViper, an automated verifier based on the Viper verification infrastructure, and demonstrate its ability to verify challenging examples.

연구 동기 및 목표

  • 실행 시간의 차이가 관찰 가능한 사이드 이펙트를 통해 기밀 데이터를 泄露할 수 있는 동시 프로그램에서 정보 흐름 보안 문제를 해결하기 위해.
  • 하드웨어에 대한 제한적인 가정이 필요하거나 기밀에 의존하는 연산을 허용하지 않는 기존 기법의 한계를 극복하기 위해.
  • 복잡한 하드웨어 기능(예: 캐싱 또는 사전 실행)이 존재하더라도 실행 시간에 대한 추론 없이 동시 프로그램을 검증할 수 있도록 하기 위해.
  • 공유 가변 상태를 가진 실제 동시 프로그램에 적용 가능한 새로운 검증 기법을 추상적 교환성 기반으로 정식화하기 위해.
  • 일반적인 동시 프로그래밍 패턴을 지원하는 확장 가능하고 모듈적이며 자동화된 검증 방법을 제공하기 위해.

제안 방법

  • 공유 데이터 연산의 추상적 교환성에 대해 추론할 수 있는 관계적 동시 분리 논리인 CommCSL를 제안한다.
  • 추상적 교환성의 개념을 도입하여, 공개 출력에 관련된 정보만 포착하는 공유 데이터의 추상화에 대해 연산이 교환 가능함을 정의한다.
  • 데이터 구조의 순수한 수학적 표현(예: 부분 함수)을 사용하고, 관찰되지 않는 내부 세부 정보를 추가로 추상화하는 추상화를 정의한다.
  • 모든 스레드 인터리빙이 공개 출력의 추상적 시각에서 동일한 최종 값을 산출함을 보여줌으로써 비차별성(non-interference)을 증명한다.
  • Viper 검증 인프라 기반의 자동 검증기인 HyperViper에 CommCSL를 구현하여 확장 가능하고 실용적인 검증을 가능하게 한다.
  • Isabelle/HOL에서 CommCSL의 타당성을 증명하여 논리 프레임워크의 정확성을 보장한다.

실험 결과

연구 질문

  • RQ1기본 하드웨어에 대한 실행 시간에 대한 가정 없이도 추상적 교환성을 사용하여 동시 프로그램에서 비차별성을 검증할 수 있는가?
  • RQ2실제 형태에서는 교환되지 않지만 추상적 시각에서는 교환되는 공유 가변 데이터 구조에서 추상적 교환성을 어떻게 정의하고 적용할 수 있는가?
  • RQ3기존 검증 기법은 내부 시간 채널이 관찰 가능한 상태 차이를 통해 泄露되는 동시 프로그램을 얼마나 일반화하여 지원할 수 있는가?
  • RQ4추상적 교환성 추론을 자동화하고 실제 동시 프로그램을 위한 실용적 검증 도구에 통합할 수 있는가?
  • RQ5공유 데이터가 동시 업데이트 중에 저수준(공개)으로 간주될 수 있는 조건은 추상적 교환성에 기반해 어떤 경우에 타당한가?

주요 결과

  • CommCSL는 복잡한 시간 행동을 보이는 표준 하드웨어에서도 실행 시간에 대한 가정 없이 동시 프로그램의 정보 흐름 보안을 검증할 수 있다.
  • 이 기법은 기밀에 의존하는 루프의 실행 시간이 관찰 가능한 출력에 영향을 주는 도전적인 예제를 성공적으로 검증하며, 기존 기법이 시간적 우려로 인해 기각하는 경우에도 적용 가능하다.
  • 추상적 교환성은 실제 형태에서는 교환되지 않지만 추상적 시각에서의 공개 출력에 대해 비교적 교환되지 않는 연산도 안전하게 간주할 수 있도록 허용한다.
  • HyperViper에서의 구현은 이 기법이 효율적으로 자동화되고 실용적 동시 프로그램까지 스케일링 가능하다는 것을 보여준다.
  • Isabelle/HOL에서의 형식적 타당성 증명은 논리의 정확성과 실제 검증 작업에의 적용 가능성을 보장한다.
  • 이 접근법은 세밀한 동시성 및 느슨한 메모리 모델과 같은 환경으로 일반화될 수 있어, 현재 범위를 초월한 광범위한 적용 가능성을 시사한다.

이 논문 읽기

누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.

누빈트에서 이 논문 읽기

이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.