diff --git a/addOns/pscan/src/main/java/org/zaproxy/addon/pscan/internal/ui/OptionsPassiveScan.java b/addOns/pscan/src/main/java/org/zaproxy/addon/pscan/internal/ui/OptionsPassiveScan.java index d9cb7b45bec..17348d6a55a 100644 --- a/addOns/pscan/src/main/java/org/zaproxy/addon/pscan/internal/ui/OptionsPassiveScan.java +++ b/addOns/pscan/src/main/java/org/zaproxy/addon/pscan/internal/ui/OptionsPassiveScan.java @@ -87,7 +87,7 @@ public void saveParam(Object obj) throws Exception { @Override public String getHelpIndex() { - return "ui.dialogs.options.pscan"; + return "addon.pscan.options.tags"; } private static class ScannersMultipleOptionsPanel diff --git a/addOns/pscan/src/main/java/org/zaproxy/addon/pscan/internal/ui/PassiveScannerOptionsPanel.java b/addOns/pscan/src/main/java/org/zaproxy/addon/pscan/internal/ui/PassiveScannerOptionsPanel.java index 107888eff60..9bfa3c5c165 100644 --- a/addOns/pscan/src/main/java/org/zaproxy/addon/pscan/internal/ui/PassiveScannerOptionsPanel.java +++ b/addOns/pscan/src/main/java/org/zaproxy/addon/pscan/internal/ui/PassiveScannerOptionsPanel.java @@ -114,6 +114,6 @@ public void saveParam(Object obj) throws Exception { @Override public String getHelpIndex() { - return "ui.dialogs.options.pscan.main"; + return "addon.pscan.options.scanner"; } } diff --git a/addOns/pscan/src/main/java/org/zaproxy/addon/pscan/internal/ui/PolicyPassiveScanPanel.java b/addOns/pscan/src/main/java/org/zaproxy/addon/pscan/internal/ui/PolicyPassiveScanPanel.java index 753f4d5ce5a..dcfb89e7bf2 100644 --- a/addOns/pscan/src/main/java/org/zaproxy/addon/pscan/internal/ui/PolicyPassiveScanPanel.java +++ b/addOns/pscan/src/main/java/org/zaproxy/addon/pscan/internal/ui/PolicyPassiveScanPanel.java @@ -247,6 +247,6 @@ public void setPassiveScanTableModel(PolicyPassiveScanTableModel categoryTableMo @Override public String getHelpIndex() { - return "ui.dialogs.options.pscanrules"; + return "addon.pscan.options.rules"; } } diff --git a/addOns/pscan/src/main/javahelp/org/zaproxy/addon/pscan/common/map.jhm b/addOns/pscan/src/main/javahelp/org/zaproxy/addon/pscan/common/map.jhm index c49382c778d..25436824b28 100644 --- a/addOns/pscan/src/main/javahelp/org/zaproxy/addon/pscan/common/map.jhm +++ b/addOns/pscan/src/main/javahelp/org/zaproxy/addon/pscan/common/map.jhm @@ -6,7 +6,12 @@ diff --git a/addOns/pscan/src/main/javahelp/org/zaproxy/addon/pscan/help/contents/api.html b/addOns/pscan/src/main/javahelp/org/zaproxy/addon/pscan/help/contents/api.html new file mode 100644 index 00000000000..e538a0b2da4 --- /dev/null +++ b/addOns/pscan/src/main/javahelp/org/zaproxy/addon/pscan/help/contents/api.html @@ -0,0 +1,86 @@ + + +
+ ++ | Passive Scanner | +the introduction to Passive Scanner add-on | +
+ | Passive Scanner | +Allows to configure the passive scanner. | +
+ | Passive Scan Rules | +Allows to configure the passive scan rules. | +
+ | Passive Scan Tags | +Allows to configure the tags that are added by the passive scanner. | +
+ | Passive Scanner | +the introduction to Passive Scanner add-on | +
+This screen allows you to configure the passive scan rules.
+
+ | Passive Scanner | +the introduction to Passive Scanner add-on | +
+ This screen allows you to configure the passive scanner. + +
Field | +Details | +Default | +Config File | +
---|---|---|---|
Only scan messages in scope | +Sets whether or not the passive scan should be performed only on messages that + are in scope. + | +Deselected | +Key: pscans.scanOnlyInScope Values: true or false |
+
Include traffic from the Fuzzer when passive scanning | +Sets whether or not the passive scanning should be performed on messages generated by the Fuzzer. | +Deselected | +Key: pscans.scanFuzzerMessages Values: true or false |
+
Max alerts any rule can raise | +Sets the maximum number of alerts a passive scan rule should raise. This may be slightly exceeded due to threading. + This setting is typically only useful for automated scanning. Scan rules that exceed this value will be disabled + and will need to be manually enabled if a new session is started. + | +0 (unset) | +Key: pscans.maxAlertsPerRule Values: 0 : unset or the maximum number of alerts |
+
Max body size in bytes to scan | +Sets the maximum size request or response body size in bytes that the passive scanner will scan.
+ This can be used if passive scan rules take too long scanning very large requests or responses.
+ If set the number of ignored requests and responses are recorded in the stats using the keys
+ stats.pscan.reqBodyTooBig and stats.pscan.respBodyTooBig respectively.
+ | 0 (unset) | +Key: pscans.maxBodySizeInBytes Values: 0 : unset or the maximum body size in bytes |
+
+
Clear Queue | +Empties the passive scan queue without passively scanning the messages. + Currently running rules will run to completion but new rules will only be run when new messages are added to the queue. + | + | + + |
+ | Passive Scanner | +the introduction to Passive Scanner add-on | +
+This screen allows you to configure the tags that are added by the passive scanner. +
+You can add, modify and remove the tags via the appropriate buttons. + ++For example, a tag could be defined as follows: +
Field | Value | Note | +
---|---|---|
Name: | Test | + |
Tag: | $1-SOMETAG | + |
Response Body Regex: | (\d{3}) | Find strings of 3 numbers, using a capturing group (round brackets). | +
+ | Passive Scanner | +the introduction to Passive Scanner add-on | +
+ZAP by default passively scans all messages (e.g. HTTP, WebSocket) sent to the web application being tested.
+Passive scanning does not change the messages in any way and is therefore safe to use.
+Scanning is performed in the background to ensure that it does not slow down the exploration of an application.
+
+The (main) behaviour of the passive scanner can be configured using the Options Passive Scanner Screen. +
+
+Passive scanning can also be used for automatically adding tags
+and raising alerts for potential issues.
+A set of rules for automatic tagging are provided by default. These can be changed, deleted or
+added to via the Options Passive Scan Tags screen.
+
+The alerts raised by passive scan rules can be configured using the Options Passive Scan Rules screen. +
+ ++ | ZAP In Ten: Passive Scanning (10:27) |
+ | ZAP In Ten: Passive Scan Scripts (11:53) |
+ | Deep Dive: Passive Scanning (27:35) |
+ | Passive Scanner API | +for more details about the Passive Scanner API | +
+ | Options | +for the provided options screens | +