paperbot · PL 论文追踪

全部论文 待读 收藏

P1 Dataflow Analysis-Inspired Deep Learning for Efficient Vulnerability Detection

受数据流分析启发的深度学习用于高效漏洞检测
ICSE Proceedings of the IEEE/ACM 46th International Conference on Software Engineering2024匹配度 6/10 · 论文将数据流分析与深度学习结合用于漏洞检测,属于程序分析与机器学习的交叉,与用户关注的PL×AI方向有方法层面的关联;但其核心不是Agentic程序静态分析、LLM/Agent改进静态分析,也不涉及浮点或贝叶斯程序分析,因此与画像核心问题匹配度中等。引用 68 inbox
Benjamin Steenhoek, Hongyang Gao, Wei Le
crossref: 2026-09-12

AI 速览

一句话:提出 DeepDFA,一种受数据流分析启发的图学习框架与嵌入技术,实现高效且有效的漏洞检测。

深度学习漏洞检测性能突出,但高性能方法多用 token-based Transformer,难以高效捕获所需代码语义。本文结合基于根因的数据流分析与深度学习,提出 DeepDFA:受数据流分析启发的图学习框架及使图学习模拟数据流计算的嵌入技术。实验表明,DeepDFA 优于所有非 Transformer 基线,训练仅 9 分钟,比最强基线快 75 倍;仅用 50+ 漏洞样本和数百总样本即可保持全量性能。它在 DbgBench 上平均检出 17 个真实漏洞中的 8.7 个,并能区分修补版与缺陷版,而最强基线未检出漏洞;结合 LLM 后在 Big-Vul 上达到 96.46 F1、97.82 精确率和 95.14 召回率的新 SOTA。

问题
深度学习漏洞检测的高性能方法多依赖 token-based Transformer,未能高效捕获漏洞检测所需的代码语义;如何兼顾效率与效果仍是问题。
方法
将数据流分析等基于根因的漏洞检测算法与深度学习结合,设计 DeepDFA 图学习框架和嵌入技术,使图学习模拟数据流计算,并与 LLM 结合。
评估
在漏洞检测数据集与 DbgBench 上评估,比较非 Transformer 和最强基线,报告训练时间、低资源性能、真实漏洞检出及 Big-Vul 上的 F1/精确率/召回率。
原文摘要(Abstract)

Deep learning-based vulnerability detection has shown great performance and, in some studies, outperformed static analysis tools. However, the highest-performing approaches use token-based transformer models, which are not the most efficient to capture code semantics required for vulnerability detection. Classical program analysis techniques such as dataflow analysis can detect many types of bugs based on their root causes. In this paper, we propose to combine such causal-based vulnerability detection algorithms with deep learning, aiming to achieve more efficient and effective vulnerability detection. Specifically, we designed DeepDFA, a dataflow analysis-inspired graph learning framework and an embedding technique that enables graph learning to simulate dataflow computation. We show that DeepDFA is both performant and efficient. DeepDFA outperformed all non-transformer baselines. It was trained in 9 minutes, 75x faster than the highest-performing baseline model. When using only 50+ vulnerable and several hundreds of total examples as training data, the model retained the same performance as 100% of the dataset. DeepDFA also generalized to real-world vulnerabilities in DbgBench; it detected 8.7 out of 17 vulnerabilities on average across folds and was able to distinguish between patched and buggy versions, while the highest-performing baseline models did not detect any vulnerabilities. By combining DeepDFA with a large language model, we surpassed the state-of-the-art vulnerability detection performance on the Big-Vul dataset with 96.46 F1 score, 97.82 precision, and 95.14 recall. Our replication package is located at https://doi.org/10.6084/m9.figshare.21225413.

链接与引用

DOI 原文 · PDF(开放获取) ·

BibTeX
@inproceedings{paperbot11405,
  title = {Dataflow Analysis-Inspired Deep Learning for Efficient Vulnerability Detection},
  author = {Benjamin Steenhoek and Hongyang Gao and Wei Le},
  booktitle = {ICSE},
  year = {2024},
  doi = {10.1145/3597503.3623345}
}