You can write a ModSecurity rule with an LLM in seconds, and it will look like every SecRule you have seen in a blog post. Whether it works is a separate question, and ModSecurity is unusually bad at telling you. Some drafts fail to load, which is the good outcome. Others load cleanly and then block every request, or block nothing because the rule runs in the wrong phase or only reads the query string. An AI WAF rule for ModSecurity is a draft until it has loaded on your engine version and you have replayed requests you know should pass and requests you know should be blocked.
This guide runs that loop on one small virtual patch and one OWASP Core Rule Set (CRS) false positive. Every error message and verdict below came from our lab: libmodsecurity 3.0.16 built from the official release tarball, with CRS 4.29.0. We checked syntax against the ModSecurity v3 reference manual and the CRS documentation. The broken rules were written for this guide to reproduce mistakes models commonly make. They are not a captured model transcript, and no model was called in the lab. The engine's output is the evidence.
Updated: this post was re-tested after ModSecurity 3.0.17 (September 29) and CRS 4.31.0 (November 23). Both releases change results below: 3.0.17 rejects an invalid regex that 3.0.16 loaded, and CRS 4.31.0 changed the format of the allowed-methods setting that many existing configs copy. The details are in the section on what changed in 3.0.17 and CRS 4.31, below. Run the current releases.
Authorized targets only. Write and test WAF rules for applications you own or are engaged to protect. Keep real request logs, cookies and tokens out of prompts.
What we ran, and what we didn't
The original lab used libmodsecurity 3.0.16 and CRS 4.29.0. After those later releases, we re-ran the same checks on 3.0.17 and CRS 4.31.0.
- libmodsecurity 3.0.16 and 3.0.17, compiled from the release tarballs on the ModSecurity releases page (SHA-256 checked against the published
.sha256files), with PCRE2. Each version used its ownmodsecurity.conf-recommended, withSecRuleEngineswitched fromDetectionOnlytoOn. - CRS 4.29.0 and 4.31.0, the minimal release archives, with an unmodified
crs-setup.conf.example(paranoia level 1, inbound anomaly threshold 5). modsec-rules-check, the load checker that ships with libmodsecurity, for "does it parse?"- A 90-line C harness that feeds one HTTP request at a time through libmodsecurity's
msc_*C API, the same API the official nginx connector calls, and prints the verdict. There was no web server or application behind it. A WAF decides before the request reaches the app, so the verdict is what we needed.
We did not test ModSecurity v2 on Apache, which behaves differently in places, and we did not run a live proxy. The lab "app" is a made-up helpdesk with two routes: GET /reports/view?report_id=<n>, a legacy endpoint with an injectable report_id, and POST /tickets/new, where staff paste free text.
How to write ModSecurity rules with an LLM
Treat every draft as untrusted and ask two questions, in order:
- Does it load? Run
modsec-rules-checkon your full config, base file and CRS included. It prints the file, line and column of the problem and exits non-zero (255 in our runs). A rule that fails here never reaches traffic. - Does it block the right requests, and only those? Replay a short list of requests where you already know the right answer: normal traffic that must get 200, and attack-shaped traffic that must get 403. The three dangerous drafts in this post all passed step 1.
# 1. Does it load? (non-zero exit = rejected; 255 in our runs)
modsec-rules-check main.conf; echo $?
# 2. What does it do? Replay known requests through your engine or a staging proxy.
curl -s -o /dev/null -w '%{http_code}\n' 'http://staging.lab/reports/view?report_id=42'
We used the harness for step 2. On a staging nginx or Apache with ModSecurity, curl and the audit log do the same job.
Step 1: Write down the rule and the test cases first
Before asking a model for anything, decide what the rule must do and how you will know it works. Our virtual patch: on /reports/view, report_id must be one to eight digits; anything else gets 403. Five cases:
| Request | Expected |
|---|---|
GET /reports/view?report_id=42 | 200 |
GET /reports/view?report_id=42%20OR%201=1 | 403 |
POST /reports/view with body report_id=42 OR 1=1 | 403 |
GET /reports/view?report_id=42&report_id=1%20OR%201=1 | 403 |
GET /reports/list?page=2 | 200 |
The POST case and the duplicate-parameter case are there because many app frameworks read a parameter from either the query string or the body, and some take the last copy. Your rule has to cover whatever your app actually accepts.
Step 2: Give the model the engine, version and variables
A prompt that produces usable drafts:
Write one ModSecurity v3 (libmodsecurity 3.0.16) SecRule for a virtual patch. On REQUEST_FILENAME exactly "/reports/view", deny with status 403 if any ARGS:report_id is not 1–8 ASCII digits. Use a chain. Use rule id 10110 (local range 1–99,999). phase:2. Use straight quotes, single-quoted msg with no apostrophes, and
t:none. Only use variables from this list: REQUEST_FILENAME, ARGS, ARGS_GET, ARGS_POST, REQUEST_HEADERS. Output the rule only.
Every constraint in that prompt maps to a failure further down. The rule ID range matters more than it looks. The CRS rule ID page reserves 1–99,999 for local use, and CRS itself uses 900,000–999,999 and 9,000,000–9,999,999. A round number like 1000001 looks harmless, but it falls in a block (1,000,000–1,009,999) that page lists as reserved for another publisher, and a reused CRS ID fails outright (Step 3).
Step 3: Drafts that fail to load
These are the friendly failures. modsec-rules-check names the file and line. The output was identical on 3.0.16 and 3.0.17.
No id. Every rule needs one in v3:
$ modsec-rules-check main.conf
: main.conf -- Loaded -1 rules.
Rules must have an ID. File: drafts/d1-noid.conf at line: 1
Test failed.
An invented variable. QUERY_PARAMS sounds right and doesn't exist. The real names are ARGS_GET for the query string and ARGS for query string plus body:
Rules error. File: drafts/d2-badvar.conf. Line: 1. Column: 53. Expecting a variable, got: : QUERY_PARAMS:report_id "!@rx ^[0-9]{1,8}$" \
An apostrophe inside a single-quoted msg. msg:'report_id isn't numeric' closes the string at isn:
Rules error. File: drafts/d6-apostrophe.conf. Line: 2. Column: 68. Expecting an action, got: t numeric'"
A duplicate ID, either inside your own file (Rule id: 10110 is duplicated) or against CRS. A draft that reused id:942100, a CRS SQL injection rule, failed the same way on both CRS versions:
: main.conf -- Loaded -1 rules.
Rule id: 942100 is duplicated
Test failed.
All four exited 255. If your deploy pipeline runs modsec-rules-check, none of these reach production.
Step 4: The rule that loads and blocks everything
An invented operator. A model wrote "!@regex ^[0-9]{1,8}$". There is no @regex operator; the real one is @rx. We expected a load error. Instead, both versions printed Test ok. and then blocked the legitimate request:
> GET /reports/view?report_id=42
log: id 10112 Non-numeric report_id
VERDICT: 403 (intervention at phase 2)
The reference manual explains why: @rx is the default operator, and rules without an explicit operator default to it. The string after the variable doesn't start with a known operator, so in our runs the engine treated all of @regex ^[0-9]{1,8}$ as a regular expression. That pattern can't match a number, so the negated rule fired on every request with a report_id. A probe confirmed the reading: SecRule ARGS:probe "@regex 42" ignored probe=42 and blocked probe=x@regex 42y.
An invalid regex. A missing bracket, "!@rx ^[0-9{1,8}$", is the kind of slip that survives a quick read. What happens depends on the version:
| libmodsecurity 3.0.16 | libmodsecurity 3.0.17 | |
|---|---|---|
modsec-rules-check | Test ok. | Invalid regular expression: ^[0-9{1,8}$, exit 255 |
report_id=42 | 403 | (never loads) |
Non-negated @rx (?i)union[\s+select, report_id=1 UNION SELECT password FROM users | 200, no log | (never loads) |
On 3.0.16, a broken pattern never matches. Negated, that blocks everything; not negated, it blocks nothing and logs nothing. 3.0.17 refuses to load it. Its release notes list a fix for a null pointer dereference when an @rx pattern is invalid (GHSA-5m93-4h75-3p2w). Our 3.0.16 runs didn't crash, but they silently accepted a rule that could never work, which is reason enough to upgrade.
Step 5: The rules that load and block nothing
These are the dangerous ones. Each passed modsec-rules-check on both versions and returned 200 for at least one attack case. Results were identical on 3.0.16 and 3.0.17.
| Draft | ?report_id=42%20OR%201=1 | POST body report_id=42 OR 1=1 | Why |
|---|---|---|---|
ARGS_GET:report_id instead of ARGS | 403 | 200 | ARGS_GET is the query string only |
phase:1 | 403 | 200 | Phase 1 is request headers; the body hasn't been parsed yet |
log with no deny (SecDefaultAction "phase:2,log,auditlog,pass") | 200, logged | 200, logged | No disruptive action |
Correct rule, SecRuleEngine DetectionOnly | 200, logged | (not run) | The engine never blocks in this mode |
The phase mistake is the one to remember. It's tempting to put rules in phase:1 because blocking early sounds efficient. That works for headers and the query string, and it quietly skips anything in the body. The reference manual lists the five phases; use phase:2 for anything that reads ARGS or ARGS_POST.
The last row catches people who copy the stock config. modsecurity.conf-recommended ships with SecRuleEngine DetectionOnly in both versions we built. If you forget to switch it, every rule you add logs and nothing gets blocked. That's the right way to trial new rules, but it is not protection.
Step 6: CRS exclusions for false positives
The other half of ModSecurity work is the LLM CRS custom rule that tunes a false positive instead of blocking an attack. In our helpdesk, a support engineer pasted this into a ticket:
comment=Steps: run `cat /etc/hosts` and paste the output
CRS 4.29.0 and 4.31.0 at paranoia level 1 both blocked it. Rule 930120 (OS File Access Attempt) is CRITICAL, worth 5 points, and 5 is the default inbound threshold described in the anomaly scoring docs:
log: id 930120 OS File Access Attempt
log: id 949110 Inbound Anomaly Score Exceeded (Total Score: 5)
VERDICT: 403 (intervention at phase 2)
The goal is narrow: stop rule 930120 from inspecting ARGS:comment on /tickets/new, and change nothing else. We checked each draft against three requests: the ticket above, the same ticket plus a subject=../../etc/passwd field, and GET /download?f=/etc/passwd. The second and third must still be blocked.
| Exclusion draft | Ticket | Ticket + traversal in subject | /download?f=/etc/passwd |
|---|---|---|---|
| None | 403 | 403 (930100, 930110, 930120, 932160) | 403 (930120, 932160) |
ctl:ruleRemoveTargetById=930120;ARGS:comment, phase:1, placed before CRS | 200 | 403, all four rules still fire | 403, unchanged |
Same ctl in a phase:2 rule placed after CRS | 403 | 403 | 403 |
SecRuleRemoveById 930120 after CRS | 200 | 403, but 930120 no longer fires | 403, but only 932160 fires |
ctl:ruleRemoveById=930000-930999 on the path | 200 | 403, only 932160 fires | 403, unchanged |
The rule that passed is the pattern from the CRS false positive tuning guide, with a local ID:
# REQUEST-900-EXCLUSION-RULES-BEFORE-CRS: one path, one rule, one parameter
SecRule REQUEST_FILENAME "@streq /tickets/new" \
"id:10210,\
phase:1,\
pass,\
t:none,\
nolog,\
ctl:ruleRemoveTargetById=930120;ARGS:comment"
The failures teach more than the fix:
- The after-CRS
phase:2draft did nothing. Runtimectlactions only affect rules that haven't run yet. The guide says runtime exclusions must come before the CRS include, and CRS shipsREQUEST-900-EXCLUSION-RULES-BEFORE-CRS.conf.examplefor them. A model that "appends the exclusion at the end of the config" gets a rule that loads and changes nothing. - The global removal "worked" and cost coverage everywhere. The ticket passed, but 930120 stopped firing on every URL, including
/download. That request was still blocked only because 932160 also matched. On a request that tripped 930120 alone, the global removal would have let it through. - The range removal took out more than one rule. The path traversal rules 930100 and 930110 stopped seeing the
subjectfield too. The guide notes that ranges inctl:ruleRemoveByIdare "not currently supported in ModSecurity v3"; in our 3.0.16 and 3.0.17 builds the range did take effect. Either way, it's the wrong tool for one noisy parameter.
One thing that held up better than we expected: configure-time SecRuleUpdateTargetById 930120 "!ARGS:comment" worked in our libmodsecurity builds whether we placed it before or after the CRS include. The guide still says configure-time exclusions go after CRS (in RESPONSE-999-EXCLUSION-RULES-AFTER-CRS.conf), so put them there. That directive is global, though, so it's broader than the path-scoped ctl rule.
What changed in ModSecurity 3.0.17 and CRS 4.31
Two newer releases change what a generated rule or configuration does.
ModSecurity 3.0.17 (September 29) fixed eight security advisories, according to its release notes. The one that matters most for generated rules is the invalid-@rx fix from Step 4. 3.0.17 also added new multipart variables, including MULTIPART_DUPLICATE_PART_HEADER, and its modsecurity.conf-recommended uses that variable. Pointing 3.0.16 at the 3.0.17 recommended config failed:
Rules error. File: base-3.0.17.conf. Line: 85. Column: 265. Expecting a variable, got: : MULTIPART_DUPLICATE_PART_HEADER}, \
Test failed.
So if a model hands you a "current" base config, check which engine version it targets.
CRS 4.31.0 (November 23) lists a breaking change: tx.allowed_methods (rule 900200) and tx.allowed_http_versions (900230) now need each entry wrapped in pipes. The release notes warn that with the old space-separated format, rules 911100 and 920430 flag every request. Older configs and tutorials use the space-separated format, so a model trained on them is likely to produce this:
SecAction "id:900200,phase:1,pass,t:none,nolog,setvar:'tx.allowed_methods=GET HEAD POST OPTIONS'"
tx.allowed_methods | CRS 4.29.0, GET /reports/view?report_id=42 | CRS 4.31.0, same request |
|---|---|---|
GET HEAD POST OPTIONS (old format) | 200 | 403, 911100 Method is not allowed by policy |
|GET| |HEAD| |POST| |OPTIONS| (4.31 format) | 200 | 200 |
A normal POST to /tickets/new got the same 403 under the old format on 4.31.0. This is a loud failure, which is better than a quiet one, but it takes down the whole site. Tell the model your CRS version and paste the matching block from your own crs-setup.conf.example.
The rule that passed
The chained rule from Step 2 passed all five cases from Step 1 on 3.0.16 and 3.0.17, with and without CRS loaded (CRS 4.29.0 and 4.31.0 respectively). The four report_id cases on 3.0.17:
# Virtual patch: report_id on /reports/view must be 1-8 digits
SecRule REQUEST_FILENAME "@streq /reports/view" \
"id:10110,\
phase:2,\
deny,\
status:403,\
log,\
msg:'Lab virtual patch: non-numeric report_id',\
chain"
SecRule ARGS:report_id "!@rx ^[0-9]{1,8}$" "t:none"
> GET /reports/view?report_id=42
VERDICT: 200 (no disruptive action)
> GET /reports/view?report_id=42%20OR%201=1
log: id 10110 Lab virtual patch: non-numeric report_id
VERDICT: 403 (intervention at phase 2)
> POST /reports/view -H Content-Type: application/x-www-form-urlencoded -d report_id=42 OR 1=1
log: id 10110 Lab virtual patch: non-numeric report_id
VERDICT: 403 (intervention at phase 2)
> GET /reports/view?report_id=42&report_id=1%20OR%201=1
log: id 10110 Lab virtual patch: non-numeric report_id
VERDICT: 403 (intervention at phase 2)
An allowlist (digits only) beats a denylist of SQL keywords here: it doesn't care how the injection is spelled, and the encoded and plain attacks fail the same check. The chain keeps the rule from touching report_id on any other route. This is a virtual patch, not a fix. The real fix is a parameterized query in the app.
Common mistakes in LLM-written ModSecurity rules
| Mistake | What the engine said | Fix |
|---|---|---|
No id | Rules must have an ID. | Add an ID from 1–99,999 |
Invented variable (QUERY_PARAMS) | Expecting a variable | Check the reference manual's variable list |
Apostrophe in single-quoted msg | Expecting an action | Rephrase without the apostrophe |
| ID reused from CRS (942100) | Rule id: 942100 is duplicated | Use the local range |
Invented operator (@regex) | Test ok., then 403 on everything | @rx |
| Invalid regex on 3.0.16 | Test ok., then never matches | On 3.0.16 the pattern never matches; after the 3.0.17 update it is rejected at load |
ARGS_GET for a field the app also reads from the body | No error, POST attack gets 200 | ARGS |
phase:1 for body parameters | No error, POST attack gets 200 | phase:2 |
No disruptive action, or DetectionOnly | Logged, 200 | deny,status:403, SecRuleEngine On |
ctl exclusion in a phase:2 rule after CRS | No error, still 403 | phase:1, before CRS |
Global SecRuleRemoveById | False positive gone, rule gone everywhere | Path-scoped ctl:ruleRemoveTargetById |
Old tx.allowed_methods format on CRS 4.31 | 403 on every request (911100) | Pipe-wrapped list |
We also tried putting an id on the second rule of a chain. The manual says metadata actions belong only on the chain starter; both versions loaded it anyway and the chain still blocked. Don't count on every engine being that forgiving.
A small validator for the loop
This script rejects drafts that don't load and drafts that get any test case wrong. It reads cases from a tab-separated file (expected status, method, URI, optional form body) and calls the harness; swap in curl against a staging proxy if that's what you have.
#!/bin/bash
# usage: check_rule.sh <main.conf> <cases.tsv>
# cases.tsv: expected_status <TAB> METHOD <TAB> URI <TAB> body (optional)
conf=$1; cases=$2; fail=0
out=$(modsec-rules-check "$conf" 2>&1) || { echo "REJECTED: $(printf '%s' "$out" | grep -v -e '^ :' -e '^Test' | head -n 1 | sed 's/^ *//')"; exit 2; }
while IFS=$'\t' read -r want method uri body; do
args=("$conf" "$method" "$uri" -H 'Host: lab.local' -H 'User-Agent: curl/8.14.1')
[ -n "$body" ] && args+=(-H 'Content-Type: application/x-www-form-urlencoded' -d "$body")
got=$(msc-run "${args[@]}" | sed -n 's/^VERDICT: \([0-9]*\).*/\1/p')
if [ "$got" != "$want" ]; then echo "WRONG: $method $uri ${body:+[$body] }-> $got (expected $want)"; fail=1; fi
done < "$cases"
[ $fail -eq 0 ] && echo "OK: $(wc -l < "$cases") cases" || exit 1
After the 3.0.17 update, the same script against the five cases from Step 1:
$ ./check_rule.sh main-d6-apostrophe.conf cases.tsv
REJECTED: Rules error. File: drafts/d6-apostrophe.conf. Line: 2. Column: 68. Expecting an action, got: t numeric'"
$ ./check_rule.sh main-d4-badregex.conf cases.tsv
REJECTED: Rules error. File: drafts/d4-badregex.conf. Line: 1. Column: 22. Invalid regular expression: ^[0-9{1,8}$
$ ./check_rule.sh main-d8-phase1.conf cases.tsv
WRONG: POST /reports/view [report_id=42 OR 1=1] -> 200 (expected 403)
$ ./check_rule.sh main-d3-badop.conf cases.tsv
WRONG: GET /reports/view?report_id=42 -> 403 (expected 200)
$ ./check_rule.sh main-d0-good.conf cases.tsv
OK: 5 cases
For larger rule sets, the CRS project's own test runner, go-ftw, replays YAML test cases against a running WAF and is worth adopting once you have more than a handful of custom rules.
To close the loop with a model, send the REJECTED or WRONG line back and ask for a corrected rule. This sketch does that with the OpenAI Python SDK and RedRouter's https://redrouter.org/v1 base URL from the quickstart. We did not run it against the API for this post; the ModSecurity half is the script above.
import os, subprocess
from openai import OpenAI
client = OpenAI(base_url="https://redrouter.org/v1", api_key=os.environ["REDROUTER_API_KEY"])
messages = [{"role": "user", "content": open("prompt.txt").read()}] # Step 2 prompt
for attempt in range(4):
reply = client.chat.completions.create(model="glm-5.3-flash-red", messages=messages)
rule = reply.choices[0].message.content.strip().strip("`").strip()
open("drafts/candidate.conf", "w").write(rule + "\n")
check = subprocess.run(["./check_rule.sh", "main-candidate.conf", "cases.tsv"], capture_output=True, text=True)
print(check.stdout.strip())
if check.returncode == 0:
break
messages += [{"role": "assistant", "content": rule},
{"role": "user", "content": check.stdout.strip() + "\nReturn one corrected ModSecurity v3 rule only."}]
Stop the automation at "all cases pass in the lab." Whether the rule is safe to put in front of real users is a judgment call: run it in DetectionOnly on staging first, read the audit log, then switch it on.
Where this fits with other rule types
A WAF rule inspects HTTP requests at your edge. If you're writing checks that a scanner sends to an app, see Burp BChecks with an LLM. For signatures on raw network traffic, Suricata rules with an LLM covers a different engine with its own quiet failures. And if you test WAFs from the other side, sqlmap tamper scripts with an LLM shows how evasion scripts get validated the same way. Run those only against systems you're authorized to test.
What to send the model, and what not to
- Send: the engine and exact version you run (in the original lab,
libmodsecurity 3.0.16; after the September 29 update,libmodsecurity 3.0.17), or v2.9 on Apache, your CRS version, the route and parameter names, the variable list you want used, the ID range, the exactmodsec-rules-checkerror, and the test case that failed with its expected status. - Scrub: real hostnames, IP addresses, session cookies, tokens and any user data in a logged request. Reproduce the request shape in a lab, as we did, and send that.
- Don't send: raw audit logs from production. Part C of an audit log can contain whole request bodies. A model doesn't need them to fix a rule.
- Check retention. On RedRouter, account zero data retention is an opt-in setting, off by default. The data handling docs explain what is stored and the controls, and what RedRouter keeps covers the defaults in plain terms.
Choosing a model for ModSecurity rules
Any model that follows "one rule, no explanation" and can take a few rounds of error messages will do. On RedRouter, GLM 5.3 Flash Red (glm-5.3-flash-red) is $0.25 per 1M input tokens, $0.13 per 1M cached input tokens and $1.00 per 1M output tokens. red-cyber-1 (Beta), the featured model for authorized penetration testing and red-team work, is $0.28 / $0.13 / $1.10 per 1M tokens. Current rates for every model are in the models docs, and plans are on /pricing.
WAF prompts describe attacks plainly: SQL injection strings, path traversal, file access payloads. RedRouter is built for that kind of authorized security work.
FAQ
Can I write a ModSecurity rule with an LLM?
Yes, as a first draft. In our lab, drafts with a missing ID, an invented variable, a bad quote or a reused CRS ID failed to load. Three more loaded and were wrong: one blocked every request, two let a POST attack through. The corrected rule passed all five test cases on libmodsecurity 3.0.16 and 3.0.17.
How do I test an AI-written WAF rule for ModSecurity?
First run modsec-rules-check on your full config, including CRS. Then replay requests with known answers, normal ones that must pass and attack-shaped ones that must get 403, through a staging proxy or the libmodsecurity API. Include a POST version of every attack if your app reads parameters from the body.
How do I write an LLM CRS custom rule for a false positive?
Scope it to one path, one CRS rule and one parameter with ctl:ruleRemoveTargetById, in a phase:1 rule placed before the CRS include, with an ID from 1–99,999. Then confirm the false positive passes and the same attack in another field is still blocked. Avoid global SecRuleRemoveById unless you really mean "everywhere."
Why does my ModSecurity rule load but never block?
In our lab the usual causes were phase:1 on body parameters, ARGS_GET when the app also accepts POST, a rule with log but no deny, and SecRuleEngine DetectionOnly, which is the default in modsecurity.conf-recommended. On 3.0.16, an invalid regex also loads and never matches.
What rule ID should I use for custom ModSecurity rules?
1–99,999, which the CRS rule ID page reserves for local use. CRS uses 900,000–999,999 and 9,000,000–9,999,999, and other ranges are reserved for other publishers. A clash with a loaded rule fails with "Rule id: … is duplicated."
Is it safe to paste WAF logs into an LLM?
Not raw production audit logs unless your terms allow it, because they can hold full request bodies, cookies and tokens. Send rule text, error messages and scrubbed lab requests instead. On RedRouter, account zero data retention is opt-in and off by default; see the data handling docs.
Sources
- ModSecurity: repository, Reference Manual (v3.x), v3.0.17 release notes, v3.0.16 release, GHSA-5m93-4h75-3p2w, ModSecurity-nginx connector.
- OWASP CRS: documentation, False positives and tuning, Anomaly scoring, Rule IDs, Contribution guidelines (ID numbering), v4.31.0 release notes, v4.29.0 release, go-ftw.
- Lab outputs: libmodsecurity 3.0.16 and 3.0.17 built from the release tarballs (SHA-256 matched the published files), CRS 4.29.0 and 4.31.0 minimal archives,
modsec-rules-checkand a C harness over themsc_*API. No model was called. - OpenAI Python SDK.
- RedRouter Docs: Quickstart, Models and pricing, Data handling.