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
1 change: 1 addition & 0 deletions scanners/amass/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ Special command line options:
| scanner.extraVolumes | list | `[{"configMap":{"name":"amass-config"},"name":"amass-config"}]` | Optional Volumes mapped into each scanJob (see: https://kubernetes.io/docs/concepts/storage/volumes/) |
| scanner.image.repository | string | `"caffix/amass"` | Container Image to run the scan |
| scanner.image.tag | string | `nil` | defaults to the charts appVersion |
| scanner.nameAppend | string | `nil` | append a string to the default scantype name. |
| scanner.resources | object | `{}` | CPU/memory resource requests/limits (see: https://kubernetes.io/docs/tasks/configure-pod-container/assign-memory-resource/, https://kubernetes.io/docs/tasks/configure-pod-container/assign-cpu-resource/) |
| scanner.securityContext | object | `{}` | Optional securityContext set on scanner container (see: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/) |
| scanner.ttlSecondsAfterFinished | string | `nil` | seconds after which the kubernetes job for the scanner will be deleted. Requires the Kubernetes TTLAfterFinished controller: https://kubernetes.io/docs/concepts/workloads/controllers/ttlafterfinished/ |
Expand Down
2 changes: 1 addition & 1 deletion scanners/amass/templates/amass-scan-type.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
apiVersion: "execution.securecodebox.io/v1"
kind: ScanType
metadata:
name: "amass"
name: "amass{{ .Values.scanner.nameAppend | default ""}}"
spec:
extractResults:
# amass saves it's result now in json but in "json lines" format
Expand Down
4 changes: 4 additions & 0 deletions scanners/amass/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ scanner:
repository: caffix/amass
# scanner.image.tag -- defaults to the charts appVersion
tag: null

# scanner.nameAppend -- append a string to the default scantype name.
nameAppend: null

# scanner.ttlSecondsAfterFinished -- seconds after which the kubernetes job for the scanner will be deleted. Requires the Kubernetes TTLAfterFinished controller: https://kubernetes.io/docs/concepts/workloads/controllers/ttlafterfinished/
ttlSecondsAfterFinished: null
# scanner.backoffLimit -- There are situations where you want to fail a scan Job after some amount of retries due to a logical error in configuration etc. To do so, set backoffLimit to specify the number of retries before considering a scan Job as failed. (see: https://kubernetes.io/docs/concepts/workloads/controllers/job/#pod-backoff-failure-policy)
Expand Down
1 change: 1 addition & 0 deletions scanners/angularjs-csti-scanner/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ options.scope.request_methods = [
| scanner.extraVolumes | list | `[]` | Optional Volumes mapped into each scanJob (see: https://kubernetes.io/docs/concepts/storage/volumes/) |
| scanner.image.repository | string | `"docker.io/securecodebox/scanner-angularjs-csti-scanner"` | Container Image to run the scan |
| scanner.image.tag | string | `nil` | defaults to the charts version |
| scanner.nameAppend | string | `nil` | append a string to the default scantype name. |
| scanner.resources | object | `{}` | CPU/memory resource requests/limits (see: https://kubernetes.io/docs/tasks/configure-pod-container/assign-memory-resource/, https://kubernetes.io/docs/tasks/configure-pod-container/assign-cpu-resource/) |
| scanner.securityContext | object | `{}` | Optional securityContext set on scanner container (see: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/) |
| scanner.ttlSecondsAfterFinished | string | `nil` | seconds after which the kubernetes job for the scanner will be deleted. Requires the Kubernetes TTLAfterFinished controller: https://kubernetes.io/docs/concepts/workloads/controllers/ttlafterfinished/ |
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
apiVersion: "execution.securecodebox.io/v1"
kind: ScanType
metadata:
name: "angularjs-csti-scanner"
name: "angularjs-csti-scanner{{ .Values.scanner.nameAppend | default ""}}"
spec:
extractResults:
type: acstis-log
Expand Down
3 changes: 3 additions & 0 deletions scanners/angularjs-csti-scanner/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ scanner:
# scanner.image.tag -- defaults to the charts version
tag: null

# scanner.nameAppend -- append a string to the default scantype name.
nameAppend: null

# scanner.ttlSecondsAfterFinished -- seconds after which the kubernetes job for the scanner will be deleted. Requires the Kubernetes TTLAfterFinished controller: https://kubernetes.io/docs/concepts/workloads/controllers/ttlafterfinished/
ttlSecondsAfterFinished: null

Expand Down
1 change: 1 addition & 0 deletions scanners/git-repo-scanner/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ on the Gitlab server are going to be discovered.
| scanner.extraVolumes | list | `[]` | Optional Volumes mapped into each scanJob (see: https://kubernetes.io/docs/concepts/storage/volumes/) |
| scanner.image.repository | string | `"docker.io/securecodebox/scanner-git-repo-scanner"` | Container Image to run the scan |
| scanner.image.tag | string | `nil` | defaults to the charts version |
| scanner.nameAppend | string | `nil` | append a string to the default scantype name. |
| scanner.resources | object | `{}` | CPU/memory resource requests/limits (see: https://kubernetes.io/docs/tasks/configure-pod-container/assign-memory-resource/, https://kubernetes.io/docs/tasks/configure-pod-container/assign-cpu-resource/) |
| scanner.securityContext | object | `{}` | Optional securityContext set on scanner container (see: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/) |
| scanner.ttlSecondsAfterFinished | string | `nil` | seconds after which the kubernetes job for the scanner will be deleted. Requires the Kubernetes TTLAfterFinished controller: https://kubernetes.io/docs/concepts/workloads/controllers/ttlafterfinished/ |
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
apiVersion: "execution.securecodebox.io/v1"
kind: ScanType
metadata:
name: "git-repo-scanner"
name: "git-repo-scanner{{ .Values.scanner.nameAppend | default ""}}"
spec:
extractResults:
type: git-repo-scanner-json
Expand Down
3 changes: 3 additions & 0 deletions scanners/git-repo-scanner/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ scanner:
# scanner.image.tag -- defaults to the charts version
tag: null

# scanner.nameAppend -- append a string to the default scantype name.
nameAppend: null

# scanner.ttlSecondsAfterFinished -- seconds after which the kubernetes job for the scanner will be deleted. Requires the Kubernetes TTLAfterFinished controller: https://kubernetes.io/docs/concepts/workloads/controllers/ttlafterfinished/
ttlSecondsAfterFinished: null
# scanner.backoffLimit -- There are situations where you want to fail a scan Job after some amount of retries due to a logical error in configuration etc. To do so, set backoffLimit to specify the number of retries before considering a scan Job as failed. (see: https://kubernetes.io/docs/concepts/workloads/controllers/job/#pod-backoff-failure-policy)
Expand Down
1 change: 1 addition & 0 deletions scanners/gitleaks/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ For more information on how to use cascades take a look at
| scanner.extraVolumes | list | `[{"configMap":{"name":"gitleaks-config"},"name":"gitleaks-config"}]` | Optional Volumes mapped into each scanJob (see: https://kubernetes.io/docs/concepts/storage/volumes/) |
| scanner.image.repository | string | `"docker.io/securecodebox/scanner-gitleaks"` | Container Image to run the scan |
| scanner.image.tag | string | `nil` | defaults to the app version |
| scanner.nameAppend | string | `nil` | append a string to the default scantype name. |
| scanner.resources | object | `{}` | CPU/memory resource requests/limits (see: https://kubernetes.io/docs/tasks/configure-pod-container/assign-memory-resource/, https://kubernetes.io/docs/tasks/configure-pod-container/assign-cpu-resource/) |
| scanner.securityContext | object | `{}` | Optional securityContext set on scanner container (see: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/) |
| scanner.ttlSecondsAfterFinished | string | `nil` | seconds after which the kubernetes job for the scanner will be deleted. Requires the Kubernetes TTLAfterFinished controller: https://kubernetes.io/docs/concepts/workloads/controllers/ttlafterfinished/ |
2 changes: 1 addition & 1 deletion scanners/gitleaks/templates/gitleaks-scan-type.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
apiVersion: "execution.securecodebox.io/v1"
kind: ScanType
metadata:
name: "gitleaks"
name: "gitleaks{{ .Values.scanner.nameAppend | default ""}}"
spec:
extractResults:
type: gitleaks-json
Expand Down
3 changes: 3 additions & 0 deletions scanners/gitleaks/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ scanner:
# scanner.image.tag -- defaults to the app version
tag: null

# scanner.nameAppend -- append a string to the default scantype name.
nameAppend: null

# scanner.ttlSecondsAfterFinished -- seconds after which the kubernetes job for the scanner will be deleted. Requires the Kubernetes TTLAfterFinished controller: https://kubernetes.io/docs/concepts/workloads/controllers/ttlafterfinished/
ttlSecondsAfterFinished: null
# scanner.backoffLimit -- There are situations where you want to fail a scan Job after some amount of retries due to a logical error in configuration etc. To do so, set backoffLimit to specify the number of retries before considering a scan Job as failed. (see: https://kubernetes.io/docs/concepts/workloads/controllers/job/#pod-backoff-failure-policy)
Expand Down
1 change: 1 addition & 0 deletions scanners/kube-hunter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ The following security scan configuration example are based on the [kube-hunter
| scanner.extraVolumes | list | `[]` | Optional Volumes mapped into each scanJob (see: https://kubernetes.io/docs/concepts/storage/volumes/) |
| scanner.image.repository | string | `"docker.io/securecodebox/scanner-kube-hunter"` | Container Image to run the scan |
| scanner.image.tag | string | `nil` | defaults to the charts version |
| scanner.nameAppend | string | `nil` | append a string to the default scantype name. |
| scanner.resources | object | `{}` | CPU/memory resource requests/limits (see: https://kubernetes.io/docs/tasks/configure-pod-container/assign-memory-resource/, https://kubernetes.io/docs/tasks/configure-pod-container/assign-cpu-resource/) |
| scanner.securityContext | object | `{}` | Optional securityContext set on scanner container (see: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/) |
| scanner.ttlSecondsAfterFinished | string | `nil` | seconds after which the kubernetes job for the scanner will be deleted. Requires the Kubernetes TTLAfterFinished controller: https://kubernetes.io/docs/concepts/workloads/controllers/ttlafterfinished/ |
Expand Down
2 changes: 1 addition & 1 deletion scanners/kube-hunter/templates/kubehunter-scan-type.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
apiVersion: 'execution.securecodebox.io/v1'
kind: ScanType
metadata:
name: 'kube-hunter'
name: 'kube-hunter{{ .Values.scanner.nameAppend | default ""}}'
spec:
extractResults:
type: kube-hunter-json
Expand Down
3 changes: 3 additions & 0 deletions scanners/kube-hunter/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ scanner:
# scanner.image.tag -- defaults to the charts version
tag: null

# scanner.nameAppend -- append a string to the default scantype name.
nameAppend: null

# scanner.ttlSecondsAfterFinished -- seconds after which the kubernetes job for the scanner will be deleted. Requires the Kubernetes TTLAfterFinished controller: https://kubernetes.io/docs/concepts/workloads/controllers/ttlafterfinished/
ttlSecondsAfterFinished: null
# scanner.backoffLimit -- There are situations where you want to fail a scan Job after some amount of retries due to a logical error in configuration etc. To do so, set backoffLimit to specify the number of retries before considering a scan Job as failed. (see: https://kubernetes.io/docs/concepts/workloads/controllers/job/#pod-backoff-failure-policy)
Expand Down
1 change: 1 addition & 0 deletions scanners/kubeaudit/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ helm upgrade --install kubeaudit secureCodeBox/kubeaudit
| scanner.extraContainers | list | `[]` | Optional additional Containers started with each scanJob (see: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/) |
| scanner.extraVolumeMounts | list | `[]` | Optional VolumeMounts mapped into each scanJob (see: https://kubernetes.io/docs/concepts/storage/volumes/) |
| scanner.extraVolumes | list | `[]` | Optional Volumes mapped into each scanJob (see: https://kubernetes.io/docs/concepts/storage/volumes/) |
| scanner.nameAppend | string | `nil` | append a string to the default scantype name. |
| scanner.resources | object | `{}` | CPU/memory resource requests/limits (see: https://kubernetes.io/docs/tasks/configure-pod-container/assign-memory-resource/, https://kubernetes.io/docs/tasks/configure-pod-container/assign-cpu-resource/) |
| scanner.securityContext | object | `{"allowPrivilegeEscalation":false,"capabilities":{"drop":["all"]},"privileged":false,"readOnlyRootFilesystem":true,"runAsNonRoot":true}` | Optional securityContext set on scanner container (see: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/) |
| scanner.securityContext.allowPrivilegeEscalation | bool | `false` | Ensure that users privileges cannot be escalated |
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 @@ -5,7 +5,7 @@
apiVersion: "execution.securecodebox.io/v1"
kind: ScanType
metadata:
name: "kubeaudit"
name: "kubeaudit{{ .Values.scanner.nameAppend | default ""}}"
spec:
extractResults:
type: kubeaudit-jsonl
Expand Down
3 changes: 3 additions & 0 deletions scanners/kubeaudit/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ parser:
ttlSecondsAfterFinished: null

scanner:
# scanner.nameAppend -- append a string to the default scantype name.
nameAppend: null

# scanner.ttlSecondsAfterFinished -- seconds after which the kubernetes job for the scanner will be deleted. Requires the Kubernetes TTLAfterFinished controller: https://kubernetes.io/docs/concepts/workloads/controllers/ttlafterfinished/
ttlSecondsAfterFinished: null
# scanner.backoffLimit -- There are situations where you want to fail a scan Job after some amount of retries due to a logical error in configuration etc. To do so, set backoffLimit to specify the number of retries before considering a scan Job as failed. (see: https://kubernetes.io/docs/concepts/workloads/controllers/job/#pod-backoff-failure-policy)
Expand Down
1 change: 1 addition & 0 deletions scanners/ncrack/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ base64 encryptedPassword -d | openssl rsautl -decrypt -inkey key.pem -out decryp
| scanner.extraVolumes | list | `[]` | Optional Volumes mapped into each scanJob (see: https://kubernetes.io/docs/concepts/storage/volumes/) |
| scanner.image.repository | string | `"docker.io/securecodebox/scanner-ncrack"` | Container Image to run the scan |
| scanner.image.tag | string | `nil` | defaults to the charts appVersion |
| scanner.nameAppend | string | `nil` | append a string to the default scantype name. |
| scanner.resources | object | `{}` | CPU/memory resource requests/limits (see: https://kubernetes.io/docs/tasks/configure-pod-container/assign-memory-resource/, https://kubernetes.io/docs/tasks/configure-pod-container/assign-cpu-resource/) |
| scanner.securityContext | object | `{}` | Optional securityContext set on scanner container (see: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/) |
| scanner.ttlSecondsAfterFinished | string | `nil` | seconds after which the kubernetes job for the scanner will be deleted. Requires the Kubernetes TTLAfterFinished controller: https://kubernetes.io/docs/concepts/workloads/controllers/ttlafterfinished/ |
Expand Down
2 changes: 1 addition & 1 deletion scanners/ncrack/templates/ncrack-scan-type.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
apiVersion: "execution.securecodebox.io/v1"
kind: ScanType
metadata:
name: "ncrack"
name: "ncrack{{ .Values.scanner.nameAppend | default ""}}"
spec:
extractResults:
type: ncrack-xml
Expand Down
3 changes: 3 additions & 0 deletions scanners/ncrack/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ scanner:
# scanner.image.tag -- defaults to the charts appVersion
tag: null

# scanner.nameAppend -- append a string to the default scantype name.
nameAppend: null

# scanner.ttlSecondsAfterFinished -- seconds after which the kubernetes job for the scanner will be deleted. Requires the Kubernetes TTLAfterFinished controller: https://kubernetes.io/docs/concepts/workloads/controllers/ttlafterfinished/
ttlSecondsAfterFinished: null
# scanner.backoffLimit -- There are situations where you want to fail a scan Job after some amount of retries due to a logical error in configuration etc. To do so, set backoffLimit to specify the number of retries before considering a scan Job as failed. (see: https://kubernetes.io/docs/concepts/workloads/controllers/job/#pod-backoff-failure-policy)
Expand Down
1 change: 1 addition & 0 deletions scanners/nikto/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ Nikto also has a comprehensive list of [command line options documented](https:/
| scanner.extraVolumes | list | `[]` | Optional Volumes mapped into each scanJob (see: https://kubernetes.io/docs/concepts/storage/volumes/) |
| scanner.image.repository | string | `"docker.io/securecodebox/scanner-nikto"` | Container Image to run the scan |
| scanner.image.tag | string | `nil` | defaults to the charts appVersion |
| scanner.nameAppend | string | `nil` | append a string to the default scantype name. |
| scanner.resources | object | `{}` | CPU/memory resource requests/limits (see: https://kubernetes.io/docs/tasks/configure-pod-container/assign-memory-resource/, https://kubernetes.io/docs/tasks/configure-pod-container/assign-cpu-resource/) |
| scanner.securityContext | object | `{}` | Optional securityContext set on scanner container (see: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/) |
| scanner.ttlSecondsAfterFinished | string | `nil` | seconds after which the kubernetes job for the scanner will be deleted. Requires the Kubernetes TTLAfterFinished controller: https://kubernetes.io/docs/concepts/workloads/controllers/ttlafterfinished/ |
Expand Down
2 changes: 1 addition & 1 deletion scanners/nikto/templates/nikto-scan-type.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
apiVersion: 'execution.securecodebox.io/v1'
kind: ScanType
metadata:
name: 'nikto'
name: 'nikto{{ .Values.scanner.nameAppend | default ""}}'
spec:
extractResults:
type: nikto-json
Expand Down
3 changes: 3 additions & 0 deletions scanners/nikto/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ scanner:
# scanner.image.tag -- defaults to the charts appVersion
tag: null

# scanner.nameAppend -- append a string to the default scantype name.
nameAppend: null

# scanner.ttlSecondsAfterFinished -- seconds after which the kubernetes job for the scanner will be deleted. Requires the Kubernetes TTLAfterFinished controller: https://kubernetes.io/docs/concepts/workloads/controllers/ttlafterfinished/
ttlSecondsAfterFinished: null
# scanner.backoffLimit -- There are situations where you want to fail a scan Job after some amount of retries due to a logical error in configuration etc. To do so, set backoffLimit to specify the number of retries before considering a scan Job as failed. (see: https://kubernetes.io/docs/concepts/workloads/controllers/job/#pod-backoff-failure-policy)
Expand Down
2 changes: 2 additions & 0 deletions scanners/nmap/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ You can deploy the ScanType with the config like this:
```bash
cat <<EOF | helm install nmap-privileged ./scanners/nmap --values -
scanner:
nameAppend: "-privileged"
env:
- name: "NMAP_PRIVILEGED"
value: "true"
Expand Down Expand Up @@ -97,6 +98,7 @@ spec:
| scanner.extraVolumes | list | `[]` | Optional Volumes mapped into each scanJob (see: https://kubernetes.io/docs/concepts/storage/volumes/) |
| scanner.image.repository | string | `"docker.io/securecodebox/scanner-nmap"` | Container Image to run the scan |
| scanner.image.tag | string | `nil` | defaults to the charts version |
| scanner.nameAppend | string | `nil` | append a string to the default scantype name. |
| scanner.resources | object | `{}` | CPU/memory resource requests/limits (see: https://kubernetes.io/docs/tasks/configure-pod-container/assign-memory-resource/, https://kubernetes.io/docs/tasks/configure-pod-container/assign-cpu-resource/) |
| scanner.securityContext | object | `{"allowPrivilegeEscalation":false,"capabilities":{"drop":["all"]},"privileged":false,"readOnlyRootFilesystem":true,"runAsNonRoot":true}` | Optional securityContext set on scanner container (see: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/) |
| scanner.securityContext.allowPrivilegeEscalation | bool | `false` | Ensure that users privileges cannot be escalated |
Expand Down
1 change: 1 addition & 0 deletions scanners/nmap/README.md.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ You can deploy the ScanType with the config like this:
```bash
cat <<EOF | helm install nmap-privileged ./scanners/nmap --values -
scanner:
nameAppend: "-privileged"
env:
- name: "NMAP_PRIVILEGED"
value: "true"
Expand Down
2 changes: 1 addition & 1 deletion scanners/nmap/templates/nmap-scan-type.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
apiVersion: "execution.securecodebox.io/v1"
kind: ScanType
metadata:
name: {{ .Release.Name }}
name: "nmap{{ .Values.scanner.nameAppend | default ""}}"
spec:
extractResults:
type: nmap-xml
Expand Down
Loading