WAF Rules & Exclusions — Referenz (Source of Truth)
🤖 Generated with Claude Code
⚠️ Not yet reviewed
Co-Authored-By: Claude (noreply@anthropic.com)
Gateway: TIS-PROD-CCA_Weblight-AppGw (RG TIS-PROD-CCA_WEBLIGHT-WE-RG)
Config: Inline WAF-Config (kein WAF-Policy-Objekt) · OWASP CRS 3.2 · Modus Detection
Portal-Label-Mapping: RequestArgNames = „Request attribute name" · RequestCookieNames = „Request cookie name" · RequestHeaderNames = „Request header name".
Übersicht/Findings: README.md · Monitoring: monitoring.md
1. Aktuell LIVE am Gateway (verifiziert)
Disabled Rules
| Rule-Group | Rule | Grund | Runde |
|---|---|---|---|
REQUEST-942-APPLICATION-ATTACK-SQLI | 942340 | Basic SQLi auth bypass — Altbestand (vor Tuning) | — |
REQUEST-920-PROTOCOL-ENFORCEMENT | 920320 | Missing User Agent — API/SCEP-Clients | 1 |
REQUEST-920-PROTOCOL-ENFORCEMENT | 920300 | Missing Accept header — API-Clients | 1 |
REQUEST-920-PROTOCOL-ENFORCEMENT | 920420 | App-eigener Content-Type application/vnd.convertDrafts+json nicht in CRS-Allowlist | 2 |
Exclusions
| Match variable | Operator | Selector | Grund | Runde |
|---|---|---|---|---|
| Request cookie name | Equals | .AspNet.ApplicationCookie | ASP.NET-Auth-Cookie (Altbestand) | — |
| Request cookie name | Equals | __RequestVerificationToken | ASP.NET Antiforgery-Cookie (942450) | 1 |
| Request attribute name | Starts With | $ | OData $filter/$apply/$orderby/… (Wert-Inspektion) | 1 |
| Request cookie name | Starts With | .AspNetCore | .AspNetCore.Cookies, .AspNetCore.Identity.* → 942440/942450 | 2 |
| Request cookie name | Equals | .AspNet.ExternalCookie | Externes-Login-Cookie → 942440 | 2 |
| Request cookie name | Starts With | OpenIdConnect.nonce | OIDC-Nonce-Cookie → 942450 | 2 |
| Request attribute name | Equals | ewsUrl | Exchange-EWS-URL (outlook.office365.com) → 931130 | 2 |
| Request attribute name | Equals | outlookPluginReturnUrl | Outlook-Plugin-Return-URL → 931130 | 2 |
| Request attribute name | Equals | connectionToken | SignalR-Token (0x) → 942360/942450 | 2 |
Belegte Wirkung: 920320/920300 = 0 · $filter/$apply-Wert-Treffer (942370/942120/942410/942300/942200) = 0 · Cookie-FPs (942440/942450) und 931130 (ewsUrl) stark reduziert.
2. Geplant — Migration auf WAF-Policy (2026-10-13)
Wird im Wartungsfenster CCA-Host-It am 2026-10-13 umgesetzt. Grund: die Inline-Config kann bestimmte Fälle nicht abbilden und erlaubt keine Custom Rules.
| Thema | Rule / Ziel | Lösung in WAF-Policy |
|---|---|---|
OData $select matcht auf Argument-Namen (ARGS_NAMES), nicht auf Wert | 942360 (~11.500/3d) | Exclusion-Scope RequestArgKeys (StartsWith $) — schließt Namens-Kollektion aus, ohne Regel global zu deaktivieren |
| Scanner-Traffic aktiv blocken | Quell-IP 34.145.202.189 | Custom Rule: Block RemoteAddr IPMatch (+ optional Rate-Limit) |
| Von Detect-Only auf echte Durchsetzung | alle | Modus Prevention (pro Host, beginnend mit Low-Traffic-Tenant) |
RequestArgKeysund Custom Rules existieren nur im WAF-Policy-Modell, nicht in der Inline-Config. Alle bestehenden Exclusions/Disabled Rules aus Abschnitt 1 werden 1:1 in die Policy übernommen.
3. Bewusst NICHT ausgeschlossen (echte Angriffe — müssen feuern)
| Rule-Group / Rule | Beispiel |
|---|---|
REQUEST-930-* (LFI/Path-Traversal) | /.env, /@fs/..%2f..%2froot/.env, /api/proc/self/environ |
REQUEST-932-* (RCE), 931130 (fremde Ziele) | Unix-Shell-Code, RFI auf fremde Domains |
913 Scanner-Detection, 941 XSS (fremde Payloads) | Bot-/Scanner-Traffic |
Quell-IP 34.145.202.189 (GCP-Scanner) | .env-/Secret-Scanning über 88 Hosts |
4. Verifikation (KQL)
Verbleibende False Positives auf Tenant-Hosts nach Match-Ziel:
AzureDiagnostics
| where Category == "ApplicationGatewayFirewallLog" and TimeGenerated > ago(3d)
| where hostname_s endswith ".my.cca.online" and ruleId_s != "949110"
| extend Ziel = case(
details_data_s contains "ARGS_NAMES", "ARGS_NAMES",
details_data_s contains "REQUEST_COOKIES", "REQUEST_COOKIES",
details_data_s contains "REQUEST_HEADERS", "REQUEST_HEADERS",
details_data_s contains "ARGS:", "ARGS_VALUE", "other")
| summarize Count=count() by Ziel, ruleId_s, Message
| order by Count desc
Would-be-blocked-Split (App vs. Scan):
AzureDiagnostics
| where Category == "ApplicationGatewayFirewallLog" and TimeGenerated > ago(7d)
| where ruleId_s == "949110"
| extend Kategorie = iff(hostname_s endswith ".my.cca.online", "tenant-app", "scan/other")
| summarize Blocked=count() by Kategorie