Skip to content

Commit 6f7c8be

Browse files
Arta AsadiArta Asadi
Arta Asadi
authored and
Arta Asadi
committed
fix: fix queries tags
1 parent c373e2e commit 6f7c8be

11 files changed

+76
-38
lines changed

queries/k8/k8s_clusterrolebindings_granting_cluster_admin.yaml

+8-4
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,14 @@ query: |
5050
crb.platform_integration_id ASC,
5151
resource ASC;
5252
tags:
53-
asset: Kubernetes
54-
value: Enforce Least Privilege
55-
outcome: Reduce Security Risk
56-
standard: CIS Kubernetes Benchmark
53+
asset:
54+
- Kubernetes
55+
value:
56+
- Enforce Least Privilege
57+
outcome:
58+
- Reduce Security Risk
59+
standard:
60+
- CIS Kubernetes Benchmark
5761
classification:
5862
- [ "Security", "IAM", "Admin Rights" ]
5963
- [ "Security", "IAM", "Excessive Permissions" ]

queries/k8/k8s_containers_running_as_root.yaml

+8-4
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,14 @@ query: |
5050
p.platform_integration_id ASC,
5151
resource ASC;
5252
tags:
53-
asset: Kubernetes
54-
value: Reduce Security Risk
55-
outcome: Limit Blast Radius
56-
standard: CIS Kubernetes Benchmark
53+
asset:
54+
- Kubernetes
55+
value:
56+
- Reduce Security Risk
57+
outcome:
58+
- Limit Blast Radius
59+
standard:
60+
- CIS Kubernetes Benchmark
5761
classification:
5862
- [ "Security", "Workload Configuration" ]
5963
- [ "Security", "Vulnerabilities", "Containers" ]

queries/k8/k8s_ingress_without_tls.yaml

+8-4
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,14 @@ query: |
3030
i.platform_integration_id ASC,
3131
resource ASC;
3232
tags:
33-
asset: Kubernetes
34-
value: Enhance Data Security
35-
outcome: Enforce Encryption
36-
standard: CIS Kubernetes Benchmark
33+
asset:
34+
- Kubernetes
35+
value:
36+
- Enhance Data Security
37+
outcome:
38+
- Enforce Encryption
39+
standard:
40+
- CIS Kubernetes Benchmark
3741
classification:
3842
- [ "Security", "Web Security" ]
3943
- [ "Security", "Data Protection" ]

queries/k8/k8s_pod_privileged_containers.yaml

+6-3
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,12 @@ query: |
3232
p.platform_integration_id ASC,
3333
resource ASC;
3434
tags:
35-
asset: Kubernetes
36-
value: Reduce Security Risk
37-
outcome: Limit Blast Radius
35+
asset:
36+
- Kubernetes
37+
value:
38+
- Reduce Security Risk
39+
outcome:
40+
- Limit Blast Radius
3841
classification:
3942
- [ "Security", "Workload Configuration" ]
4043
- [ "Security", "Vulnerabilities", "Containers" ]

queries/k8/k8s_pods_mounting_sensitive_hostpaths.yaml

+6-3
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,15 @@ query: |
4242
p.platform_integration_id ASC,
4343
resource ASC;
4444
tags:
45-
asset: Kubernetes
46-
value: Reduce Attack Surface
45+
asset:
46+
- Kubernetes
47+
value:
48+
- Reduce Attack Surface
4749
outcome: # Use list format for multiple outcomes
4850
- Enhance Isolation
4951
- Prevent Container Escape
50-
standard: CIS Kubernetes Benchmark
52+
standard:
53+
- CIS Kubernetes Benchmark
5154
classification:
5255
- [ "Security", "Workload Configuration" ]
5356
- [ "Security", "Vulnerabilities", "Configuration" ]

queries/k8/k8s_pods_using_host_network.yaml

+8-4
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,14 @@ query: |
2828
p.platform_integration_id ASC,
2929
resource ASC;
3030
tags:
31-
asset: Kubernetes
32-
value: Reduce Attack Surface
33-
outcome: Enhance Isolation
34-
standard: CIS Kubernetes Benchmark
31+
asset:
32+
- Kubernetes
33+
value:
34+
- Reduce Attack Surface
35+
outcome:
36+
- Enhance Isolation
37+
standard:
38+
- CIS Kubernetes Benchmark
3539
classification:
3640
- [ "Security", "Workload Configuration" ]
3741
- [ "Security", "Vulnerabilities", "Configuration" ]

queries/k8/k8s_pods_using_host_pid_ipc.yaml

+8-4
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,14 @@ query: |
3333
p.platform_integration_id ASC,
3434
resource ASC;
3535
tags:
36-
asset: Kubernetes
37-
value: Reduce Attack Surface
38-
outcome: Enhance Isolation
39-
standard: CIS Kubernetes Benchmark
36+
asset:
37+
- Kubernetes
38+
value:
39+
- Reduce Attack Surface
40+
outcome:
41+
- Enhance Isolation
42+
standard:
43+
- CIS Kubernetes Benchmark
4044
classification:
4145
- [ "Security", "Workload Configuration" ]
4246
- [ "Security", "Vulnerabilities", "Configuration" ]

queries/k8/k8s_rbac_wildcard_permissions.yaml

+8-4
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,14 @@ query: |
6565
rww.platform_integration_id ASC,
6666
resource ASC;
6767
tags:
68-
asset: Kubernetes
69-
value: Enforce Least Privilege
70-
outcome: Reduce Security Risk
71-
standard: CIS Kubernetes Benchmark
68+
asset:
69+
- Kubernetes
70+
value:
71+
- Enforce Least Privilege
72+
outcome:
73+
- Reduce Security Risk
74+
standard:
75+
- CIS Kubernetes Benchmark
7276
classification:
7377
- [ "Security", "IAM", "Excessive Permissions" ]
7478
- [ "Infrastructure", "Kubernetes", "Access Control" ]

queries/k8/k8s_services_exposed_externally.yaml

+6-3
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,12 @@ query: |
3131
s.platform_integration_id ASC,
3232
resource ASC;
3333
tags:
34-
asset: Kubernetes
35-
value: Reduce Attack Surface
36-
outcome: Control Network Exposure
34+
asset:
35+
- Kubernetes
36+
value:
37+
- Reduce Attack Surface
38+
outcome:
39+
- Control Network Exposure
3740
classification:
3841
- [ "Security", "Public Exposure" ]
3942
- [ "Infrastructure", "Kubernetes", "Networking" ]

queries/k8/pods_running_in_default_namespace.yaml

+4-2
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,13 @@ query: |
3030
p.platform_integration_id ASC,
3131
resource ASC;
3232
tags:
33-
asset: Kubernetes
33+
asset:
34+
- Kubernetes
3435
value: # Use list format for multiple values
3536
- Improve Organization
3637
- Enhance Security Posture
37-
outcome: Facilitate Policy Enforcement
38+
outcome:
39+
- Facilitate Policy Enforcement
3840
classification:
3941
- [ "Security", "Workload Configuration" ]
4042
- [ "Infrastructure", "Kubernetes", "Configuration" ]

queries/k8/privileged_containers.yaml

+6-3
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,12 @@ query: |
8383
resource ASC,
8484
pp.container_name ASC; -- Include container name in ordering
8585
tags:
86-
asset: Kubernetes
87-
value: Reduce Security Risk
88-
outcome: Limit Blast Radius
86+
asset:
87+
- Kubernetes
88+
value:
89+
- Reduce Security Risk
90+
outcome:
91+
- Limit Blast Radius
8992
classification:
9093
- [ "Security", "Workload Configuration" ]
9194
- [ "Security", "Vulnerabilities", "Containers" ]

0 commit comments

Comments
 (0)