Web uygulama güvenliğinde uygulama katmanı saldırılarının makine öğrenmesi ile tespiti
Detection of application layer attacks in web application security using machine learning
- Tez No: 1030536
- Danışmanlar: DR. ÖĞR. ÜYESİ ÖZGÜR TONKAL
- Tez Türü: Yüksek Lisans
- Konular: Bilgisayar Mühendisliği Bilimleri-Bilgisayar ve Kontrol, Computer Engineering and Computer Science and Control
- Anahtar Kelimeler: Belirtilmemiş.
- Yıl: 2026
- Dil: Türkçe
- Üniversite: Samsun Üniversitesi
- Enstitü: Lisansüstü Eğitim Enstitüsü
- Ana Bilim Dalı: Yazılım Mühendisliği Ana Bilim Dalı
- Bilim Dalı: Belirtilmemiş.
- Sayfa Sayısı: Belirtilmemiş.
Özet
Bu çalışmada, web uygulama güvenliğinde önemli bir yer tutan Siteler Arası Betik Çalıştırma (XSS), SQL Enjeksiyonu (SQLi) ve Komut Enjeksiyonu (CMDi) saldırılarının makine öğrenmesi yöntemleriyle tespit edilmesi amaçlanmıştır. IEEE DataPort ve Kaggle'dan elde edilen veri setleri birleştirilerek 8.383 payload örneğinden oluşan çok sınıflı bir veri seti oluşturulmuş ve sınıf dağılımları korunarak %80 eğitim ve %20 bağımsız test kümesine ayrılmıştır. Birinci deneyde TF-IDF, ikinci deneyde ise TF-IDF ve Word2Vec yöntemlerini birleştiren hibrit özellik çıkarım yaklaşımı kullanılmıştır. Çalışmada, benign, XSS, SQLi ve CMDi payloadlarının sınıflandırılmasında bu iki özellik çıkarım yaklaşımının Lojistik Regresyon (LR), Doğrusal Destek Vektör Makinesi (LSVM), Karar Ağacı (DT), Rastgele Orman (RF) ve Ekstrem Gradyan Artırma (XGBoost) modelleri üzerindeki etkileri aynı deney düzeninde karşılaştırılmıştır. Model hiperparametreleri ile ikinci deneyde Word2Vec hiperparametreleri GridSearchCV kullanılarak belirlenmiş, seçilen hiperparametrelerle elde edilen sonuçlar ayrıca Tabakalı 10 Katlı Çapraz Doğrulama ile kontrol edilmiştir. Nihai performanslar bağımsız test kümesinde makro F1-skoruna göre değerlendirilmiştir. Birinci deneyde XGBoost %97,97, ikinci deneyde LSVM %98,06 ile en yüksek performansı göstermiştir. Exact McNemar testi, birinci deneyde XGBoost-LSVM farkını XGBoost lehine anlamlı bulurken ikinci deneydeki LSVM-LR farkını anlamlı bulmamıştır. Bulgular, hibrit özellik çıkarımının her modelde aynı katkıyı sağlamadığını ve en yüksek performanslı modelin kullanılan özelliklere göre değiştiğini göstermiştir.
Özet (Çeviri)
This study aimed to detect Cross-Site Scripting (XSS), SQL Injection (SQLi), and Command Injection (CMDi) attacks, which are important threats in web application security, using machine learning methods. Datasets obtained from IEEE DataPort and Kaggle were combined to create a multiclass dataset containing 8,383 payload samples. The dataset was divided into 80% training and 20% independent test sets while preserving the class distributions. TF-IDF was used in the first experiment, and a hybrid feature extraction approach combining TF-IDF and Word2Vec was used in the second experiment. The effects of these two feature extraction approaches on Logistic Regression (LR), Linear Support Vector Machine (LSVM), Decision Tree (DT), Random Forest (RF), and Extreme Gradient Boosting (XGBoost) models were compared under the same experimental setup for the classification of benign, XSS, SQLi, and CMDi payloads. Model hyperparameters and the Word2Vec hyperparameters in the second experiment were determined using GridSearchCV. The results obtained with the selected hyperparameters were also checked using Stratified 10-Fold Cross-Validation. Final model performances were evaluated on the independent test set based on the macro F1-score. XGBoost achieved the highest performance with 97.97% in the first experiment, and LSVM achieved the highest performance with 98.06% in the second experiment. The Exact McNemar test showed that the XGBoost-LSVM difference in the first experiment was statistically significant in favor of XGBoost, while the LSVM-LR difference in the second experiment was not statistically significant. The findings showed that hybrid feature extraction did not provide the same benefit for every model and that the highest-performing model changed depending on the features used.
Benzer Tezler
- AI-powered web application security mechanisms
Yapay zeka destekli ağ uygulaması güvenliği düzenekleri
DİLEK YILMAZER DEMİREL
- Session hijacking attacks on wireless networks detection and prevention
Kablosuz ağlarda oturum ele geçirme saldırılarını tespit etme ve önleme
TAHA ALI MOHAMMED GAROON
- Samsun ve çevresinde tarla sarmaşığı (conuolvulus arvensis L.)'na karşı biyolojik savaşa esas olacak fauna tespiti
Investigations on the insect fauna of the field binweed (Conuolvulus arvensis L.) related to its biological control in Samsun Province
YASEMİN UFUK GERMAN
- 1,3-difenil-4,5-bis(hidroksiimino)-imidazolidin ve Ni(II), Cu(II), Pd(II), UO2(VI) komplekslerinin sentezi
Başlık çevirisi yok
VEFA AHSEN
- Tekstil boyamacılığında atık flottede boyama imkanları üzerine araştırma
Başlık çevirisi yok
MEHMET YAKARTEPE