Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions scanners/nikto/cascading-rules/http.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,8 @@ spec:
anyOf:
- category: "Open Port"
attributes:
service: http
state: open
- category: "Open Port"
attributes:
service: https
# Also matches https, but also alternative HTTP ports
service: "http*"
state: open
scanSpec:
scanType: "nikto"
Expand Down
4 changes: 2 additions & 2 deletions scanners/screenshooter/cascading-rules/http.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ spec:
state: open
- category: "Open Port"
attributes:
service: https
service: "http-*"
state: open
scanSpec:
scanType: "screenshooter"
parameters: ["{{attributes.service}}://{{$.hostOrIP}}:{{attributes.port}}"]
parameters: ["http://{{$.hostOrIP}}:{{attributes.port}}"]
21 changes: 21 additions & 0 deletions scanners/screenshooter/cascading-rules/https.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# SPDX-FileCopyrightText: 2021 iteratec GmbH
#
# SPDX-License-Identifier: Apache-2.0

apiVersion: "cascading.securecodebox.io/v1"
kind: CascadingRule
metadata:
name: "screenshooter-https"
labels:
securecodebox.io/invasive: non-invasive
securecodebox.io/intensive: light
spec:
matches:
anyOf:
- category: "Open Port"
attributes:
service: "https*"
state: open
scanSpec:
scanType: "screenshooter"
parameters: ["https://{{$.hostOrIP}}:{{attributes.port}}"]
4 changes: 2 additions & 2 deletions scanners/zap-advanced/cascading-rules/http.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ spec:
state: open
- category: "Open Port"
attributes:
service: https
service: "http-*"
state: open
scanSpec:
scanType: "zap-advanced-scan"
parameters: ["-t", "{{attributes.service}}://{{$.hostOrIP}}"]
parameters: ["-t", "http://{{$.hostOrIP}}:{{attributes.port}}"]
21 changes: 21 additions & 0 deletions scanners/zap-advanced/cascading-rules/https.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# SPDX-FileCopyrightText: 2021 iteratec GmbH
#
# SPDX-License-Identifier: Apache-2.0

apiVersion: "cascading.securecodebox.io/v1"
kind: CascadingRule
metadata:
name: "zap-advanced-https"
labels:
securecodebox.io/invasive: non-invasive
securecodebox.io/intensive: medium
spec:
matches:
anyOf:
- category: "Open Port"
attributes:
service: "https*"
state: open
scanSpec:
scanType: "zap-advanced-scan"
parameters: ["-t", "https://{{$.hostOrIP}}:{{attributes.port}}"]
4 changes: 2 additions & 2 deletions scanners/zap/cascading-rules/http.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ spec:
state: open
- category: "Open Port"
attributes:
service: https
service: http-*
state: open
scanSpec:
scanType: "zap-baseline-scan"
parameters: ["-t", "{{attributes.service}}://{{$.hostOrIP}}"]
parameters: ["-t", "http://{{$.hostOrIP}}:{{attributes.port}}"]
21 changes: 21 additions & 0 deletions scanners/zap/cascading-rules/https.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# SPDX-FileCopyrightText: 2021 iteratec GmbH
#
# SPDX-License-Identifier: Apache-2.0

apiVersion: "cascading.securecodebox.io/v1"
kind: CascadingRule
metadata:
name: "zap-https"
labels:
securecodebox.io/invasive: non-invasive
securecodebox.io/intensive: medium
spec:
matches:
anyOf:
- category: "Open Port"
attributes:
service: "https*"
state: open
scanSpec:
scanType: "zap-baseline-scan"
parameters: ["-t", "https://{{$.hostOrIP}}:{{attributes.port}}"]
2 changes: 1 addition & 1 deletion scanners/zap/integration-tests/zap.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ test(
expect(categories).toMatchInlineSnapshot(`
Object {
"Content Security Policy (CSP) Header Not Set": 1,
"Missing Anti-clickjacking Header": 1,
"Server Leaks Version Information via \\"Server\\" HTTP Response Header Field": 1,
"X-Content-Type-Options Header Missing": 1,
"X-Frame-Options Header Not Set": 1,
}
`);
expect(severities).toMatchInlineSnapshot(`
Expand Down