信息网络安全 ›› 2017, Vol. 17 ›› Issue (12): 40-46.doi: 10.3969/j.issn.1671-1122.2017.12.008

• • 上一篇    下一篇

基于SVM和文本特征向量提取的SQL注入检测研究

李红灵(), 邹建鑫   

  1. 云南大学信息学院计算机科学与工程系,云南昆明 650091
  • 收稿日期:2017-06-06 出版日期:2017-12-20 发布日期:2020-05-12
  • 作者简介:

    作者简介: 李红灵(1966—),女,云南,副教授,主要研究方向为计算机网络、信息安全;邹建鑫(1991—),男,云南,硕士研究生,主要研究方向为网络与信息安全。

  • 基金资助:
    国家自然科学基金[61562090]

Research of SQL Injection Detection Based on SVM and Text Feature Extraction

Hongling LI(), Jianxin ZOU   

  1. Computer Science and Engineering Department, School of Information Science and Engineering, Yunnan University, Kunming Yunnan 650091, China
  • Received:2017-06-06 Online:2017-12-20 Published:2020-05-12

摘要:

SQL注入攻击具有危害大、攻击类型多、变异快、攻击隐蔽等特点,备受关注。文章提出一种基于SVM和文本特征向量提取的SQL注入检测技术,该技术结合了机器学习和自然语言统计技术。检测过程分为文本分析、特征提取和分类3个主要部分。SQL注入检测包括文本采集、基本特征提取、变形特征的数据统计、文本空间向量模型建立、模型训练、产生分类器、进行分类并得出分类结果等过程。实验结果显示,基于SVM和文本特征向量提取进行SQL注入检测具有很好的分类效果。依据机器学习评价训练模型的边缘曲线、混淆矩阵、效果分析、敏感性分析、特异性分析等评价方法结果显示,经过学习得到的SQL注入检测分类模型有较高的检测率。

关键词: SVM, 文本特征, SQL注入, 检测, 提取

Abstract:

SQL injection attack has the characteristics of great damage, various attacking types, quick mutation and concealment, which attract widespread attention. A SQL detection technology, which combined machine learning and natural language statistics, was proposed in this paper based on support vector machine (SVM) and text feature vector extraction. detection process was divided into three parts including text analysis, feature extraction and classification. Additionally, SQL injection detection process include text collection, basic feature extraction, statistics of deformation features, text space vector model construction, model training, classifier generation, classification and obtaining classification results. It was corroborated by experimental results that SQL injection detection based on SVM and text feature vector extraction was efficient in classification. Besides, according to evaluation methods including edge curve, confusion matrix, effect analysis, sensitivity analysis and specificity analysis, which were conducted in the machine learning evaluation training model, the SQL injection detection classification model obtained through learning had relatively high detection rate.

Key words: SVM, text feature, SQL injection, detection, extraction

中图分类号: