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

Android系统中文件系统漏洞的静态检测

Static Detection of Filesystem Vulnerabilities in Android Systems

Yu-Tsung Lee, Hayawardh Vijayakumar, Zhiyun Qian, Trent Jaeger

AI总结:

针对Android系统文件系统漏洞检测难题,提出结合静态程序分析与访问控制策略分析的PathSentinel工具,可检测三类漏洞,还借助LLM生成漏洞利用代码简化验证,实验发现51个未知漏洞且误报率极低。

摘要:

尽管已有多种防御与测试技术被提出,文件系统漏洞仍是Android系统面临的重大威胁。Android系统中程序行为与访问控制机制的复杂性,使得有效识别这类漏洞颇具挑战。本文提出PathSentinel工具,该工具结合静态程序分析与访问控制策略分析,克服了现有技术的局限,可检测三类文件系统漏洞:路径遍历漏洞、劫持漏洞与诱导漏洞。通过统一程序分析与访问控制策略分析,PathSentinel能精准识别攻击面,并剔除大量不可行的攻击路径,生成用于漏洞测试的输入载荷。为简化漏洞验证流程,PathSentinel利用大语言模型(LLMs),基于识别出的漏洞与生成的输入载荷编写针对性的漏洞利用代码。大语言模型作为工具可降低编写测试应用所需的工程工作量,证明了将静态分析与大语言模型结合,可提升漏洞利用生成与漏洞验证的效率。我们在三星与一加的Android 12和Android 14系统上开展了评估,结果验证了PathSentinel的有效性:在217个应用中发现了51个此前未知的漏洞,仅产生2个误报。这些结果凸显了结合程序分析与访问控制策略分析对精准漏洞检测的重要性,也指明了集成大语言模型实现自动化漏洞利用生成的可行方向,为提升Android系统抵御文件系统漏洞的安全防护能力提供了一套综合方案。

英文摘要:

Filesystem vulnerabilities persist as a significant threat to Android systems, despite various proposed defenses and testing techniques. The complexity of program behaviors and access control mechanisms in Android systems makes it challenging to effectively identify these vulnerabilities. In this paper, we present PathSentinel, which overcomes the limitations of previous techniques by combining static program analysis and access control policy analysis to detect three types of filesystem vulnerabilities: path traversals, hijacking vulnerabilities, and luring vulnerabilities. By unifying program and access control policy analysis, PathSentinel identifies attack surfaces accurately and prunes many impractical attacks to generate input payloads for vulnerability testing. To streamline vulnerability validation, PathSentinel leverages large language models (LLMs) to generate targeted exploit code based on the identified vulnerabilities and generated input payloads. The LLMs serve as a tool to reduce the engineering effort required for writing test applications, demonstrating the potential of combining static analysis with LLMs to enhance the efficiency of exploit generation and vulnerability validation. Evaluation on Android 12 and 14 systems from Samsung and OnePlus demonstrates PathSentinel's effectiveness, uncovering 51 previously unknown vulnerabilities among 217 apps with only 2 false positives. These results underscore the importance of combining program and access control policy analysis for accurate vulnerability detection and highlight the promising direction of integrating LLMs for automated exploit generation, providing a comprehensive approach to enhancing the security of Android systems against filesystem vulnerabilities.

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

↑