Skip to content
This repository was archived by the owner on Oct 14, 2020. It is now read-only.

Commit 9108281

Browse files
committed
#33 Add CascadingRules to the sslyze scanner
1 parent fc2b78d commit 9108281

File tree

3 files changed

+61
-4
lines changed

3 files changed

+61
-4
lines changed
Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
11
apiVersion: "cascading.experimental.securecodebox.io/v1"
22
kind: CascadingRule
33
metadata:
4-
name: "tls-scans"
4+
name: "https-tls-scans"
55
spec:
66
matches:
77
anyOf:
88
- category: "Open Port"
99
attributes:
1010
port: 443
11-
service: "https"
1211
- category: "Open Port"
1312
attributes:
1413
service: "https"
1514
scanSpec:
16-
name: "sslyze"
17-
parameters: ["--regular", "{{attributes.hostname}}"]
15+
scanType: "sslyze"
16+
parameters: ["--regular", "{{attributes.hostname}}:{{attributes.port}}"]
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
apiVersion: "cascading.experimental.securecodebox.io/v1"
2+
kind: CascadingRule
3+
metadata:
4+
name: "smtps-tls-scans"
5+
spec:
6+
matches:
7+
anyOf:
8+
- category: "Open Port"
9+
attributes:
10+
port: 465
11+
- category: "Open Port"
12+
attributes:
13+
service: "smtps"
14+
scanSpec:
15+
scanType: "sslyze"
16+
parameters: ["--regular", "{{attributes.hostname}}:{{attributes.port}}"]
17+
---
18+
apiVersion: "cascading.experimental.securecodebox.io/v1"
19+
kind: CascadingRule
20+
metadata:
21+
name: "pop3s-tls-scans"
22+
spec:
23+
matches:
24+
anyOf:
25+
- category: "Open Port"
26+
attributes:
27+
port: 995
28+
- category: "Open Port"
29+
attributes:
30+
service: "pop3s"
31+
scanSpec:
32+
scanType: "sslyze"
33+
parameters: ["--regular", "{{attributes.hostname}}:{{attributes.port}}"]
34+
---
35+
apiVersion: "cascading.experimental.securecodebox.io/v1"
36+
kind: CascadingRule
37+
metadata:
38+
name: "imaps-tls-scans"
39+
spec:
40+
matches:
41+
anyOf:
42+
- category: "Open Port"
43+
attributes:
44+
port: 993
45+
- category: "Open Port"
46+
attributes:
47+
service: "imaps"
48+
scanSpec:
49+
scanType: "sslyze"
50+
parameters: ["--regular", "{{attributes.hostname}}:{{attributes.port}}"]
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# The CascadingRules are not directly in the /templates directory as their curly bracket syntax clashes with helms templates ... :(
2+
# We import them as raw files to avoid these clashes as escaping them is even more messy
3+
{{ range $path, $_ := .Files.Glob "cascading-rules/*" }}
4+
# Include File
5+
{{ $.Files.Get $path }}
6+
# Separate multiple files
7+
---
8+
{{ end }}

0 commit comments

Comments
 (0)