doc/user/application_security/dast/on-demand_scan.md
{{< details >}}
{{< /details >}}
[!warning] Do not run DAST scans against a production server. Not only can it perform any function that a user can, such as clicking buttons or submitting forms, but it may also trigger bugs, leading to modification or loss of production data. Only run DAST scans against a test server.
{{< history >}}
{{< /history >}}
An on-demand DAST scan runs outside the DevOps lifecycle. Changes in your repository don't trigger the scan. You must either start it manually, or schedule it to run. For on-demand DAST scans, a site profile defines what is to be scanned, and a scanner profile defines how the application is to be scanned.
An on-demand scan can be run in active or passive mode:
To view on-demand scans:
On-demand scans are grouped by their status. The scan library contains all available on-demand scans.
Prerequisites:
To run an existing on-demand scan:
In the top bar, select Search or go to and find your project.
Select Secure > On-demand scans.
Select the Scan library tab.
In the scan's row, select Run scan.
If the branch saved in the scan no longer exists, you must:
The on-demand DAST scan runs, and the project's dashboard shows the results.
Create an on-demand scan to:
To create an on-demand DAST scan:
In the top bar, select Search or go to and find your project or group.
Select Secure > On-demand scans.
Select New scan.
Complete the Scan name and Description fields.
In the Branch dropdown list, select the desired branch.
Optional. Select the runner tags.
Select Select scanner profile or Change scanner profile to open the drawer, and either:
Select Select site profile or Change site profile to open the drawer, and either:
To run the on-demand scan:
Immediately, select Save and run scan.
In the future, select Save scan.
On a schedule:
The on-demand DAST scan runs as specified and the project's dashboard shows the results.
Prerequisites:
To view details of an on-demand scan:
Prerequisites:
To edit an on-demand scan:
To delete an on-demand scan: