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

Commit 579571c

Browse files
committed
Cascading Rules Examples Nmap/Ncrack
1 parent 2c91d19 commit 579571c

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
apiVersion: "cascading.experimental.securecodebox.io/v1"
2+
kind: CascadingRule
3+
metadata:
4+
name: "ncrack-ssh"
5+
labels:
6+
securecodebox.io/invasive: invasive
7+
securecodebox.io/intensive: high
8+
spec:
9+
matches:
10+
anyOf:
11+
- category: "Open Port"
12+
attributes:
13+
port: 22
14+
state: open
15+
scanSpec:
16+
scanType: "ncrack"
17+
parameters:
18+
- -v
19+
- -d10
20+
- --user=root,admin
21+
- --pass=abcdef,THEPASSWORDYOUCREATED,12345
22+
- ssh://"{{location}}"
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
apiVersion: "execution.experimental.securecodebox.io/v1"
2+
kind: Scan
3+
metadata:
4+
name: "nmap-dummy-ssh"
5+
spec:
6+
scanType: "nmap"
7+
parameters:
8+
# Internal cluster is blocking our ping probes, therefore we skip them
9+
- "-Pn"
10+
# Service Detection enabled
11+
- "-sV"
12+
# Actual Service Address will depend on you cluster and namespace configuration. 🤷‍
13+
- "dummy-ssh.demo-apps.svc"
14+
cascades:
15+
matchLabels:
16+
securecodebox.io/intensive: high

0 commit comments

Comments
 (0)