Zum Hauptinhalt springen

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-GroupRuleGrundRunde
REQUEST-942-APPLICATION-ATTACK-SQLI942340Basic SQLi auth bypass — Altbestand (vor Tuning)—
REQUEST-920-PROTOCOL-ENFORCEMENT920320Missing User Agent — API/SCEP-Clients1
REQUEST-920-PROTOCOL-ENFORCEMENT920300Missing Accept header — API-Clients1
REQUEST-920-PROTOCOL-ENFORCEMENT920420App-eigener Content-Type application/vnd.convertDrafts+json nicht in CRS-Allowlist2

Exclusions​

Match variableOperatorSelectorGrundRunde
Request cookie nameEquals.AspNet.ApplicationCookieASP.NET-Auth-Cookie (Altbestand)—
Request cookie nameEquals__RequestVerificationTokenASP.NET Antiforgery-Cookie (942450)1
Request attribute nameStarts With$OData $filter/$apply/$orderby/… (Wert-Inspektion)1
Request cookie nameStarts With.AspNetCore.AspNetCore.Cookies, .AspNetCore.Identity.* → 942440/9424502
Request cookie nameEquals.AspNet.ExternalCookieExternes-Login-Cookie → 9424402
Request cookie nameStarts WithOpenIdConnect.nonceOIDC-Nonce-Cookie → 9424502
Request attribute nameEqualsewsUrlExchange-EWS-URL (outlook.office365.com) → 9311302
Request attribute nameEqualsoutlookPluginReturnUrlOutlook-Plugin-Return-URL → 9311302
Request attribute nameEqualsconnectionTokenSignalR-Token (0x) → 942360/9424502

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.

ThemaRule / ZielLösung in WAF-Policy
OData $select matcht auf Argument-Namen (ARGS_NAMES), nicht auf Wert942360 (~11.500/3d)Exclusion-Scope RequestArgKeys (StartsWith $) — schließt Namens-Kollektion aus, ohne Regel global zu deaktivieren
Scanner-Traffic aktiv blockenQuell-IP 34.145.202.189Custom Rule: Block RemoteAddr IPMatch (+ optional Rate-Limit)
Von Detect-Only auf echte DurchsetzungalleModus Prevention (pro Host, beginnend mit Low-Traffic-Tenant)

RequestArgKeys und 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 / RuleBeispiel
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