The long-anticipated option to use the Microsoft Default Rule Set (DRS) for Application Gateway in Web Application Firewall is now available in Public Preview. Customers can use the DRS with the latest Bot Manager rule set with their Regional WAF v2 to bring the same security experience as with Azure Front Door.
DRS 2.1 is a Microsoft Managed Rule Set baselined off the Open Web Application Security Project (OWASP) Core Rule Set (CRS) 3.3.2 and extended to include additional proprietary protections rules developed by Microsoft Threat Intelligence team. The Microsoft Threat Intel team analyzes Common Vulnerabilities and Exposures (CVEs) and adapts the CRS ruleset to address CVE and reduce false positives.
For more information on what's included in this release, please see the managed rules documentation.
How to enable the feature in App Gateway
Sensitive Data Protection for Application Gateway Web Application Firewall
The ability to mask sensitive data in Azure Application Gateway WAF logs is now available in public preview as an additional security option. When a WAF rule is activated, the WAF captures the request details and stores them in plain text within the logs. If the specific part of the request that triggers the WAF rule contains sensitive information (such as customer passwords or IP addresses), anyone with access to the WAF logs can view that sensitive data.
In order to protect customer data, WAF users can now set up log scrubbing rules targeting this sensitive data for protection. When one of these log scrubbing rules is triggered, the tool scrubs that information from the WAF logs and replaces it with <*******>
The announcement for the sensitive data protection brings an improvement on the default log structure with option to mask the following fields : { IP address, Request header name, Request cookie name, Request args name, Post arg name, JSON arg name }
You can find the reference information about the match variable use cases for the different parameters to be scrubbed in this table.
To enable Sensitive Data Protection:
To configure Log Scrubbing rules for Sensitive Data Protection:
For PowerShell, you can create and configure the scrubbing rules using the following:
$logScrubbingRule1 = New-AzApplicationGatewayFirewallPolicyLogScrubbingRule `
-State <String> -MatchVariable <String> `
-SelectorMatchOperator <String> -Selector <String>
$logScrubbingRuleConfig = New-AzApplicationGatewayFirewallPolicyLogScrubbingConfiguration `
-State <String> -ScrubbingRule $logScrubbingRule1
Once the selected fields have been configured, you can view the desired fields in the logs to verify the sensitive data field is now protected.
Conclusion
It is essential to regularly update the security configuration of your WAF policy in alignment with the necessary security baseline requirements for your application environment. These features, now available in public preview ensure improved WAF tuned environment that reduces false positives and manage visibility into sensitive information in your logs.
To learn how to mask sensitive information in your Application Gateway WAF logs, create your own log scrubbing rules
Ready to update to the new rule set for Application Gateway WAF?- DRS 2.1 for Regional WAF with Application Gateway Azure updates | Microsoft Azure
Are you looking to read up on the rule group and rule set logic for pattern matches? - CRS rule groups and rules - Azure Web Application Firewall | Microsoft Learn
Want to stay in the loop? Stay connected to the latest improvements before everybody else by joining the Private Community
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.