Skip to main content
QUICK REVIEW

[Paper Review] DeepTective

Rishi Rabheru, Hazim Hanif|arXiv (Cornell University)|Mar 22, 2021
Web Application Security VulnerabilitiesComputer Science6 references1 citations
TL;DR

DeepTective is a deep learning framework that combines Gated Recurrent Units (GRUs) and Graph Convolutional Networks (GCNs) to detect SQL injection, XSS, and OSCI vulnerabilities in PHP code by modeling both syntactic and semantic code structures. It achieves an F1 score of 88.12% on a real-world GitHub dataset and discovered four novel vulnerabilities in WordPress plugins.

ABSTRACT

This paper presents DeepTective, a deep learning approach to detect vulnerabilities in PHP source code. Our approach implements a novel hybrid technique that combines Gated Recurrent Units and Graph Convolutional Networks to detect SQLi, XSS and OSCI vulnerabilities leveraging both syntactic and semantic information. We evaluate DeepTective and compare it to the state of the art on an established synthetic dataset and on a novel real-world dataset collected from GitHub. Experimental results show that DeepTective achieves near perfect classification on the synthetic dataset, and an F1 score of 88.12% on the realistic dataset, outperforming related approaches. We validate DeepTective in the wild by discovering 4 novel vulnerabilities in established WordPress plugins.

Motivation & Objective

  • To address the challenge of detecting complex code vulnerabilities in PHP applications using deep learning.
  • To improve detection accuracy by jointly modeling syntactic structure and semantic code semantics.
  • To evaluate the model on both synthetic and real-world datasets to ensure practical applicability.
  • To validate the model’s effectiveness by discovering previously unknown vulnerabilities in widely used software.

Proposed method

  • DeepTective employs Gated Recurrent Units (GRUs) to model the sequential structure of PHP source code.
  • It uses Graph Convolutional Networks (GCNs) to capture the syntactic and semantic relationships represented as abstract syntax trees (ASTs).
  • The model fuses representations from GRUs and GCNs to generate a unified code embedding for vulnerability classification.
  • It is trained end-to-end on labeled code samples to classify vulnerabilities into SQLi, XSS, and OSCI categories.
  • The framework leverages both control and data flow information encoded in ASTs for improved semantic understanding.
  • A hybrid architecture enables joint learning from sequential patterns and structural dependencies in code.

Experimental results

Research questions

  • RQ1Can a hybrid deep learning model combining GRUs and GCNs effectively detect multiple types of web vulnerabilities in PHP code?
  • RQ2How does DeepTective perform on a realistic, real-world dataset compared to existing state-of-the-art approaches?
  • RQ3To what extent can DeepTective generalize to detect previously unknown vulnerabilities in production software?

Key findings

  • DeepTective achieves near-perfect classification performance on the synthetic dataset, indicating strong learning capacity on controlled data.
  • On the real-world GitHub dataset, DeepTective attains an F1 score of 88.12%, outperforming prior approaches.
  • The model successfully discovered four novel vulnerabilities in popular WordPress plugins, validating its practical detection capability.
  • The integration of GRUs and GCNs enables effective modeling of both sequential and structural code features, enhancing detection accuracy.
  • The results demonstrate that combining syntactic and semantic code representations significantly improves vulnerability detection over methods relying on only one modality.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.