arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1504.01842cs.PL
收藏

Android字节码的正式认证

Formal Certification of Android Bytecode

Hendra Gunadi, Alwen Tiu, Rajeev Gore

摘要:

Android是一种操作系统,已在大多数移动设备中使用。Android中的每个应用程序都在Dalvik虚拟机的实例中运行,Dalvik虚拟机是一种基于寄存器的虚拟机(VM)。大多数Android应用程序都是使用Java开发的,编译为Java字节码,然后使用Android SDK中的dx工具转换为DEX字节码。在这项工作中,我们的目标是开发一个基于类型的方法来验证非干扰属性的DEX字节码,以下的方法,已开发的Java字节码认证的Barthe等人。为此,我们开发了一个正式的操作语义的Dalvik VM,DEX字节码的类型系统,并证明了健全的类型系统相对于一个概念的非干扰。然后,我们研究了从Java字节码到DEX字节码的转换过程,如Android SDK中的dx工具所实现的那样。我们表明,从Java字节码到DEX字节码的翻译的抽象版本保留了非干扰属性。更确切地说,我们表明,如果Java字节码是类型在Barthe等人的类型系统(保证不干扰),那么它的翻译是类型在我们的类型系统。这一结果为利用Java现有的字节码验证器来验证Android字节码的非干扰属性提供了可能性。

英文摘要:

Android is an operating system that has been used in a majority of mobile devices. Each application in Android runs in an instance of the Dalvik virtual machine, which is a register-based virtual machine (VM). Most applications for Android are developed using Java, compiled to Java bytecode and then translated to DEX bytecode using the dx tool in the Android SDK. In this work, we aim to develop a type-based method for certifying non-interference properties of DEX bytecode, following a methodology that has been developed for Java bytecode certification by Barthe et al. To this end, we develop a formal operational semantics of the Dalvik VM, a type system for DEX bytecode, and prove the soundness of the type system with respect to a notion of non-interference. We then study the translation process from Java bytecode to DEX bytecode, as implemented in the dx tool in the Android SDK. We show that an abstracted version of the translation from Java bytecode to DEX bytecode preserves the non-interference property. More precisely, we show that if the Java bytecode is typable in Barthe et al's type system (which guarantees non-interference) then its translation is typable in our type system. This result opens up the possibility to leverage existing bytecode verifiers for Java to certify non-interference properties of Android bytecode.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑