Journals / Eskişehir Türk Dünyası Uygulama ve Araştırma Merkezi Bilişim Dergisi / 2023 / Cilt: 4 Sayı: 2

XSS Attack Detection with N-Gram Based Prediction Model

N-Gram Tabanlı Tahmin Modeli ile XSS Saldırısı Algılama

Pages
1–9
Publication Date
2023-06-30
DOI
—
🏛️Bibliographic metadata and full text access for this article are provided via DergiPark.
DergiPark Record ↗
✨

AI Summary & Key Takeaways

AI Insight
⚡ TL;DR(Too Long; Didn't Read)

The results show that N-Gram tokenization outperforms the Word Tokenization.

📌 3 Key Takeaways

🎯
Objective & Hypothesis:The increment developments in technology has empowered the web applications.
📊
Key Findings & Data:Meanwhile, the existence of Cross-Site Scripting (XSS) vulnerabilities in web applications has become a concern for users.
💡
Conclusion & Impact:The results show that N-Gram tokenization outperforms the Word Tokenization.
🔬Design:Modeling & Simulation
📍Scope:Comprehensive Sample
⚙️Variables:XSS Saldırıları · Tahmin Modeli · Makine Öğrenme

Abstract

The increment developments in technology has empowered the web applications. Meanwhile, the existence of Cross-Site Scripting (XSS) vulnerabilities in web applications has become a concern for users. In spite of the numerous current detection approaches, attackers have been exploiting XSS vulnerabilities for years, causing harm to the internet users. In this paper, a text-mining based approach to detect XSS attacks in web applications is introduced. This approach is built to extract a set of features from a publicly available source code files, which are then used to build a prediction model. The findings include few comparisons between Word Tokenization and N-Gram in accuracy, time spend to build the model and AUC-ROC curve. The results show that N-Gram tokenization outperforms the Word Tokenization.

Özet

Teknolojideki hızlı gelişmeler web uygulamalarını güçlendirmiştir. Bu arada, web uygulamalarında Siteler Arası Betik Çalıştırma (XSS olarak da bilinir) güvenlik açıklarının varlığı, kullanıcılar için bir endişe haline gelmiştir. Çok sayıda mevcut algılama yaklaşımına rağmen saldırganlar yıllardır XSS güvenlik açıklarından yararlanarak internet kullanıcılarına zarar veriyor. Bu makalede, web uygulamalarındaki XSS Saldırısını tespit etmek için metin madenciliği tabanlı bir yaklaşım tanıtılmaktadır. Bu yaklaşım, halka açık bir kaynak kod dosyalarından bir dizi özellik çıkarmak için oluşturulmuştur. Bu dosyalar, daha sonra bir tahmin modeli oluşturmaya yardımcı olmak için kullanılır. Bulgular, N-Gram ve Kelime Simgeleştirme arasında doğruluk, modeli oluşturmak için harcanan zaman ve AUC-ROC eğrisi birkaç karşılaştırma içerir. Sonuç olarak N-Gram Kelime Simgeleştirmesinden daha iyi performans göstermektedir.

🔖

Cite This Article

ALAGHA, B. (2023). XSS Attack Detection with N-Gram Based Prediction Model. Eskişehir Türk Dünyası Uygulama ve Araştırma Merkezi Bilişim Dergisi, Cilt: 4 Sayı: 2, 1–9. https://ajindex.com/articles/952085

📄 Full Text PDF Viewer

📄

PDF görüntüleyici hazırlanıyor...

References (12)

  1. Ying, M., Li, S. Q. 2016. CSP adoption: current status and future prospects. Security and Communication Networks, 9(17), 4557-4573. [2] sucuri.net. 2022. Sucuri Security. sitecheck.sucuri.net
  2. Hearst, M. A. 1999. Untangling text data mining. In Proceedings of the 37th Annual meeting of the Association for Computational Linguistics, pp. 3-10
  3. Feldman, R., Dagan, I. 1995. Knowledge Discovery in Textual Databases (KDT). In KDD, Vol. 95, pp. 112-117. [5] positive technologies. 2022. Threats and Vulnerabilities in Web Applications 2020–2021. www.ptsecurity.com/ww-en/analytics/web-vulnerabilities-2020-2021/ [6] OWASP. 2021. OWASP Top Ten. owasp.org/www-project-top-ten/
  4. Doupe, A., Cui, W., Jakubowski, M. H., Peinado, M., Kruegel, C., Vigna, G. 2013. deDacota: toward preventing server-side XSS via automatic code and data separation. In Proceedings of the 2013 ACM SIGSAC conference on Computer & communications Security, pp. 1205-1216
  5. Lavrenovs, A., Melón, F. J. R. 2018. HTTP security headers analysis of top one million websites. In 2018 10th International Conference on Cyber Conflict (CyCon) (pp. 345-370). IEEE
  6. Scholte, T., Robertson, W., Balzarotti, D., Kirda, E. 2012. Preventing input validation vulnerabilities in web applications through automated type analysis. In 2012 IEEE 36th annual computer software and applications conference (pp. 233-243). IEEE
  7. Stock, B., Lekies, S., Mueller, T., Spiegel, P., Johns, M. 2014. Precise client-side protection against DOM-based cross-site scripting. In 23rd {USENIX} Security Symposium ({USENIX} Security 14) (pp. 655-670)
  8. Salas, M. I. P., Martins, E. 2014. Security testing methodology for vulnerabilities detection of xss in web services and ws-security. Electronic Notes in Theoretical Computer Science, 302, 133-154
  9. Niakanlahiji, A., Jafarian, J. H. 2017. Webmtd: defeating web code injection attacks using web element attribute mutation. In Proceedings of the 2017 Workshop on Moving Target Defense, pp. 17-26
  10. Athanasopoulos, E., Pappas, V., Krithinakis, A., Ligouras, S., Markatos, E. P., Karagiannis, T. 2010. xJS: practical XSS prevention for web application development. In Proceedings of the 2010 USENIX conference on Web application development, p. 13
  11. Van Gundy, M., Chen, H. 2012. Noncespaces: Using randomization to defeat cross-site scripting attacks. Computers & Security, 31(4), 612-628
  12. Gupta, B. B., Soni, H., Siwan, P., Kumar, A., Gupta, S. 2018. DOM-guard: defeati