-
Notifications
You must be signed in to change notification settings - Fork 46
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 #1030 from vishnusomank/cis
[Update] CIS Linux policies
- Loading branch information
Showing
15 changed files
with
364 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.7 | ||
version: v0.1.8 | ||
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.7 | ||
version: v0.1.8 | ||
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
apiVersion: security.kubearmor.com/v1 | ||
kind: KubeArmorPolicy | ||
metadata: | ||
name: ksp-cis-audit-file-system-mounts | ||
spec: | ||
selector: | ||
matchLabels: | ||
app: wordpress | ||
action: Audit | ||
process: | ||
matchPaths: | ||
- path: /bin/mount | ||
- path: /usr/bin/mount | ||
- path: /bin/umount | ||
- path: /usr/bin/umount | ||
message: Alert! file system mount detected | ||
severity: 5 | ||
tags: | ||
- CIS | ||
- CIS_Linux | ||
- CIS_4_Logging_and_Aduditing | ||
- CIS_4.1.1_Data_Retention | ||
- CIS_4.1.14_file_system_mount |
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,24 @@ | ||
apiVersion: security.kubearmor.com/v1 | ||
kind: KubeArmorPolicy | ||
metadata: | ||
name: ksp-cis-commandline-warning-banner | ||
spec: | ||
selector: | ||
matchLabels: | ||
app: wordpress | ||
action: Block | ||
file: | ||
matchPaths: | ||
- path: /etc/motd | ||
readOnly: true | ||
- path: /etc/issue | ||
readOnly: true | ||
- path: /etc/issue.net | ||
readOnly: true | ||
message: Alert! write to warning banner file for standard command line login detected | ||
severity: 5 | ||
tags: | ||
- CIS | ||
- CIS_Linux | ||
- CIS_1.7_Warning_Banners | ||
- CIS_1.7.1_Command_Line_Warning_Banners |
23 changes: 23 additions & 0 deletions
23
generic/system/ksp-cis-deny-access-control-permission-modification.yaml
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,23 @@ | ||
apiVersion: security.kubearmor.com/v1 | ||
kind: KubeArmorPolicy | ||
metadata: | ||
name: ksp-cis-deny-access-control-permission-modification | ||
spec: | ||
selector: | ||
matchLabels: | ||
app: wordpress | ||
action: Block | ||
process: | ||
matchPaths: | ||
- path: /usr/bin/chmod | ||
- path: /usr/bin/chown | ||
- path: /bin/chmod | ||
- path: /bin/chown | ||
message: Alert! access control permission modification detected | ||
severity: 5 | ||
tags: | ||
- CIS | ||
- CIS_Linux | ||
- CIS_4_Logging_and_Aduditing | ||
- CIS_4.1.1_Data_Retention | ||
- CIS_4.1.11_system_access_control_permission |
21 changes: 21 additions & 0 deletions
21
generic/system/ksp-cis-deny-changes-to-system-administration-scope.yaml
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,21 @@ | ||
apiVersion: security.kubearmor.com/v1 | ||
kind: KubeArmorPolicy | ||
metadata: | ||
name: ksp-cis-deny-changes-to-system-administration-scope | ||
spec: | ||
selector: | ||
matchLabels: | ||
app: wordpress | ||
action: Block | ||
file: | ||
matchPaths: | ||
- path: /etc/sudoers | ||
readOnly: true | ||
message: Alert! Modification to changes to system administration scope detected | ||
severity: 5 | ||
tags: | ||
- CIS | ||
- CIS_Linux | ||
- CIS_4_Logging_and_Aduditing | ||
- CIS_4.1.1_Data_Retention | ||
- CIS_4.1.16_system_administration_scope |
36 changes: 36 additions & 0 deletions
36
generic/system/ksp-cis-deny-modification-of-system-files.yaml
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,36 @@ | ||
apiVersion: security.kubearmor.com/v1 | ||
kind: KubeArmorPolicy | ||
metadata: | ||
name: ksp-cis-deny-modification-of-system-files | ||
spec: | ||
selector: | ||
matchLabels: | ||
app: wordpress | ||
action: Block | ||
file: | ||
matchPaths: | ||
- path: /etc/group | ||
readOnly: true | ||
- path: /etc/group- | ||
readOnly: true | ||
- path: /etc/gshadow | ||
readOnly: true | ||
- path: /etc/gshadow- | ||
readOnly: true | ||
- path: /etc/passwd | ||
readOnly: true | ||
- path: /etc/passwd- | ||
readOnly: true | ||
- path: /etc/shadow | ||
readOnly: true | ||
- path: /etc/shadow- | ||
readOnly: true | ||
- path: /etc/shadow- | ||
readOnly: true | ||
message: Alert! System file modification detected | ||
severity: 2 | ||
tags: | ||
- CIS | ||
- CIS_Linux | ||
- CIS_6_System_Maintenance | ||
- CIS_6.1_System_File_Permissions |
28 changes: 28 additions & 0 deletions
28
generic/system/ksp-cis-deny-modification-to-system-mandatory-access-controls.yaml
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,28 @@ | ||
apiVersion: security.kubearmor.com/v1 | ||
kind: KubeArmorPolicy | ||
metadata: | ||
name: ksp-cis-deny-modification-to-system-mandatory-access-controls | ||
spec: | ||
selector: | ||
matchLabels: | ||
app: wordpress | ||
action: Block | ||
file: | ||
matchDirectories: | ||
- dir: /etc/selinux/ | ||
readOnly: true | ||
recursive: true | ||
- dir: /etc/apparmor/ | ||
readOnly: true | ||
recursive: true | ||
- dir: /etc/apparmor.d/ | ||
readOnly: true | ||
recursive: true | ||
message: Alert! Modification to system mandatory access controls detected | ||
severity: 5 | ||
tags: | ||
- CIS | ||
- CIS_Linux | ||
- CIS_4_Logging_and_Aduditing | ||
- CIS_4.1.1_Data_Retention | ||
- CIS_4.1.8_system_mandatory_access_controls |
27 changes: 27 additions & 0 deletions
27
generic/system/ksp-cis-deny-modification-to-system-network-env.yaml
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 @@ | ||
apiVersion: security.kubearmor.com/v1 | ||
kind: KubeArmorPolicy | ||
metadata: | ||
name: ksp-cis-deny-modification-to-system-network-env | ||
spec: | ||
selector: | ||
matchLabels: | ||
app: wordpress | ||
action: Block | ||
file: | ||
matchPaths: | ||
- path: /etc/issue | ||
readOnly: true | ||
- path: /etc/issue.net | ||
readOnly: true | ||
- path: /etc/hosts | ||
readOnly: true | ||
- path: /etc/sysconfig/network | ||
readOnly: true | ||
message: Alert! Modification to system network files detected | ||
severity: 5 | ||
tags: | ||
- CIS | ||
- CIS_Linux | ||
- CIS_4_Logging_and_Aduditing | ||
- CIS_4.1.1_Data_Retention | ||
- CIS_4.1.7_system_network_environment |
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,21 @@ | ||
apiVersion: security.kubearmor.com/v1 | ||
kind: KubeArmorPolicy | ||
metadata: | ||
name: ksp-cis-deny-service-clients | ||
spec: | ||
selector: | ||
matchLabels: | ||
app: wordpress | ||
action: Block | ||
process: | ||
matchPaths: | ||
- path: /usr/bin/talk | ||
- path: /usr/bin/telnet | ||
- path: /bin/talk | ||
- path: /bin/telnet | ||
message: Alert! insecure service client binaries invoked | ||
severity: 5 | ||
tags: | ||
- CIS | ||
- CIS_Linux | ||
- CIS_2.3_Service_Clients |
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
Oops, something went wrong.