In the domain of software security testing, Directed Grey-Box Fuzzing (DGF) has garnered widespread attention for its efficient target localization and excellent detection performance. However, existing approaches measure only the physical distance between seed execution paths and target locations, overlooking logical relationships among code segments. This omission can yield redundant or misleading guidance in complex binaries, weakening DGF's real-world effectiveness. To address this, we introduce \textbf{attention distance}, a novel metric that leverages a large language model's contextual analysis to compute attention scores between code elements and reveal their intrinsic connections. Under the same AFLGo configuration -- without altering any fuzzing components other than the distance metric -- replacing physical distances with attention distances across 38 real vulnerability reproduction experiments delivers a \textbf{3.43$\times$} average increase in testing efficiency over the traditional method. Compared to state-of-the-art directed fuzzers DAFL and WindRanger, our approach achieves \textbf{2.89$\times$} and \textbf{7.13$\times$} improvements, respectively. To further validate the generalizability of attention distance, we integrate it into DAFL and WindRanger, where it also consistently enhances their original performance. All related code and datasets are publicly available at https://github.com/TheBinKing/Attention\_Distance.git.


翻译:在软件安全测试领域,定向灰盒模糊测试因其高效的目标定位与优异的漏洞检测性能而广受关注。然而,现有方法仅度量种子执行路径与目标位置之间的物理距离,忽略了代码段之间的逻辑关联。这种忽略在复杂二进制程序中可能产生冗余或误导性的引导,削弱定向灰盒模糊测试在实际场景中的有效性。为解决此问题,我们提出**注意力距离**这一新度量,其利用大语言模型的上下文分析能力计算代码元素间的注意力分数,从而揭示它们的内在联系。在相同的AFLGo配置下——除距离度量外未改动任何模糊测试组件——通过在38个真实漏洞复现实验中使用注意力距离替代物理距离,相比传统方法平均测试效率提升**3.43倍**。与最先进的定向模糊测试工具DAFL和WindRanger相比,我们的方法分别实现了**2.89倍**和**7.13倍**的性能提升。为进一步验证注意力距离的泛化能力,我们将其集成至DAFL与WindRanger中,结果表明该度量同样能持续提升它们的原始性能。所有相关代码与数据集均已公开于https://github.com/TheBinKing/Attention\_Distance.git。

0
下载
关闭预览

相关内容

国家自然科学基金
17+阅读 · 2017年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
4+阅读 · 2014年12月31日
VIP会员
相关基金
国家自然科学基金
17+阅读 · 2017年12月31日
国家自然科学基金
0+阅读 · 2015年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
0+阅读 · 2014年12月31日
国家自然科学基金
4+阅读 · 2014年12月31日
Top
微信扫码咨询专知VIP会员