用于完整性与机密性的分级模态类型
Graded Modal Types for Integrity and Confidentiality
AI总结:
本文提出在分级类型系统中新增完整性标注模态,使追踪机密性的分级余单子同时充当相对单子,从而在同一框架内同时强制执行完整性与机密性。
摘要:
分级类型系统(例如 Granule 编程语言所基于的系统)允许通过在类型上标注额外信息(我们称之为等级)来追踪程序行为的各种不同属性。此类属性的一个例子是信息流控制,它在先前关于分级类型的工作中常被用作案例研究;在该场景中,类型由安全级别格进行分级,从而能够自动验证并强制执行不干扰性质。然而,这些工作通常只关注安全性的一个特定方面,即机密性:禁止公共输出依赖于私有输入。完整性这一性质规定受信任的输出不得依赖于不受信任的输入,但在这一语境中尚未得到研究。这篇短文旨在弥补这一遗漏。众所周知,机密性与完整性在某种意义上是对偶性质,但简单地反转安全格上的序关系,对于在单一系统中同时结合这两类性质而言并不令人满意,至少在我们的设定中是如此。我们将这一情形类比于近期在分级框架中同时嵌入线性类型与唯一性类型的工作,并利用这一框架来证明我们能够同时强制执行完整性与机密性。主要思想是增加一种额外的、为完整性而标注的模态形式,使得现有的用于追踪机密性的分级余单子现在也充当新模态之上的相对单子,并配以允许信息从受信任流向公共再流向私有的规则。
英文摘要:
Graded type systems, such as the one underlying the Granule programming language, allow various different properties of a program's behaviour to be tracked via annotating types with additional information, which we call grades. One example of such a property, often used as a case study in prior work on graded types, is information flow control, in which types are graded by a lattice of security levels allowing noninterference properties to be automatically verified and enforced. These typically focus on one particular aspect of security, however, known as confidentiality; public outputs are prohibited from depending on private inputs. Integrity, a property specifying that trusted outputs must not depend on untrusted inputs, has not been examined in this context. This short paper aims to remedy this omission. It is well-known that confidentiality and integrity are in some sense dual properties, but simply reversing the ordering of the security lattice turns out to be unsatisfactory for the purpose of combining both kinds of property in a single system, at least in our setting. We analogize the situation to recent work on embedding both linear and uniqueness types in a graded framework, and use this framing to demonstrate that we can enforce both integrity and confidentiality alongside one another. The main idea is to add an additional flavour of modality annotated for integrity, such that the existing graded comonad for tracking confidentiality now also acts as a relative monad over the new modality, with rules allowing information to flow from trusted to public to private.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。