基于度量时态逻辑的高效Android监控:Android操作系统的案例研究
Efficient Runtime Monitoring with Metric Temporal Logic: A Case Study in the Android Operating System
摘要:
提出了一种基于度量线性时序逻辑(MTL)的安全策略规约语言的设计与实现。MTL具有按时间间隔索引的时态操作符,允许指定依赖于时间的安全策略。该语言的设计是由移动设备中的应用程序的运行时监控问题驱动的。该研究的一个主要案例是Android操作系统中的权限提升攻击,其中应用程序通过间接控制流获得对用户未明确授予的某些资源或功能的访问权限。为了捕获这些攻击,我们扩展了MTL与递归定义,用于表达应用程序之间的调用链。然后,我们将展示如何MTL的度量运算符,结合递归定义,可以用来指定的政策,以检测特权升级,在各种细粒度的约束。我们提出了一个新的算法,扩展的线性时间时序逻辑,用于监控安全策略写在我们的规约语言。监视器不需要存储应用程序生成的事件的整个历史记录,这对于实际实现至关重要。我们修改了Android操作系统内核,以允许我们模块化地插入生成的监视器。我们已经在实际设备上测试了修改后的操作系统,并表明它是有效的检测策略违规。
英文摘要:
We present a design and an implementation of a security policy specification language based on metric linear-time temporal logic (MTL). MTL features temporal operators that are indexed by time intervals, allowing one to specify timing-dependent security policies. The design of the language is driven by the problem of runtime monitoring of applications in mobile devices. A main case the study is the privilege escalation attack in the Android operating system, where an app gains access to certain resource or functionalities that are not explicitly granted to it by the user, through indirect control flow. To capture these attacks, we extend MTL with recursive definitions, that are used to express call chains betwen apps. We then show how the metric operators of MTL, in combination with recursive definitions, can be used to specify policies to detect privilege escalation, under various fine grained constraints. We present a new algorithm, extending that of linear time temporal logic, for monitoring safety policies written in our specification language. The monitor does not need to store the entire history of events generated by the apps, something that is crucial for practical implementations. We modified the Android OS kernel to allow us to insert our generated monitors modularly. We have tested the modified OS on an actual device, and show that it is effective in detecting policy violations.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。