New Improvements on Azure WAF for Application Gateway

Published Jul 21 2021 02:17 PM 3,315 Views
Microsoft

A new managed rule set called OWASP_3.2 has been launched in public preview on Azure WAF for Application Gateway. This rule set is based on OWASP ModSecurity Core Rule Set (CRS), which intends to protect web applications from the most common attacks, such as the OWASP Top 10. We often refer to the OWASP_3.2 rule set interchangeably with CRS 3.2.

 

What are the requirements to use CRS 3.2?

You must be using Azure Application Gateway WAF_v2 SKU, and you must be using WAF Policy to manage your Azure WAF settings.

 

What changes when enabling CRS 3.2?

With the new WAF engine, you will receive the following benefits:

 

Reduced false positives and added security rules

CRS 3.2 has several improvements in comparison to the previous CRS versions. Multiple security rules have received fixes that help lower the occurrence of false positives, and new security rules have been added to detect and protect against more threats, such as attacks against JAVA applications. For more detailed information on what changed from CRS 3.1 to CRS 3.2, you can refer to the OWASP ModSecurity Core Rule Set Version 3.2.0 change log.

 

camilamartins_0-1626892666368.png

 

Better performance 

The new WAF engine has been designed to allow for more flexibility, reliability, and efficiency. This engine offers improved memory utilization, latency, and throughput – which contributes to overall better performance when using Azure WAF for Application Gateway v2.

 

As an example, we compared the latency rates between the new WAF engine, old WAF engine, and Application Gateway v2 with no WAF enabled. Keep in mind that the examples below are findings from internal test samples, and actual performance improvement rates for customers’ resources may vary.

 

In the sample test below, we verified the amount of latency based on a GET request with different cookie sizes. We can see in the chart below how a request with a cookie size of 4kb with the old WAF engine resulted in a latency of above 100 milliseconds, while the latency for the same cookie size with the new WAF engine is below 50 milliseconds. The performance improvement gets even more significant when comparing to a larger cookie size, as seen with the 16kb cookie.

 

camilamartins_1-1626892708699.png

 

In another sample test, we measured the amount of latency based on a POST request with different payload sizes. We can see in the chart below that a payload of 128kb in size has an expected latency of just above 500 milliseconds with the new WAF engine, while the same payload size reaches almost 2500 milliseconds of latency with the previous WAF engine.

 

camilamartins_2-1626892721090.png

Increased limits

Due to improvements in our new WAF engine in the backend, we now allow customers to increase the limits for Max Request Body Size and Max File Upload Size. The Max Request Body Size limit was increased from 128KB to 2MB, and the Max File Upload Size limit was increased from 750MB to 4GB.

 

camilamartins_3-1626892732228.png

 

 

%3CLINGO-SUB%20id%3D%22lingo-sub-2572257%22%20slang%3D%22en-US%22%3ENew%20Improvements%20on%20Azure%20WAF%20for%20Application%20Gateway%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2572257%22%20slang%3D%22en-US%22%3E%3CP%3EA%20new%20managed%20rule%20set%20called%20%3CSTRONG%3E%3CEM%3EOWASP_3.2%3C%2FEM%3E%3C%2FSTRONG%3E%20has%20been%20launched%20in%20public%20preview%20on%20Azure%20WAF%20for%20Application%20Gateway.%20This%20rule%20set%20is%20based%20on%20OWASP%20ModSecurity%20Core%20Rule%20Set%20(CRS)%2C%20which%20intends%20to%20protect%20web%20applications%20from%20the%20most%20common%20attacks%2C%20such%20as%20the%20OWASP%20Top%2010.%20We%20often%20refer%20to%20the%20%3CSTRONG%3E%3CEM%3EOWASP_3.2%3C%2FEM%3E%3C%2FSTRONG%3E%20rule%20set%20interchangeably%20with%20%3CSTRONG%3E%3CEM%3ECRS%203.2%3C%2FEM%3E%3C%2FSTRONG%3E.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%224%22%3E%3CSTRONG%3EWhat%20are%20the%20requirements%20to%20use%20CRS%203.2%3F%3C%2FSTRONG%3E%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3EYou%20must%20be%20using%20Azure%20Application%20Gateway%20WAF_v2%20SKU%2C%20and%20you%20must%20be%20using%20WAF%20Policy%20to%20manage%20your%20Azure%20WAF%20settings.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%224%22%3E%3CSTRONG%3EWhat%20changes%20when%20enabling%20CRS%203.2%3F%3C%2FSTRONG%3E%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3EWith%20the%20new%20WAF%20engine%2C%20you%20will%20receive%20the%20following%20benefits%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%224%22%20color%3D%22%23333399%22%3E%3CSTRONG%3EReduced%20false%20positives%20and%20added%20security%20rules%3C%2FSTRONG%3E%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3ECRS%203.2%20has%20several%20improvements%20in%20comparison%20to%20the%20previous%20CRS%20versions.%20Multiple%20security%20rules%20have%20received%20fixes%20that%20help%20lower%20the%20occurrence%20of%20false%20positives%2C%20and%20new%20security%20rules%20have%20been%20added%20to%20detect%20and%20protect%20against%20more%20threats%2C%20such%20as%20attacks%20against%20JAVA%20applications.%20For%20more%20detailed%20information%20on%20what%20changed%20from%20CRS%203.1%20to%20CRS%203.2%2C%20you%20can%20refer%20to%20the%20%3CA%20href%3D%22https%3A%2F%2Fcoreruleset.org%2F20190924%2Fowasp-modsecurity-core-rule-set-version-3-2-0%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3EOWASP%20ModSecurity%20Core%20Rule%20Set%20Version%203.2.0%20change%20log%3C%2FA%3E.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22camilamartins_0-1626892666368.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F297464i938EB678DCBC7513%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22camilamartins_0-1626892666368.png%22%20alt%3D%22camilamartins_0-1626892666368.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%224%22%3E%3CSTRONG%3E%3CFONT%20color%3D%22%23333399%22%3EBetter%20performance%3C%2FFONT%3E%26nbsp%3B%3C%2FSTRONG%3E%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3EThe%20new%20WAF%20engine%20has%20been%20designed%20to%20allow%20for%20more%20flexibility%2C%20reliability%2C%20and%20efficiency.%20This%20engine%20offers%20improved%20memory%20utilization%2C%20latency%2C%20and%20throughput%20%E2%80%93%20which%20contributes%20to%20overall%20better%20performance%20when%20using%20Azure%20WAF%20for%20Application%20Gateway%20v2.%3C%2FP%3E%0A%3CP%20class%3D%22lia-indent-padding-left-30px%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAs%20an%20example%2C%20we%20compared%20the%20latency%20rates%20between%20the%20new%20WAF%20engine%2C%20old%20WAF%20engine%2C%20and%20Application%20Gateway%20v2%20with%20no%20WAF%20enabled.%20Keep%20in%20mind%20that%20the%20examples%20below%20are%20findings%20from%20internal%20test%20samples%2C%20and%20actual%20performance%20improvement%20rates%20for%20customers%E2%80%99%20resources%20may%20vary.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIn%20the%20sample%20test%20below%2C%20we%20verified%20the%20amount%20of%20latency%20based%20on%20a%20GET%20request%20with%20different%20cookie%20sizes.%20We%20can%20see%20in%20the%20chart%20below%20how%20a%20request%20with%20a%20cookie%20size%20of%204kb%20with%20the%20old%20WAF%20engine%20resulted%20in%20a%20latency%20of%20above%20100%20milliseconds%2C%20while%20the%20latency%20for%20the%20same%20cookie%20size%20with%20the%20new%20WAF%20engine%20is%20below%2050%20milliseconds.%20The%20performance%20improvement%20gets%20even%20more%20significant%20when%20comparing%20to%20a%20larger%20cookie%20size%2C%20as%20seen%20with%20the%2016kb%20cookie.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22camilamartins_1-1626892708699.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F297465i212034C48ACB99A7%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22camilamartins_1-1626892708699.png%22%20alt%3D%22camilamartins_1-1626892708699.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%3EIn%20another%20sample%20test%2C%20we%20measured%26nbsp%3Bthe%20amount%20of%26nbsp%3Blatency%20based%20on%20a%20POST%20request%20with%20different%20payload%20sizes.%20We%20can%20see%20in%20the%20chart%26nbsp%3Bbelow%26nbsp%3Bthat%20a%20payload%20of%20128kb%20in%20size%20has%20an%20expected%20latency%20of%20just%20above%20500%20milliseconds%20with%20the%20new%20WAF%20engine%2C%20while%20the%20same%20payload%20size%20reaches%20almost%202500%20milliseconds%20of%20latency%20with%20the%20previous%20WAF%20engine.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22camilamartins_2-1626892721090.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F297466i734D5503CB6D0200%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22camilamartins_2-1626892721090.png%22%20alt%3D%22camilamartins_2-1626892721090.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CFONT%20size%3D%224%22%20color%3D%22%23333399%22%3E%3CSTRONG%3EIncreased%20limits%3C%2FSTRONG%3E%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3EDue%20to%20improvements%20in%20our%20new%20WAF%20engine%20in%20the%20backend%2C%26nbsp%3Bwe%20now%20allow%20customers%20to%20increase%20the%20limits%20for%20%3CEM%3EMax%20Request%20Body%20Size%3C%2FEM%3E%20and%20%3CEM%3EMax%20File%20Upload%20Size%3C%2FEM%3E.%20The%20%3CSTRONG%3E%3CEM%3EMax%20Request%20Body%20Size%3C%2FEM%3E%3C%2FSTRONG%3E%20limit%20was%20increased%20%3CSTRONG%3Efrom%20128KB%20to%202MB%3C%2FSTRONG%3E%2C%20and%20the%20%3CSTRONG%3E%3CEM%3EMax%20File%20Upload%20Size%3C%2FEM%3E%3C%2FSTRONG%3E%20limit%20was%20increased%20%3CSTRONG%3Efrom%20750MB%20to%204GB.%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22camilamartins_3-1626892732228.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F297467i19CC04DF45643EC2%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22camilamartins_3-1626892732228.png%22%20alt%3D%22camilamartins_3-1626892732228.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-2572257%22%20slang%3D%22en-US%22%3E%3CP%3EA%20new%20managed%20rule%20set%20as%20been%20launched%20in%20public%20preview%20on%20Azure%20WAF%20for%20Application%20Gateway%2C%20and%20a%20new%20backend%20WAF%20engine%20provides%20increased%20limits%20and%20better%20performance.%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2572257%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAzure%20Application%20Gateway%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EAzure%20Network%20Security%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EAzure%20WAF%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Co-Authors
Version history
Last update:
‎Jul 21 2021 02:24 PM
Updated by: