Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updating ginkgo test based on updated policy-template #264

Merged
merged 1 commit into from
Feb 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,18 @@ kind: KubeArmorPolicy
metadata:
name: ubuntu-18-04-least-functionality-execute-package-management-process-in-container
spec:
action: Block
message: Alert! Execution of package management process inside container is denied
tags: ["NIST", "NIST_800-53_CM-7(4)", "SI-4", "process","NIST_800-53_SI-4"]
message: "Alert! Execution of package management process inside container is denied"
selector:
matchLabels:
kubearmor.io/container.name: ubuntu
severity: 5
process:
matchPaths:
- path: /usr/bin/apt
- path: /usr/bin/apt-get
- path: /bin/apt-get
- path: /sbin/apk
- path: /bin/apt
- path: /usr/bin/dpkg
- path: /bin/dpkg
Expand Down Expand Up @@ -37,13 +42,4 @@ spec:
- path: /sbin/yaourt
- path: /usr/bin/zypper
- path: /bin/zypper
selector:
matchLabels:
kubearmor.io/container.name: ubuntu
severity: 5
tags:
- NIST
- NIST_800-53_CM-7(4)
- SI-4
- process
- NIST_800-53_SI-4
action: Block
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,18 @@ metadata:
name: wordpress-wordpress-4-8-apache-least-functionality-execute-package-management-process-in-container
namespace: wordpress-mysql
spec:
action: Block
message: Alert! Execution of package management process inside container is denied
tags: ["NIST", "NIST_800-53_CM-7(4)", "SI-4", "process","NIST_800-53_SI-4"]
message: "Alert! Execution of package management process inside container is denied"
selector:
matchLabels:
app: wordpress
severity: 5
process:
matchPaths:
- path: /usr/bin/apt
- path: /usr/bin/apt-get
- path: /bin/apt-get
- path: /sbin/apk
- path: /bin/apt
- path: /usr/bin/dpkg
- path: /bin/dpkg
Expand Down Expand Up @@ -38,13 +43,4 @@ spec:
- path: /sbin/yaourt
- path: /usr/bin/zypper
- path: /bin/zypper
selector:
matchLabels:
app: wordpress
severity: 5
tags:
- NIST
- NIST_800-53_CM-7(4)
- SI-4
- process
- NIST_800-53_SI-4
action: Block