Proceedings

Locate-Then-Detect: Real-time Web Attack Detection via Attention-based Deep Neural Networks

Download BibTeX Cite

Proceedings of the Twenty-Eighth International Joint Conference on Artificial Intelligence. Main track. Pages 4725-4731.

https://doi.org/10.24963/ijcai.2019/656

Abstract

Web attacks such as Cross-Site Scripting and SQL Injection are serious Web threats that lead to catastrophic data leaking and loss. Because attack payloads are often short segments hidden in URL requests/posts that can be very long, classical machine learning approaches have difficulties in learning useful patterns from them. In this study, we propose a novel Locate-Then-Detect (LTD) system that can precisely detect Web threats in real-time by using attention-based deep neural networks. Firstly, an efficient Payload Locating Network (PLN) is employed to propose most suspicious regions from large URL requests/posts. Then a Payload Classification Network (PCN) is adopted to accurately classify malicious regions from suspicious candidates. In this way, PCN can focus more on learning malicious segments and highly increase detection accuracy. The noise induced by irrelevant background strings can be largely eliminated. Besides, LTD can greatly reduce computational costs (82.6% less) by ignoring large irrelevant URL content. Experiments are carried out on both benchmarks and real Web traffic. The LTD outperforms an HMM-based approach, the Libinjection system, and a leading commercial rule-based Web Application Firewall. Our method can be efficiently implemented on GPUs with an average detection time of about 5ms and well qualified for real-time applications.

  1. [Bau et al., 2010] Jason Bau, Elie Bursztein, Divij Gupta, and John Mitchell. State of the art: Automated black- box web application vulnerability testing. In Security and Privacy (SP), 2010 IEEE Symposium on, pages 332-345. IEEE, 2010.
  2. [Chollet, 2016] Franc ¸ois Chollet. Xception: Deep learning with depthwise separable convolutions. arXiv preprint, 2016.
  3. [Collobert et al., 2011] Ronan Collobert, Jason Weston, Léon Bottou, Michael Karlen, Koray Kavukcuoglu, and Pavel Kuksa. Natural language processing (almost) from scratch. Journal of Machine Learning Research, 12(Aug):2493-2537, 2011.
  4. [Corona et al., 2009] Igino Corona, Davide Ariu, and Gior- gio Giacinto. Hmm-web: A framework for the detection of attacks against web applications. In Communications, 2009. ICC'09. IEEE International Conference on, pages 1-6. IEEE, 2009.
  5. [Galbreath, 2012] Nick Galbreath. Libinjection. Blackhat, 2012.
  6. [Girshick, 2015] Ross Girshick. Fast r-cnn. In Computer Vision (ICCV), 2015 IEEE International Conference on, pages 1440-1448. IEEE, 2015.
  7. [Gupta et al., 2014] Mukesh Kumar Gupta, MC Govil, and Girdhari Singh. Static analysis approaches to detect sql injection and cross site scripting vulnerabilities in web ap- plications: A survey. In Recent Advances and Innovations in Engineering (ICRAIE), 2014, pages 1-5. IEEE, 2014.
  8. [Johari and Sharma, 2012] Rahul Johari and Pankaj Sharma. A survey on web application vulnerabilities (sqlia, xss) ex- ploitation and security engine for sql injection. In Commu- nication Systems and Network Technologies (CSNT), 2012 International Conference on, pages 453-458. IEEE, 2012.
  9. [Kar et al., 2016] Debabrata Kar, Khushboo Agarwal, Ajit Kumar Sahoo, and Suvasini Panigrahi. Detection of sql injection attacks using hidden markov model. In Engineering and Technology (ICETECH), 2016 IEEE International Conference on, pages 1-6. IEEE, 2016.
  10. [Kim et al., 2016] Yoon Kim, Yacine Jernite, David Sontag, and Alexander M Rush. Character-aware neural language models. In AAAI, pages 2741-2749, 2016.
  11. [Kim, 2014] Yoon Kim. Convolutional neural networks for sentence classification. arXiv preprint arXiv:1408.5882, 2014.
  12. [Kindy and Pathan, 2011] Diallo Abdoulaye Kindy and Al- Sakib Khan Pathan. A survey on sql injection: Vulnera- bilities, attacks, and prevention techniques. In Consumer Electronics (ISCE), 2011 IEEE 15th International Sympo- sium on, pages 468-471. IEEE, 2011.
  13. [Kingma and Ba, 2014] Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014.
  14. [LeCun et al., 2015] Yann LeCun, Yoshua Bengio, and Ge- offrey Hinton. Deep learning. nature, 521(7553):436, 2015.
  15. [Li et al., 2017] Zeming Li, Chao Peng, Gang Yu, Xiangyu Zhang, Yangdong Deng, and Jian Sun. Light-head r-cnn: In defense of two-stage object detector. arXiv preprint arXiv:1711.07264, 2017.
  16. [Nguyen et al., 2011] Hai Thanh Nguyen, Carmen Torrano- Gimenez, Gonzalo Alvarez, Slobodan Petrović, and Katrin Franke. Application of the generic feature selection mea- sure in detection of web attacks. In Computational Intel- ligence in Security for Information Systems, pages 25-32. Springer, 2011.
  17. [Pinzón et al., 2010] Cristian Pinzón, Juan F De Paz, Javier Bajo, Álvaro Herrero, and Emilio Corchado. Aiida-sql: An adaptive intelligent intrusion detector agent for detect- ing sql injection attacks. In Hybrid Intelligent Systems (HIS), 2010 10th International Conference on, pages 73- 78. IEEE, 2010.
  18. [Ren et al., 2015] Shaoqing Ren, Kaiming He, Ross Gir- shick, and Jian Sun. Faster r-cnn: Towards real-time ob- ject detection with region proposal networks. In Advances in neural information processing systems, pages 91-99, 2015.
  19. [Xiao and Cho, 2016] Yijun Xiao and Kyunghyun Cho. Ef- ficient character-level document classification by com- bining convolution and recurrent layers. arXiv preprint arXiv:1602.00367, 2016.

References were extracted automatically from the PDF and may contain errors.

Welcome Future Conferences AI Journal Division IJCAI Proceedings About IJCAI IJCAI Awards