File tree Expand file tree Collapse file tree 3 files changed +86
-20
lines changed Expand file tree Collapse file tree 3 files changed +86
-20
lines changed Original file line number Diff line number Diff line change 1+ # Changelog
2+ All notable changes to the 'other' section of this repository will be documented in this file.
3+
4+ The format is based on [ Keep a Changelog] ( https://keepachangelog.com/en/1.0.0/ ) .
5+
6+ ### 2024-01-16
7+ - Introduced this changelog
8+ - Added af-plans/FullScanExample.yaml
9+ - Updated af-plans/BaselineExample.yaml to use envvar and only run AJAX Spider if modern.
Original file line number Diff line number Diff line change 11---
2- # A simple plan that performs a baseline scan against example.com
3- # It uses both of the spiders and just passive scanning .
2+ # A simple plan that performs a baseline scan against a URL in the ZAP_TARGET env var.
3+ # It uses the standard spider but only runs the AJAX spider if the app appears to be modern .
44# The 2 spider tests will fail as they do not find at least 100 URLs,
55# but they do not fail the whole plan as they just report at INFO level.
66env :
77 contexts :
88 - name : " Example"
99 urls :
10- - " https://www.example.com/ "
10+ - " ${ZAP_TARGET} "
1111 includePaths : []
1212 excludePaths : []
13- authentication :
14- parameters : {}
15- verification :
16- method : " response"
17- pollFrequency : 60
18- pollUnits : " requests"
19- sessionManagement :
20- method : " cookie"
21- parameters : {}
22- technology :
23- exclude : []
2413 parameters :
2514 failOnError : true
2615 failOnWarning : false
@@ -44,10 +33,12 @@ jobs:
4433 value : 100
4534 type : " stats"
4635 name : " At least 100 URLs found"
36+ - parameters : {}
37+ name : " passiveScan-wait-pre-ajax"
38+ type : " passiveScan-wait"
4739- parameters :
48- maxDuration : 60
49- maxCrawlDepth : 10
50- numberOfBrowsers : 1
40+ maxDuration : 3
41+ runOnlyIfModern : true
5142 name : " spiderAjax"
5243 type : " spiderAjax"
5344 tests :
@@ -59,12 +50,11 @@ jobs:
5950 type : " stats"
6051 name : " At least 100 URLs found"
6152- parameters : {}
62- name : " passiveScan-wait"
53+ name : " passiveScan-wait-pre-report "
6354 type : " passiveScan-wait"
6455- parameters :
65- template : " risk-confidence-html "
56+ template : " modern "
6657 reportTitle : " ZAP Scanning Report"
6758 reportDescription : " "
6859 name : " report"
6960 type : " report"
70-
Original file line number Diff line number Diff line change 1+ ---
2+ # A simple plan that performs a full scan against a URL in the ZAP_TARGET env var.
3+ # It uses the standard spider but only runs the AJAX spider if the app appears to be modern.
4+ # The 2 spider tests will fail as they do not find at least 100 URLs,
5+ # but they do not fail the whole plan as they just report at INFO level.
6+ env :
7+ contexts :
8+ - name : " Example"
9+ urls :
10+ - " ${ZAP_TARGET}"
11+ includePaths : []
12+ excludePaths : []
13+ parameters :
14+ failOnError : true
15+ failOnWarning : false
16+ progressToStdout : true
17+ vars : {}
18+ jobs :
19+ - parameters :
20+ scanOnlyInScope : true
21+ enableTags : false
22+ rules : []
23+ name : " passiveScan-config"
24+ type : " passiveScan-config"
25+ - parameters : {}
26+ name : " spider"
27+ type : " spider"
28+ tests :
29+ - onFail : " INFO"
30+ statistic : " automation.spider.urls.added"
31+ site : " "
32+ operator : " >="
33+ value : 100
34+ type : " stats"
35+ name : " At least 100 URLs found"
36+ - parameters : {}
37+ name : " passiveScan-wait-pre-ajax"
38+ type : " passiveScan-wait"
39+ - parameters :
40+ maxDuration : 3
41+ runOnlyIfModern : true
42+ name : " spiderAjax"
43+ type : " spiderAjax"
44+ tests :
45+ - onFail : " INFO"
46+ statistic : " spiderAjax.urls.added"
47+ site : " "
48+ operator : " >="
49+ value : 100
50+ type : " stats"
51+ name : " At least 100 URLs found"
52+ - parameters :
53+ policyDefinition :
54+ defaultStrength : " medium"
55+ defaultThreshold : " medium"
56+ rules : []
57+ name : " activeScan"
58+ type : " activeScan"
59+ - parameters : {}
60+ name : " passiveScan-wait-pre-report"
61+ type : " passiveScan-wait"
62+ - parameters :
63+ template : " modern"
64+ reportTitle : " ZAP Scanning Report"
65+ reportDescription : " "
66+ name : " report"
67+ type : " report"
You can’t perform that action at this time.
0 commit comments