mirror of
https://github.com/chainguard-dev/osquery-defense-kit
synced 2025-01-19 03:50:46 +00:00
19 lines
551 B
MySQL
19 lines
551 B
MySQL
|
-- Detect the execution of a Docker containing mounting the root filesystem
|
||
|
--
|
||
|
-- references:
|
||
|
-- * https://attack.mitre.org/techniques/T1611/
|
||
|
-- * https://github.com/liamg/traitor/blob/main/pkg/exploits/dockersock/exploit.go
|
||
|
--
|
||
|
-- This attack is very quick, so the likelihood of finding a culprit is entirely
|
||
|
-- dependent on the polling time.
|
||
|
--
|
||
|
-- platform: linux
|
||
|
-- tags: ephemeral often
|
||
|
SELECT
|
||
|
command, image_id, path, security_options, started_at, image
|
||
|
FROM
|
||
|
docker_containers
|
||
|
WHERE
|
||
|
privileged = 1
|
||
|
AND image NOT LIKE 'kindest/node:%';
|