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
33 changes: 33 additions & 0 deletions scanners/nuclei/cascading-rules/subdomain_http.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# SPDX-FileCopyrightText: 2021 iteratec GmbH
#
# SPDX-License-Identifier: Apache-2.0

apiVersion: "cascading.securecodebox.io/v1"
kind: CascadingRule
metadata:
name: "nuclei-subdomain-scan-light-http"
labels:
securecodebox.io/invasive: non-invasive
securecodebox.io/intensive: light
spec:
matches:
anyOf:
- category: "Open Port"
attributes:
port: 80
state: open
- category: "Open Port"
attributes:
service: "http"
state: open
- category: "Open Port"
attributes:
service: "http-*"
state: open

scanSpec:
scanType: "nuclei"
parameters:
# Target domain name of the finding and start a nuclei scan
- "-u"
- "http://{{$.hostOrIP}}:{{attributes.port}}"
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,28 @@
apiVersion: "cascading.securecodebox.io/v1"
kind: CascadingRule
metadata:
name: "nuclei-subdomain-scan-light"
name: "nuclei-subdomain-scan-light-https"
labels:
securecodebox.io/invasive: non-invasive
securecodebox.io/intensive: light
spec:
matches:
anyOf:
- category: "Subdomain"
osi_layer: "NETWORK"
- category: "Open Port"
attributes:
port: 443
state: open
- category: "Open Port"
attributes:
service: "https"
state: open
- category: "Open Port"
attributes:
service: "https*"
state: open
scanSpec:
scanType: "nuclei"
parameters:
# Target domain name of the finding and start a nuclei scan
- "-u"
- "{{location}}"
- "https://{{$.hostOrIP}}:{{attributes.port}}"