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
3 changes: 1 addition & 2 deletions scanners/amass/templates/amass-scan-type.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
# SPDX-FileCopyrightText: 2021 iteratec GmbH
#
# SPDX-License-Identifier: Apache-2.0

apiVersion: "execution.securecodebox.io/v1"
kind: ScanType
metadata:
name: "amass{{ .Values.scanner.nameAppend | default ""}}"
spec:
extractResults:
# amass saves it's result now in json but in "json lines" format
# http://jsonlines.org/
type: amass-jsonl
location: "/home/securecodebox/amass-results.jsonl"
jobTemplate:
Expand Down
4 changes: 2 additions & 2 deletions scanners/gitleaks/templates/gitleaks-scan-type.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ spec:
image: "{{ .Values.scanner.image.repository }}:{{ .Values.scanner.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.scanner.image.pullPolicy }}
command:
- 'sh'
- '/wrapper.sh'
- "sh"
- "/wrapper.sh"
- "--verbose"
- "--format"
- "json"
Expand Down
14 changes: 7 additions & 7 deletions scanners/kube-hunter/templates/kubehunter-scan-type.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
#
# SPDX-License-Identifier: Apache-2.0

apiVersion: 'execution.securecodebox.io/v1'
apiVersion: "execution.securecodebox.io/v1"
kind: ScanType
metadata:
name: 'kube-hunter{{ .Values.scanner.nameAppend | default ""}}'
name: "kube-hunter{{ .Values.scanner.nameAppend | default ""}}"
spec:
extractResults:
type: kube-hunter-json
location: '/home/securecodebox/kube-hunter-results.json'
location: "/home/securecodebox/kube-hunter-results.json"
jobTemplate:
spec:
{{- if .Values.scanner.ttlSecondsAfterFinished }}
Expand All @@ -27,10 +27,10 @@ spec:
image: "{{ .Values.scanner.image.repository }}:{{ .Values.scanner.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.scanner.image.pullPolicy }}
command:
- 'sh'
- '/wrapper.sh'
- '--report'
- 'json'
- "sh"
- "/wrapper.sh"
- "--report"
- "json"
resources:
{{- toYaml .Values.scanner.resources | nindent 16 }}
securityContext:
Expand Down
2 changes: 1 addition & 1 deletion scanners/kubeaudit/templates/kubeaudit-scan-type.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,5 @@ spec:
{{- toYaml .Values.scanner.extraContainers | nindent 12 }}
{{- end }}
volumes:
{{- toYaml .Values.scanner.extraVolumeMounts | nindent 12 }}
{{- toYaml .Values.scanner.extraVolumes | nindent 12 }}
serviceAccountName: kubeaudit
5 changes: 4 additions & 1 deletion scanners/ncrack/templates/ncrack-scan-type.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ spec:
- name: ncrack
image: "{{ .Values.scanner.image.repository }}:{{ .Values.scanner.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.scanner.image.pullPolicy }}
command: ["ncrack", "-oX", "/home/securecodebox/ncrack-results.xml"]
command:
- "ncrack"
- "-oX"
- "/home/securecodebox/ncrack-results.xml"
resources:
{{- toYaml .Values.scanner.resources | nindent 16 }}
securityContext:
Expand Down
16 changes: 7 additions & 9 deletions scanners/nikto/templates/nikto-scan-type.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
#
# SPDX-License-Identifier: Apache-2.0

apiVersion: 'execution.securecodebox.io/v1'
apiVersion: "execution.securecodebox.io/v1"
kind: ScanType
metadata:
name: 'nikto{{ .Values.scanner.nameAppend | default ""}}'
name: "nikto{{ .Values.scanner.nameAppend | default ""}}"
spec:
extractResults:
type: nikto-json
location: '/home/securecodebox/nikto-results.json'
location: "/home/securecodebox/nikto-results.json"
jobTemplate:
spec:
{{- if .Values.scanner.ttlSecondsAfterFinished }}
Expand All @@ -27,12 +27,10 @@ spec:
image: "{{ .Values.scanner.image.repository }}:{{ .Values.scanner.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.scanner.image.pullPolicy }}
command:
# Nikto Entrypoint Script to avoid problems nikto exiting with a non zero exit code
# This would cause the kubernetes job to fail no matter what
- 'sh'
- '/wrapper.sh'
- '-o'
- '/home/securecodebox/nikto-results.json'
- "sh"
- "/wrapper.sh"
- "-o"
- "/home/securecodebox/nikto-results.json"
resources:
{{- toYaml .Values.scanner.resources | nindent 16 }}
securityContext:
Expand Down
5 changes: 4 additions & 1 deletion scanners/nmap/templates/nmap-scan-type.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ spec:
- name: nmap
image: "{{ .Values.scanner.image.repository }}:{{ .Values.scanner.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.scanner.image.pullPolicy }}
command: ["nmap", "-oX", "/home/securecodebox/nmap-results.xml"]
command:
- "nmap"
- "-oX"
- "/home/securecodebox/nmap-results.xml"
resources:
{{- toYaml .Values.scanner.resources | nindent 16 }}
securityContext:
Expand Down
17 changes: 8 additions & 9 deletions scanners/nuclei/templates/nuclei-scan-type.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
#
# SPDX-License-Identifier: Apache-2.0

apiVersion: 'execution.securecodebox.io/v1'
apiVersion: "execution.securecodebox.io/v1"
kind: ScanType
metadata:
name: 'nuclei{{ .Values.scanner.nameAppend | default ""}}'
name: "nuclei{{ .Values.scanner.nameAppend | default ""}}"
spec:
extractResults:
type: nuclei-json
location: '/home/securecodebox/nuclei-results.jsonl'
location: "/home/securecodebox/nuclei-results.jsonl"
jobTemplate:
spec:
{{- if .Values.scanner.ttlSecondsAfterFinished }}
Expand All @@ -27,12 +27,11 @@ spec:
image: "{{ .Values.scanner.image.repository }}:{{ .Values.scanner.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.scanner.image.pullPolicy }}
command:
- 'nuclei'
- '-no-update-templates'
- '-json'
# nuclei writes json lines: https://jsonlines.org/
- '-output'
- '/home/securecodebox/nuclei-results.jsonl'
- "nuclei"
- "-no-update-templates"
- "-json"
- "-output"
- "/home/securecodebox/nuclei-results.jsonl"
resources:
{{- toYaml .Values.scanner.resources | nindent 16 }}
securityContext:
Expand Down
4 changes: 2 additions & 2 deletions scanners/screenshooter/templates/screenshooter-scan-type.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ spec:
image: "{{ .Values.scanner.image.repository }}:{{ .Values.scanner.image.tag | default .Chart.Version }}"
imagePullPolicy: {{ .Values.scanner.image.pullPolicy }}
command:
- 'sh'
- '/wrapper.sh'
- "sh"
- "/wrapper.sh"
- "-screenshot"
- "/home/securecodebox/screenshot.png"
resources:
Expand Down
12 changes: 6 additions & 6 deletions scanners/sslyze/templates/sslyze-scan-type.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
#
# SPDX-License-Identifier: Apache-2.0

apiVersion: 'execution.securecodebox.io/v1'
apiVersion: "execution.securecodebox.io/v1"
kind: ScanType
metadata:
name: 'sslyze{{ .Values.scanner.nameAppend | default ""}}'
name: "sslyze{{ .Values.scanner.nameAppend | default ""}}"
spec:
extractResults:
type: sslyze-json
location: '/home/securecodebox/sslyze-results.json'
location: "/home/securecodebox/sslyze-results.json"
jobTemplate:
spec:
{{- if .Values.scanner.ttlSecondsAfterFinished }}
Expand All @@ -27,9 +27,9 @@ spec:
image: "{{ .Values.scanner.image.repository }}:{{ .Values.scanner.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.scanner.image.pullPolicy }}
command:
- 'sslyze'
- '--json_out'
- '/home/securecodebox/sslyze-results.json'
- "sslyze"
- "--json_out"
- "/home/securecodebox/sslyze-results.json"
resources:
{{- toYaml .Values.scanner.resources | nindent 16 }}
securityContext:
Expand Down
4 changes: 3 additions & 1 deletion scanners/test-scan/templates/test-scan-scan-type.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,10 @@ spec:
containers:
- name: test-scan
image: "{{ .Values.scanner.image.repository }}:{{ .Values.scanner.image.tag | default .Chart.Version }}"
command: ["touch", "/home/securecodebox/hello-world.txt"]
imagePullPolicy: {{ .Values.scanner.image.pullPolicy }}
command:
- "touch"
- "/home/securecodebox/hello-world.txt"
resources:
{{- toYaml .Values.scanner.resources | nindent 16 }}
securityContext:
Expand Down
2 changes: 2 additions & 0 deletions scanners/typo3scan/templates/typo3scan-scan-type.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# SPDX-FileCopyrightText: 2021 iteratec GmbH
#
# SPDX-License-Identifier: Apache-2.0

apiVersion: "execution.securecodebox.io/v1"
kind: ScanType
metadata:
Expand All @@ -24,6 +25,7 @@ spec:
containers:
- name: typo3scan
image: "{{ .Values.scanner.image.repository }}:{{ .Values.scanner.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.scanner.image.pullPolicy }}
command:
- "python3"
- "/home/typo3scan/typo3scan.py"
Expand Down
4 changes: 3 additions & 1 deletion scanners/whatweb/templates/whatweb-scan-type.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ spec:
- name: whatweb
image: "{{ .Values.scanner.image.repository }}:{{ .Values.scanner.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.scanner.image.pullPolicy }}
command: ["whatweb", "--log-json=/home/securecodebox/whatweb-results.json"]
command:
- "whatweb"
- "--log-json=/home/securecodebox/whatweb-results.json"
resources:
{{- toYaml .Values.scanner.resources | nindent 16 }}
securityContext:
Expand Down