信息网络安全 ›› 2015, Vol. 15 ›› Issue (6): 1-6.doi: 10.3969/j.issn.1671-1122.2015.06.001

• 等级保护 •    下一篇

基于分类的SQL注入攻击双层防御模型研究

田玉杰(), 赵泽茂, 王丽君, 连科   

  1. 杭州电子科技大学通信工程学院,浙江杭州 310018
  • 收稿日期:2015-05-13 出版日期:2015-06-20 发布日期:2018-07-16
  • 作者简介:

    作者简介: 田玉杰(1987-),男,山东,硕士研究生,主要研究方向:信息安全;赵泽茂(1965-),男,四川,教授,博士,主要研究方向:信息安全与密码学;王丽君(1989-),女,河南,硕士研究生,主要研究方向:信息安全与密码学;连科(1986-),男,河北,硕士研究生, 主要研究方向:通信网络与信息安全。

  • 基金资助:
    浙江省自然科学基金[R109000138];浙江省钱江人才计划[2013R10071]

Research on Double Layer Defense Model for SQL Injection Attack Based on Classification

Yu-jie TIAN(), Ze-mao ZHAO, Li-jun WANG, Ke LIAN   

  1. Department of Communication Engineering, Hangzhou Dianzi University, Hangzhou Zhejiang 310018, China
  • Received:2015-05-13 Online:2015-06-20 Published:2018-07-16

摘要:

近几年来,对于SQL注入攻击防御的研究已经取得一些进展,但现有的SQL注入攻击防御措施仍存在局限性。文章针对SQL注入攻击防御中存在的一些问题进行了研究。首先,针对用户输入过滤措施存在对正常数据的误报问题,提出一种基于Http请求分类的用户输入过滤措施;而针对用户输入过滤措施存在对恶意数据的漏报问题,只要增加语法结构比较措施即可。其次,针对语法结构比较措施存在检测效率低的问题,提出一种基于参数化分类的动态查询匹配措施。最后,基于以上两种措施,提出一种基于分类的SQL注入攻击双层防御模型。实验结果表明,该模型对SQL注入攻击有较好的防御能力,可以有效降低用户输入过滤的误报率和漏报率,且提高了语法结构比较措施的检测效率。

关键词: SQL注入攻击, 用户输入过滤, 语法结构比较, 防御模型

Abstract:

In recent years, some progresses have been made on the research on SQL injection attack defense. However, the present measures of SQL injection attack defense still have limitations. This paper studies the problems existing in the SQL injection attack defense. At first, for the misinformation problem of normal data existing in the user inputs, a measure to filter user inputs is proposed which is based on Http request classification, and the measure of grammatical structure comparison is proposed to solve the underreporting problem of malicious data. Secondly, for the low detection efficiency problem existing in the measure of grammatical structure comparison, a dynamic query matching measure based on the parameterized classification is proposed. Finally, based on the above two measures, a double layer defense model based on classification for SQL injection attack is proposed. The experimental results show that the defense model has good defense capability against SQL injection attacks, which can effectively reduce the misinformation rate and the underreporting rate existing in user input filtering, and improve the detection efficiency of the measure of the grammatical structure comparison.

Key words: SQL injection attack, user input filtering, grammatical structure comparison, defense model

中图分类号: