← News

AI securitySources: arXiv · 4 Dec 2026

GenWebSec pairs LLM attackers and defenders to harden web firewalls

A new arXiv paper describes a closed-loop framework where an LLM attack agent probes ModSecurity-based defenses and a defender agent synthesizes compact replacement rules.

In plain words

A web application firewall filters malicious web traffic using rules, but attackers using large language models can quickly craft exploits that slip past them. The paper's framework makes an LLM attack agent find real bypasses, then has a defender agent write a small set of new rules that block them. The authors report the rules stayed effective even when attacks changed or moved to different applications.

What was announced

The authors argue that testing automated defenses only against static attack collections leaves open whether generated rules survive adaptive attackers. GenWebSec therefore pairs LLM attack and defense agents in a loop: exploits are validated through live application execution and WAF replay, and the defender synthesizes rules under coverage-checked admission and strict false-positive bounds before renewed attack search tests the updated defense.

On six custom SQL injection and cross-site scripting targets protected by ModSecurity with the OWASP Core Rule Set 4.29.0, the paper reports 78.0-99.6% of application-valid payloads bypassed the baseline, and every confirmed bypass also evaded Coraza and BunkerWeb under the same ruleset. Grouped synthesis cut median rule counts to 1-3 per page while blocking 99.6-100% of bypasses on matched fixed corpora. Under iterative hardening, renewed search found post-update bypasses in 19 of 60 runs, yet grouped hardening converged to a median of one rule per run and blocked 2,420 of 2,421 in-loop bypasses, with mean added false positives at or below 0.28%. Frozen rules also transferred unchanged to unseen applications, blocking 89.4-94.9% of SQLi and 97.6-97.7% of XSS bypasses on bWAPP with zero added false positives on external benign traffic.

What it does not show

  • The evidence is the paper's abstract only; the full methodology, target configuration and results have not been independently verified.
  • The six SQLi and XSS targets are custom, so the reported bypass and blocking rates may not generalize to other applications or attack classes.
  • The paper does not state whether the framework or its rules are publicly available.

For security and IT teams

Scope
The reported results cover SQL injection and cross-site scripting against ModSecurity with OWASP CRS 4.29.0, with transfer tests on bWAPP and OWASP Juice Shop; other attack types and WAFs are outside the abstract's evidence.

Sources

Source-support review completed 4 Dec 2026. This story was drafted with AI assistance and checked against retained source passages. Automated checking is not independent verification.

Coverage: arXiv: abstract.

Updates and corrections

No corrections so far.

First published 4 Dec 2026

New to the subject? AI from the Ground Up starts from the beginning.