arrow
Return

Data-mining based SQL injection attack detection using internal query trees

delete2014-09-01
delete29
PRE
AI
M
Mi-Yeon Kim
D
Dong Hoon Lee *
DOI:10.1016/j.eswa.2014.02.041delete
deleteOriginal
deleteShare
deleteSave
Abstract

Abstract

En 中文
Detecting SQL injection attacks (SQLIAs) is becoming increasingly important in database-driven web sites. Until now, most of the studies on SQLIA detection have focused on the structured query language (SQL) structure at the application level. Unfortunately, this approach inevitably fails to detect those attacks that use already stored procedure and data within the database system. In this paper, we propose a framework to detect SQLIAs at database level by using SVM classification and various kernel functions. The key issue of SQLIA detection framework is how to represent the internal query tree collected from database log suitable for SVM classification algorithm in order to acquire good performance in detecting SQLIAs. To solve the issue, we first propose a novel method to convert the query tree into an n-dimensional feature vector by using a multi-dimensional sequence as an intermediate representation. The reason that it is difficult to directly convert the query tree into an n-dimensional feature vector is the complexity and variability of the query tree structure. Second, we propose a method to extract the syntactic features, as well as the semantic features when generating feature vector. Third, we propose a method to transform string feature values into numeric feature values, combining multiple statistical models. The combined model maps one string value to one numeric value by containing the multiple characteristic of each string value. In order to demonstrate the feasibility of our proposals in practical environments, we implement the SQUA detection system based on PostgreSQL, a popular open source database system, and we perform experiments. The experimental results using the internal query trees of PostgreSQL validate that our proposal is effective in detecting SQLIAs, with at least 99.6% of the probability that the probability for malicious queries to be correctly predicted as SQLIA is greater than the probability for normal queries to be incorrectly predicted as SQUA. Finally, we perform additional experiments to compare our proposal with syntax-focused feature extraction and single statistical model based on feature transformation. The experimental results show that our proposal significantly increases the probability of correctly detecting SQLIAs for various SQL statements, when compared to the previous methods. (C) 2014 Elsevier Ltd. All rights reserved.
Keywords:
Intrusion detection
SQL injection attack
Database
Data mining
SVM
SQLiGoT: Detecting SQL injection attacks using graph of tokens and SVM
err2016-07-01
err51
PREAI
errKar, Debabrata; Panigrahi, Suvasini; Sundararajan, Srikanth
errShare
errSave
DIAVA: A Traffic-Based Framework for Detection of SQL Injection Attacks and Vulnerability Analysis of Leaked Data
err2020-03-01
err39
PREAI
errGu, Haifeng; Zhang, Jianning; Liu, Tian; Hu, Ming; Zhou, Junlong; Wei, Tongquan; Chen, Mingsong
errShare
errSave
Detecting SQL injection attacks using query result size
err2014-07-01
err26
PREAI
errJang, Young-Su; Choi, Jin-Young
errShare
errSave
A Hot Query Bank approach to improve detection performance against SQL injection attacks
err2012-03-01
err6
PREAI
errChung, Yu-Chi; Wu, Ming-Chuan; Chen, Yih-Chang; Chang, Wen-Kui
errShare
errSave

Journal

Expert Systems with Applications cover
Expert Systems with Applications
IF:
7.5
Papers:
3.1W
Citations:
13.6W

Organization

K
Korea University
Scholars:
3.0K
Papers: 1.2K
Citations: 2.2W
Cited Papers

Cited Papers

errShare
errSave
errShare
errSave
Stereotyped: Investigating Gender in Introductory Science Courses
err2013-03-01
err0
errOAAI
errShanda Lauer; Jennifer Momsen; Erika Offerdahl; Mila Kryjevskaia; Warren Christensen; Lisa Montplaisir
errShare
errSave
Me and My Group: Cultural Status Can Disrupt Cognitive Consistency
err2005-08-01
err0
PREAI
errKristin A. Lane; Jason P. Mitchell; Mahzarin R. Banaji
errShare
errSave
Kernel methods in machine learning
err2008-06-01
err1.6K
errOAAI
errHofmann, Thomas; Schoelkopf, Bernhard; Smola, Alexander J.
errShare
errSave
errShare
errSave
researcher View more