-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1041 from vishnusomank/5gpol
5G Policies
- Loading branch information
Showing
10 changed files
with
157 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
version: v0.1.9 | ||
version: v0.2.3 | ||
policyRules: | ||
- name: user-grp-mod | ||
precondition: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
version: v0.1.9 | ||
version: v0.2.3 | ||
policyRules: | ||
- name: elasticsearch-indices-dir | ||
precondition: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
version: v0.1.9 | ||
version: v0.2.3 | ||
policyRules: | ||
- name: restrict-automount-sa-token | ||
description: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# KubeArmor is an open source software that enables you to protect your cloud workload at run-time. | ||
# To learn more about KubeArmor visit: | ||
# https://www.accuknox.com/kubearmor/ | ||
|
||
apiVersion: security.kubearmor.com/v1 | ||
kind: KubeArmorPolicy | ||
metadata: | ||
name: ksp-5g-network-service-scanning | ||
namespace: default # Change your namespace | ||
spec: | ||
tags: ["MITRE", "FGT1046","5G"] | ||
message: "Network service has been scanned!" | ||
selector: | ||
matchLabels: | ||
container: ubuntu-1 # Change your matchLabels | ||
severity: 5 | ||
process: | ||
matchPaths: | ||
- path: /usr/bin/netstat | ||
- path: /bin/netstat | ||
- path: /usr/sbin/ip | ||
- path: /usr/bin/ip | ||
- path: /sbin/ip | ||
- path: /bin/ip | ||
- path: /usr/sbin/iw | ||
- path: /sbin/iw | ||
- path: /usr/sbin/ethtool | ||
- path: /sbin/ethtool | ||
- path: /usr/sbin/ifconfig | ||
- path: /sbin/ifconfig | ||
- path: /usr/sbin/arp | ||
- path: /sbin/arp | ||
- path: /usr/sbin/iwconfig | ||
- path: /sbin/iwconfig | ||
action: Audit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# KubeArmor is an open source software that enables you to protect your cloud workload at run-time. | ||
# To learn more about KubeArmor visit: | ||
# https://www.accuknox.com/kubearmor/ | ||
|
||
apiVersion: security.kubearmor.com/v1 | ||
kind: KubeArmorPolicy | ||
metadata: | ||
name: ksp-mitre-5g-remote-services | ||
namespace: default # Change your namespace | ||
spec: | ||
tags: ["MITRE", "5G", "FGT1021"] | ||
message: "Warning! access sensitive files detected" | ||
selector: | ||
matchLabels: | ||
app: testpod #change with your own label | ||
file: | ||
matchPaths: | ||
- path: /var/log/wtmp | ||
- path: /var/run/utmp | ||
- path: /var/log/auth.log | ||
- path: /etc/passwd | ||
- path: /etc/shadow | ||
matchDirectories: | ||
- dir: /etc/ssh/ | ||
severity: 3 | ||
action: Audit | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# KubeArmor is an open source software that enables you to protect your cloud workload at run-time. | ||
# To learn more about KubeArmor visit: | ||
# https://www.accuknox.com/kubearmor/ | ||
|
||
apiVersion: security.kubearmor.com/v1 | ||
kind: KubeArmorPolicy | ||
metadata: | ||
name: ksp-mitre-5g-tactic-impair-defense | ||
namespace: default #change with your namespace | ||
spec: | ||
tags: ["MITRE", "FGT1562","5G"] | ||
message: "Selinux Files Accessed by Unknown Process" | ||
selector: | ||
matchLabels: | ||
app: testpod #change with your match label | ||
severity: 6 | ||
file: | ||
matchPaths: | ||
- path: /etc/selinux/semanage.conf | ||
matchDirectories: | ||
- dir: /etc/apparmor.d/ | ||
recursive: true | ||
- dir: /etc/sysconfig/selinux/ | ||
recursive: true | ||
action: Audit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
version: v0.1.9 | ||
version: v0.2.3 | ||
policyRules: | ||
- name: kibana-panel | ||
precondition: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
version: v0.1.9 | ||
version: v0.2.3 | ||
policyRules: | ||
- name: redis-sys-path | ||
precondition: | ||
|