2022-10-14 12:42:10 +00:00
|
|
|
-- Detect the execution of priveleged Docker containers which can be used to escape to the host.
|
|
|
|
--
|
|
|
|
-- references:
|
|
|
|
-- * https://attack.mitre.org/techniques/T1611/
|
|
|
|
--
|
|
|
|
-- This query works on macOS as well, but is only an in-the-wild security problem on Linux,
|
|
|
|
-- where the kernel namespaces can be shared.
|
|
|
|
--
|
|
|
|
-- platform: linux
|
|
|
|
-- tags: ephemeral often
|
2022-09-24 15:12:23 +00:00
|
|
|
SELECT
|
|
|
|
*
|
|
|
|
FROM
|
|
|
|
docker_containers
|
|
|
|
WHERE
|
|
|
|
privileged = 1
|
2022-10-13 18:59:32 +00:00
|
|
|
AND image NOT LIKE 'kindest/node:%';
|