|
{"instruction":"Create a KubeArmorPolicy for a kubernetes environment. Selects the Kubernetes pods to which this policy will apply. In this case, it selects pods with the label 'app: apache-tomcat'. defines rules related to processes running in the selected pods. apply rules to the executable processes at paths '/etc/crontab'. '/etc/anacrontab'. '/etc/fcrontab'. '/etc/hcron'. '/etc/jobber'. Specifies the action to take when rules match, in which case the 'Block' action blocks the execution of the matching process.","output":"kind: KubeArmorPolicy\nspec:\n selector:\n matchLabels:\n app: apache-tomcat\n process:\n matchPaths:\n - path: /etc/crontab\n - path: /etc/anacrontab\n - path: /etc/fcrontab\n - path: /etc/hcron\n - path: /etc/jobber\n action: Block"} |
|
{"instruction":"Create a KubeArmorPolicy for a kubernetes environment. Selects the Kubernetes pods to which this policy will apply. In this case, it selects pods with the label 'app: mongo-db'. defines the policy related to file access. Specifies a rule that matches a specific file absolute path '/home/user1/secret_data1.txt'. If readOnly is enabled, the read operation will be only allowed, and any other operations (e.g., write) will be blocked. ownerOnly is enabled, so only the owner of the executable defined by matchPaths and matchDirectories can run. When the 'fromSource' field is defined, access to the file is controlled exclusively for the specified source. In this case, working rules are established for the specified source '/readwrite'. Specifies what to do when rules match, in which case the action 'Block' blocks access to the matching file.","output":"kind: KubeArmorPolicy\nspec:\n selector:\n matchLabels:\n app: mongo-db\n file:\n matchPaths:\n - path: /home/user1/secret_data1.txt\n readOnly: true\n ownerOnly: true\n fromSource:\n - path: /readwrite\n action: Block"} |
|
{"instruction":"Create a KubeArmorPolicy for a kubernetes environment. Selects the Kubernetes pods to which this policy will apply. In this case, it selects pods with the label 'app: mysql'. defines the policy related to file access. similar to matchpath, but for dictionaries, specifies a rule that matches a specific directory path '/sbin/', If readOnly is enabled, the read operation will be only allowed, and any other operations (e.g., write) will be blocked. recursive is enabled, so the coverage will extend to the subdirectories of the directory defined with matchDirectories. specifies a rule that matches a specific directory path '/usr/bin/', If readOnly is enabled, the read operation will be only allowed, and any other operations (e.g., write) will be blocked. recursive is enabled, so the coverage will extend to the subdirectories of the directory defined with matchDirectories. specifies a rule that matches a specific directory path '/usr/lib/', If readOnly is enabled, the read operation will be only allowed, and any other operations (e.g., write) will be blocked. recursive is enabled, so the coverage will extend to the subdirectories of the directory defined with matchDirectories. specifies a rule that matches a specific directory path '/usr/sbin/', If readOnly is enabled, the read operation will be only allowed, and any other operations (e.g., write) will be blocked. recursive is enabled, so the coverage will extend to the subdirectories of the directory defined with matchDirectories. specifies a rule that matches a specific directory path '/bin/', If readOnly is enabled, the read operation will be only allowed, and any other operations (e.g., write) will be blocked. recursive is enabled, so the coverage will extend to the subdirectories of the directory defined with matchDirectories. specifies a rule that matches a specific directory path '/boot/', If readOnly is enabled, the read operation will be only allowed, and any other operations (e.g., write) will be blocked. recursive is enabled, so the coverage will extend to the subdirectories of the directory defined with matchDirectories. Specifies what to do when rules match, in which case the action 'Block' blocks access to the matching file.","output":"kind: KubeArmorPolicy\nspec:\n selector:\n matchLabels:\n app: mysql \n file:\n matchDirectories:\n - dir: /sbin/\n readOnly: true\n recursive: true\n - dir: /usr/bin/\n readOnly: true\n recursive: true\n - dir: /usr/lib/\n readOnly: true\n recursive: true\n - dir: /usr/sbin/\n readOnly: true\n recursive: true\n - dir: /bin/\n readOnly: true\n recursive: true\n - dir: /boot/\n readOnly: true\n recursive: true\n action: Block"} |
|
{"instruction":"Create a KubeArmorPolicy for a kubernetes environment. Selects the Kubernetes pods to which this policy will apply. In this case, it selects pods with the label 'app: mysql'. defines rules related to processes running in the selected pods. apply rules to the executable processes at paths '/usr/bin/base32'. '/usr/bin/base16'. '/usr/bin/base32plain'. '/usr/bin/base32hex'. Specifies the action to take when rules match, in which case the 'Audit' action logs the execution of the matching process.","output":"kind: KubeArmorPolicy\nspec:\n selector:\n matchLabels:\n app: mysql \n process:\n matchPaths:\n - path: /usr/bin/base32\n - path: /usr/bin/base16\n - path: /usr/bin/base32plain\n - path: /usr/bin/base32hex\n action: Audit"} |
|
{"instruction":"Create a KubeArmorPolicy for a kubernetes environment. Selects the Kubernetes pods to which this policy will apply. In this case, it selects pods with the label 'app: nginx'. defines the policy related to file access. Specifies a rule that matches a specific file absolute path '/data/db/auditLog.json'. ownerOnly is enabled, so only the owner of the executable defined by matchPaths and matchDirectories can run. '/data/db/auditLog.bson'. ownerOnly is enabled, so only the owner of the executable defined by matchPaths and matchDirectories can run. Specifies what to do when rules match, in which case the action 'Audit' monitorings access to the matching file.","output":"kind: KubeArmorPolicy\nspec:\n selector:\n matchLabels:\n app: nginx\n file:\n matchPaths:\n - path: /data/db/auditLog.json\n ownerOnly: true\n - path: /data/db/auditLog.bson\n ownerOnly: true\n action: Audit"} |
|
{"instruction":"Create a KubeArmorPolicy for a kubernetes environment. Selects the Kubernetes pods to which this policy will apply. In this case, it selects pods with the label 'app: nginx'. defines the policy related to file access. Specifies a rule that matches a specific file absolute path '/strings/ctype-latin1.c'. Specifies what to do when rules match, in which case the action 'Block' blocks access to the matching file.","output":"kind: KubeArmorPolicy\nspec:\n selector:\n matchLabels:\n app: nginx\n file:\n matchPaths:\n - path: /strings/ctype-latin1.c\n action: Block"} |
|
{"instruction":"Create a KubeArmorPolicy for a kubernetes environment. Selects the Kubernetes pods to which this policy will apply. In this case, it selects pods with the label 'container: ubuntu-1'. defines the policy related to file access. similar to matchpath, but for dictionaries, specifies a rule that matches a specific directory path '/etc/', recursive is enabled, so the coverage will extend to the subdirectories of the directory defined with matchDirectories. ownerOnly is enabled, so only the owner of the executable defined by matchPaths and matchDirectories can run. Specifies what to do when rules match, in which case the action 'Audit' monitorings access to the matching file.","output":"kind: KubeArmorPolicy\nspec:\n selector:\n matchLabels:\n container: ubuntu-1\n file:\n matchDirectories:\n - dir: /etc/\n recursive: true\n ownerOnly: true\n action: Audit"} |
|
{"instruction":"Create a KubeArmorPolicy for a kubernetes environment. Selects the Kubernetes pods to which this policy will apply. In this case, it selects pods with the label 'app: nginx'. defines the policy related to file access. Specifies a rule that matches a specific file absolute path '/etc/postgresql/13/main/postgresql.conf'. ownerOnly is enabled, so only the owner of the executable defined by matchPaths and matchDirectories can run. '/var/lib/pgsql/data/postgresql.conf'. ownerOnly is enabled, so only the owner of the executable defined by matchPaths and matchDirectories can run. applies the rule to files with the '/**/pg_log/postgresql-Thu.log' pattern, ownerOnly is enabled, so only the owner of the executable defined by matchPaths and matchDirectories can run. Specifies what to do when rules match, in which case the action 'Block' blocks access to the matching file.","output":"kind: KubeArmorPolicy\nspec:\n selector:\n matchLabels:\n app: nginx\n file:\n matchPaths:\n - path: /etc/postgresql/13/main/postgresql.conf\n ownerOnly: true\n - path: /var/lib/pgsql/data/postgresql.conf\n ownerOnly: true\n matchPatterns:\n - pattern: pg_log/postgresql-Thu.log\n ownerOnly: true\n action: Block"} |
|
{"instruction":"Create a KubeArmorPolicy for a kubernetes environment. Selects the Kubernetes pods to which this policy will apply. In this case, it selects pods with the label 'app: discovery-engine'. defines the policy related to file access. Specifies a rule that matches a specific file absolute path '/var/log/mongodb/mongod.log'. Specifies what to do when rules match, in which case the action 'Block' blocks access to the matching file.","output":"kind: KubeArmorPolicy\nspec:\n selector:\n matchLabels:\n app: discovery-engine\n file:\n matchPaths:\n - path: /var/log/mongodb/mongod.log \n readOnly: false \n action: Block"} |
|
{"instruction":"Create a KubeArmorPolicy for a kubernetes environment. Selects the Kubernetes pods to which this policy will apply. In this case, it selects pods with the label 'app: discovery-engine'. defines the policy related to file access. similar to matchpath, but for dictionaries, specifies a rule that matches a specific directory path '/credentials/', recursive is enabled, so the coverage will extend to the subdirectories of the directory defined with matchDirectories. If readOnly is enabled, the read operation will be only allowed, and any other operations (e.g., write) will be blocked. Specifies what to do when rules match, in which case the action 'Block' blocks access to the matching file.","output":"kind: KubeArmorPolicy\nspec:\n selector:\n matchLabels:\n app: discovery-engine\n file:\n matchDirectories:\n - dir: /credentials/\n recursive: true\n readOnly: true\n action: Block"} |
|
{"instruction":"Create a KubeArmorPolicy for a kubernetes environment. Selects the Kubernetes pods to which this policy will apply. In this case, it selects pods with the label 'app: discovery-engine'. defines rules related to processes running in the selected pods. apply rules to the executable processes at paths '/usr/bin/ls'. '/usr/bin/sleep'. Specifies the action to take when rules match, in which case the 'Block' action blocks the execution of the matching process.","output":"kind: KubeArmorPolicy\nspec:\n selector:\n matchLabels:\n app: discovery-engine\n - WARNING\n process:\n matchPaths:\n - path: /usr/bin/ls\n - path: /usr/bin/sleep\n action: Block"} |
|
{"instruction":"Create a KubeArmorPolicy for a kubernetes environment. Selects the Kubernetes pods to which this policy will apply. In this case, it selects pods with the label 'kubearmor-app: kubearmor-policy-manager'. defines the policy related to file access. similar to matchpath, but for dictionaries, specifies a rule that matches a specific directory path '/credentials/', Specifies what to do when rules match, in which case the action 'Audit' monitorings access to the matching file.","output":"kind: KubeArmorPolicy\nspec:\n selector:\n matchLabels:\n kubearmor-app: kubearmor-policy-manager\n file:\n matchDirectories:\n - dir: /credentials/\n action: Audit"} |
|
{"instruction":"Create a KubeArmorPolicy for a kubernetes environment. Selects the Kubernetes pods to which this policy will apply. In this case, it selects pods with the label 'app: test'. defines the policy related to file access. applies the rule to files with the '/var/lib/pgsql/**/data/postgresql.conf' pattern, '/var/lib/pgsql/**/data/pg_hba.conf' pattern, '/var/lib/pgsql/**/data/pg_ident.conf' pattern, Specifies a rule that matches a specific file absolute path '/var/lib/postgresql/data/pgdata/postgresql.conf'. '/var/lib/postgresql/data/pgdata/pg_hba.conf'. '/var/lib/postgresql/data/pgdata/pg_ident.conf'. '/var/lib/postgresql/data/pgdata/postgresql.auto.conf'. Specifies what to do when rules match, in which case the action 'Audit' monitorings access to the matching file.","output":"kind: KubeArmorPolicy\nspec:\n selector:\n matchLabels:\n app: test\n file:\n matchPatterns:\n - pattern: /var/lib/pgsqldata/postgresql.conf\n - pattern: /var/lib/pgsqldata/pg_hba.conf\n - pattern: /var/lib/pgsqldata/pg_ident.conf\n matchPaths:\n - path: /var/lib/postgresql/data/pgdata/postgresql.conf\n - path: /var/lib/postgresql/data/pgdata/pg_hba.conf\n - path: /var/lib/postgresql/data/pgdata/pg_ident.conf\n - path: /var/lib/postgresql/data/pgdata/postgresql.auto.conf\n action: Audit"} |
|
{"instruction":"Create a KubeArmorPolicy for a kubernetes environment. Selects the Kubernetes pods to which this policy will apply. In this case, it selects pods with the label 'app: apc'. defines rules related to processes running in the selected pods. apply rules to the executable processes at paths '/usr/bin/scp'. '/bin/scp'. '/usr/bin/scp'. '/bin/scp'. Specifies the action to take when rules match, in which case the 'Block' action blocks the execution of the matching process.","output":"kind: KubeArmorPolicy\nspec:\n selector:\n matchLabels:\n app: apc\n action: Block\n process:\n matchPaths:\n - path: /usr/bin/scp\n - path: /bin/scp\n - path: /usr/bin/scp\n - path: /bin/scp"} |
|
{"instruction":"Create a KubeArmorPolicy for a kubernetes environment. Selects the Kubernetes pods to which this policy will apply. In this case, it selects pods with the label 'app: cass-server'. defines the policy related to file access. similar to matchpath, but for dictionaries, specifies a rule that matches a specific directory path '/var/log/postgresql/', recursive is enabled, so the coverage will extend to the subdirectories of the directory defined with matchDirectories. When the 'fromSource' field is defined, access to the file is controlled exclusively for the specified source. In this case, working rules are established for the specified source specifies a rule that matches a specific directory path '/usr/bin/touch', specifies a rule that matches a specific directory path '/usr/bin/chmod', specifies a rule that matches a specific directory path '/usr/bin/nano', specifies a rule that matches a specific directory path '/usr/bin/cat', specifies a rule that matches a specific directory path '/usr/bin/vi', Specifies what to do when rules match, in which case the action 'Audit' monitorings access to the matching file.","output":"kind: KubeArmorPolicy\nspec:\n selector:\n matchLabels:\n app: cass-server\n file:\n matchDirectories:\n - dir: /var/log/postgresql/\n recursive: true\n readOnly: false\n fromSource:\n - path: /usr/bin/touch\n - path: /usr/bin/chmod\n - path: /usr/bin/nano\n - path: /usr/bin/cat\n - path: /usr/bin/vi\n action: Audit"} |
|
{"instruction":"Create a KubeArmorPolicy for a kubernetes environment. Selects the Kubernetes pods to which this policy will apply. In this case, it selects pods with the label 'app: cass-server'. defines the policy related to file access. similar to matchpath, but for dictionaries, specifies a rule that matches a specific directory path '/dev/', specifies a rule that matches a specific directory path '/root/', Specifies what to do when rules match, in which case the action 'Audit' monitorings access to the matching file. defines rules related to processes running in the selected pods. apply rules to the executable processes at paths '/usr/bin/chmod'. '/usr/bin/nc'. '/usr/bin/dig'. '/usr/bin/ncat'. '/usr/bin/nmap'. '/usr/sbin/tcpdump'. '/usr/bin/tcpdump'. '/usr/bin/tshark'. '/usr/bin/ngrep'. '/usr/bin/telnet'. '/usr/bin/mitmproxy'. '/usr/bin/socat'. '/usr/sbin/zmap'. '/usr/bin/login'. '/usr/bin/su'. '/usr/sbin/nologin'. '/usr/bin/faillog'. '/usr/bin/lastlog'. '/usr/bin/newgrp'. '/usr/bin/sg'. '/usr/sbin/shadowconfig'. '/usr/sbin/grpck'. '/usr/sbin/pwunconv'. '/usr/sbin/grpconv'. '/usr/sbin/pwck'. '/usr/sbin/groupmod'. '/usr/sbin/vipw'. '/usr/sbin/pwconv'. '/usr/sbin/useradd'. '/usr/sbin/newusers'. '/usr/sbin/cppw'. '/usr/sbin/chpasswd'. '/usr/sbin/usermod'. '/usr/sbin/groupadd'. '/usr/sbin/groupdel'. '/usr/sbin/grpunconv'. '/usr/sbin/chgpasswd'. '/usr/sbin/userdel'. '/usr/bin/chage'. '/usr/bin/chsh'. '/usr/bin/gpasswd'. '/usr/bin/chfn'. '/usr/bin/expiry'. '/usr/bin/passwd'. '/usr/sbin/vigr'. '/usr/sbin/cpgr'. '/usr/sbin/adduser'. '/usr/sbin/addgroup'. '/usr/sbin/deluser'. '/usr/sbin/delgroup'. '/usr/bin/chage'. '/usr/bin/gpasswd'. '/usr/bin/lastlog'. '/usr/bin/newgrp'. '/usr/bin/sg'. '/usr/sbin/adduser'. '/usr/sbin/deluser'. '/usr/sbin/chpasswd'. '/usr/sbin/groupadd'. '/usr/sbin/groupdel'. '/usr/sbin/addgroup'. '/usr/sbin/delgroup'. '/usr/sbin/groupmems'. '/usr/sbin/groupmod'. '/usr/sbin/grpck'. '/usr/sbin/grpconv'. '/usr/sbin/grpunconv'. '/usr/sbin/newusers'. '/usr/sbin/pwck'. '/usr/sbin/pwconv'. '/usr/sbin/pwunconv'. '/usr/sbin/useradd'. '/usr/sbin/userdel'. '/usr/sbin/usermod'. '/usr/sbin/vigr'. '/usr/sbin/vipw'. '/usr/sbin/unix_chkpwd'. '/usr/bin/openssl'. '/usr/sbin/update-ca-certificates'. Specifies the action to take when rules match, in which case the 'Audit' action logs the execution of the matching process.","output":"kind: KubeArmorPolicy\nspec:\n selector:\n matchLabels:\n app: cass-server\n process:\n matchPaths:\n - path: /usr/bin/chmod\n - path: /usr/bin/nc\n - path: /usr/bin/dig\n - path: /usr/bin/ncat\n - path: /usr/bin/nmap\n - path: /usr/sbin/tcpdump\n - path: /usr/bin/tcpdump\n - path: /usr/bin/tshark\n - path: /usr/bin/ngrep\n - path: /usr/bin/telnet\n - path: /usr/bin/mitmproxy\n - path: /usr/bin/socat\n - path: /usr/sbin/zmap\n - path: /usr/bin/login\n - path: /usr/bin/su\n - path: /usr/sbin/nologin\n - path: /usr/bin/faillog\n - path: /usr/bin/lastlog\n - path: /usr/bin/newgrp\n - path: /usr/bin/sg\n - path: /usr/sbin/shadowconfig\n - path: /usr/sbin/grpck\n - path: /usr/sbin/pwunconv\n - path: /usr/sbin/grpconv\n - path: /usr/sbin/pwck\n - path: /usr/sbin/groupmod\n - path: /usr/sbin/vipw\n - path: /usr/sbin/pwconv\n - path: /usr/sbin/useradd\n - path: /usr/sbin/newusers\n - path: /usr/sbin/cppw\n - path: /usr/sbin/chpasswd\n - path: /usr/sbin/usermod\n - path: /usr/sbin/groupadd\n - path: /usr/sbin/groupdel\n - path: /usr/sbin/grpunconv\n - path: /usr/sbin/chgpasswd\n - path: /usr/sbin/userdel\n - path: /usr/bin/chage\n - path: /usr/bin/chsh\n - path: /usr/bin/gpasswd\n - path: /usr/bin/chfn\n - path: /usr/bin/expiry\n - path: /usr/bin/passwd \n - path: /usr/sbin/vigr\n - path: /usr/sbin/cpgr\n - path: /usr/sbin/adduser \n - path: /usr/sbin/addgroup\n - path: /usr/sbin/deluser\n - path: /usr/sbin/delgroup\n - path: /usr/bin/chage\n - path: /usr/bin/gpasswd\n - path: /usr/bin/lastlog\n - path: /usr/bin/newgrp\n - path: /usr/bin/sg\n - path: /usr/sbin/adduser \n - path: /usr/sbin/deluser\n - path: /usr/sbin/chpasswd\n - path: /usr/sbin/groupadd\n - path: /usr/sbin/groupdel\n - path: /usr/sbin/addgroup\n - path: /usr/sbin/delgroup\n - path: /usr/sbin/groupmems\n - path: /usr/sbin/groupmod\n - path: /usr/sbin/grpck\n - path: /usr/sbin/grpconv\n - path: /usr/sbin/grpunconv\n - path: /usr/sbin/newusers\n - path: /usr/sbin/pwck\n - path: /usr/sbin/pwconv\n - path: /usr/sbin/pwunconv\n - path: /usr/sbin/useradd\n - path: /usr/sbin/userdel\n - path: /usr/sbin/usermod\n - path: /usr/sbin/vigr\n - path: /usr/sbin/vipw\n - path: /usr/sbin/unix_chkpwd\n - path: /usr/bin/openssl\n - path: /usr/sbin/update-ca-certificates\n file:\n matchDirectories:\n - dir: /dev/\n - dir: /root/\n action: Audit"} |
|
{"instruction":"Create a KubeArmorPolicy for a kubernetes environment. Selects the Kubernetes pods to which this policy will apply. In this case, it selects pods with the label 'app: cass-server'. defines rules related to processes running in the selected pods. similar to matchpath, but for dictionaries, specifies a rule that matches a specific directory path '/sbin/'. Specifies the action to take when rules match, in which case the 'Block' action blocks the execution of the matching process.","output":"kind: KubeArmorPolicy\nspec:\n selector:\n matchLabels:\n app: cass-server\n process:\n matchDirectories:\n - dir: /sbin/\n action: Block"} |
|
{"instruction":"Create a KubeArmorPolicy for a kubernetes environment. Selects the Kubernetes pods to which this policy will apply. In this case, it selects pods with the label 'app: laravel-pod'. defines rules related to processes running in the selected pods. applies the rule to processes with the '/*/apt-get install *' pattern. '/*/*/apt-get install *' pattern. '/*/apt install *' pattern. '/*/*/apt install *' pattern. '/*/apt install fwupd\t #new firmware installation' pattern. '/*/*/apt install fwupd' pattern. '/*/apt-get install fwupd' pattern. '/*/*/apt-get install fwupd' pattern. similar to matchpath, but for dictionaries, specifies a rule that matches a specific directory path '/dev/'. recursive is enabled, so the coverage will extend to the subdirectories of the directory defined with matchDirectories. Specifies the action to take when rules match, in which case the 'Audit' action logs the execution of the matching process.","output":"kind: KubeArmorPolicy\nspec:\n selector:\n matchLabels:\n app: laravel-pod\n process:\n matchPatterns:\n - pattern: */apt-get install * \n - pattern: */apt install *\n - pattern: */apt install fwupd\n - pattern: */apt-get install fwupd\n matchDirectories:\n - dir: /dev/ \n recursive: true \n action: Audit"} |
|
{"instruction":"Create a KubeArmorPolicy for a kubernetes environment. Selects the Kubernetes pods to which this policy will apply. In this case, it selects pods with the label 'container: xorddos'. defines the policy related to file access. Specifies a rule that matches a specific file absolute path '/etc/shadow'. Specifies what to do when rules match, in which case the action 'Block' blocks access to the matching file.","output":"kind: KubeArmorPolicy\nspec:\n selector:\n matchLabels:\n container: xorddos\n file:\n matchPaths:\n - path: /etc/shadow\n action: Block"} |
|
{"instruction":"Create a KubeArmorPolicy for a kubernetes environment. Selects the Kubernetes pods to which this policy will apply. In this case, it selects pods with the label 'container: mysql-1'. defines the policy related to file access. Specifies a rule that matches a specific file absolute path '/etc/group'. '/etc/group-'. '/etc/passwd'. '/etc/gshadow'. '/etc/gshadow-'. Specifies what to do when rules match, in which case the action 'Audit' monitorings access to the matching file. defines rules related to processes running in the selected pods. apply rules to the executable processes at paths '/usr/sbin/pwconv'. Specifies the action to take when rules match, in which case the 'Audit' action logs the execution of the matching process.","output":"kind: KubeArmorPolicy\nspec:\n selector:\n matchLabels:\n container: mysql-1 \n process:\n matchPaths:\n - path: /usr/sbin/pwconv\n file:\n matchPaths:\n - path: /etc/group\n - path: /etc/group-\n - path: /etc/passwd\n - path: /etc/gshadow\n - path: /etc/gshadow-\n action: Audit"} |
|
{"instruction":"Create a KubeArmorPolicy for a kubernetes environment. Selects the Kubernetes pods to which this policy will apply. In this case, it selects pods with the label 'app: mongo'. defines the policy related to file access. similar to matchpath, but for dictionaries, specifies a rule that matches a specific directory path '/credentials/', Specifies what to do when rules match, in which case the action 'Audit' monitorings access to the matching file.","output":"kind: KubeArmorPolicy\nspec:\n selector:\n matchLabels:\n app: mongo \n file:\n matchDirectories:\n - dir: /credentials/\n action: Audit"} |
|
{"instruction":"Create a KubeArmorPolicy for a kubernetes environment. Selects the Kubernetes pods to which this policy will apply. In this case, it selects pods with the label 'app: mongo-db'. defines rules related to processes running in the selected pods. similar to matchpath, but for dictionaries, specifies a rule that matches a specific directory path '/bin/'. ownerOnly is enabled, so only the owner of the executable defined by matchPaths and matchDirectories can run. recursive is enabled, so the coverage will extend to the subdirectories of the directory defined with matchDirectories. '/sbin/'. ownerOnly is enabled, so only the owner of the executable defined by matchPaths and matchDirectories can run. recursive is enabled, so the coverage will extend to the subdirectories of the directory defined with matchDirectories. '/usr/bin/'. ownerOnly is enabled, so only the owner of the executable defined by matchPaths and matchDirectories can run. recursive is enabled, so the coverage will extend to the subdirectories of the directory defined with matchDirectories. '/usr/sbin/'. ownerOnly is enabled, so only the owner of the executable defined by matchPaths and matchDirectories can run. recursive is enabled, so the coverage will extend to the subdirectories of the directory defined with matchDirectories. Specifies the action to take when rules match, in which case the 'Audit' action logs the execution of the matching process.","output":"kind: KubeArmorPolicy\nspec:\n selector:\n matchLabels:\n app: mongo-db \n process:\n matchDirectories:\n - dir: /bin/\n ownerOnly: true\n recursive: true\n - dir: /sbin/\n ownerOnly: true\n recursive: true\n - dir: /usr/bin/\n ownerOnly: true\n recursive: true\n - dir: /usr/sbin/\n ownerOnly: true\n recursive: true\n action: Audit"} |
|
{"instruction":"Create a KubeArmorPolicy for a kubernetes environment. Selects the Kubernetes pods to which this policy will apply. In this case, it selects pods with the label 'app: mysql8'. defines the policy related to file access. similar to matchpath, but for dictionaries, specifies a rule that matches a specific directory path '/dev/shm/', If readOnly is enabled, the read operation will be only allowed, and any other operations (e.g., write) will be blocked. recursive is enabled, so the coverage will extend to the subdirectories of the directory defined with matchDirectories. Specifies what to do when rules match, in which case the action 'Block' blocks access to the matching file.","output":"kind: KubeArmorPolicy\nspec:\n selector:\n matchLabels:\n app: mysql8 \n file:\n matchDirectories:\n - dir: /dev/shm/\n readOnly: true\n recursive: true\n action: Block"} |
|
{"instruction":"Create a KubeArmorPolicy for a kubernetes environment. Selects the Kubernetes pods to which this policy will apply. In this case, it selects pods with the label 'app: testpod'. defines the policy related to file access. Specifies a rule that matches a specific file absolute path '/root/.Blackhawk.sh'. Specifies what to do when rules match, in which case the action 'Block' blocks access to the matching file. applies the rule to files with the '/**/.Blackhawk.sh' pattern, '/.Blackhawk.sh' pattern, defines rules related to processes running in the selected pods. apply rules to the executable processes at paths '/usr/bin/chmod'. When the 'fromSource' field is defined, the action is only applied to source processes in the path '/usr/lib/jvm/java-9-openjdk-amd64/bin/java'. Specifies the action to take when rules match, in which case the 'Block' action blocks the execution of the matching process.","output":"kind: KubeArmorPolicy\nspec:\n selector:\n matchLabels:\n app: testpod \n file:\n matchPatterns:\n - pattern: .Blackhawk.sh\n - pattern: /.Blackhawk.sh\n matchPaths:\n - path: /root/.Blackhawk.sh\n process:\n matchPaths:\n - path: /usr/bin/chmod\n fromSource: \n - path: /usr/lib/jvm/java-9-openjdk-amd64/bin/java\n action: Block"} |
|
{"instruction":"Create a KubeArmorPolicy for a kubernetes environment. Selects the Kubernetes pods to which this policy will apply. In this case, it selects pods with the label 'app: java'. defines the policy related to file access. Specifies a rule that matches a specific file absolute path '/bin/bash'. '/bin/sh'. '/usr/bin/bash'. '/usr/bin/env'. '/usr/bin/shell'. '/bin/ksh'. '/etc/init.d'. '/dev/tty'. '/bin/zsh'. '/bin/tcsh'. '/bin/csh'. When the 'fromSource' field is defined, access to the file is controlled exclusively for the specified source. In this case, working rules are established for the specified source '/bin/bash'. Specifies what to do when rules match, in which case the action 'Audit' monitorings access to the matching file. defines rules related to processes running in the selected pods. apply rules to the executable processes at paths '/usr/bin/rm'. '/usr/bin/unlink'. '/usr/bin/rmdir'. '/bin/bash'. '/bin/sh'. '/usr/bin/bash'. '/usr/bin/env'. '/usr/bin/shell'. '/bin/ksh'. '/etc/init.d'. '/dev/tty'. '/bin/zsh'. '/bin/tcsh'. '/bin/csh'. Specifies the action to take when rules match, in which case the 'Audit' action logs the execution of the matching process.","output":"kind: KubeArmorPolicy\nspec:\n selector:\n matchLabels:\n app: java\n process: \n matchPaths: \n - path: /usr/bin/rm \n - path: /usr/bin/unlink\n - path: /usr/bin/rmdir \n process:\n matchPaths:\n - path: /bin/bash\n - path: /bin/sh\n - path: /usr/bin/bash\n - path: /usr/bin/env\n - path: /usr/bin/shell\n - path: /bin/ksh\n - path: /etc/init.d \n - path: /dev/tty \n - path: /bin/zsh\n - path: /bin/tcsh\n - path: /bin/csh\n file:\n matchPaths:\n - path: /bin/bash\n - path: /bin/sh\n - path: /usr/bin/bash\n - path: /usr/bin/env\n - path: /usr/bin/shell\n - path: /bin/ksh\n - path: /etc/init.d \n - path: /dev/tty \n - path: /bin/zsh\n - path: /bin/tcsh\n - path: /bin/csh\n fromSource:\n - path: /bin/bash\n action: Audit"} |
|
{"instruction":"Create a KubeArmorPolicy for a kubernetes environment. Selects the Kubernetes pods to which this policy will apply. In this case, it selects pods with the label 'app: mysql-pod'. defines the policy related to file access. similar to matchpath, but for dictionaries, specifies a rule that matches a specific directory path '/usr/local/tomcat/logs/', ownerOnly is enabled, so only the owner of the executable defined by matchPaths and matchDirectories can run. recursive is enabled, so the coverage will extend to the subdirectories of the directory defined with matchDirectories. specifies a rule that matches a specific directory path '/var/log/tomcat/', ownerOnly is enabled, so only the owner of the executable defined by matchPaths and matchDirectories can run. recursive is enabled, so the coverage will extend to the subdirectories of the directory defined with matchDirectories. Specifies what to do when rules match, in which case the action 'Audit' monitorings access to the matching file.","output":"kind: KubeArmorPolicy\nspec:\n selector:\n matchLabels: \n app: mysql-pod\n file:\n matchDirectories:\n - dir: /usr/local/tomcat/logs/\n ownerOnly: true\n recursive: true\n - dir: /var/log/tomcat/\n ownerOnly: true\n recursive: true\n action: Audit"} |
|
{"instruction":"Create a KubeArmorPolicy for a kubernetes environment. Selects the Kubernetes pods to which this policy will apply. In this case, it selects pods with the label 'pod: testpod'. defines rules related to processes running in the selected pods. applies the rule to processes with the '/*.mysql history' pattern. '/*.mysql_history' pattern. '/*.mysqlsh/history' pattern. Specifies the action to take when rules match, in which case the 'Block' action blocks the execution of the matching process.","output":"kind: KubeArmorPolicy\nspec:\n selector:\n matchLabels:\n pod: testpod\n process:\n matchPatterns:\n - pattern: |
|
|
|
**/django-admin dbshell*' pattern. '**/django-admin dbshell*\n - pattern: |
|
.htpasswd' pattern, Specifies what to do when rules match, in which case the action 'Block' blocks access to the matching file. defines rules related to processes running in the selected pods. applies the rule to processes with the 'htpasswd' pattern. Specifies the action to take when rules match, in which case the 'Block' action blocks the execution of the matching process.","output":"kind: KubeArmorPolicy\nspec:\n selector:\n matchLabels:\n app: tomcat-app\n file:\n matchPatterns:\n - pattern: /**/.htpasswd\n process:\n matchPatterns:\n - pattern: /**/htpasswd\n action: Block"} |
|
{"instruction":"Create a KubeArmorPolicy for a kubernetes environment. Selects the Kubernetes pods to which this policy will apply. In this case, it selects pods with the label 'group: group-1'. defines the policy related to file access. Specifies a rule that matches a specific file absolute path '/usr/local/tomcat/conf/server.xml'. Specifies what to do when rules match, in which case the action 'Audit' monitorings access to the matching file.","output":"kind: KubeArmorPolicy\nspec:\n selector:\n matchLabels:\n group: group-1\n file:\n matchPaths:\n - path: /usr/local/tomcat/conf/server.xml\n action: Audit"} |
|
{"instruction":"Create a KubeArmorPolicy for a kubernetes environment. Selects the Kubernetes pods to which this policy will apply. In this case, it selects pods with the label 'app: apache'. defines the policy related to file access. similar to matchpath, but for dictionaries, specifies a rule that matches a specific directory path '/etc/ssl/', If readOnly is enabled, the read operation will be only allowed, and any other operations (e.g., write) will be blocked. recursive is enabled, so the coverage will extend to the subdirectories of the directory defined with matchDirectories. specifies a rule that matches a specific directory path '/etc/pki/', If readOnly is enabled, the read operation will be only allowed, and any other operations (e.g., write) will be blocked. recursive is enabled, so the coverage will extend to the subdirectories of the directory defined with matchDirectories. specifies a rule that matches a specific directory path '/usr/local/share/ca-certificates/', If readOnly is enabled, the read operation will be only allowed, and any other operations (e.g., write) will be blocked. recursive is enabled, so the coverage will extend to the subdirectories of the directory defined with matchDirectories. Specifies what to do when rules match, in which case the action 'Block' blocks access to the matching file.","output":"kind: KubeArmorPolicy\nspec:\n selector:\n matchLabels:\n app: apache\n file:\n matchDirectories:\n - dir: /etc/ssl/\n readOnly: true\n recursive: true\n - dir: /etc/pki/\n readOnly: true\n recursive: true\n - dir: /usr/local/share/ca-certificates/\n readOnly: true\n recursive: true\n action: Block"} |
|
{"instruction":"Create a KubeArmorPolicy for a kubernetes environment. Selects the Kubernetes pods to which this policy will apply. In this case, it selects pods with the label 'app: flask-app'. defines rules related to processes running in the selected pods. apply rules to the executable processes at paths '/usr/bin/base32'. '/usr/bin/base16'. '/usr/bin/base32plain'. '/usr/bin/base32hex'. Specifies the action to take when rules match, in which case the 'Audit' action logs the execution of the matching process.","output":"kind: KubeArmorPolicy\nspec:\n selector:\n matchLabels:\n app: flask-app\n process:\n matchPaths:\n - path: /usr/bin/base32\n - path: /usr/bin/base16\n - path: /usr/bin/base32plain\n - path: /usr/bin/base32hex\n action: Audit"} |
|
{"instruction":"Create a KubeArmorPolicy for a kubernetes environment. Selects the Kubernetes pods to which this policy will apply. In this case, it selects pods with the label 'app: frontend'. defines the network-related policies. In this case, rule applies to raw network traffic. Specifies what to do when rules match, which means relevant network activities will be logged.","output":"kind: KubeArmorPolicy\nspec:\n selector:\n matchLabels:\n app: frontend\n network:\n matchProtocols:\n - protocol: raw\n action: Audit"} |
|
{"instruction":"Create a KubeArmorPolicy for a kubernetes environment. Selects the Kubernetes pods to which this policy will apply. In this case, it selects pods with the label 'pod: testpod'. defines rules related to processes running in the selected pods. apply rules to the executable processes at paths '/usr/bin/apt'. '/usr/bin/apt-get'. '/bin/apt-get'. '/sbin/apk'. '/bin/apt'. '/usr/bin/dpkg'. '/bin/dpkg'. '/usr/bin/gdebi'. '/bin/gdebi'. '/usr/bin/make'. '/bin/make'. '/usr/bin/yum'. '/bin/yum'. '/usr/bin/rpm'. '/bin/rpm'. '/usr/bin/dnf'. '/bin/dnf'. '/usr/bin/pacman'. '/usr/sbin/pacman'. '/bin/pacman'. '/sbin/pacman'. '/usr/bin/makepkg'. '/usr/sbin/makepkg'. '/bin/makepkg'. '/sbin/makepkg'. '/usr/bin/yaourt'. '/usr/sbin/yaourt'. '/bin/yaourt'. '/sbin/yaourt'. '/usr/bin/zypper'. '/bin/zypper'. Specifies the action to take when rules match, in which case the 'Block' action blocks the execution of the matching process.","output":"kind: KubeArmorPolicy\nspec:\n selector:\n matchLabels:\n pod: testpod\n process:\n matchPaths:\n - path: /usr/bin/apt\n - path: /usr/bin/apt-get\n - path: /bin/apt-get\n - path: /sbin/apk\n - path: /bin/apt\n - path: /usr/bin/dpkg\n - path: /bin/dpkg\n - path: /usr/bin/gdebi\n - path: /bin/gdebi\n - path: /usr/bin/make\n - path: /bin/make\n - path: /usr/bin/yum\n - path: /bin/yum\n - path: /usr/bin/rpm\n - path: /bin/rpm\n - path: /usr/bin/dnf\n - path: /bin/dnf\n - path: /usr/bin/pacman\n - path: /usr/sbin/pacman\n - path: /bin/pacman\n - path: /sbin/pacman\n - path: /usr/bin/makepkg\n - path: /usr/sbin/makepkg\n - path: /bin/makepkg\n - path: /sbin/makepkg\n - path: /usr/bin/yaourt\n - path: /usr/sbin/yaourt\n - path: /bin/yaourt\n - path: /sbin/yaourt\n - path: /usr/bin/zypper\n - path: /bin/zypper\n action: Block"} |
|
{"instruction":"Create a KubeArmorPolicy for a kubernetes environment. Selects the Kubernetes pods to which this policy will apply. In this case, it selects pods with the label 'container: ubuntu-1'. defines the policy related to file access. applies the rule to files with the 'npm-debug.log' pattern, similar to matchpath, but for dictionaries, specifies a rule that matches a specific directory path '/usr/local/tomcat/bin/', ownerOnly is enabled, so only the owner of the executable defined by matchPaths and matchDirectories can run. Specifies what to do when rules match, in which case the action 'Audit' monitorings access to the matching file.","output":"kind: KubeArmorPolicy\nspec:\n selector:\n matchLabels:\n container: ubuntu-1\n file: \n matchPatterns:\n - pattern: /**/npm-debug.log \n file:\n matchDirectories:\n - dir: /usr/local/tomcat/bin/\n recurive: true\n ownerOnly: true\n action: Audit"} |
|
{"instruction":"Create a KubeArmorPolicy for a kubernetes environment. Selects the Kubernetes pods to which this policy will apply. In this case, it selects pods with the label 'app: lfipod'. defines the policy related to file access. applies the rule to files with the '/etc |
|
|
|
|
|
|
|
kataras/iris' pattern, Specifies what to do when rules match, in which case the action 'Audit' monitorings access to the matching file.","output":"kind: KubeArmorPolicy\nspec:\n selector:\n matchLabels:\n app: test-app\n file:\n matchPatterns:\n - pattern: /**/kataras/iris/**/\n action: Audit"} |
|
{"instruction":"Create a KubeArmorPolicy for a kubernetes environment. Selects the Kubernetes pods to which this policy will apply. In this case, it selects pods with the label 'pad: testpad'. defines the policy related to file access. applies the rule to files with the 'app.yaml' pattern, 'app.yml' pattern, 'application.yaml' pattern, 'application.yml' pattern, Specifies what to do when rules match, in which case the action 'Block' blocks access to the matching file.","output":"kind: KubeArmorPolicy\nspec:\n selector:\n matchLabels:\n pad: testpad\n file:\n matchPatterns:\n - pattern: /**/app.yaml\n - pattern: /**/app.yml \n - pattern: /**/application.yaml\n - pattern: /**/application.yml \n action: Block"} |
|
{"instruction":"Create a KubeArmorPolicy for a kubernetes environment. Selects the Kubernetes pods to which this policy will apply. In this case, it selects pods with the label 'app: node-app'. defines the policy related to file access. Specifies a rule that matches a specific file absolute path '/var/lib/postgresql/data/pgdata/postgresql.conf'. '/var/lib/postgresql/data/pgdata/pg_hba.conf'. '/var/lib/postgresql/data/pgdata/pg_ident.conf'. '/var/lib/postgresql/data/pgdata/postgresql.auto.conf'. Specifies what to do when rules match, in which case the action 'Audit' monitorings access to the matching file. applies the rule to files with the '/var/lib/pgsqldata/postgresql.conf' pattern, '/var/lib/pgsqldata/pg_hba.conf' pattern, '/var/lib/pgsqldata/pg_ident.conf' pattern,","output":"kind: KubeArmorPolicy\nspec:\n selector:\n matchLabels:\n app: node-app\n file:\n matchPatterns:\n - pattern: /var/lib/pgsql/**/data/postgresql.conf\n - pattern: /var/lib/pgsql/**/data/pg_hba.conf\n - pattern: /var/lib/pgsql/**/data/pg_ident.conf\n matchPaths:\n - path: /var/lib/postgresql/data/pgdata/postgresql.conf\n - path: /var/lib/postgresql/data/pgdata/pg_hba.conf\n - path: /var/lib/postgresql/data/pgdata/pg_ident.conf\n - path: /var/lib/postgresql/data/pgdata/postgresql.auto.conf\n action: Audit"} |
|
{"instruction":"Create a KubeArmorPolicy for a kubernetes environment. Selects the Kubernetes pods to which this policy will apply. In this case, it selects pods with the label 'app: node-app'. defines the policy related to file access. applies the rule to files with the 'my.cnf' pattern, ownerOnly is enabled, so only the owner of the executable defined by matchPaths and matchDirectories can run. Specifies what to do when rules match, in which case the action 'Audit' monitorings access to the matching file.","output":"kind: KubeArmorPolicy\nspec:\n selector:\n matchLabels:\n app: node-app\n file:\n matchPatterns:\n - pattern: /**/my.cnf\n ownerOnly: true\n action: Audit"} |
|
{"instruction":"Create a KubeArmorPolicy for a kubernetes environment. Selects the Kubernetes pods to which this policy will apply. In this case, it selects pods with the label 'app: owncloud'. defines the policy related to file access. Specifies a rule that matches a specific file absolute path '/etc/mongod.conf'. ownerOnly is enabled, so only the owner of the executable defined by matchPaths and matchDirectories can run. Specifies what to do when rules match, in which case the action 'Audit' monitorings access to the matching file.","output":"kind: KubeArmorPolicy\nspec:\n selector:\n matchLabels:\n app: owncloud\n file:\n matchPaths:\n - path: /etc/mongod.conf\n ownerOnly: true\n action: Audit"} |
|
{"instruction":"Create a KubeArmorPolicy for a kubernetes environment. Selects the Kubernetes pods to which this policy will apply. In this case, it selects pods with the label 'app: testpod'. defines the policy related to file access. Specifies a rule that matches a specific file absolute path '/etc/passwd'. ownerOnly is enabled, so only the owner of the executable defined by matchPaths and matchDirectories can run. Specifies what to do when rules match, in which case the action 'Block' blocks access to the matching file.","output":"kind: KubeArmorPolicy\nspec:\n selector:\n matchLabels: \n app: testpod\n file:\n matchPaths:\n - path: /etc/passwd\n ownerOnly: true\n action: Block"} |
|
{"instruction":"Create a KubeArmorPolicy for a kubernetes environment. Selects the Kubernetes pods to which this policy will apply. In this case, it selects pods with the label 'app: samba'. defines rules related to processes running in the selected pods. apply rules to the executable processes at paths '/usr/bin/rsync'. '/bin/rsync'. '/usr/bin/scp'. '/bin/scp'. '/usr/bin/scp'. '/bin/scp'. Specifies the action to take when rules match, in which case the 'Block' action blocks the execution of the matching process.","output":"kind: KubeArmorPolicy\nspec:\n selector:\n matchLabels:\n app: samba\n process:\n matchPaths:\n - path: /usr/bin/rsync\n - path: /bin/rsync\n - path: /usr/bin/scp\n - path: /bin/scp\n - path: /usr/bin/scp\n - path: /bin/scp\n action: Block"} |
|
{"instruction":"Create a KubeArmorPolicy for a kubernetes environment. Selects the Kubernetes pods to which this policy will apply. In this case, it selects pods with the label 'container: ubuntu-1'. defines the policy related to file access. Specifies a rule that matches a specific file absolute path '/etc/hostapd/hostapd.conf'. '/etc/network/interfaces'. Specifies what to do when rules match, in which case the action 'Audit' monitorings access to the matching file.","output":"kind: KubeArmorPolicy\nspec:\n selector:\n matchLabels:\n container: ubuntu-1\n file:\n matchPaths:\n - path: /etc/hostapd/hostapd.conf\n - path: /etc/network/interfaces\n action: Audit"} |
|
{"instruction":"Create a KubeArmorPolicy for a kubernetes environment. Selects the Kubernetes pods to which this policy will apply. In this case, it selects pods with the label 'container: ubuntu-2'. defines the policy related to file access. similar to matchpath, but for dictionaries, specifies a rule that matches a specific directory path '/dev/', If readOnly is enabled, the read operation will be only allowed, and any other operations (e.g., write) will be blocked. recursive is enabled, so the coverage will extend to the subdirectories of the directory defined with matchDirectories. Specifies what to do when rules match, in which case the action 'Audit' monitorings access to the matching file.","output":"kind: KubeArmorPolicy\nspec:\n selector:\n matchLabels:\n container: ubuntu-2\n file:\n matchDirectories:\n - dir: /dev/\n readOnly: true\n recursive: true\n action: Audit"} |
|
{"instruction":"Create a KubeArmorPolicy for a kubernetes environment. Selects the Kubernetes pods to which this policy will apply. In this case, it selects pods with the label 'kubearmor.io/container.name: wordpress-mysql'. defines the policy related to file access. applies the rule to files with the 'storage/logs/laravel.log' pattern, Specifies what to do when rules match, in which case the action 'Block' blocks access to the matching file.","output":"kind: KubeArmorPolicy\nspec:\n selector:\n matchLabels:\n kubearmor.io/container.name: wordpress-mysql\n file:\n matchPatterns:\n - pattern: /**/storage/logs/laravel.log\n action: Block"} |
|
{"instruction":"Create a KubeArmorPolicy for a kubernetes environment. Selects the Kubernetes pods to which this policy will apply. In this case, it selects pods with the label 'container: zend'. defines rules related to processes running in the selected pods. applies the rule to processes with the '*tftp-server*' pattern. Specifies the action to take when rules match, in which case the 'Block' action blocks the execution of the matching process.","output":"kind: KubeArmorPolicy\nspec:\n selector:\n matchLabels:\n container: zend\n process:\n matchPatterns:\n - pattern: /**/*tftp-server*\n action: Block"} |
|
{"instruction":"Create a KubeArmorPolicy for a kubernetes environment. Selects the Kubernetes pods to which this policy will apply. In this case, it selects pods with the label 'kubearmor-app: kubearmor-host-policy-manager'. defines the policy related to file access. Specifies a rule that matches a specific file absolute path '/proc/meminfo'. '/proc/mounts'. Specifies what to do when rules match, in which case the action 'Audit' monitorings access to the matching file. defines rules related to processes running in the selected pods. applies the rule to processes with the '^/proc/\\*/maps$' pattern. '^/proc/\\*/mem$' pattern. '*/mv * /dev/null' pattern. 'maps$\n - pattern: ^/proc/\\*/mem$\n - pattern: */mv * /dev/null\n - pattern: |
|
crypto' pattern, Specifies what to do when rules match, in which case the action 'Audit' monitorings access to the matching file.","output":"kind: KubeArmorPolicy\nspec:\n selector:\n matchLabels:\n app: java-ms\n file:\n matchDirectories:\n - dir: /usr/local/go/src/crypto/\n recursive: true\n matchPatterns:\n - pattern: /**/crypto/**/\n action: Audit"} |
|
{"instruction":"Create a KubeArmorPolicy for a kubernetes environment. Selects the Kubernetes pods to which this policy will apply. In this case, it selects pods with the label 'app: nginx-2'. defines the policy related to file access. similar to matchpath, but for dictionaries, specifies a rule that matches a specific directory path '/credentials/', recursive is enabled, so the coverage will extend to the subdirectories of the directory defined with matchDirectories. Specifies what to do when rules match, in which case the action 'Allow' allows access to the matching file. defines rules related to processes running in the selected pods. similar to matchpath, but for dictionaries, specifies a rule that matches a specific directory path '/bin/'. Specifies the action to take when rules match, in which case the 'Allow' action allows the execution of the matching process.","output":"kind: KubeArmorPolicy\nspec:\n selector:\n matchLabels:\n app: nginx-2\n process:\n matchDirectories:\n - dir: /bin/\n file:\n matchDirectories:\n - dir: /credentials/\n recursive: true\n action: Allow"} |
|
{"instruction":"Create a KubeArmorPolicy for a kubernetes environment. Selects the Kubernetes pods to which this policy will apply. In this case, it selects pods with the label 'app: test'. defines rules related to processes running in the selected pods. similar to matchpath, but for dictionaries, specifies a rule that matches a specific directory path '/sbin/'. Specifies the action to take when rules match, in which case the 'Block' action blocks the execution of the matching process.","output":"kind: KubeArmorPolicy\nspec:\n selector:\n matchLabels:\n app: test \n process:\n matchDirectories:\n - dir: /sbin/\n action: Block"} |
|
{"instruction":"Create a KubeArmorPolicy for a kubernetes environment. Selects the Kubernetes pods to which this policy will apply. In this case, it selects pods with the label 'app: rhel8'. defines rules related to processes running in the selected pods. similar to matchpath, but for dictionaries, specifies a rule that matches a specific directory path '/sbin/'. recursive is enabled, so the coverage will extend to the subdirectories of the directory defined with matchDirectories. Specifies the action to take when rules match, in which case the 'Audit' action logs the execution of the matching process.","output":"kind: KubeArmorPolicy\nspec:\n selector:\n matchLabels:\n app: rhel8\n process:\n matchDirectories:\n - dir: /sbin/\n recursive: true\n action: Audit"} |
|
{"instruction":"Create a KubeArmorPolicy for a kubernetes environment. Selects the Kubernetes pods to which this policy will apply. In this case, it selects pods with the label 'pod: test'. defines the network-related policies. In this case, rule applies to raw network traffic. Specifies what to do when rules match, which means relevant network activities will be blocked.","output":"kind: KubeArmorPolicy\nspec:\n selector:\n matchLabels:\n pod: test\n network:\n matchProtocols:\n - protocol: raw\n action: Block"} |
|
{"instruction":"Create a KubeArmorPolicy for a kubernetes environment. Selects the Kubernetes pods to which this policy will apply. In this case, it selects pods with the label 'app: pickle-app'. defines rules related to processes running in the selected pods. applies the rule to processes with the 'bulk' pattern. '*bulk' pattern. '**/bulk' pattern. Specifies the action to take when rules match, in which case the 'Audit' action logs the execution of the matching process.","output":"kind: KubeArmorPolicy\nspec:\n selector:\n matchLabels:\n app: pickle-app\n process:\n matchPatterns:\n - pattern: /**/bulk\n - pattern: /**/*bulk\n - pattern: /**/**/bulk\n action: Audit"} |
|
{"instruction":"Create a KubeArmorPolicy for a kubernetes environment. Selects the Kubernetes pods to which this policy will apply. In this case, it selects pods with the label 'app: frontend'. defines the policy related to file access. similar to matchpath, but for dictionaries, specifies a rule that matches a specific directory path '/var/log/', recursive is enabled, so the coverage will extend to the subdirectories of the directory defined with matchDirectories. When the 'fromSource' field is defined, access to the file is controlled exclusively for the specified source. In this case, working rules are established for the specified source specifies a rule that matches a specific directory path '/usr/bin/rm', specifies a rule that matches a specific directory path '/bin/rm', specifies a rule that matches a specific directory path '/usr/bin/rmdir', specifies a rule that matches a specific directory path '/bin/rmdir', specifies a rule that matches a specific directory path '/usr/bin/unlink', specifies a rule that matches a specific directory path '/bin/unlink', Specifies what to do when rules match, in which case the action 'Block' blocks access to the matching file.","output":"kind: KubeArmorPolicy\nspec:\n selector:\n matchLabels:\n app: frontend\n file:\n matchDirectories:\n - dir: /var/log/\n recursive: true\n fromSource: \n - path: /usr/bin/rm\n - path: /bin/rm\n - path: /usr/bin/rmdir\n - path: /bin/rmdir\n - path: /usr/bin/unlink\n - path: /bin/unlink\n action: Block"} |
|
{"instruction":"Create a KubeArmorPolicy for a kubernetes environment. Selects the Kubernetes pods to which this policy will apply. In this case, it selects pods with the label 'container: ubuntu-5'. defines the policy related to file access. similar to matchpath, but for dictionaries, specifies a rule that matches a specific directory path '/usr/local/tomcat/webapps/', recursive is enabled, so the coverage will extend to the subdirectories of the directory defined with matchDirectories. ownerOnly is enabled, so only the owner of the executable defined by matchPaths and matchDirectories can run. Specifies what to do when rules match, in which case the action 'Audit' monitorings access to the matching file.","output":"kind: KubeArmorPolicy\nspec:\n selector:\n matchLabels:\n container: ubuntu-5\n file:\n matchDirectories:\n - dir: /usr/local/tomcat/webapps/\n recursive: true\n ownerOnly: true\n action: Audit"} |