arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2510.13102cs.CR
收藏

从基础案例到后门:非自然加密API误用的实证研究

From base cases to backdoors: An Empirical Study of Unnatural Crypto-API Misuse

William & Mary(威廉与玛丽学院)

Victor Olaiya, Adwait Nadkarni

AI总结:

本研究通过分析20,508个Android应用中的140,431个加密API调用,首次大规模刻画非自然加密API误用,提出复杂度度量分层采样5,704个调用进行定性分析,形成两个分类法及17项发现,揭示现有工具局限并给出四项未来工作建议。

摘要:

针对加密API误用的工具通常只能检测最基础的脆弱使用表达,而无法检测非平凡的变体。工具是否应被设计用于检测此类变体,只有在我们了解开发者在实际中如何使用和误用加密API,特别是此类API的非自然使用是什么样子时,才能得到回答。本文提出了首个大规模研究,通过对5,704个代表性API调用的定性分析来刻画非自然加密API的使用。我们开发了一个直观的复杂度度量,对从20,508个Android应用中获得的140,431个加密API调用进行分层,从而能够采样5,704个代表所有层级的调用,每个层级由复杂度/自然度相似的调用组成。我们通过手动逆向工程,在涉及开发最小示例和探索原生代码的深入调查中,对5,704个采样调用进行定性分析。我们的研究产生了两个详细的非自然加密API误用分类法,以及17个关键发现,这些发现表明存在高度异常的误用、规避性代码,以及流行工具甚至无法推理轻度非常规用法。我们的发现得出了四个关键要点,为未来专注于检测非自然加密API误用的工作提供信息。

英文摘要:

Tools focused on cryptographic API misuse often detect the most basic expressions of the vulnerable use, and are unable to detect non-trivial variants. The question of whether tools should be designed to detect such variants can only be answered if we know how developers use and misuse cryptographic APIs in the wild, and in particular, what the unnatural usage of such APIs looks like. This paper presents the first large-scale study that characterizes unnatural crypto-API usage through a qualitative analysis of 5,704 representative API invocations. We develop an intuitive complexity metric to stratify 140,431 crypto-API invocations obtained from 20,508 Android applications, allowing us to sample 5,704 invocations that are representative of all strata, with each stratum consisting of invocations with similar complexity/naturalness. We qualitatively analyze the 5,704 sampled invocations using manual reverse engineering, through an in-depth investigation that involves the development of minimal examples and exploration of native code. Our study results in two detailed taxonomies of unnatural crypto-API misuse, along with 17 key findings that show the presence of highly unusual misuse, evasive code, and the inability of popular tools to reason about even mildly unconventional usage. Our findings lead to four key takeaways that inform future work focused on detecting unnatural crypto-API misuse.

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

↑