This topic explains how you can export the list of vulnerabilities Netsparker Standard or Netsparker Enterprise 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 rules directly from the Netsparker scanners (see Generating ModSecurity Web Application Firewall Rules from Netsparker), this exercise will illustrate the process using Threadfix.
This means that you can export 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.
How to Export the Vulnerability List in XML Format in Netsparker Standard
Once the scan is ready, you can export the list of identified vulnerabilities in XML format.
- Open Netsparker Standard.
- In the ribbon, select the Reporting tab.
- In the Lists section, click Vulnerabilities List (XML). The Export Report dialog and the Save Report As dialog are displayed.
- In the Save Report As dialog, select where you want to save the Vulnerabilities List, and click Save.
- The Export Report dialog is displayed. The Path field is already populated from the previous step.
- Click Save.
How to Export the Vulnerability List in XML Format in Netsparker Enterprise
- Open Netsparker Enterprise.
- From the main menu, select Scan, then Recent Scans. The Recent Scans window is displayed.
- Next to the relevant scan, click Report. The Executive Summary window is displayed.
- Click Export. The Export Report dialog is displayed.
- From the Report dropdown, select Vulnerabilities List.
- The Format dropdown will automatically be set to XML.
- Click Export.
How to Import the Vulnerability List in ThreadFix
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 with a team.
- Log in to ThreadFix.
- In ThreadFix, navigate to the web application that you have just scanned in ThreadFix.
- Click Upload Scan.
- Specify the path of the XML file and import the vulnerabilities.
How to Export the Vulnerability List from ThreadFix as Imperva WAF Rules
First you have to add or configure the Imperva firewall in ThreadFix.
- From the Settings dropdown, select WAFs.
- Click Create WAF. The Create New WAF window is displayed.
- In the Name field, enter a name for the WAF.
- In the Type field, enter a type (in this case, select Imperva SecureSphere).
- Click Create WAF.
Once the Imperva WAF is successfully added to ThreadFix, you have to associate it to the web application in question.
- Navigate to the web application in ThreadFix.
- From the Action dropdown, select Edit/Delete.
- From the application's settings, click Set WAF.
- Select the Imperva web application firewall you have just created in the previous step.
- Click Add Waf and Save.
- Click Save Changes to save the application's settings and the association.
Once the web application firewall is associated with your web application, you can export the rules to your Imperva WAF.
- From the Settings dropdown, navigate to the WAFs page by selecting WAFs.
- Click Rulesto view the generated web application firewall rules.
- Click Download WAF Rules to export the generated rules into a text file.