IDEAS home Printed from https://ideas.repec.org/a/gam/jftint/v15y2023i4p133-d1111793.html
   My bibliography  Save this article

SSQLi: A Black-Box Adversarial Attack Method for SQL Injection Based on Reinforcement Learning

Author

Listed:
  • Yuting Guan

    (School of cyber Science and Engineering, Sichuan University, Chengdu 610065, China)

  • Junjiang He

    (School of cyber Science and Engineering, Sichuan University, Chengdu 610065, China)

  • Tao Li

    (School of cyber Science and Engineering, Sichuan University, Chengdu 610065, China)

  • Hui Zhao

    (School of cyber Science and Engineering, Sichuan University, Chengdu 610065, China)

  • Baoqiang Ma

    (School of cyber Science and Engineering, Sichuan University, Chengdu 610065, China)

Abstract

SQL injection is a highly detrimental web attack technique that can result in significant data leakage and compromise system integrity. To counteract the harm caused by such attacks, researchers have devoted much attention to the examination of SQL injection detection techniques, which have progressed from traditional signature-based detection methods to machine- and deep-learning-based detection models. These detection techniques have demonstrated promising results on existing datasets; however, most studies have overlooked the impact of adversarial attacks, particularly black-box adversarial attacks, on detection methods. This study addressed the shortcomings of current SQL injection detection techniques and proposed a reinforcement-learning-based black-box adversarial attack method. The proposal included an innovative vector transformation approach for the original SQL injection payload, a comprehensive attack-rule matrix, and a reinforcement-learning-based method for the adaptive generation of adversarial examples. Our approach was evaluated on existing web application firewalls (WAF) and detection models based on machine- and deep-learning methods, and the generated adversarial examples successfully bypassed the detection method at a rate of up to 97.39%. Furthermore, there was a substantial decrease in the detection accuracy of the model after multiple attacks had been carried out on the detection model via the adversarial examples.

Suggested Citation

  • Yuting Guan & Junjiang He & Tao Li & Hui Zhao & Baoqiang Ma, 2023. "SSQLi: A Black-Box Adversarial Attack Method for SQL Injection Based on Reinforcement Learning," Future Internet, MDPI, vol. 15(4), pages 1-18, March.
  • Handle: RePEc:gam:jftint:v:15:y:2023:i:4:p:133-:d:1111793
    as

    Download full text from publisher

    File URL: https://www.mdpi.com/1999-5903/15/4/133/pdf
    Download Restriction: no

    File URL: https://www.mdpi.com/1999-5903/15/4/133/
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Yong Fang & Cheng Huang & Yijia Xu & Yang Li, 2019. "RLXSS: Optimizing XSS Detection Model to Defend Against Adversarial Attacks Based on Reinforcement Learning," Future Internet, MDPI, vol. 11(8), pages 1-13, August.
    Full references (including those not matched with items on IDEAS)

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Yinfeng Wang & Longxiang Wang & Xiaoshe Dong, 2021. "An Intelligent TCP Congestion Control Method Based on Deep Q Network," Future Internet, MDPI, vol. 13(10), pages 1-14, October.

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:gam:jftint:v:15:y:2023:i:4:p:133-:d:1111793. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: MDPI Indexing Manager (email available below). General contact details of provider: https://www.mdpi.com .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.