paper-with-me

홈 › Papers

Explainable Vulnerability Detection in C/C++ Using Edge-Aware Graph Attention Networks

2025-07-22 · Radowanul Haque, Aftab Ali, Sally McClean, Naveed Khan arxiv

Detecting security vulnerabilities in source code remains challenging, particularly due to class imbalance in real-world datasets where vulnerable functions are under-represented. Existing learning-based methods often optimise for recall, leading to high false positive rates and reduced usability in development workflows. Furthermore, many approaches lack explainability, limiting their integration into security workflows. This paper presents ExplainVulD, a graph-based framework for vulnerability detection in C/C++ code. The method constructs Code Property Graphs and represents nodes using dual-channel embeddings that capture both semantic and structural information. These are processed by an edge-aware attention mechanism that incorporates edge-type embeddings to distinguish among program relations. To address class imbalance, the model is trained using class-weighted cross-entropy loss. ExplainVulD achieves a mean accuracy of 88.25 percent and an F1 score of 48.23 percent across 30 independent runs on the ReVeal dataset. These results represent relative improvements of 4.6 percent in accuracy and 16.9 percent in F1 score compared to the ReVeal model, a prior learning-based method. The framework also outperforms static analysis tools, with relative gains of 14.0 to 14.1 percent in accuracy and 132.2 to 201.2 percent in F1 score. Beyond improved detection performance, ExplainVulD produces explainable outputs by identifying the most influential code regions within each function, supporting transparency and trust in security triage.

📄 PDF Abstract BibTeX arXiv:2507.16540

Code (0)

등록된 구현이 없습니다.

Tasks

Vulnerability Detection

Similar Papers 제목 키워드 기반

Smart Contract Vulnerability Detection: From Pure Neural Network to Interpretable Graph Feature and Expert Pattern Fusion

2021-06-17 · Zhenguang Liu, Peng Qian, Xiang Wang, Lei Zhu 외

Smart contracts hold digital coins worth billions of dollars, their security issues have drawn extensive attention in the past years. Towards smart contract vulnerability detection, conventional methods heavily rely on f…

Deep LearningVulnerability Detection

ORACAL: A Robust and Explainable Multimodal Framework for Smart Contract Vulnerability Detection with Causal Graph Enrichment

2026-03-30 · Tran Duong Minh Dai, Triet Huynh Minh Le, M. Ali Babar, Van-Hau Pham 외 arxiv

Although Graph Neural Networks (GNNs) have shown promise for smart contract vulnerability detection, they still face significant limitations. Homogeneous graph models fail to capture the interplay between control flow an…

Vulnerability DetectionGraph Learning

CGP-Tuning: Structure-Aware Soft Prompt Tuning for Code Vulnerability Detection

2025-01-08 · Ruijun Feng, Hammond Pearce, Pietro Liguori, Yulei Sui

Large language models (LLMs) have been proposed as powerful tools for detecting software vulnerabilities, where task-specific fine-tuning is typically employed to provide vulnerability-specific knowledge to the LLMs for …

Computational Efficiencycross-modal alignmentVulnerability Detection

Bridging Semantics & Structure for Software Vulnerability Detection using Hybrid Network Models

2025-10-11 · Jugal Gajjar, Kaustik Ranaware, Kamalasankari Subramaniakuppusamy arxiv

Software vulnerabilities remain a persistent risk, yet static and dynamic analyses often overlook structural dependencies that shape insecure behaviors. Viewing programs as heterogeneous graphs, we capture control- and d…

Vulnerability DetectionBinary Classification

Time-aware Path Reasoning on Knowledge Graph for Recommendation

2021-08-05 · Yuyue Zhao, Xiang Wang, Jiawei Chen, Yashen Wang 외

Reasoning on knowledge graph (KG) has been studied for explainable recommendation due to it's ability of providing explicit explanations. However, current KG-based explainable recommendation methods unfortunately ignore …

Explainable RecommendationRelation Extraction