-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated the static policies under res/out and updated kubearmor depen…
…dency Signed-off-by: Ishaan Jain <ishaan454@gmail.com> updated extract tar function to be compatible with docker v26 Signed-off-by: Ishaan Jain <ishaan454@gmail.com> fixed error handling of f.Seek() Signed-off-by: Ishaan Jain <ishaan454@gmail.com> Removed write-under-bin-dir type policy and instead added file-integrity-monitoring policy to res/out Signed-off-by: Ishaan Jain <ishaan454@gmail.com> fixed minor changes Signed-off-by: Ishaan Jain <ishaan454@gmail.com>
- Loading branch information
Showing
7 changed files
with
124 additions
and
123 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
19 changes: 13 additions & 6 deletions
19
...oring-deny-write-under-bin-directory.yaml → ...untu-18-04/file-integrity-monitoring.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 |
---|---|---|
@@ -1,31 +1,38 @@ | ||
apiVersion: security.kubearmor.com/v1 | ||
kind: KubeArmorPolicy | ||
metadata: | ||
name: ubuntu-18-04-system-monitoring-deny-write-under-bin-directory | ||
name: ubuntu-18-04-file-integrity-monitoring | ||
spec: | ||
action: Block | ||
file: | ||
matchDirectories: | ||
- dir: /bin/ | ||
- dir: /sbin/ | ||
readOnly: true | ||
recursive: true | ||
- dir: /sbin/ | ||
- dir: /usr/bin/ | ||
readOnly: true | ||
recursive: true | ||
- dir: /usr/lib/ | ||
readOnly: true | ||
recursive: true | ||
- dir: /usr/sbin/ | ||
readOnly: true | ||
recursive: true | ||
- dir: /usr/bin/ | ||
- dir: /bin/ | ||
readOnly: true | ||
recursive: true | ||
- dir: /boot/ | ||
readOnly: true | ||
recursive: true | ||
message: Alert! An attempt to write below system binary directories denied. | ||
message: Detected and prevented compromise to File integrity | ||
selector: | ||
matchLabels: | ||
kubearmor.io/container.name: ubuntu | ||
severity: 5 | ||
severity: 1 | ||
tags: | ||
- NIST | ||
- NIST_800-53_AU-2 | ||
- NIST_800-53_SI-4 | ||
- MITRE | ||
- MITRE_T1036_masquerading | ||
- MITRE_T1565_data_manipulation |
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
19 changes: 13 additions & 6 deletions
19
...oring-deny-write-under-bin-directory.yaml → ...4-8-apache-file-integrity-monitoring.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 |
---|---|---|
@@ -1,32 +1,39 @@ | ||
apiVersion: security.kubearmor.com/v1 | ||
kind: KubeArmorPolicy | ||
metadata: | ||
name: wordpress-wordpress-4-8-apache-system-monitoring-deny-write-under-bin-directory | ||
name: wordpress-wordpress-4-8-apache-file-integrity-monitoring | ||
namespace: wordpress-mysql | ||
spec: | ||
action: Block | ||
file: | ||
matchDirectories: | ||
- dir: /bin/ | ||
- dir: /sbin/ | ||
readOnly: true | ||
recursive: true | ||
- dir: /sbin/ | ||
- dir: /usr/bin/ | ||
readOnly: true | ||
recursive: true | ||
- dir: /usr/lib/ | ||
readOnly: true | ||
recursive: true | ||
- dir: /usr/sbin/ | ||
readOnly: true | ||
recursive: true | ||
- dir: /usr/bin/ | ||
- dir: /bin/ | ||
readOnly: true | ||
recursive: true | ||
- dir: /boot/ | ||
readOnly: true | ||
recursive: true | ||
message: Alert! An attempt to write below system binary directories denied. | ||
message: Detected and prevented compromise to File integrity | ||
selector: | ||
matchLabels: | ||
app: wordpress | ||
severity: 5 | ||
severity: 1 | ||
tags: | ||
- NIST | ||
- NIST_800-53_AU-2 | ||
- NIST_800-53_SI-4 | ||
- MITRE | ||
- MITRE_T1036_masquerading | ||
- MITRE_T1565_data_manipulation |
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