Skip to content

Commit

Permalink
Update kubernetes_pod_create_or_modify_host_path_vol_mount_query.yml (#…
Browse files Browse the repository at this point in the history
…983)

Missing a tick in the hostPath where for /var/run/docker.sock

Co-authored-by: Ariel Ropek <[email protected]>
  • Loading branch information
dotbeseck and arielkr256 authored Dec 1, 2023
1 parent c25a5ab commit 08c5cc2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Query: >
WHERE
verb IN ('create', 'update', 'patch')
AND objectRef:resource = 'pods'
AND request_object:spec:volumes[0]:hostPath:path ilike ANY (/var/run/docker.sock','/var/run/crio/crio.sock','/var/lib/kubelet','/var/lib/kubelet/pki','/var/lib/docker/overlay2','/etc/kubernetes','/etc/kubernetes/manifests','/etc/kubernetes/pki','/home/admin')
AND request_object:spec:volumes[0]:hostPath:path ilike ANY ('/var/run/docker.sock','/var/run/crio/crio.sock','/var/lib/kubelet','/var/lib/kubelet/pki','/var/lib/docker/overlay2','/etc/kubernetes','/etc/kubernetes/manifests','/etc/kubernetes/pki','/home/admin')
AND p_occurs_since('30 minutes')
--insert allow-list for expected workloads that require a sensitive mount
LIMIT 10
Expand Down

0 comments on commit 08c5cc2

Please sign in to comment.