-
-
Notifications
You must be signed in to change notification settings - Fork 240
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AF plan examples - updated baseline and added full scan
Signed-off-by: Simon Bennetts <[email protected]>
- Loading branch information
Showing
3 changed files
with
81 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
--- | ||
# A simple plan that performs a full scan against a URL in the ZAP_TARGET env var. | ||
# It uses the standard spider but only runs the AJAX spider is the app appears to be modern. | ||
# The 2 spider tests will fail as they do not find at least 100 URLs, | ||
# but they do not fail the whole plan as they just report at INFO level. | ||
env: | ||
contexts: | ||
- name: "Example" | ||
urls: | ||
- "${ZAP_TARGET}" | ||
includePaths: [] | ||
excludePaths: [] | ||
parameters: | ||
failOnError: true | ||
failOnWarning: false | ||
progressToStdout: true | ||
vars: {} | ||
jobs: | ||
- parameters: | ||
scanOnlyInScope: true | ||
enableTags: false | ||
rules: [] | ||
name: "passiveScan-config" | ||
type: "passiveScan-config" | ||
- parameters: {} | ||
name: "spider" | ||
type: "spider" | ||
tests: | ||
- onFail: "INFO" | ||
statistic: "automation.spider.urls.added" | ||
site: "" | ||
operator: ">=" | ||
value: 100 | ||
type: "stats" | ||
name: "At least 100 URLs found" | ||
- parameters: {} | ||
name: "passiveScan-wait-pre-ajax" | ||
type: "passiveScan-wait" | ||
- parameters: | ||
maxDuration: 3 | ||
runOnlyIfModern: true | ||
name: "spiderAjax" | ||
type: "spiderAjax" | ||
tests: | ||
- onFail: "INFO" | ||
statistic: "spiderAjax.urls.added" | ||
site: "" | ||
operator: ">=" | ||
value: 100 | ||
type: "stats" | ||
name: "At least 100 URLs found" | ||
- parameters: | ||
policyDefinition: | ||
defaultStrength: "medium" | ||
defaultThreshold: "medium" | ||
rules: [] | ||
name: "activeScan" | ||
type: "activeScan" | ||
- parameters: {} | ||
name: "passiveScan-wait-pre-report" | ||
type: "passiveScan-wait" | ||
- parameters: | ||
template: "modern" | ||
reportTitle: "ZAP Scanning Report" | ||
reportDescription: "" | ||
name: "report" | ||
type: "report" |