GenXSS:一个面向WAF中XSS攻击自动检测的AI驱动框架
GenXSS: an AI-Driven Framework for Automated Detection of XSS Attacks in WAFs
AI总结:
GenXSS框架利用大语言模型自动生成并验证XSS攻击载荷,同时自动生成WAF防护规则,实验显示其生成的载荷80%可绕过ModSecurity,且仅用15条新规则即可阻断86%的攻击。
摘要:
对Web服务日益增长的依赖导致网络安全威胁上升,尤其是跨站脚本(XSS)攻击,这类攻击通过注入恶意脚本针对Web应用的客户端层。传统Web应用防火墙(WAF)难以检测高度混淆和复杂的攻击,因为其规则需要人工更新。本文提出了一个新颖的生成式AI框架,利用大语言模型(LLMs)增强XSS缓解能力。该框架实现两个主要目标:(1)利用上下文学习生成复杂且经过语法验证的XSS载荷;(2)通过针对受WAF保护的存在漏洞的应用测试这些攻击、对绕过攻击进行分类并生成有效的WAF安全规则,从而实现防御机制自动化。使用GPT-4o的实验结果表明该框架的有效性:生成了264个XSS载荷,其中83%通过验证,80%绕过了配备由开放Web应用安全项目(OWASP)开发的行业标准安全规则集以防护Web漏洞的ModSecurity WAF。通过规则生成,仅使用15条新规则就阻断了86%此前成功的攻击。相比之下,Google Gemini Pro的绕过率较低,为63%,凸显了不同LLM之间的性能差异。
英文摘要:
The increasing reliance on web services has led to a rise in cybersecurity threats, particularly Cross-Site Scripting (XSS) attacks, which target client-side layers of web applications by injecting malicious scripts. Traditional Web Application Firewalls (WAFs) struggle to detect highly obfuscated and complex attacks, as their rules require manual updates. This paper presents a novel generative AI framework that leverages Large Language Models (LLMs) to enhance XSS mitigation. The framework achieves two primary objectives: (1) generating sophisticated and syntactically validated XSS payloads using in-context learning, and (2) automating defense mechanisms by testing these attacks against a vulnerable application secured by a WAF, classifying bypassing attacks, and generating effective WAF security rules. Experimental results using GPT-4o demonstrate the framework's effectiveness generating 264 XSS payloads, 83% of which were validated, with 80% bypassing ModSecurity WAF equipped with an industry standard security rule set developed by the Open Web Application Security Project (OWASP) to protect against web vulnerabilities. Through rule generation, 86% of previously successful attacks were blocked using only 15 new rules. In comparison, Google Gemini Pro achieved a lower bypass rate of 63%, highlighting performance differences across LLMs.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。