This article explains how you can export the list of vulnerabilities Netsparker Desktop or Netsparker Cloud identified during a web vulnerability scan and import them as rules in your web application firewall. Since at the moment you can only export ModSecurity firewall directly from the Netsparker scanners, for this exercise Threadfix will be used.
This means that you can export the Netsparker scan results and import them as web application firewall rules to any type and brand of firewall that is supported by ThreadFix. In this example we will export the Netsparker scan results to an Imperva SecureSphere WAF.
Once the scan is ready, you can export the list of identified vulnearbilities in XML format. In Netsparker Desktop you can do so by selecting the Vulnerabilities List (XML) from the Reporting drop down menu and saving them, as shown in the below screenshot.
If you are using Netsparker Cloud, when viewing the scan results click the Export button in the top right corner of the screens and click XML next to the Vulnerabilities List, as shown in the below screenshot.
Note: In order to import the list of vulnerabilities in ThreadFix and associate them with a web application so then you can export them as WAF rules, you should have an application associated to a team. For more information on setting up ThreadFix please refer to the ThreadFix Getting Started guide.
First you have to add the Imperva firewall in ThreadFix. To do so click WAFs from the Settings drop down menu shown in the below screenshot.
Click Create WAF and specify a name for the WAF and the type of WAF, in this case select Imperva SecureSphere as shown in the below screenshot.
Click Create WAF when ready.
Once the Imperva WAF is successfully added to ThreadFix, you have to associate it to the web application in question. To do so navigate to the web application in ThreadFix and select Edit/Delete from the Action drop down menu, as shown in the below screenshot.
Click the Set WAF button from the application's settions (shown in the below screenshot) and choose the Imperva web application firewall you have just created in the previous step. Click Add Waf and Save.
Once ready click Save Changes to save the application's settings and the association.
Once the web application firewall is associated with your web application, navigate to the WAFs page by selecting WAFs from the Settings drop down menu (as per step 1 of this procedure). Click the Rules button highlighted in the below screenshot to see the generated web application firewall rules. Click Download WAF Rules to export the generated rules into a text file.