Tutorial Overview: Azure Web Application Firewall Security Protection and Detection Lab

Published Jan 14 2021 04:34 PM 6,186 Views
Microsoft

 

 

 

Introduction

 

 

Customers often want to test and validate the capabilities of products before using them in mission critical environments.  Same is true for Azure Web Application Firewall (WAF), where customers often have a need to test its security capabilities and validate their effectiveness before deciding to secure their production workloads with it.

 

To enable customers in rapidly validating the effectiveness of Azure WAF against real world web application attacks, we have designed this four-part lab tutorial.  Part one of the tutorial provides guidance to quickly deploy a test environment with all required components.  Parts two through four provide step by step walkthroughs for attacking a vulnerable web application with common, real-world, publicly available hacking and attack tools.

 

 

 

Tutorial Overview

 

 

The purpose of the Azure WAF security protection and detection lab tutorial is to demonstrate Azure Web Application Firewall (WAF) capabilities in identifying, detecting, and protecting against suspicious activities and potential attacks against your Web Applications.  In this four-part tutorial, you will learn how to

 

  1. Configure the working environment to test Azure WAF protection against web application attacks
  2. Emulate an adversary by attacking and exploiting a vulnerable web application using step by step instructions
  3. Review Azure Monitor Workbook for WAF to understand WAF detection and processing logic for specific attack patterns used in every tutorial

 

The lab tutorials provide walkthroughs for running successful attacks against the vulnerable OWASP Juice Shop web application when it is exposed to the internet directly, without Azure WAF.  The tutorials then also demonstrate effectiveness of Azure WAF on Application Gateway in blocking the same attacks against the same instance of the vulnerable OWASP Juice Shop Application when it is protected by Azure WAF.

 

This lab focuses on the OWASP protection ruleset and logging capabilities of Azure WAF.  The lab does not include advanced application security concepts and is not intended to be a reference for application security testing as these areas are broader than the use cases demonstrated herein.

 

 

Part 1 - Lab Setup

 

The first tutorial in this four-part series walks you through deploying/creating a lab environment for testing Azure WAF protection and logging capabilities.  The tutorial includes information about machines and tools that are needed to set up the lab and complete its playbooks.  The instructions assume you are comfortable with deploying and administering resources in Azure and have some familiarity with web application security concepts.  The closer your lab is to the suggested lab setup, the easier it will be to follow Azure WAF testing procedures.  When your lab setup is complete, use the Azure WAF Security Protection and Detection playbooks for testing.

 

Setup an Azure WAF Attack Testing Lab 

 

 

Part 2 - Reconnaissance Playbook

 

The second tutorial in this four-part series is a reconnaissance playbook.  Reconnaissance activities allow attackers to gain a thorough understanding and complete mapping of your web application for later use.  The playbook shows Azure WAF capabilities in identifying, detecting, and protecting against suspicious activities from potential recon attacks using examples from common, publicly available hacking and attack tools.

 

Reconnaissance Playbook

 

 

Part 3 - Vulnerability Exploitation Playbook

 

The vulnerability exploitation playbook is third in the four-part tutorial series.  In the exploitation phase, an attacker attempts to exploit known or a previously identified vulnerability with intent to elevate privileges.  As you run through this playbook, you will see Cross Site Scripting (XSS) detections and rules get triggered on Azure WAF from the attack you will simulate in your lab.

 

Cross Site Scripting (XSS) attacks are performed against web applications with the intent of compromising end users or the application itself.

 

Vulnerability Exploitation Playbook 

 

 

Part 4 - Data Disclosure and Exfiltration Playbook

 

The last tutorial in the four-part series is the data exfiltration playbook. During the data exfiltration phase, an attacker has already gained access to your application backend and attempts to disclose and copy sensitive data.  You will simulate an SQL Injection (SQLi) attack to see the attack detection and protection capability of Azure WAF.

 

SQL Injection (SQLi) attacks are performed against web applications with the intent of exposing/exfiltrating sensitive application and user data.

 

Data Disclosure and Exfiltration Playbook

 

 

 

Next: Setup an Azure WAF Attack Testing Lab 

 

 

 

 

%3CLINGO-SUB%20id%3D%22lingo-sub-2030423%22%20slang%3D%22en-US%22%3ETutorial%20Overview%3A%20Azure%20Web%20Application%20Firewall%20Security%20Protection%20and%20Detection%20Lab%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2030423%22%20slang%3D%22en-US%22%3E%3CH2%20id%3D%22toc-hId--554604101%22%20id%3D%22toc-hId--554604101%22%3E%26nbsp%3B%3C%2FH2%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-1932908732%22%20id%3D%22toc-hId-1932908732%22%3EIntroduction%3C%2FH2%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ECustomers%20often%20want%20to%20test%20and%20validate%20the%20capabilities%20of%20products%20before%20using%20them%20in%20mission%20critical%20environments.%26nbsp%3B%20Same%20is%20true%20for%20%3CSTRONG%3EAzure%20Web%20Application%20Firewall%20(WAF)%3C%2FSTRONG%3E%2C%20where%20customers%20often%20have%20a%20need%20to%20test%20its%20security%20capabilities%20and%20validate%20their%20effectiveness%20before%20deciding%20to%20secure%20their%20production%20workloads%20with%20it.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ETo%20enable%20customers%20in%20rapidly%20validating%20the%20effectiveness%20of%20Azure%20WAF%20against%20real%20world%20web%20application%20attacks%2C%20we%20have%26nbsp%3Bdesigned%20this%20%3CSTRONG%3Efour%3C%2FSTRONG%3E-part%20lab%20tutorial.%26nbsp%3B%20Part%20one%20of%20the%20tutorial%20provides%20guidance%20to%20quickly%20deploy%20a%20test%20environment%20with%20all%20required%20components.%26nbsp%3B%20Parts%20two%20through%20four%20provide%20step%20by%20step%20walkthroughs%20for%20attacking%20a%20vulnerable%20web%20application%20with%26nbsp%3Bcommon%2C%20real-world%2C%20publicly%20available%20hacking%20and%20attack%20tools.%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-125454269%22%20id%3D%22toc-hId-125454269%22%3E%26nbsp%3B%3C%2FH2%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--1682000194%22%20id%3D%22toc-hId--1682000194%22%3ETutorial%20Overview%3C%2FH2%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20purpose%20of%20the%20Azure%20WAF%20security%20protection%20and%20detection%20lab%20tutorial%20is%20to%20demonstrate%20%3CSTRONG%3EAzure%20Web%20Application%20Firewall%20(WAF)%3C%2FSTRONG%3E%20capabilities%20in%20identifying%2C%20detecting%2C%20and%20protecting%20against%20suspicious%20activities%20and%20potential%20attacks%20against%20your%20Web%20Applications.%26nbsp%3B%20In%20this%20%3CSTRONG%3Efour%3C%2FSTRONG%3E-part%20tutorial%2C%20you%20will%20learn%20how%20to%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3EConfigure%20the%20working%20environment%20to%20test%20Azure%20WAF%20protection%20against%20web%20application%20attacks%3C%2FLI%3E%0A%3CLI%3EEmulate%20an%20adversary%20by%20attacking%20and%20exploiting%20a%20vulnerable%20web%20application%20using%20step%20by%20step%20instructions%3C%2FLI%3E%0A%3CLI%3EReview%20%3CA%20title%3D%22Azure%20Monitor%20Workbook%20for%20WAF%22%20href%3D%22https%3A%2F%2FAka.ms%2FAzWAFworkbook%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3E%3CSTRONG%3EAzure%20Monitor%20Workbook%20for%20WAF%3C%2FSTRONG%3E%3C%2FA%3E%20to%20understand%20WAF%20detection%20and%20processing%20logic%20for%20specific%20attack%20patterns%20used%20in%20every%20tutorial%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20lab%20tutorials%20provide%20walkthroughs%20for%20running%20successful%20attacks%20against%20the%20vulnerable%20%3CA%20href%3D%22https%3A%2F%2Fowasp.org%2Fwww-project-juice-shop%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3E%3CSTRONG%3EOWASP%20Juice%20Shop%3C%2FSTRONG%3E%3C%2FA%3E%20web%20application%20when%20it%20is%20exposed%20to%20the%20internet%20directly%2C%20without%20Azure%20WAF.%26nbsp%3B%20The%20tutorials%20then%20also%20demonstrate%20effectiveness%20of%20%3CSTRONG%3EAzure%20WAF%20on%20Application%20Gateway%3C%2FSTRONG%3E%20in%20blocking%20the%20same%20attacks%20against%20the%20same%20instance%20of%20the%20vulnerable%20OWASP%20Juice%20Shop%20Application%20when%20it%20is%20protected%20by%20Azure%20WAF%3CSTRONG%3E.%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThis%20lab%20focuses%20on%20the%20OWASP%20protection%20ruleset%20and%20logging%20capabilities%20of%20Azure%20WAF.%26nbsp%3B%20The%20lab%20does%20not%20include%20advanced%20application%20security%20concepts%20and%20is%20not%20intended%20to%20be%20a%20reference%20for%20application%20security%20testing%20as%20these%20areas%20are%20broader%20than%20the%20use%20cases%20demonstrated%20herein.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId--991438720%22%20id%3D%22toc-hId--991438720%22%3EPart%201%20-%20Lab%20Setup%3C%2FH3%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20first%20tutorial%20in%20this%20four-part%20series%20walks%20you%20through%20deploying%2Fcreating%20a%20lab%20environment%20for%20testing%20Azure%20WAF%20protection%20and%20logging%20capabilities.%26nbsp%3B%20The%20tutorial%20includes%20information%20about%20machines%20and%20tools%20that%20are%20needed%20to%20set%20up%20the%20lab%20and%20complete%20its%20playbooks.%26nbsp%3B%20The%20instructions%20assume%20you%20are%20comfortable%20with%20deploying%20and%20administering%20resources%20in%20Azure%20and%20have%20some%20familiarity%20with%20web%20application%20security%20concepts.%26nbsp%3B%20The%20closer%20your%20lab%20is%20to%20the%20suggested%20lab%20setup%2C%20the%20easier%20it%20will%20be%20to%20follow%20Azure%20WAF%20testing%20procedures.%26nbsp%3B%20When%20your%20lab%20setup%20is%20complete%2C%20use%20the%20Azure%20WAF%20Security%20Protection%20and%20Detection%20playbooks%20for%20testing.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CA%20title%3D%22Setup%20an%20Azure%20WAF%20Attack%20Testing%20Lab%22%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fazure-network-security%2Fpart-1-lab-setup-azure-web-application-firewall-security%2Fba-p%2F2030469%22%20target%3D%22_blank%22%3ESetup%20an%20Azure%20WAF%20Attack%20Testing%20Lab%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId-1496074113%22%20id%3D%22toc-hId-1496074113%22%3EPart%202%20-%20Reconnaissance%20Playbook%3C%2FH3%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20second%20tutorial%20in%20this%20four-part%20series%20is%20a%20reconnaissance%20playbook.%26nbsp%3B%20Reconnaissance%20activities%20allow%20attackers%20to%20gain%20a%20thorough%20understanding%20and%20complete%20mapping%20of%20your%20web%20application%20for%20later%20use.%26nbsp%3B%20The%20playbook%20shows%20Azure%20WAF%20capabilities%20in%20identifying%2C%20detecting%2C%20and%20protecting%20against%20suspicious%20activities%20from%20potential%20recon%20attacks%20using%20examples%20from%20common%2C%20publicly%20available%20hacking%20and%20attack%20tools.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CA%20title%3D%22Reconnaissance%20Playbook%22%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fazure-network-security%2Fpart-2-reconnaissance-playbook-azure-waf-security-protection-and%2Fba-p%2F2030751%22%20target%3D%22_blank%22%3EReconnaissance%20Playbook%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId--311380350%22%20id%3D%22toc-hId--311380350%22%3EPart%203%20-%20Vulnerability%20Exploitation%20Playbook%3C%2FH3%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20vulnerability%20exploitation%20playbook%20is%20third%20in%20the%20four-part%20tutorial%20series.%26nbsp%3B%20In%20the%20exploitation%20phase%2C%20an%20attacker%20attempts%20to%20exploit%20known%20or%20a%20previously%20identified%20vulnerability%20with%20intent%20to%20elevate%20privileges.%26nbsp%3B%20As%20you%20run%20through%20this%20playbook%2C%20you%20will%20see%20%3CSTRONG%3ECross%20Site%20Scripting%20(XSS)%3C%2FSTRONG%3E%20detections%20and%20rules%20get%20triggered%20on%20Azure%20WAF%20from%20the%20attack%20you%20will%20simulate%20in%20your%20lab.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20data-unlink%3D%22true%22%3ECross%20Site%20Scripting%20(XSS)%26nbsp%3Battacks%20are%20performed%20against%20web%20applications%20with%20the%20intent%20of%20compromising%20end%20users%20or%20the%20application%20itself.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CA%20title%3D%22Vulnerability%20Exploitation%20Playbook%22%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fazure-network-security%2Fpart-3-vulnerability-exploitation-playbook-azure-waf-security%2Fba-p%2F2031047%22%20target%3D%22_blank%22%3EVulnerability%20Exploitation%20Playbook%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId--2118834813%22%20id%3D%22toc-hId--2118834813%22%3EPart%204%20-%20Data%20Disclosure%20and%20Exfiltration%20Playbook%3C%2FH3%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20last%20tutorial%20in%20the%20four-part%20series%20is%20the%20data%20exfiltration%20playbook.%20During%20the%20data%20exfiltration%20phase%2C%20an%20attacker%20has%20already%20gained%20access%20to%20your%20application%20backend%20and%20attempts%20to%20disclose%20and%20copy%20sensitive%20data.%26nbsp%3B%20You%20will%20simulate%20an%20%3CSTRONG%3ESQL%20Injection%20(SQLi)%3C%2FSTRONG%3E%20attack%20to%20see%20the%20attack%20detection%20and%20protection%20capability%20of%20Azure%20WAF.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20data-unlink%3D%22true%22%3ESQL%20Injection%20(SQLi)%26nbsp%3Battacks%20are%20performed%20against%20web%20applications%20with%20the%20intent%20of%20exposing%2Fexfiltrating%20sensitive%20application%20and%20user%20data.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CA%20title%3D%22Data%20Disclosure%20and%20Exfiltration%20Playbook%22%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fazure-network-security%2Fpart-4-data-disclosure-and-exfiltration-playbook-azure-waf%2Fba-p%2F2031269%22%20target%3D%22_blank%22%3EData%20Disclosure%20and%20Exfiltration%20Playbook%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH4%20id%3D%22toc-hId--1428273339%22%20id%3D%22toc-hId--1428273339%22%3ENext%3A%26nbsp%3B%3CA%20title%3D%22Setup%20an%20Azure%20WAF%20Attack%20Testing%20Lab%22%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fazure-network-security%2Fpart-1-lab-setup-azure-web-application-firewall-security%2Fba-p%2F2030469%22%20target%3D%22_blank%22%3ESetup%20an%20Azure%20WAF%20Attack%20Testing%20Lab%3C%2FA%3E%26nbsp%3B%3C%2FH4%3E%0A%3CH4%20id%3D%22toc-hId-1059239494%22%20id%3D%22toc-hId-1059239494%22%3E%26nbsp%3B%3C%2FH4%3E%0A%3CH4%20id%3D%22toc-hId-482655630%22%20id%3D%22toc-hId-482655630%22%3E%26nbsp%3B%3C%2FH4%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-2030423%22%20slang%3D%22en-US%22%3E%3CP%3ESecurity%20of%20Web%20Applications%20in%20Azure%20is%20a%20critical%20requirement%20for%20customers.%26nbsp%3B%20In%20this%20section%20we%20provide%20an%20overview%20of%20the%20testing%20you%20will%20perform%20in%20the%20subsequent%20parts%20to%20validate%20security%20protection%20and%20detection%20capabilities%20of%26nbsp%3BAzure%20WAF.%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-inline%22%20image-alt%3D%22Mohit_Kumar_0-1610674327106.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F246504i3C659808382216DA%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Mohit_Kumar_0-1610674327106.png%22%20alt%3D%22Mohit_Kumar_0-1610674327106.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2030423%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAzure%20Application%20Gateway%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EAzure%20WAF%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Version history
Last update:
‎Jan 14 2021 06:07 PM
Updated by:
www.000webhost.com