Detecting Interprocedural Software Vulnerabilities Using Causal Deep Learning
Abstract
Modern software systems often exhibit long interprocedural execution paths that span multiple functions and modules. The resulting interactions can introduce subtle vulnerabilities that adversaries may exploit. Many existing static, dynamic, and learning-based vulnerability detectors operate as coarse function, file or graph-level classifiers and provide limited insight into how a vulnerability originates and propagates through the program. This dissertation introduces a unified approach that integrates vulnerability detection with explicit reconstruction of executable root-to-sink vulnerability traces, leveraging taint-propagation analysis to produce structured, traceable explanations that support exploitability assessment and remediation in real-world software systems. The approach represents programs as augmented graphs that integrate syntactic and semantic relations within and across functions. Interprocedural program representations are initialized via a pretrained structure-aware encoder and subsequently refined by a relation-aware graph neural network that integrates adaptive causal reasoning guided by Causal Knowledge Graph priors. Grounded in this representation, a constrained decoder constructs the most probable executable root-to-sink chain for each detected vulnerability and validates semantic consistency and aliasing constraints against program dependencies. Experiments evaluate detection performance and explanation quality using standard detection metrics combined with causal and propagation-path criteria. These criteria assess whether predicted chains satisfy feasibility constraints, recover the relevant interprocedural structure, and remain stable under targeted code edits. Experimental results demonstrate that the approach consistently generates accurate, executable root→propagation→sink chains that reflect underlying interprocedural behaviour and provide structured explanations for effective vulnerability localisation and root-cause analysis in complex software systems.
Downloads
Published
Issue
Section
License

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.