arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2401.02615cs.CR
收藏

AdvSQLi:针对真实世界WAF即服务的对抗性SQL注入生成

AdvSQLi: Generating Adversarial SQL Injections against Real-world WAF-as-a-service

Zhenqing Qu, Xiang Ling, Ting Wang, Xiang Chen, Shouling Ji, Chunming Wu

AI总结:

本文提出通用可扩展的对抗攻击框架AdvSQLi,通过对SQLi负载层次树进行最小转换生成绕过黑盒WAF即服务且保持恶意的负载,实验证明其对主流WAF及检测器攻击成功率最高达100%,揭示了厂商难以修补的严重缺陷。

摘要:

作为攻击者首先会遇到的防御层,Web应用防火墙(WAF)在防御诸如SQL注入(SQLi)等恶意Web攻击方面扮演着不可或缺的角色。随着云计算的发展,作为安全即服务的一种,WAF即服务被提出,以便利WAF在云中的部署、配置和更新。尽管其极受欢迎,但WAF即服务的安全漏洞在很大程度上仍然未知,鉴于其庞大的使用量,这非常令人担忧。在本文中,我们提出了一个通用且可扩展的攻击框架,即AdvSQLi,它对原始SQLi负载的层次树表示执行一系列最小化的转换,使得生成的SQLi负载不仅能在黑盒设置下绕过WAF即服务,还能保持与原始负载相同的功能和恶意性。借助AdvSQLi,我们使自动检查和理解WAF的安全漏洞成为可能,帮助厂商制造更安全的产品。为了评估AdvSQLi的攻击有效性和效率,我们首先使用两个公开数据集生成对抗性SQLi负载,对最先进的基于ML的SQLi检测器实现了最高100%的攻击成功率。此外,为了展示AdvSQLi造成的直接安全威胁,我们评估了其针对来自主流厂商的7种WAF即服务解决方案的攻击有效性,发现它们都容易受到AdvSQLi的攻击。例如,AdvSQLi对F5 WAF的攻击成功率超过79%。通过对评估结果的深入分析,我们进一步提炼出了这些厂商存在的几个普遍且严重的缺陷,且这些缺陷不易被修补。

英文摘要:

As the first defensive layer that attacks would hit, the web application firewall (WAF) plays an indispensable role in defending against malicious web attacks like SQL injection (SQLi). With the development of cloud computing, WAF-as-a-service, as one kind of Security-as-a-service, has been proposed to facilitate the deployment, configuration, and update of WAFs in the cloud. Despite its tremendous popularity, the security vulnerabilities of WAF-as-a-service are still largely unknown, which is highly concerning given its massive usage. In this paper, we propose a general and extendable attack framework, namely AdvSQLi, in which a minimal series of transformations are performed on the hierarchical tree representation of the original SQLi payload, such that the generated SQLi payloads can not only bypass WAF-as-a-service under black-box settings but also keep the same functionality and maliciousness as the original payload. With AdvSQLi, we make it feasible to inspect and understand the security vulnerabilities of WAFs automatically, helping vendors make products more secure. To evaluate the attack effectiveness and efficiency of AdvSQLi, we first employ two public datasets to generate adversarial SQLi payloads, leading to a maximum attack success rate of 100% against state-of-the-art ML-based SQLi detectors. Furthermore, to demonstrate the immediate security threats caused by AdvSQLi, we evaluate the attack effectiveness against 7 WAF-as-a-service solutions from mainstream vendors and find all of them are vulnerable to AdvSQLi. For instance, AdvSQLi achieves an attack success rate of over 79% against the F5 WAF. Through in-depth analysis of the evaluation results, we further condense out several general yet severe flaws of these vendors that cannot be easily patched.

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

↑