作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程

• 安全技术 • 上一篇    下一篇

基于AOP与SQL结构分析的SQLIAs动态检测及防御

何成万,青旺,徐雅琴,严柯   

  1. (武汉工程大学 计算机科学与工程学院,武汉 430205)
  • 收稿日期:2017-02-28 出版日期:2018-04-15 发布日期:2018-04-15
  • 作者简介:何成万(1967—),男, 教授、博士后,主研方向为软件复用及软件构件技术、语义Web;青旺、徐雅琴、严柯,硕士研究生。
  • 基金资助:
    国家自然科学基金(61272115,60873024)。

Dynamic Detection and Defense of SQLIAs Based on AOP and SQL Structure Analysis

HE Chengwan,QING Wang,XU Yaqin,YAN Ke   

  1. (School of Computer Science and Engineering,Wuhan Institute of Technology,Wuhan 430205,China)
  • Received:2017-02-28 Online:2018-04-15 Published:2018-04-15

摘要: SQL注入攻击(SQLIAs)是一种危险且有效的基于Web的攻击方式。任何形式的SQLIAs最终都会改变原有SQL语句的逻辑结构,针对该攻击特征,提出一种基于AOP与SQL语句结构分析的SQLIAs动态检测及防御方法,在SQLIAs产生根源对其进行防御。借助代码静态分析工具自动获取SQL注入点位置、Signature信息以及静态SQL语句模型,使用AOP技术在程序执行过程中动态捕获需要被执行的SQL语句,将静态分析得到的信息与动态获取的信息进行比较,判断是否存在SQLIAs。通过简单的用户登录功能验证该方法的有效性,实验结果表明,该方法能有效检测和防御SQLIAs。

关键词: SQL注入攻击, 面向方面编程, 攻击特征, 动态检测, 逻辑结构

Abstract: The SQL Injection Attacks(SQLIAs) is a dangerous and effective Web-based attacks way.According to the characteristics of SQLIAs,that is,any form of attacks will eventually change the logical structure of SQL statement,a method of dynamic detection and defense for the SQLIAs based on Aspect-Oriented Programming(AOP) and the analysis of SQL statement structure is proposed,which can defend against SQLIAs from the root of the attack.Firstly,obtain the location of SQLIAs,signature,and the static SQL statement model automatically by using code Analyzer.Then,capture the executed SQL statement dynamically by using AOP during the process of program execution.Finally,judge whether there is a SQLIAs by making the information obtained by static analysis compare with the dynamic information.The effectiveness of the method is verified by a simple user login function,and the experimental results show that the proposed method can detect and defend the SQLIAs effectively.

Key words: SQL Injection Attacks(SQLIAs), Aspect-Oriented Programming(AOP), attack characteristic, dynamic detection, logical structure

中图分类号: