WAF Tuning: From Blocking Legitimate Users to Blocking Attacks

Custom rules execute before managed rules and carry the estate specific logic. Rate limiting per client on the expensive endpoints, login, search, password reset, throttling the credential stuffing and scraping economics regardless of whether any single request looks malicious. Geo filtering where the business genuinely has geography, phrased honestly as risk reduction, not protection. The allow list rules for the known partners and scanners that managed rules keep flagging, scoped by IP and path rather than blanket bypass. And the emergency virtual patch pattern, when the vulnerability disclosure lands before the application fix can deploy, a custom rule blocking the exploit signature buys the deployment pipeline its afternoon, the incident playbook entry that makes the WAF an active responder rather than furniture. Bot manager rule sets layer the known bot intelligence on top, separating the search engines you want from the scrapers you do not, with the verdict actions logged into the same analysis loop.

Prevention Mode and the Standing Rhythm

Flip to prevention when the detection logs run clean for the tuned rules, and flip with the rollback rehearsed: policy in Terraform, the previous version a revert away, and the first days watched with the block rate dashboards and a support channel primed to recognize WAF shaped complaints, the customer who cannot submit the form is your telemetry now. The standing rhythm afterward is quarterly at minimum: rule set version upgrades adopted deliberately (new versions in detection alongside the old in prevention, the canary pattern applied to rules), the exclusion register reviewed against current application behavior since the rich text field that justified an exclusion may have died two releases ago, block analytics hunting both directions, the false positives users report and the true negatives the Sentinel correlation reveals passing through, and the load test suite from November running against prevention mode so the WAF’s own throughput and latency posture stays measured. Tuned this way, the WAF earns the sentence security reviews want to write: blocking verified attacks, passing verified customers, with the evidence one query away.

Cheers
Osama

Custom Rules: The Layer Above the Managed Sets

Custom rules execute before managed rules and carry the estate specific logic. Rate limiting per client on the expensive endpoints, login, search, password reset, throttling the credential stuffing and scraping economics regardless of whether any single request looks malicious. Geo filtering where the business genuinely has geography, phrased honestly as risk reduction, not protection. The allow list rules for the known partners and scanners that managed rules keep flagging, scoped by IP and path rather than blanket bypass. And the emergency virtual patch pattern, when the vulnerability disclosure lands before the application fix can deploy, a custom rule blocking the exploit signature buys the deployment pipeline its afternoon, the incident playbook entry that makes the WAF an active responder rather than furniture. Bot manager rule sets layer the known bot intelligence on top, separating the search engines you want from the scrapers you do not, with the verdict actions logged into the same analysis loop.

Prevention Mode and the Standing Rhythm

Flip to prevention when the detection logs run clean for the tuned rules, and flip with the rollback rehearsed: policy in Terraform, the previous version a revert away, and the first days watched with the block rate dashboards and a support channel primed to recognize WAF shaped complaints, the customer who cannot submit the form is your telemetry now. The standing rhythm afterward is quarterly at minimum: rule set version upgrades adopted deliberately (new versions in detection alongside the old in prevention, the canary pattern applied to rules), the exclusion register reviewed against current application behavior since the rich text field that justified an exclusion may have died two releases ago, block analytics hunting both directions, the false positives users report and the true negatives the Sentinel correlation reveals passing through, and the load test suite from November running against prevention mode so the WAF’s own throughput and latency posture stays measured. Tuned this way, the WAF earns the sentence security reviews want to write: blocking verified attacks, passing verified customers, with the evidence one query away.

Cheers
Osama

The managed rule sets, the Microsoft managed default rule set on Front Door, the OWASP derived sets on Application Gateway, ship tuned for the average application, and your application is not average: the CMS whose editors paste HTML, the API accepting JSON that resembles injection, the search box receiving the whole internet’s creativity. Run detection mode for representative weeks, business cycles included, and read the logs with the KQL discipline: matched rules ranked by frequency, split by rule ID, URI, and the specific matched variable, because the signature of a false positive is legitimate traffic patterns clustering on one rule at one parameter, the rich text field tripping the SQL injection rule, the JWT in a header resembling attack strings, while real attacks scatter across rules and sources. That analysis produces the tuning targets, and the discipline is surgical scope: exclusions applied to the specific parameter on the specific rule, never the rule disabled globally, the request body inspection kept on, and every exclusion recorded with its evidence in the repo, because an exclusion list without provenance becomes untouchable and untouchable becomes unsafe.

Custom Rules: The Layer Above the Managed Sets

Custom rules execute before managed rules and carry the estate specific logic. Rate limiting per client on the expensive endpoints, login, search, password reset, throttling the credential stuffing and scraping economics regardless of whether any single request looks malicious. Geo filtering where the business genuinely has geography, phrased honestly as risk reduction, not protection. The allow list rules for the known partners and scanners that managed rules keep flagging, scoped by IP and path rather than blanket bypass. And the emergency virtual patch pattern, when the vulnerability disclosure lands before the application fix can deploy, a custom rule blocking the exploit signature buys the deployment pipeline its afternoon, the incident playbook entry that makes the WAF an active responder rather than furniture. Bot manager rule sets layer the known bot intelligence on top, separating the search engines you want from the scrapers you do not, with the verdict actions logged into the same analysis loop.

Prevention Mode and the Standing Rhythm

Flip to prevention when the detection logs run clean for the tuned rules, and flip with the rollback rehearsed: policy in Terraform, the previous version a revert away, and the first days watched with the block rate dashboards and a support channel primed to recognize WAF shaped complaints, the customer who cannot submit the form is your telemetry now. The standing rhythm afterward is quarterly at minimum: rule set version upgrades adopted deliberately (new versions in detection alongside the old in prevention, the canary pattern applied to rules), the exclusion register reviewed against current application behavior since the rich text field that justified an exclusion may have died two releases ago, block analytics hunting both directions, the false positives users report and the true negatives the Sentinel correlation reveals passing through, and the load test suite from November running against prevention mode so the WAF’s own throughput and latency posture stays measured. Tuned this way, the WAF earns the sentence security reviews want to write: blocking verified attacks, passing verified customers, with the evidence one query away.

Cheers
Osama

Custom rules execute before managed rules and carry the estate specific logic. Rate limiting per client on the expensive endpoints, login, search, password reset, throttling the credential stuffing and scraping economics regardless of whether any single request looks malicious. Geo filtering where the business genuinely has geography, phrased honestly as risk reduction, not protection. The allow list rules for the known partners and scanners that managed rules keep flagging, scoped by IP and path rather than blanket bypass. And the emergency virtual patch pattern, when the vulnerability disclosure lands before the application fix can deploy, a custom rule blocking the exploit signature buys the deployment pipeline its afternoon, the incident playbook entry that makes the WAF an active responder rather than furniture. Bot manager rule sets layer the known bot intelligence on top, separating the search engines you want from the scrapers you do not, with the verdict actions logged into the same analysis loop.

Prevention Mode and the Standing Rhythm

Flip to prevention when the detection logs run clean for the tuned rules, and flip with the rollback rehearsed: policy in Terraform, the previous version a revert away, and the first days watched with the block rate dashboards and a support channel primed to recognize WAF shaped complaints, the customer who cannot submit the form is your telemetry now. The standing rhythm afterward is quarterly at minimum: rule set version upgrades adopted deliberately (new versions in detection alongside the old in prevention, the canary pattern applied to rules), the exclusion register reviewed against current application behavior since the rich text field that justified an exclusion may have died two releases ago, block analytics hunting both directions, the false positives users report and the true negatives the Sentinel correlation reveals passing through, and the load test suite from November running against prevention mode so the WAF’s own throughput and latency posture stays measured. Tuned this way, the WAF earns the sentence security reviews want to write: blocking verified attacks, passing verified customers, with the evidence one query away.

Cheers
Osama

The managed rule sets, the Microsoft managed default rule set on Front Door, the OWASP derived sets on Application Gateway, ship tuned for the average application, and your application is not average: the CMS whose editors paste HTML, the API accepting JSON that resembles injection, the search box receiving the whole internet’s creativity. Run detection mode for representative weeks, business cycles included, and read the logs with the KQL discipline: matched rules ranked by frequency, split by rule ID, URI, and the specific matched variable, because the signature of a false positive is legitimate traffic patterns clustering on one rule at one parameter, the rich text field tripping the SQL injection rule, the JWT in a header resembling attack strings, while real attacks scatter across rules and sources. That analysis produces the tuning targets, and the discipline is surgical scope: exclusions applied to the specific parameter on the specific rule, never the rule disabled globally, the request body inspection kept on, and every exclusion recorded with its evidence in the repo, because an exclusion list without provenance becomes untouchable and untouchable becomes unsafe.

Custom Rules: The Layer Above the Managed Sets

Custom rules execute before managed rules and carry the estate specific logic. Rate limiting per client on the expensive endpoints, login, search, password reset, throttling the credential stuffing and scraping economics regardless of whether any single request looks malicious. Geo filtering where the business genuinely has geography, phrased honestly as risk reduction, not protection. The allow list rules for the known partners and scanners that managed rules keep flagging, scoped by IP and path rather than blanket bypass. And the emergency virtual patch pattern, when the vulnerability disclosure lands before the application fix can deploy, a custom rule blocking the exploit signature buys the deployment pipeline its afternoon, the incident playbook entry that makes the WAF an active responder rather than furniture. Bot manager rule sets layer the known bot intelligence on top, separating the search engines you want from the scrapers you do not, with the verdict actions logged into the same analysis loop.

Prevention Mode and the Standing Rhythm

Flip to prevention when the detection logs run clean for the tuned rules, and flip with the rollback rehearsed: policy in Terraform, the previous version a revert away, and the first days watched with the block rate dashboards and a support channel primed to recognize WAF shaped complaints, the customer who cannot submit the form is your telemetry now. The standing rhythm afterward is quarterly at minimum: rule set version upgrades adopted deliberately (new versions in detection alongside the old in prevention, the canary pattern applied to rules), the exclusion register reviewed against current application behavior since the rich text field that justified an exclusion may have died two releases ago, block analytics hunting both directions, the false positives users report and the true negatives the Sentinel correlation reveals passing through, and the load test suite from November running against prevention mode so the WAF’s own throughput and latency posture stays measured. Tuned this way, the WAF earns the sentence security reviews want to write: blocking verified attacks, passing verified customers, with the evidence one query away.

Cheers
Osama

Custom Rules: The Layer Above the Managed Sets

Custom rules execute before managed rules and carry the estate specific logic. Rate limiting per client on the expensive endpoints, login, search, password reset, throttling the credential stuffing and scraping economics regardless of whether any single request looks malicious. Geo filtering where the business genuinely has geography, phrased honestly as risk reduction, not protection. The allow list rules for the known partners and scanners that managed rules keep flagging, scoped by IP and path rather than blanket bypass. And the emergency virtual patch pattern, when the vulnerability disclosure lands before the application fix can deploy, a custom rule blocking the exploit signature buys the deployment pipeline its afternoon, the incident playbook entry that makes the WAF an active responder rather than furniture. Bot manager rule sets layer the known bot intelligence on top, separating the search engines you want from the scrapers you do not, with the verdict actions logged into the same analysis loop.

Prevention Mode and the Standing Rhythm

Flip to prevention when the detection logs run clean for the tuned rules, and flip with the rollback rehearsed: policy in Terraform, the previous version a revert away, and the first days watched with the block rate dashboards and a support channel primed to recognize WAF shaped complaints, the customer who cannot submit the form is your telemetry now. The standing rhythm afterward is quarterly at minimum: rule set version upgrades adopted deliberately (new versions in detection alongside the old in prevention, the canary pattern applied to rules), the exclusion register reviewed against current application behavior since the rich text field that justified an exclusion may have died two releases ago, block analytics hunting both directions, the false positives users report and the true negatives the Sentinel correlation reveals passing through, and the load test suite from November running against prevention mode so the WAF’s own throughput and latency posture stays measured. Tuned this way, the WAF earns the sentence security reviews want to write: blocking verified attacks, passing verified customers, with the evidence one query away.

Cheers
Osama

The managed rule sets, the Microsoft managed default rule set on Front Door, the OWASP derived sets on Application Gateway, ship tuned for the average application, and your application is not average: the CMS whose editors paste HTML, the API accepting JSON that resembles injection, the search box receiving the whole internet’s creativity. Run detection mode for representative weeks, business cycles included, and read the logs with the KQL discipline: matched rules ranked by frequency, split by rule ID, URI, and the specific matched variable, because the signature of a false positive is legitimate traffic patterns clustering on one rule at one parameter, the rich text field tripping the SQL injection rule, the JWT in a header resembling attack strings, while real attacks scatter across rules and sources. That analysis produces the tuning targets, and the discipline is surgical scope: exclusions applied to the specific parameter on the specific rule, never the rule disabled globally, the request body inspection kept on, and every exclusion recorded with its evidence in the repo, because an exclusion list without provenance becomes untouchable and untouchable becomes unsafe.

Custom Rules: The Layer Above the Managed Sets

Custom rules execute before managed rules and carry the estate specific logic. Rate limiting per client on the expensive endpoints, login, search, password reset, throttling the credential stuffing and scraping economics regardless of whether any single request looks malicious. Geo filtering where the business genuinely has geography, phrased honestly as risk reduction, not protection. The allow list rules for the known partners and scanners that managed rules keep flagging, scoped by IP and path rather than blanket bypass. And the emergency virtual patch pattern, when the vulnerability disclosure lands before the application fix can deploy, a custom rule blocking the exploit signature buys the deployment pipeline its afternoon, the incident playbook entry that makes the WAF an active responder rather than furniture. Bot manager rule sets layer the known bot intelligence on top, separating the search engines you want from the scrapers you do not, with the verdict actions logged into the same analysis loop.

Prevention Mode and the Standing Rhythm

Flip to prevention when the detection logs run clean for the tuned rules, and flip with the rollback rehearsed: policy in Terraform, the previous version a revert away, and the first days watched with the block rate dashboards and a support channel primed to recognize WAF shaped complaints, the customer who cannot submit the form is your telemetry now. The standing rhythm afterward is quarterly at minimum: rule set version upgrades adopted deliberately (new versions in detection alongside the old in prevention, the canary pattern applied to rules), the exclusion register reviewed against current application behavior since the rich text field that justified an exclusion may have died two releases ago, block analytics hunting both directions, the false positives users report and the true negatives the Sentinel correlation reveals passing through, and the load test suite from November running against prevention mode so the WAF’s own throughput and latency posture stays measured. Tuned this way, the WAF earns the sentence security reviews want to write: blocking verified attacks, passing verified customers, with the evidence one query away.

Cheers
Osama

Custom Rules: The Layer Above the Managed Sets

Custom rules execute before managed rules and carry the estate specific logic. Rate limiting per client on the expensive endpoints, login, search, password reset, throttling the credential stuffing and scraping economics regardless of whether any single request looks malicious. Geo filtering where the business genuinely has geography, phrased honestly as risk reduction, not protection. The allow list rules for the known partners and scanners that managed rules keep flagging, scoped by IP and path rather than blanket bypass. And the emergency virtual patch pattern, when the vulnerability disclosure lands before the application fix can deploy, a custom rule blocking the exploit signature buys the deployment pipeline its afternoon, the incident playbook entry that makes the WAF an active responder rather than furniture. Bot manager rule sets layer the known bot intelligence on top, separating the search engines you want from the scrapers you do not, with the verdict actions logged into the same analysis loop.

Prevention Mode and the Standing Rhythm

Flip to prevention when the detection logs run clean for the tuned rules, and flip with the rollback rehearsed: policy in Terraform, the previous version a revert away, and the first days watched with the block rate dashboards and a support channel primed to recognize WAF shaped complaints, the customer who cannot submit the form is your telemetry now. The standing rhythm afterward is quarterly at minimum: rule set version upgrades adopted deliberately (new versions in detection alongside the old in prevention, the canary pattern applied to rules), the exclusion register reviewed against current application behavior since the rich text field that justified an exclusion may have died two releases ago, block analytics hunting both directions, the false positives users report and the true negatives the Sentinel correlation reveals passing through, and the load test suite from November running against prevention mode so the WAF’s own throughput and latency posture stays measured. Tuned this way, the WAF earns the sentence security reviews want to write: blocking verified attacks, passing verified customers, with the evidence one query away.

Cheers
Osama

The managed rule sets, the Microsoft managed default rule set on Front Door, the OWASP derived sets on Application Gateway, ship tuned for the average application, and your application is not average: the CMS whose editors paste HTML, the API accepting JSON that resembles injection, the search box receiving the whole internet’s creativity. Run detection mode for representative weeks, business cycles included, and read the logs with the KQL discipline: matched rules ranked by frequency, split by rule ID, URI, and the specific matched variable, because the signature of a false positive is legitimate traffic patterns clustering on one rule at one parameter, the rich text field tripping the SQL injection rule, the JWT in a header resembling attack strings, while real attacks scatter across rules and sources. That analysis produces the tuning targets, and the discipline is surgical scope: exclusions applied to the specific parameter on the specific rule, never the rule disabled globally, the request body inspection kept on, and every exclusion recorded with its evidence in the repo, because an exclusion list without provenance becomes untouchable and untouchable becomes unsafe.

Custom Rules: The Layer Above the Managed Sets

Custom rules execute before managed rules and carry the estate specific logic. Rate limiting per client on the expensive endpoints, login, search, password reset, throttling the credential stuffing and scraping economics regardless of whether any single request looks malicious. Geo filtering where the business genuinely has geography, phrased honestly as risk reduction, not protection. The allow list rules for the known partners and scanners that managed rules keep flagging, scoped by IP and path rather than blanket bypass. And the emergency virtual patch pattern, when the vulnerability disclosure lands before the application fix can deploy, a custom rule blocking the exploit signature buys the deployment pipeline its afternoon, the incident playbook entry that makes the WAF an active responder rather than furniture. Bot manager rule sets layer the known bot intelligence on top, separating the search engines you want from the scrapers you do not, with the verdict actions logged into the same analysis loop.

Prevention Mode and the Standing Rhythm

Flip to prevention when the detection logs run clean for the tuned rules, and flip with the rollback rehearsed: policy in Terraform, the previous version a revert away, and the first days watched with the block rate dashboards and a support channel primed to recognize WAF shaped complaints, the customer who cannot submit the form is your telemetry now. The standing rhythm afterward is quarterly at minimum: rule set version upgrades adopted deliberately (new versions in detection alongside the old in prevention, the canary pattern applied to rules), the exclusion register reviewed against current application behavior since the rich text field that justified an exclusion may have died two releases ago, block analytics hunting both directions, the false positives users report and the true negatives the Sentinel correlation reveals passing through, and the load test suite from November running against prevention mode so the WAF’s own throughput and latency posture stays measured. Tuned this way, the WAF earns the sentence security reviews want to write: blocking verified attacks, passing verified customers, with the evidence one query away.

Cheers
Osama

Custom rules execute before managed rules and carry the estate specific logic. Rate limiting per client on the expensive endpoints, login, search, password reset, throttling the credential stuffing and scraping economics regardless of whether any single request looks malicious. Geo filtering where the business genuinely has geography, phrased honestly as risk reduction, not protection. The allow list rules for the known partners and scanners that managed rules keep flagging, scoped by IP and path rather than blanket bypass. And the emergency virtual patch pattern, when the vulnerability disclosure lands before the application fix can deploy, a custom rule blocking the exploit signature buys the deployment pipeline its afternoon, the incident playbook entry that makes the WAF an active responder rather than furniture. Bot manager rule sets layer the known bot intelligence on top, separating the search engines you want from the scrapers you do not, with the verdict actions logged into the same analysis loop.

Prevention Mode and the Standing Rhythm

Flip to prevention when the detection logs run clean for the tuned rules, and flip with the rollback rehearsed: policy in Terraform, the previous version a revert away, and the first days watched with the block rate dashboards and a support channel primed to recognize WAF shaped complaints, the customer who cannot submit the form is your telemetry now. The standing rhythm afterward is quarterly at minimum: rule set version upgrades adopted deliberately (new versions in detection alongside the old in prevention, the canary pattern applied to rules), the exclusion register reviewed against current application behavior since the rich text field that justified an exclusion may have died two releases ago, block analytics hunting both directions, the false positives users report and the true negatives the Sentinel correlation reveals passing through, and the load test suite from November running against prevention mode so the WAF’s own throughput and latency posture stays measured. Tuned this way, the WAF earns the sentence security reviews want to write: blocking verified attacks, passing verified customers, with the evidence one query away.

Cheers
Osama

Custom Rules: The Layer Above the Managed Sets

Custom rules execute before managed rules and carry the estate specific logic. Rate limiting per client on the expensive endpoints, login, search, password reset, throttling the credential stuffing and scraping economics regardless of whether any single request looks malicious. Geo filtering where the business genuinely has geography, phrased honestly as risk reduction, not protection. The allow list rules for the known partners and scanners that managed rules keep flagging, scoped by IP and path rather than blanket bypass. And the emergency virtual patch pattern, when the vulnerability disclosure lands before the application fix can deploy, a custom rule blocking the exploit signature buys the deployment pipeline its afternoon, the incident playbook entry that makes the WAF an active responder rather than furniture. Bot manager rule sets layer the known bot intelligence on top, separating the search engines you want from the scrapers you do not, with the verdict actions logged into the same analysis loop.

Prevention Mode and the Standing Rhythm

Flip to prevention when the detection logs run clean for the tuned rules, and flip with the rollback rehearsed: policy in Terraform, the previous version a revert away, and the first days watched with the block rate dashboards and a support channel primed to recognize WAF shaped complaints, the customer who cannot submit the form is your telemetry now. The standing rhythm afterward is quarterly at minimum: rule set version upgrades adopted deliberately (new versions in detection alongside the old in prevention, the canary pattern applied to rules), the exclusion register reviewed against current application behavior since the rich text field that justified an exclusion may have died two releases ago, block analytics hunting both directions, the false positives users report and the true negatives the Sentinel correlation reveals passing through, and the load test suite from November running against prevention mode so the WAF’s own throughput and latency posture stays measured. Tuned this way, the WAF earns the sentence security reviews want to write: blocking verified attacks, passing verified customers, with the evidence one query away.

Cheers
Osama

The managed rule sets, the Microsoft managed default rule set on Front Door, the OWASP derived sets on Application Gateway, ship tuned for the average application, and your application is not average: the CMS whose editors paste HTML, the API accepting JSON that resembles injection, the search box receiving the whole internet’s creativity. Run detection mode for representative weeks, business cycles included, and read the logs with the KQL discipline: matched rules ranked by frequency, split by rule ID, URI, and the specific matched variable, because the signature of a false positive is legitimate traffic patterns clustering on one rule at one parameter, the rich text field tripping the SQL injection rule, the JWT in a header resembling attack strings, while real attacks scatter across rules and sources. That analysis produces the tuning targets, and the discipline is surgical scope: exclusions applied to the specific parameter on the specific rule, never the rule disabled globally, the request body inspection kept on, and every exclusion recorded with its evidence in the repo, because an exclusion list without provenance becomes untouchable and untouchable becomes unsafe.

Custom Rules: The Layer Above the Managed Sets

Custom rules execute before managed rules and carry the estate specific logic. Rate limiting per client on the expensive endpoints, login, search, password reset, throttling the credential stuffing and scraping economics regardless of whether any single request looks malicious. Geo filtering where the business genuinely has geography, phrased honestly as risk reduction, not protection. The allow list rules for the known partners and scanners that managed rules keep flagging, scoped by IP and path rather than blanket bypass. And the emergency virtual patch pattern, when the vulnerability disclosure lands before the application fix can deploy, a custom rule blocking the exploit signature buys the deployment pipeline its afternoon, the incident playbook entry that makes the WAF an active responder rather than furniture. Bot manager rule sets layer the known bot intelligence on top, separating the search engines you want from the scrapers you do not, with the verdict actions logged into the same analysis loop.

Prevention Mode and the Standing Rhythm

Flip to prevention when the detection logs run clean for the tuned rules, and flip with the rollback rehearsed: policy in Terraform, the previous version a revert away, and the first days watched with the block rate dashboards and a support channel primed to recognize WAF shaped complaints, the customer who cannot submit the form is your telemetry now. The standing rhythm afterward is quarterly at minimum: rule set version upgrades adopted deliberately (new versions in detection alongside the old in prevention, the canary pattern applied to rules), the exclusion register reviewed against current application behavior since the rich text field that justified an exclusion may have died two releases ago, block analytics hunting both directions, the false positives users report and the true negatives the Sentinel correlation reveals passing through, and the load test suite from November running against prevention mode so the WAF’s own throughput and latency posture stays measured. Tuned this way, the WAF earns the sentence security reviews want to write: blocking verified attacks, passing verified customers, with the evidence one query away.

Cheers
Osama

Custom Rules: The Layer Above the Managed Sets

Custom rules execute before managed rules and carry the estate specific logic. Rate limiting per client on the expensive endpoints, login, search, password reset, throttling the credential stuffing and scraping economics regardless of whether any single request looks malicious. Geo filtering where the business genuinely has geography, phrased honestly as risk reduction, not protection. The allow list rules for the known partners and scanners that managed rules keep flagging, scoped by IP and path rather than blanket bypass. And the emergency virtual patch pattern, when the vulnerability disclosure lands before the application fix can deploy, a custom rule blocking the exploit signature buys the deployment pipeline its afternoon, the incident playbook entry that makes the WAF an active responder rather than furniture. Bot manager rule sets layer the known bot intelligence on top, separating the search engines you want from the scrapers you do not, with the verdict actions logged into the same analysis loop.

Prevention Mode and the Standing Rhythm

Flip to prevention when the detection logs run clean for the tuned rules, and flip with the rollback rehearsed: policy in Terraform, the previous version a revert away, and the first days watched with the block rate dashboards and a support channel primed to recognize WAF shaped complaints, the customer who cannot submit the form is your telemetry now. The standing rhythm afterward is quarterly at minimum: rule set version upgrades adopted deliberately (new versions in detection alongside the old in prevention, the canary pattern applied to rules), the exclusion register reviewed against current application behavior since the rich text field that justified an exclusion may have died two releases ago, block analytics hunting both directions, the false positives users report and the true negatives the Sentinel correlation reveals passing through, and the load test suite from November running against prevention mode so the WAF’s own throughput and latency posture stays measured. Tuned this way, the WAF earns the sentence security reviews want to write: blocking verified attacks, passing verified customers, with the evidence one query away.

Cheers
Osama

Custom Rules: The Layer Above the Managed Sets

Custom rules execute before managed rules and carry the estate specific logic. Rate limiting per client on the expensive endpoints, login, search, password reset, throttling the credential stuffing and scraping economics regardless of whether any single request looks malicious. Geo filtering where the business genuinely has geography, phrased honestly as risk reduction, not protection. The allow list rules for the known partners and scanners that managed rules keep flagging, scoped by IP and path rather than blanket bypass. And the emergency virtual patch pattern, when the vulnerability disclosure lands before the application fix can deploy, a custom rule blocking the exploit signature buys the deployment pipeline its afternoon, the incident playbook entry that makes the WAF an active responder rather than furniture. Bot manager rule sets layer the known bot intelligence on top, separating the search engines you want from the scrapers you do not, with the verdict actions logged into the same analysis loop.

Prevention Mode and the Standing Rhythm

Flip to prevention when the detection logs run clean for the tuned rules, and flip with the rollback rehearsed: policy in Terraform, the previous version a revert away, and the first days watched with the block rate dashboards and a support channel primed to recognize WAF shaped complaints, the customer who cannot submit the form is your telemetry now. The standing rhythm afterward is quarterly at minimum: rule set version upgrades adopted deliberately (new versions in detection alongside the old in prevention, the canary pattern applied to rules), the exclusion register reviewed against current application behavior since the rich text field that justified an exclusion may have died two releases ago, block analytics hunting both directions, the false positives users report and the true negatives the Sentinel correlation reveals passing through, and the load test suite from November running against prevention mode so the WAF’s own throughput and latency posture stays measured. Tuned this way, the WAF earns the sentence security reviews want to write: blocking verified attacks, passing verified customers, with the evidence one query away.

Cheers
Osama

The managed rule sets, the Microsoft managed default rule set on Front Door, the OWASP derived sets on Application Gateway, ship tuned for the average application, and your application is not average: the CMS whose editors paste HTML, the API accepting JSON that resembles injection, the search box receiving the whole internet’s creativity. Run detection mode for representative weeks, business cycles included, and read the logs with the KQL discipline: matched rules ranked by frequency, split by rule ID, URI, and the specific matched variable, because the signature of a false positive is legitimate traffic patterns clustering on one rule at one parameter, the rich text field tripping the SQL injection rule, the JWT in a header resembling attack strings, while real attacks scatter across rules and sources. That analysis produces the tuning targets, and the discipline is surgical scope: exclusions applied to the specific parameter on the specific rule, never the rule disabled globally, the request body inspection kept on, and every exclusion recorded with its evidence in the repo, because an exclusion list without provenance becomes untouchable and untouchable becomes unsafe.

Custom Rules: The Layer Above the Managed Sets

Custom rules execute before managed rules and carry the estate specific logic. Rate limiting per client on the expensive endpoints, login, search, password reset, throttling the credential stuffing and scraping economics regardless of whether any single request looks malicious. Geo filtering where the business genuinely has geography, phrased honestly as risk reduction, not protection. The allow list rules for the known partners and scanners that managed rules keep flagging, scoped by IP and path rather than blanket bypass. And the emergency virtual patch pattern, when the vulnerability disclosure lands before the application fix can deploy, a custom rule blocking the exploit signature buys the deployment pipeline its afternoon, the incident playbook entry that makes the WAF an active responder rather than furniture. Bot manager rule sets layer the known bot intelligence on top, separating the search engines you want from the scrapers you do not, with the verdict actions logged into the same analysis loop.

Prevention Mode and the Standing Rhythm

Flip to prevention when the detection logs run clean for the tuned rules, and flip with the rollback rehearsed: policy in Terraform, the previous version a revert away, and the first days watched with the block rate dashboards and a support channel primed to recognize WAF shaped complaints, the customer who cannot submit the form is your telemetry now. The standing rhythm afterward is quarterly at minimum: rule set version upgrades adopted deliberately (new versions in detection alongside the old in prevention, the canary pattern applied to rules), the exclusion register reviewed against current application behavior since the rich text field that justified an exclusion may have died two releases ago, block analytics hunting both directions, the false positives users report and the true negatives the Sentinel correlation reveals passing through, and the load test suite from November running against prevention mode so the WAF’s own throughput and latency posture stays measured. Tuned this way, the WAF earns the sentence security reviews want to write: blocking verified attacks, passing verified customers, with the evidence one query away.

Cheers
Osama

Custom rules execute before managed rules and carry the estate specific logic. Rate limiting per client on the expensive endpoints, login, search, password reset, throttling the credential stuffing and scraping economics regardless of whether any single request looks malicious. Geo filtering where the business genuinely has geography, phrased honestly as risk reduction, not protection. The allow list rules for the known partners and scanners that managed rules keep flagging, scoped by IP and path rather than blanket bypass. And the emergency virtual patch pattern, when the vulnerability disclosure lands before the application fix can deploy, a custom rule blocking the exploit signature buys the deployment pipeline its afternoon, the incident playbook entry that makes the WAF an active responder rather than furniture. Bot manager rule sets layer the known bot intelligence on top, separating the search engines you want from the scrapers you do not, with the verdict actions logged into the same analysis loop.

Prevention Mode and the Standing Rhythm

Flip to prevention when the detection logs run clean for the tuned rules, and flip with the rollback rehearsed: policy in Terraform, the previous version a revert away, and the first days watched with the block rate dashboards and a support channel primed to recognize WAF shaped complaints, the customer who cannot submit the form is your telemetry now. The standing rhythm afterward is quarterly at minimum: rule set version upgrades adopted deliberately (new versions in detection alongside the old in prevention, the canary pattern applied to rules), the exclusion register reviewed against current application behavior since the rich text field that justified an exclusion may have died two releases ago, block analytics hunting both directions, the false positives users report and the true negatives the Sentinel correlation reveals passing through, and the load test suite from November running against prevention mode so the WAF’s own throughput and latency posture stays measured. Tuned this way, the WAF earns the sentence security reviews want to write: blocking verified attacks, passing verified customers, with the evidence one query away.

Cheers
Osama

Custom Rules: The Layer Above the Managed Sets

Custom rules execute before managed rules and carry the estate specific logic. Rate limiting per client on the expensive endpoints, login, search, password reset, throttling the credential stuffing and scraping economics regardless of whether any single request looks malicious. Geo filtering where the business genuinely has geography, phrased honestly as risk reduction, not protection. The allow list rules for the known partners and scanners that managed rules keep flagging, scoped by IP and path rather than blanket bypass. And the emergency virtual patch pattern, when the vulnerability disclosure lands before the application fix can deploy, a custom rule blocking the exploit signature buys the deployment pipeline its afternoon, the incident playbook entry that makes the WAF an active responder rather than furniture. Bot manager rule sets layer the known bot intelligence on top, separating the search engines you want from the scrapers you do not, with the verdict actions logged into the same analysis loop.

Prevention Mode and the Standing Rhythm

Flip to prevention when the detection logs run clean for the tuned rules, and flip with the rollback rehearsed: policy in Terraform, the previous version a revert away, and the first days watched with the block rate dashboards and a support channel primed to recognize WAF shaped complaints, the customer who cannot submit the form is your telemetry now. The standing rhythm afterward is quarterly at minimum: rule set version upgrades adopted deliberately (new versions in detection alongside the old in prevention, the canary pattern applied to rules), the exclusion register reviewed against current application behavior since the rich text field that justified an exclusion may have died two releases ago, block analytics hunting both directions, the false positives users report and the true negatives the Sentinel correlation reveals passing through, and the load test suite from November running against prevention mode so the WAF’s own throughput and latency posture stays measured. Tuned this way, the WAF earns the sentence security reviews want to write: blocking verified attacks, passing verified customers, with the evidence one query away.

Cheers
Osama

Custom Rules: The Layer Above the Managed Sets

Custom rules execute before managed rules and carry the estate specific logic. Rate limiting per client on the expensive endpoints, login, search, password reset, throttling the credential stuffing and scraping economics regardless of whether any single request looks malicious. Geo filtering where the business genuinely has geography, phrased honestly as risk reduction, not protection. The allow list rules for the known partners and scanners that managed rules keep flagging, scoped by IP and path rather than blanket bypass. And the emergency virtual patch pattern, when the vulnerability disclosure lands before the application fix can deploy, a custom rule blocking the exploit signature buys the deployment pipeline its afternoon, the incident playbook entry that makes the WAF an active responder rather than furniture. Bot manager rule sets layer the known bot intelligence on top, separating the search engines you want from the scrapers you do not, with the verdict actions logged into the same analysis loop.

Prevention Mode and the Standing Rhythm

Flip to prevention when the detection logs run clean for the tuned rules, and flip with the rollback rehearsed: policy in Terraform, the previous version a revert away, and the first days watched with the block rate dashboards and a support channel primed to recognize WAF shaped complaints, the customer who cannot submit the form is your telemetry now. The standing rhythm afterward is quarterly at minimum: rule set version upgrades adopted deliberately (new versions in detection alongside the old in prevention, the canary pattern applied to rules), the exclusion register reviewed against current application behavior since the rich text field that justified an exclusion may have died two releases ago, block analytics hunting both directions, the false positives users report and the true negatives the Sentinel correlation reveals passing through, and the load test suite from November running against prevention mode so the WAF’s own throughput and latency posture stays measured. Tuned this way, the WAF earns the sentence security reviews want to write: blocking verified attacks, passing verified customers, with the evidence one query away.

Cheers
Osama

The managed rule sets, the Microsoft managed default rule set on Front Door, the OWASP derived sets on Application Gateway, ship tuned for the average application, and your application is not average: the CMS whose editors paste HTML, the API accepting JSON that resembles injection, the search box receiving the whole internet’s creativity. Run detection mode for representative weeks, business cycles included, and read the logs with the KQL discipline: matched rules ranked by frequency, split by rule ID, URI, and the specific matched variable, because the signature of a false positive is legitimate traffic patterns clustering on one rule at one parameter, the rich text field tripping the SQL injection rule, the JWT in a header resembling attack strings, while real attacks scatter across rules and sources. That analysis produces the tuning targets, and the discipline is surgical scope: exclusions applied to the specific parameter on the specific rule, never the rule disabled globally, the request body inspection kept on, and every exclusion recorded with its evidence in the repo, because an exclusion list without provenance becomes untouchable and untouchable becomes unsafe.

Custom Rules: The Layer Above the Managed Sets

Custom rules execute before managed rules and carry the estate specific logic. Rate limiting per client on the expensive endpoints, login, search, password reset, throttling the credential stuffing and scraping economics regardless of whether any single request looks malicious. Geo filtering where the business genuinely has geography, phrased honestly as risk reduction, not protection. The allow list rules for the known partners and scanners that managed rules keep flagging, scoped by IP and path rather than blanket bypass. And the emergency virtual patch pattern, when the vulnerability disclosure lands before the application fix can deploy, a custom rule blocking the exploit signature buys the deployment pipeline its afternoon, the incident playbook entry that makes the WAF an active responder rather than furniture. Bot manager rule sets layer the known bot intelligence on top, separating the search engines you want from the scrapers you do not, with the verdict actions logged into the same analysis loop.

Prevention Mode and the Standing Rhythm

Flip to prevention when the detection logs run clean for the tuned rules, and flip with the rollback rehearsed: policy in Terraform, the previous version a revert away, and the first days watched with the block rate dashboards and a support channel primed to recognize WAF shaped complaints, the customer who cannot submit the form is your telemetry now. The standing rhythm afterward is quarterly at minimum: rule set version upgrades adopted deliberately (new versions in detection alongside the old in prevention, the canary pattern applied to rules), the exclusion register reviewed against current application behavior since the rich text field that justified an exclusion may have died two releases ago, block analytics hunting both directions, the false positives users report and the true negatives the Sentinel correlation reveals passing through, and the load test suite from November running against prevention mode so the WAF’s own throughput and latency posture stays measured. Tuned this way, the WAF earns the sentence security reviews want to write: blocking verified attacks, passing verified customers, with the evidence one query away.

Cheers
Osama

Two posts in this series deployed WAFs, on Application Gateway in August and Front Door after it, and both ended where every WAF deployment ends: in detection mode, with a promise to tune. Today keeps the promise, because an untuned WAF fails in one of two directions, blocking customers or blocking nothing, and the tuning craft is what separates them.

Baselining: Let It Watch Before It Acts

Flip to prevention when the detection logs run clean for the tuned rules, and flip with the rollback rehearsed: policy in Terraform, the previous version a revert away, and the first days watched with the block rate dashboards and a support channel primed to recognize WAF shaped complaints, the customer who cannot submit the form is your telemetry now. The standing rhythm afterward is quarterly at minimum: rule set version upgrades adopted deliberately (new versions in detection alongside the old in prevention, the canary pattern applied to rules), the exclusion register reviewed against current application behavior since the rich text field that justified an exclusion may have died two releases ago, block analytics hunting both directions, the false positives users report and the true negatives the Sentinel correlation reveals passing through, and the load test suite from November running against prevention mode so the WAF’s own throughput and latency posture stays measured. Tuned this way, the WAF earns the sentence security reviews want to write: blocking verified attacks, passing verified customers, with the evidence one query away.

Cheers
Osama

Custom rules execute before managed rules and carry the estate specific logic. Rate limiting per client on the expensive endpoints, login, search, password reset, throttling the credential stuffing and scraping economics regardless of whether any single request looks malicious. Geo filtering where the business genuinely has geography, phrased honestly as risk reduction, not protection. The allow list rules for the known partners and scanners that managed rules keep flagging, scoped by IP and path rather than blanket bypass. And the emergency virtual patch pattern, when the vulnerability disclosure lands before the application fix can deploy, a custom rule blocking the exploit signature buys the deployment pipeline its afternoon, the incident playbook entry that makes the WAF an active responder rather than furniture. Bot manager rule sets layer the known bot intelligence on top, separating the search engines you want from the scrapers you do not, with the verdict actions logged into the same analysis loop.

Prevention Mode and the Standing Rhythm

Flip to prevention when the detection logs run clean for the tuned rules, and flip with the rollback rehearsed: policy in Terraform, the previous version a revert away, and the first days watched with the block rate dashboards and a support channel primed to recognize WAF shaped complaints, the customer who cannot submit the form is your telemetry now. The standing rhythm afterward is quarterly at minimum: rule set version upgrades adopted deliberately (new versions in detection alongside the old in prevention, the canary pattern applied to rules), the exclusion register reviewed against current application behavior since the rich text field that justified an exclusion may have died two releases ago, block analytics hunting both directions, the false positives users report and the true negatives the Sentinel correlation reveals passing through, and the load test suite from November running against prevention mode so the WAF’s own throughput and latency posture stays measured. Tuned this way, the WAF earns the sentence security reviews want to write: blocking verified attacks, passing verified customers, with the evidence one query away.

Cheers
Osama

Custom Rules: The Layer Above the Managed Sets

Custom rules execute before managed rules and carry the estate specific logic. Rate limiting per client on the expensive endpoints, login, search, password reset, throttling the credential stuffing and scraping economics regardless of whether any single request looks malicious. Geo filtering where the business genuinely has geography, phrased honestly as risk reduction, not protection. The allow list rules for the known partners and scanners that managed rules keep flagging, scoped by IP and path rather than blanket bypass. And the emergency virtual patch pattern, when the vulnerability disclosure lands before the application fix can deploy, a custom rule blocking the exploit signature buys the deployment pipeline its afternoon, the incident playbook entry that makes the WAF an active responder rather than furniture. Bot manager rule sets layer the known bot intelligence on top, separating the search engines you want from the scrapers you do not, with the verdict actions logged into the same analysis loop.

Prevention Mode and the Standing Rhythm

Flip to prevention when the detection logs run clean for the tuned rules, and flip with the rollback rehearsed: policy in Terraform, the previous version a revert away, and the first days watched with the block rate dashboards and a support channel primed to recognize WAF shaped complaints, the customer who cannot submit the form is your telemetry now. The standing rhythm afterward is quarterly at minimum: rule set version upgrades adopted deliberately (new versions in detection alongside the old in prevention, the canary pattern applied to rules), the exclusion register reviewed against current application behavior since the rich text field that justified an exclusion may have died two releases ago, block analytics hunting both directions, the false positives users report and the true negatives the Sentinel correlation reveals passing through, and the load test suite from November running against prevention mode so the WAF’s own throughput and latency posture stays measured. Tuned this way, the WAF earns the sentence security reviews want to write: blocking verified attacks, passing verified customers, with the evidence one query away.

Cheers
Osama

Custom Rules: The Layer Above the Managed Sets

Custom rules execute before managed rules and carry the estate specific logic. Rate limiting per client on the expensive endpoints, login, search, password reset, throttling the credential stuffing and scraping economics regardless of whether any single request looks malicious. Geo filtering where the business genuinely has geography, phrased honestly as risk reduction, not protection. The allow list rules for the known partners and scanners that managed rules keep flagging, scoped by IP and path rather than blanket bypass. And the emergency virtual patch pattern, when the vulnerability disclosure lands before the application fix can deploy, a custom rule blocking the exploit signature buys the deployment pipeline its afternoon, the incident playbook entry that makes the WAF an active responder rather than furniture. Bot manager rule sets layer the known bot intelligence on top, separating the search engines you want from the scrapers you do not, with the verdict actions logged into the same analysis loop.

Prevention Mode and the Standing Rhythm

Flip to prevention when the detection logs run clean for the tuned rules, and flip with the rollback rehearsed: policy in Terraform, the previous version a revert away, and the first days watched with the block rate dashboards and a support channel primed to recognize WAF shaped complaints, the customer who cannot submit the form is your telemetry now. The standing rhythm afterward is quarterly at minimum: rule set version upgrades adopted deliberately (new versions in detection alongside the old in prevention, the canary pattern applied to rules), the exclusion register reviewed against current application behavior since the rich text field that justified an exclusion may have died two releases ago, block analytics hunting both directions, the false positives users report and the true negatives the Sentinel correlation reveals passing through, and the load test suite from November running against prevention mode so the WAF’s own throughput and latency posture stays measured. Tuned this way, the WAF earns the sentence security reviews want to write: blocking verified attacks, passing verified customers, with the evidence one query away.

Cheers
Osama

The managed rule sets, the Microsoft managed default rule set on Front Door, the OWASP derived sets on Application Gateway, ship tuned for the average application, and your application is not average: the CMS whose editors paste HTML, the API accepting JSON that resembles injection, the search box receiving the whole internet’s creativity. Run detection mode for representative weeks, business cycles included, and read the logs with the KQL discipline: matched rules ranked by frequency, split by rule ID, URI, and the specific matched variable, because the signature of a false positive is legitimate traffic patterns clustering on one rule at one parameter, the rich text field tripping the SQL injection rule, the JWT in a header resembling attack strings, while real attacks scatter across rules and sources. That analysis produces the tuning targets, and the discipline is surgical scope: exclusions applied to the specific parameter on the specific rule, never the rule disabled globally, the request body inspection kept on, and every exclusion recorded with its evidence in the repo, because an exclusion list without provenance becomes untouchable and untouchable becomes unsafe.

Custom Rules: The Layer Above the Managed Sets

Custom rules execute before managed rules and carry the estate specific logic. Rate limiting per client on the expensive endpoints, login, search, password reset, throttling the credential stuffing and scraping economics regardless of whether any single request looks malicious. Geo filtering where the business genuinely has geography, phrased honestly as risk reduction, not protection. The allow list rules for the known partners and scanners that managed rules keep flagging, scoped by IP and path rather than blanket bypass. And the emergency virtual patch pattern, when the vulnerability disclosure lands before the application fix can deploy, a custom rule blocking the exploit signature buys the deployment pipeline its afternoon, the incident playbook entry that makes the WAF an active responder rather than furniture. Bot manager rule sets layer the known bot intelligence on top, separating the search engines you want from the scrapers you do not, with the verdict actions logged into the same analysis loop.

Prevention Mode and the Standing Rhythm

Flip to prevention when the detection logs run clean for the tuned rules, and flip with the rollback rehearsed: policy in Terraform, the previous version a revert away, and the first days watched with the block rate dashboards and a support channel primed to recognize WAF shaped complaints, the customer who cannot submit the form is your telemetry now. The standing rhythm afterward is quarterly at minimum: rule set version upgrades adopted deliberately (new versions in detection alongside the old in prevention, the canary pattern applied to rules), the exclusion register reviewed against current application behavior since the rich text field that justified an exclusion may have died two releases ago, block analytics hunting both directions, the false positives users report and the true negatives the Sentinel correlation reveals passing through, and the load test suite from November running against prevention mode so the WAF’s own throughput and latency posture stays measured. Tuned this way, the WAF earns the sentence security reviews want to write: blocking verified attacks, passing verified customers, with the evidence one query away.

Cheers
Osama

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.