arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2207.09379cs.PLcs.CRcs.SE
收藏

我们可以在多大程度上使用现有的Java污点分析工具来分析Kotlin程序?(扩展版本)

To what extent can we analyze Kotlin programs using existing Java taint analysis tools? (Extended Version)

Ranjith Krishnamurthy, Goran Piskachev, Eric Bodden

摘要:

作为Java的替代品,Kotlin自推出以来迅速流行,并已成为开发Android应用程序的默认选择。然而,由于其与Java的互操作性,Kotlin程序可能包含与Java程序几乎相同的安全漏洞。因此,我们质疑:在多大程度上可以对Kotlin代码使用现有的Java静态污点分析?在本文中,我们研究了与Java相比,在Kotlin中实现污点分析的挑战。为了回答这个问题,我们进行了一项探索性研究,对每个Kotlin结构进行了检查,并与其Java等效结构进行了比较。我们确定了18个工程挑战,由于Kotlin的独特结构或Kotlin和Java编译器之间生成的字节码的差异,静态分析作者需要以不同的方式处理这些挑战。对于其中的八个,我们提供了一个概念性的解决方案,而其中的六个是我们作为SecuCheck-Kotlin的一部分实现的,这是对现有Java污点分析SecuCheck的扩展。

英文摘要:

As an alternative to Java, Kotlin has gained rapid popularity since its introduction and has become the default choice for developing Android apps. However, due to its interoperability with Java, Kotlin programs may contain almost the same security vulnerabilities as their Java counterparts. Hence, we question: to what extent can one use an existing Java static taint analysis on Kotlin code? In this paper, we investigate the challenges in implementing a taint analysis for Kotlin compared to Java. To answer this question, we performed an exploratory study where each Kotlin construct was examined and compared to its Java equivalent. We identified 18 engineering challenges that static-analysis writers need to handle differently due to Kotlin's unique constructs or the differences in the generated bytecode between the Kotlin and Java compilers. For eight of them, we provide a conceptual solution, while six of those we implemented as part of SecuCheck-Kotlin, an extension to the existing Java taint analysis SecuCheck.

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

↑