wvs policy
Use this command to define a web vulnerability scan policy. The policy enables you to set the frequency of the vulnerability scan, schedule the scan, and choose a format for the scan report. The policy also enables you to select an email policy that determines who receives the scan report.
Before you can complete a web vulnerability scan policy, you must first configure a scan profile using the FortiWeb web UI and a scan schedule using either the web UI or the command wvs schedule.
To use this command, your administrator account’s access control profile must have either w
or rw
permission to the wvsgrp
area. For details, see Permissions.
Syntax
config wvs policy
edit "<wvs-policy_name>"
set schedule "<wvs-schedule_name>"
set profile "<wvs-profile_name>"
set email "<email-policy_name>"
set report_format {html pdf xml}
next
end
Variable | Description | Default |
Enter the name of a new or existing web vulnerability scan policy. The maximum length is 63 characters. To display the list of existing policies, enter:
|
No default. | |
Select either:
|
runonce
|
|
Enter the name of an existing web vulnerability scan schedule. The maximum length is 63 characters. For details, see wvs schedule. To display the list of existing schedules, enter:
This setting is applicable only if type {runonce | schedule} is |
No default. | |
Enter the name of an existing web vulnerability scan profile. The maximum length is 63 characters. To display a list of the existing profiles, enter:
|
No default. | |
Enter the name of an existing email policy. When the scan completes, the FortiWeb appliance will send email in the specified format to the email addresses in the policy. The maximum length is 63 characters. For details, see log email-policy. To display the list of existing policy, enter:
|
No default. | |
Select one or more file formats of the report to attach when emailing it. |
html | |
Not configurable. To reset the value to zero, enter:
|
No default. |
Example
The following example defines a recurring vulnerability scan with email report output in RTF and text format.
config wvs policy
edit "wvs-policy1"
set type schedule
set schedule "wvs-schedule1"
set report_format xml
set profile "wvs-profile1"
set email "EmailPolicy1"
next
end