一句话:提出基于输入验证与净化特征的机器学习分类器,用于检测 PHP 代码中的 SQL 注入漏洞。
本文针对 PHP 代码中的 SQL 注入漏洞检测问题,提出一种机器学习分类方法。作者从源代码文件中提取输入验证与净化相关特征,分别使用经典机器学习算法和深度学习算法训练并评估分类器模型,并通过十折交叉验证比较性能。实验结果表明,卷积神经网络(CNN)模型取得最高精确率(95.4%),而多层感知机(MLP)模型取得最高召回率(63.7%)和最高 F 值(0.746)。
This paper presents a machine learning classifier designed to identify SQL injection vulnerabilities in PHP code. Both classical and deep learning based machine learning algorithms were used to train and evaluate classifier models using input validation and sanitization features extracted from source code files. On ten-fold cross validations a model trained using Convolutional Neural Network(CNN) achieved the highest precision (95.4%), while a model based on Multilayer Perceptron(MLP) achieved the highest recall (63.7%) and the highest f-measure (0.746).
DOI 原文 ·
@inproceedings{paperbot5212,
title = {A Machine Learning Based Approach to Identify SQL Injection Vulnerabilities},
author = {Kevin Zhang},
booktitle = {ASE},
year = {2019},
doi = {10.1109/ase.2019.00164}
}