结合置信度分区和模糊测试的二进制幽灵漏洞检测方法
作者:
作者单位:

作者简介:

通讯作者:

中图分类号:

TP311

基金项目:

宁夏自然科学基金青年项目B类(2025AAC050015)


Binary Spectre Vulnerability Detection Method Combining Confidence Partitioning and Fuzz Testing
Author:
Affiliation:

Fund Project:

  • 摘要
  • |
  • 图/表
  • |
  • 访问统计
  • |
  • 参考文献
  • |
  • 相似文献
  • |
  • 引证文献
  • |
  • 资源附件
  • |
  • 文章评论
    摘要:

    Spectre V1漏洞利用处理器推测执行机制窃取敏感数据, 对闭源二进制程序的检测尤为困难——静态分析易产生高误报, 动态模糊测试则存在覆盖受限、报点噪声大的问题. 为解决这一问题, 提出一种名为ConSpec的二进制Spectre V1检测方法. 该方法先通过轻量BERT模型对反汇编指令序列进行语义建模, 结合Spectre V1的汇编语义模式, 生成函数级置信度以量化漏洞可疑度; 再依据置信度将函数划分为高、中、低风险区, 通过白名单驱动的定向插桩与分级配置, 并采用覆盖率引导的模糊测试驱动插桩后的程序反复执行以采集漏洞证据, 让检测资源集中投向高风险区域, 同时控制整体开销. 针对动态验证报点存在噪声且覆盖受限导致遗漏的问题, 引入窗口级二次确认机制, 通过匹配特定语义模板与局部寄存器追踪, 验证漏洞相关的关键证据链, 实现误报筛选与漏报补充. 实验结果表明, ConSpec能完整覆盖15种已知Spectre V1利用模式. 在jsmn、brotli、OpenSSL等5个真实程序上的测试显示, 与Teapot相比, ConSpec的精确率平均提升约24.3个百分点, F2分数平均提升约24.4个百分点, 相对漏报率整体下降; 平均耗时由1159.7 min降至774.3 min, 降幅为33.2%.

    Abstract:

    Spectre V1 exploits the speculative execution mechanism of processors to steal sensitive data, making detection in closed-source binary programs particularly challenging. Static analysis tends to produce high false-positive rates, while dynamic fuzz testing suffers from limited coverage and noisy reports. To address these issues, this study proposes ConSpec, a binary Spectre V1 detection method. The proposed method first employs a lightweight BERT model to perform semantic modeling of disassembled instruction sequences. By incorporating the assembly-level semantic patterns of Spectre V1, it generates function-level confidence scores to quantify vulnerability suspicion. Based on the confidence scores, functions are then divided into high-, medium-, and low-risk regions. Through whitelist-driven directed instrumentation and tiered configuration, coverage-guided fuzz testing is used to repeatedly execute the instrumented program and collect vulnerability evidence, thus concentrating detection resources on high-risk regions while controlling the overall overhead. To address noisy dynamic validation reports and missed detections caused by limited coverage, a window-level secondary confirmation mechanism is introduced. By matching specific semantic templates and performing local register tracing, this mechanism verifies the key vulnerability-related evidence chain, thus filtering out false positives and compensating for missed detections. Experimental results show that the proposed method fully covers 15 known Spectre V1 exploitation patterns. Tests on five real-world programs, including jsmn, brotli, and OpenSSL, show that, compared with Teapot, ConSpec improves Precision by an average of approximately 24.3 percentage points and the F2-score by an average of approximately 24.4 percentage points, while reducing the relative false-negative rate overall. The average runtime decreases from 1159.7 min to 774.3 min, a reduction of 33.2%.

    参考文献
    相似文献
    引证文献
引用本文

万俊棋,马自强,高菲,张增旺,蒲通骏,冯小旭.结合置信度分区和模糊测试的二进制幽灵漏洞检测方法.软件学报,,():1-30

复制
相关视频

分享
文章指标
  • 点击次数:
  • 下载次数:
  • HTML阅读次数:
  • 引用次数:
历史
  • 收稿日期:2026-03-06
  • 最后修改日期:2026-04-19
  • 录用日期:
  • 在线发布日期: 2026-09-23
  • 出版日期:
文章二维码
您是第位访问者
版权所有:中国科学院软件研究所 京ICP备05046678号-3
地址:北京市海淀区中关村南四街4号,邮政编码:100190
电话:010-62562563 传真:010-62562533 Email:jos@iscas.ac.cn
技术支持:北京勤云科技发展有限公司

京公网安备 11040202500063号