arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2308.04964cs.LGcs.CR
收藏

ModSec-AdvLearn:利用鲁棒机器学习对抗对抗性SQL注入

ModSec-AdvLearn: Countering Adversarial SQL Injections with Robust Machine Learning

Dept. of Electrical and Electronic Engineering, University of Cagliari(电子工程系,卡利亚里大学);Department of Computer, Control and Management Engineering, Sapienza University(计算机、控制与管理工程系,萨皮恩扎大学);Dept. of Digital Security, EURECOM(数字安全系,EURECOM);Department of Informatics, Bioengineering, Robotics and Systems Engineering (DIBRIS), University of Genova(信息学、生物工程、机器人学和系统工程系(DIBRIS),热那亚大学);Prima Assicurazioni(普里玛保险);Endor Labs(Endor实验室);Pluribus One

Giuseppe Floris, Christian Scano, Biagio Montaruli, Luca Demetrio, Andrea Valenza, Luca Compagna, Davide Ariu, Luca Piras, Davide Balzarotti, Battista Biggio

AI总结:

针对CRS配置在SQLi检测中权衡次优且不鲁棒的问题,提出ModSec-AdvLearn,利用机器学习自动选择规则和权重,并结合对抗训练,显著提升检测率与鲁棒性。

摘要:

许多Web应用防火墙(WAF)利用OWASP CRS来阻止传入的恶意请求。CRS由领域专家设计的不同规则集组成,用于检测众所周知的Web攻击模式。规则集和用于组合规则的权重都是手动定义的,产生了CRS的四种不同默认配置。在这项工作中,我们专注于SQLi攻击的检测,并表明CRS的手动配置通常会在检测率和误报率之间产生次优的权衡。此外,我们表明这些配置对对抗性SQLi攻击不具有鲁棒性,即精心设计的攻击通过查询目标WAF来迭代细化恶意SQLi负载以绕过检测。为了克服这些限制,我们提出(i)使用机器学习来自动选择要组合的规则集及其权重,即根据被监控的Web服务定制CRS配置;(ii)利用对抗训练来显著提高其对对抗性SQLi操纵的鲁棒性。我们使用配备CRS规则的著名开源ModSecurity WAF进行的实验表明,我们名为ModSec-AdvLearn的方法可以(i)将检测率提高高达30%,同时保持可忽略的误报率,并丢弃多达50%的CRS规则;(ii)将对抗性SQLi攻击的鲁棒性提高高达85%,标志着朝着设计更有效和更鲁棒的WAF迈出了重要一步。我们在https://github.com/pralab/modsec-advlearn上发布了我们的开源代码。

英文摘要:

Many Web Application Firewalls (WAFs) leverage the OWASP CRS to block incoming malicious requests. The CRS consists of different sets of rules designed by domain experts to detect well-known web attack patterns. Both the set of rules and the weights used to combine them are manually defined, yielding four different default configurations of the CRS. In this work, we focus on the detection of SQLi attacks, and show that the manual configurations of the CRS typically yield a suboptimal trade-off between detection and false alarm rates. Furthermore, we show that these configurations are not robust to adversarial SQLi attacks, i.e., carefully-crafted attacks that iteratively refine the malicious SQLi payload by querying the target WAF to bypass detection. To overcome these limitations, we propose (i) using machine learning to automate the selection of the set of rules to be combined along with their weights, i.e., customizing the CRS configuration based on the monitored web services; and (ii) leveraging adversarial training to significantly improve its robustness to adversarial SQLi manipulations. Our experiments, conducted using the well-known open-source ModSecurity WAF equipped with the CRS rules, show that our approach, named ModSec-AdvLearn, can (i) increase the detection rate up to 30%, while retaining negligible false alarm rates and discarding up to 50% of the CRS rules; and (ii) improve robustness against adversarial SQLi attacks up to 85%, marking a significant stride toward designing more effective and robust WAFs. We release our open-source code at https://github.com/pralab/modsec-advlearn.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑