Azure Web Application Firewalls: Are they Effective Security Controls??
As always, the answer, from any cyber security consultant, will be: ‘that depends’.?
Introduction?
In the ever-evolving landscape of cybersecurity, Web Application Firewalls (WAFs) play a pivotal role in safeguarding web applications from a multitude of online threats. Azure WAF, offered by Microsoft's cloud platform, empowers businesses to fortify their applications against a range of attacks. One of the intriguing features of Azure WAF is the ability to implement custom rules, allowing organizations to tailor their security measures. However, while custom rules offer flexibility, they also introduce a set of risks, particularly the possibility of overriding existing rules. In this blog, we will delve into the potential dangers of implementing custom rules in Azure WAF and explore strategies to mitigate these risks.?
The blurb about the Azure WAF?
Let’s start with how Microsoft market their Azure WAF as a security control. The following is taken from their WAF solution web pages? (https://azure.microsoft.com/en-gb/products/web-application-firewall )?
Azure Web Application Firewall is a cloud-native service that protects web apps from common web-hacking techniques such as SQL injection and security vulnerabilities such as cross-site scripting. Deploy the service in minutes to get complete visibility into your environment and block malicious attacks.?
Protect web apps with managed rule sets?
Protect your web applications in just a few minutes with the latest managed and preconfigured rule sets. The Azure Web Application Firewall detection engine combined with updated rule sets increases security, reduces false positives, and improves performance.?
Meet security requirements with agentless deployment?
Easily deploy Azure Web Application Firewall security with no additional software agent required. Centrally define and customise rules to meet your security requirements, then apply them to protect all your web apps.?
Improve visibility into security and analytics?
Experience seamless integration with security information event management (SIEM) tools in Azure. Access prebuilt workbooks with Azure Sentinel and modify them to fit your organisation's needs.?
Achieve organizational compliance fast?
Use Azure Policy to help enforce organisational standards and assess compliance at scale for Web Application Firewall resources. Get an aggregated view to evaluate the overall state of your environment.?
Improve security and optimize performance at the edge?
Deploy Azure Web Application Firewall in Azure Front Door for advanced security, scalability, and accelerated delivery of apps to global users.?
领英推荐
Monitor security alerts and logs?
Use Azure Monitor to track diagnostic information including security alerts and logs that provide detailed reporting on detected threats.?
Managing the Azure WAF in the Real World?
In theory, if we take all the above statements about the WAF at face value then we should expect an improvement in the security of any applications that are protected by the web application firewall.?
From engagements where we were asked to look into the Azure WAF implementation we found that there are pitfalls that could snare the unwary. These pitfalls would leave you thinking you have WAF protections for your application, when you actually don’t. We found these pitfalls are mainly around the custom rules that can be used with the Azure WAF.??
Custom rules in Azure WAF provide organisations with the ability to define specific security rules that suit their unique application requirements. These rules can be crafted to identify and mitigate application-specific threats that might not be covered by default rules. This flexibility empowers businesses to enforce granular security measures, aligning with their specific use cases.?
While the allure of custom rules is strong, the dangers they pose are equally significant. One of the most critical risks associated with implementing custom rules is the potential to override existing rules. Azure WAF comes with a comprehensive set of pre-configured rules that address common vulnerabilities and threats (the managed rules). These rules are carefully curated and tested to provide a baseline level of protection. Overriding these rules inadvertently can lead to weakening the security posture and exposing applications to potential exploits.?
Understanding the Risks of Custom Rules?
Custom rules created for the Azure WAF need the utmost care and attention. This level of scrutiny is a lifetime commitment. For some types of application – for example, WIKIs and ticketing applications, the range of innocent requests make using a WAF in blocking mode infeasible.?
Mitigation Strategies?
We propose several mitigation strategies to deal with the points raised above.?
Conclusion?
Custom rules in Azure WAF hold immense potential for enhancing application security, but their implementation should be approached with caution. The risk of overriding existing rules and inadvertently weakening the security framework underscores the need for a strategic and well-informed approach. By comprehensively testing, carefully planning, and continuously auditing custom rules, organisations can navigate the perils and harness the benefits of this powerful feature without compromising their application's security.?
Interested in finding out more? Contact us today.