Skip to content

Move regexes to regex-assembly format before LTS #4480

Description

@fzipi

Description

Would like to take a stab at converting some of these (before the LTS).

summary

36 rules in REQUEST-*.conf files have @rx patterns over 50 characters with no corresponding .ra file:

Conf File Count Notable Rules
REQUEST-921-PROTOCOL-ATTACK 3 921110 ✅, 921120 ✅, 921160 ✅
REQUEST-930-APPLICATION-ATTACK-LFI 1 930110 ✅
REQUEST-931-APPLICATION-ATTACK-RFI 2 931100, 931110 ✅
REQUEST-933-APPLICATION-ATTACK-PHP 2 933140, 933180 ✅
REQUEST-934-APPLICATION-ATTACK-GENERIC 1 934130 ✅
REQUEST-941-APPLICATION-ATTACK-XSS 10 941120 ✅ , ✅ 941170, 941250 ✅ , 941300 ✅ , 941310 ✅, 941370 ✅ , 941400 ✅
REQUEST-942-APPLICATION-ATTACK-SQLI 10 942220 ✅ , 942250 ✅ , 942450 ✅ , 942510 ✅ , 942511 ✅
REQUEST-943-SESSION-FIXATION 3 943100 ✅ , 943110 ✅ , 943120 ✅
REQUEST-944-APPLICATION-ATTACK-JAVA 4 944120 ✅ , 944240 ✅ , 944260 ✅ , 944300 ✅

Top candidates for .ra conversion (by regex length):

  1. ✅ 944300 — 721 chars (base64-encoded Java gadget detection)
  2. ✅ 941320 — 652 chars (HTML tag enumeration)
  3. ✅ 941330 — 439 chars (JS obfuscation patterns)

The XSS (941xxx) and SQLi (942xxx) families dominate with 10 rules each. The 942420-432 family (5 rules) shares the same pattern structure so they'd benefit from a shared .ra include file. Similarly, 943110/943120 and 944120/944240 are near-duplicate pairs.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions