| 注册
首页|期刊导航|燕山大学学报|基于异构图神经网络的PHP污点型漏洞检测方法

基于异构图神经网络的PHP污点型漏洞检测方法

宋晓飞 刘帅 薛文琪 任蓉 张炳

燕山大学学报2026,Vol.50Issue(3):220-230,11.
燕山大学学报2026,Vol.50Issue(3):220-230,11.DOI:10.3969/j.issn.1007-791X.2026.03.004

基于异构图神经网络的PHP污点型漏洞检测方法

PHP taint-style vulnerability detection method based on heterogeneous graph neural networks

宋晓飞 1刘帅 2薛文琪 2任蓉 1张炳2

作者信息

  • 1. 燕山大学 人工智能学院(软件学院),河北 秦皇岛 066004
  • 2. 燕山大学 人工智能学院(软件学院),河北 秦皇岛 066004||燕山大学 软件工程重点实验室,河北 秦皇岛 066004
  • 折叠

摘要

Abstract

PHP's lack of built-in validation functions and user-interactive nature leads to widespread taint-style vulnerabilities.While graph neural networks improve detection accuracy,code property graphs often introduce redundancy,resulting in high false positives/negatives.For this purpose,a PHP taint-style vulnerability detection method named HG-VulD(Heterogeneous Graph-Vulnerability Detection)is proposed,which is based on sub-property graphs and heterogeneous graph neural networks.Sub-Property Graph(SPG)retains vulnerability-relevant semantics and structure by reverse traversal(sinks to sources),removing irrelevant nodes to reduce complexity.HG-VulD encodes code nodes via semantic and type features,using Heterogeneous Graph Neural Networks(HGNN)to independently learn syntax(Abstract Syntax Tree,AST),control flow(Control Flow Graph,CFG),and dependency information(Program Dependence Graph,PDG),with attention-based edge aggregation enhancing classification.Evaluations on a 260 k-file synthetic dataset show 96.05%F1,surpassing RIPS,WAP,and VulEye.Real-world tests achieve 73.82%(XSS)and 67.81%(SQLI)accuracy,demonstrating practical generalization.

关键词

污点型漏洞检测/图神经网络/PHP/代码属性图

Key words

taint-style vulnerability detection/graph neural network/PHP/code property graph

分类

信息技术与安全科学

引用本文复制引用

宋晓飞,刘帅,薛文琪,任蓉,张炳..基于异构图神经网络的PHP污点型漏洞检测方法[J].燕山大学学报,2026,50(3):220-230,11.

基金项目

国家自然科学基金资助项目(62376240) (62376240)

河北省科技计划资助项目(226Z0701G,236Z0304G) (226Z0701G,236Z0304G)

河北省自然科学基金资助项目(F2022203026,F2022203089,F2023203026) (F2022203026,F2022203089,F2023203026)

燕山大学基础创新科研培育资助项目(2024LGZD004) (2024LGZD004)

燕山大学学报

1007-791X

访问量0
|
下载量0
段落导航相关论文