IDEAS home Printed from https://ideas.repec.org/a/gam/jmathe/v10y2022i20p3787-d941924.html
   My bibliography  Save this article

Resolving Cross-Site Scripting Attacks through Fusion Verification and Machine Learning

Author

Listed:
  • Jiazhong Lu

    (School of Cybersecurity, Chengdu University of Information Technology, Chengdu 610225, China
    These authors contributed equally to this work as co-first authors.)

  • Zhitan Wei

    (School of Cybersecurity, Chengdu University of Information Technology, Chengdu 610225, China
    These authors contributed equally to this work as co-first authors.)

  • Zhi Qin

    (School of Cybersecurity, Chengdu University of Information Technology, Chengdu 610225, China)

  • Yan Chang

    (School of Cybersecurity, Chengdu University of Information Technology, Chengdu 610225, China)

  • Shibin Zhang

    (School of Cybersecurity, Chengdu University of Information Technology, Chengdu 610225, China)

Abstract

The frequent variations of XSS (cross-site scripting) payloads make static and dynamic analysis difficult to detect effectively. In this paper, we proposed a fusion verification method that combines traffic detection with XSS payload detection, using machine learning to detect XSS attacks. In addition, we also proposed seven new payload features to improve detection efficiency. In order to verify the effectiveness of our method, we simulated and tested 20 public CVE (Common Vulnerabilities and Exposures) XSS attacks. The experimental results show that our proposed method has better accuracy than the single traffic detection model. Among them, the recall rate increased by an average of 48%, the F1 score increased by an average of 27.94%, the accuracy rate increased by 9.29%, and the accuracy rate increased by 3.81%. Moreover, the seven new features proposed in this paper account for 34.12% of the total contribution rate of the classifier.

Suggested Citation

  • Jiazhong Lu & Zhitan Wei & Zhi Qin & Yan Chang & Shibin Zhang, 2022. "Resolving Cross-Site Scripting Attacks through Fusion Verification and Machine Learning," Mathematics, MDPI, vol. 10(20), pages 1-14, October.
  • Handle: RePEc:gam:jmathe:v:10:y:2022:i:20:p:3787-:d:941924
    as

    Download full text from publisher

    File URL: https://www.mdpi.com/2227-7390/10/20/3787/pdf
    Download Restriction: no

    File URL: https://www.mdpi.com/2227-7390/10/20/3787/
    Download Restriction: no
    ---><---

    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:jmathe:v:10:y:2022:i:20:p:3787-:d:941924. 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.

    We have no bibliographic references for this item. You can help adding them by using 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.