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

Android内核漏洞分析

Vulnerability Analysis of the Android Kernel

Joseph R. Barr, Peter Shaw, Tyler Thatcher

摘要:

我们描述了一个用于分析{ \sc Android OS内核}源代码的工作流,并对使程序暴露于黑客攻击的特定缺陷进行评级。该工作流为构件的脆弱性评级提供了一种新的方法。该方法的灵感来自于最近的嵌入源代码函数的工作。该工作流程将深度学习与逻辑学和机器学习相结合。深度学习用于将函数/方法标签嵌入欧几里得空间。由于Android内核源代码的语料库相当有限(包含大约200万个C/C++函数和Java方法),直接嵌入是站不住脚的。为了克服数据缺乏的挑战,有必要通过\textit{Byte-Pair Encoding}的中间步骤。随后,我们嵌入标记,从中我们组装函数/方法标签的嵌入。长短期记忆网络(LSTM)用于将令牌嵌入到$\mathbb{R}^d$中的向量中,从中我们形成由每对向量之间的余弦组成的\textit{cosine matrix}。余弦矩阵可以被解释为一个(组合的)“加权”图,其顶点代表函数/方法,“加权”边对应于矩阵项。包括函数向量加上那些抽象定义的特征用于对缺陷风险进行评分。

英文摘要:

We describe a workflow used to analyze the source code of the {\sc Android OS kernel} and rate for a particular kind of bugginess that exposes a program to hacking. The workflow represents a novel approach for components' vulnerability rating. The approach is inspired by recent work on embedding source code functions. The workflow combines deep learning with heuristics and machine learning. Deep learning is used to embed function/method labels into a Euclidean space. Because the corpus of Android kernel source code is rather limited (containing approximately 2 million C/C++ functions \& Java methods), a straightforward embedding is untenable. To overcome the challenge of the dearth of data, it's necessary to go through an intermediate step of the \textit{Byte-Pair Encoding}. Subsequently, we embed the tokens from which we assemble an embedding of function/method labels. Long short-term memory networks (LSTM) are used to embed tokens into vectors in $\mathbb{R}^d$ from which we form a \textit{cosine matrix} consisting of the cosine between every pair of vectors. The cosine matrix may be interpreted as a (combinatorial) `weighted' graph whose vertices represent functions/methods and `weighted' edges correspond to matrix entries. Features that include function vectors plus those defined heuristically are used to score for risk of bugginess.

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

↑