Skip to content

Commit c37be37

Browse files
authored
Merge pull request #369 from luckolen/nmap-parser-tunnel
Added the tunnel variable from the nmap results to be used in CascadingRules.
2 parents b3bd7f9 + 7f48f90 commit c37be37

5 files changed

Lines changed: 32 additions & 2 deletions

File tree

scanners/nmap/parser/parser.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ function transformToFindings(hosts) {
3636
serviceProduct: openPort.serviceProduct || null,
3737
serviceVersion: openPort.serviceVersion || null,
3838
scripts: openPort.scriptOutputs || null,
39+
tunnel: openPort.tunnel || null,
3940
},
4041
};
4142
});

scanners/sslyze/cascading-rules/ftps.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,15 @@ spec:
1212
attributes:
1313
port: 990
1414
state: open
15+
- category: "Open Port"
16+
attributes:
17+
service: "ftps"
18+
state: open
19+
- category: "Open Port"
20+
attributes:
21+
service: "ftp"
22+
tunnel: "ssl"
23+
state: open
1524
scanSpec:
1625
scanType: "sslyze"
1726
parameters: ["--regular", "{{$.hostOrIP}}:{{attributes.port}}"]

scanners/sslyze/cascading-rules/https.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,9 @@ spec:
2626
state: open
2727
- category: "Open Port"
2828
attributes:
29-
service: "ssl/http"
30-
state: open
29+
service: "http"
30+
tunnel: "ssl"
31+
state: "open"
3132
scanSpec:
3233
scanType: "sslyze"
3334
parameters: ["--regular", "{{$.hostOrIP}}:{{attributes.port}}"]

scanners/sslyze/cascading-rules/ldaps.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ spec:
1212
attributes:
1313
port: 636
1414
state: open
15+
- category: "Open Port"
16+
attributes:
17+
service: "ldapssl"
18+
state: open
1519
scanSpec:
1620
scanType: "sslyze"
1721
parameters: ["--regular", "{{$.hostOrIP}}:{{attributes.port}}"]

scanners/sslyze/cascading-rules/mail.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ spec:
1616
attributes:
1717
service: "smtps"
1818
state: open
19+
- category: "Open Port"
20+
attributes:
21+
service: "smtp"
22+
tunnel: "ssl"
23+
state: open
1924
scanSpec:
2025
scanType: "sslyze"
2126
parameters: ["--regular", "{{$.hostOrIP}}:{{attributes.port}}"]
@@ -38,6 +43,11 @@ spec:
3843
attributes:
3944
service: "pop3s"
4045
state: open
46+
- category: "Open Port"
47+
attributes:
48+
service: "pop3"
49+
tunnel: "ssl"
50+
state: open
4151
scanSpec:
4252
scanType: "sslyze"
4353
parameters: ["--regular", "{{$.hostOrIP}}:{{attributes.port}}"]
@@ -60,6 +70,11 @@ spec:
6070
attributes:
6171
service: "imaps"
6272
state: open
73+
- category: "Open Port"
74+
attributes:
75+
service: "imap"
76+
tunnel: "ssl"
77+
state: open
6378
scanSpec:
6479
scanType: "sslyze"
6580
parameters: ["--regular", "{{$.hostOrIP}}:{{attributes.port}}"]

0 commit comments

Comments
 (0)