A web application firewall that only observes traffic records an attack in detail and then lets it through. This article is a practical guide to WAF detection mode to blocking mode tuning for application security and infrastructure leads at digital service providers under the Communications, Space and Technology Commission (CST) cybersecurity regulatory frameworkCST CRFThe Cybersecurity Regulatory Framework (CRF) — CST’s requirements for licensed service providers in the information and communications technology sec…Open the framework page. It describes a pattern we often encounter and a staged method for moving rules into enforcement safely, one application at a time.
The pattern: protection on paper, observation in practice
At digital service providers, including telecommunications operators, platform providers and hosted service operators, the sequence is often similar. A firewall is procured because a regulatory review, a customer due-diligence questionnaire or an internal audit asks whether public applications are protected. It is deployed in front of the main web properties, set to detection or monitor-only mode for an initial learning period, and the deployment is recorded as complete.
The learning period then never ends. Nobody owns the decision to change it. The application teams are wary of a control they did not design suddenly rejecting customer sessions. The infrastructure team does not want to be blamed for a checkout failure or a broken login during a campaign. Every month the dashboard shows a growing count of "detected" events, which can feel like evidence of protection when it is evidence of exposure.
The risk is not only technical. Governance records show a control as implemented while it is not enforcing anything. When an incident occurs, the logs show the firewall recognised the malicious request and allowed it. That is a harder conversation with a regulator or a board than the absence of a firewall would have been.
Why the fear of blocking is reasonable
The hesitation is well founded. Generic rule sets are written for generic applications. Real applications send unusual payloads: rich-text editors that post HTML, search fields that accept SQL-like syntax, APIs that carry encoded JSON, legacy forms with oversized parameters, mobile clients that send non-standard headers. Each of these can match a signature for injection or protocol abuse. Switching a large rule set to blocking at once, across every application, will almost certainly reject legitimate traffic somewhere.
The answer is not to stay in detection mode. It is to replace one large, risky change with many small, observable and reversible ones.
A staged approach to moving rules to blocking
The method below is the one we recommend for providers moving from monitor-only to enforcement. It treats each application as its own project and each rule group as its own decision.
Stage 1: Build the protected application register
Before tuning anything, establish what is actually behind the firewall. For each public application, record:
- the domains and paths served, and the certificates in use
- the business owner and the technical owner
- the traffic profile: browsers, mobile clients, partner APIs, automated integrations
- business criticality and any peak periods when change should be avoided
- known unusual inputs, such as file uploads, rich text or encoded payloads
This register is what makes the rest of the process manageable. It also often shows that some public applications were never routed through the firewall at all.
Stage 2: Rank applications for enforcement
Do not start with the most critical, most complex application. Start with one that is internet-facing, attacked regularly, moderately complex and owned by a responsive team. Early success builds the confidence and the playbook needed for harder cases. A typical order is:
- Static or informational sites with few input fields.
- Authentication and account pages, where credential-stuffing and injection controls deliver early value.
- Transactional web applications.
- APIs and partner integrations, which need schema-aware handling and closer coordination with consumers.
Stage 3: Learn traffic with a defined observation window
For each application, set a fixed observation period long enough to cover normal business cycles, including month-end, billing runs or known campaign traffic. During this window, collect every rule match and classify it:
- True positive: a genuine attack or probe. These are the matches you want to block.
- False positive: legitimate traffic matching a rule. These need an exception or a rule adjustment.
- Unclear: matches that need the application owner's judgement.
The output of this stage is a reviewed list, not a raw log export. The aim is that each high-volume rule match has a recorded decision.
Stage 4: Tune narrowly, not broadly
The common mistake is to fix a false positive by disabling the rule globally. Exceptions should be as narrow as the platform allows: scoped to a specific application, path, parameter or header, not to the whole site. If a comment field legitimately contains markup, exclude that parameter from the relevant rule on that path, and leave the rule active everywhere else.
Every exception should be recorded with its reason, the person who approved it and a review date. Over time this becomes the rule and policy baseline, the documented statement of what the firewall enforces for each application and why.
Stage 5: Enforce in rule groups, with a rollback point at each step
Move to blocking incrementally, by rule group, for one application at a time. A practical sequence:
- Enable blocking for high-confidence, low-noise rules first, such as known malicious signatures, protocol violations and requests from clearly abusive sources.
- Follow with injection and cross-site scripting rule groups once the false-positive review for them is complete.
- Add rate limits and bot controls with conservative thresholds, then tighten them gradually.
- Leave the noisiest or most ambiguous rules in detection for a further cycle rather than holding up the whole application.
Each step needs a defined rollback point: the previous configuration saved, a named person authorised to revert, and agreed criteria that trigger reversion, such as a rise in customer-reported errors or a drop in successful transactions. Changes should be made outside peak periods, with the application owner informed and available.
Stage 6: Watch closely after each change
For a short period after each enforcement step, review blocked requests daily. Correlate them with application error rates, support tickets and transaction volumes. A blocked request with no corresponding customer complaint is usually a correct block. A spike in support calls from one client type usually points to a narrow exception that is still missing.
Stage 7: Keep the firewall tuned
Enforcement is not a one-off milestone. Applications change with every release, and new endpoints or parameters can introduce new false positives or new gaps. Build firewall review into the release process, so that significant changes to a public application prompt a short observation-and-tune cycle for the affected paths. Report blocked traffic, top attack categories and open exceptions to the application owners each month.
Governance points for CST-regulated providers
The CST cybersecurity regulatory framework expects providers to protect their externally facing services and to show that their controls work, not just that they exist. When preparing for review, the evidence that tends to matter is:
- a current register of public applications and their protection status
- a documented policy baseline showing which rule groups block and which remain in detection, with justification
- records of exceptions, approvals and review dates
- regular reporting on attacks and blocked traffic
- reviews of significant events showing how the control performed
A firewall that is visibly enforcing, with a traceable rationale for every exception, is a far stronger position than a large count of detected-only events.
Common pitfalls
- Treating the learning period as open-ended, with no date for an enforcement decision.
- Disabling entire rule categories to resolve one false positive.
- Moving every application to blocking on the same day.
- Leaving APIs out of scope because they are harder to profile.
- Having no named owner who can approve a rollback outside working hours.
- Measuring success by the number of detected events rather than by enforced coverage.
How we support this work
Through our Managed Web Application Firewall and DDoS Protection service, we onboard and operate web application firewall and DDoS protection for public applications, covering rules, tuning, attack response and reporting. The service follows four steps: onboard applications, domains and certificates; tune by learning traffic and reducing false blocks; defend by responding to attacks within the target; and report attack and traffic trends each month. Deliverables include a protected application register, a rule and policy baseline, a monthly attack and blocked-traffic report and a post-incident review. Features include application onboarding and policy tuning, always-on or on-demand DDoS mitigation, attack response with a named contact, and bot and API abuse controls. The service runs on ongoing 12-month terms and is aligned with the CST CRF, as well as SAMA CSFSAMA CSFSAMA’s Cyber Security Framework for the institutions it regulates, assessed on a maturity scale.Open the framework page, NCA ECCNCA ECC-2:2024The Essential Cybersecurity Controls — the baseline the National Cybersecurity Authority sets for national entities.Open the framework page and PCI DSSPCI DSS v4.0The security standard for any organization that stores, processes or transmits payment card data, maintained by the PCI Security Standards Council.Open the framework page. Protection is typically delivered by a specialist partner whose network absorbs the attack, with CISO Consulting advising, and the proposal states the arrangement.
If your firewall has been watching rather than blocking, a staged move to enforcement is achievable without putting customers at risk. We would be glad to discuss where your applications stand.