In the paper we present a new approach based on application of neural networks to detect SQL attacks. SQL attacks are those attacks that take advantage of using SQL statements to be performed. The problem of detection of this class of attacks is transformed to time series prediction problem. SQL queries are used as a source of events in a protected environment. To differentiate between normal SQL queries and those sent by an attacker we divide SQL statements into tokens and pass them to our detection system, which predicts the next token, taking into account previously seen tokens. In the learning phase tokens are passed to recurrent neural network (RNN) trained by back-propagation through time (BPTT) algorithm. Teaching data are shifted by one token forward in time with relation to input. The purpose of the testing phase is to predict the next token in the sequence. All experiments were conducted on Jordan and Elman networks using data gathered from PHP Nuke portal. Experimental results show that the Jordan network outperforms the Elman network predicting correctly queries of the length up to ten.
[1]
Tony White,et al.
The application of antigenic search techniques to time series forecasting
,
2005,
GECCO '05.
[2]
Peter Tiño,et al.
Learning long-term dependencies in NARX recurrent neural networks
,
1996,
IEEE Trans. Neural Networks.
[3]
D. S. G. Pollock,et al.
A handbook of time-series analysis, signal processing and dynamics
,
1999
.
[4]
Marc Dacier,et al.
A Lightweight Tool for Detecting Web Server Attacks
,
2000,
NDSS.
[5]
Kymie M. C. Tan,et al.
Undermining an Anomaly-Based Intrusion Detection System Using Common Exploits
,
2002,
RAID.
[6]
P. R. Drake,et al.
Improved Self-Feedback Gain in the Context Layer of a Modified Elman Neural Network
,
2002
.
[7]
Christopher Krügel,et al.
Anomaly detection of web-based attacks
,
2003,
CCS '03.
[8]
Giovanni Vigna,et al.
A Learning-Based Approach to the Detection of SQL Attacks
,
2005,
DIMVA.
[9]
Jeff Dean,et al.
Time Series
,
2009,
Encyclopedia of Database Systems.