Created
January 25, 2019 14:22
-
-
Save Saluki/62dba1c692597c0443b5b48d51b2c278 to your computer and use it in GitHub Desktop.
MEDIUM - Container OSQuery - Docker users
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- See users who can access the Docker daemon | |
SELECT u.username | |
FROM user_groups ug | |
LEFT JOIN users u ON u.uid=ug.uid | |
WHERE ug.gid IN ( | |
SELECT gid FROM groups WHERE groupname="docker" | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment