mirror of
https://github.com/chainguard-dev/osquery-defense-kit
synced 2025-02-28 16:00:22 +00:00
Merge pull request #275 from tstromberg/fpr-jun8
Add exceptions for common hidden directories
This commit is contained in:
commit
e16a74cdc3
@ -6,6 +6,7 @@
|
|||||||
-- tags: transient
|
-- tags: transient
|
||||||
-- platform: posix
|
-- platform: posix
|
||||||
SELECT
|
SELECT
|
||||||
|
f.directory,
|
||||||
-- Child
|
-- Child
|
||||||
p0.pid AS p0_pid,
|
p0.pid AS p0_pid,
|
||||||
p0.path AS p0_path,
|
p0.path AS p0_path,
|
||||||
@ -43,8 +44,23 @@ WHERE
|
|||||||
OR f.filename LIKE '.%'
|
OR f.filename LIKE '.%'
|
||||||
OR f.directory LIKE '%/.%'
|
OR f.directory LIKE '%/.%'
|
||||||
)
|
)
|
||||||
|
AND NOT f.directory LIKE '%/.bin'
|
||||||
|
AND NOT f.directory LIKE '%/.bin-unwrapped'
|
||||||
|
AND NOT f.directory LIKE '%/.cargo/bin'
|
||||||
|
AND NOT f.directory LIKE '%/.config/nvm/%/bin'
|
||||||
|
AND NOT f.directory LIKE '%/.local/%'
|
||||||
|
AND NOT f.directory LIKE '%/node_modules/.bin/%'
|
||||||
|
AND NOT f.directory LIKE '%/.nvm/versions/%/bin'
|
||||||
|
AND NOT f.directory LIKE '%/.pnpm/%'
|
||||||
|
AND NOT f.directory LIKE '%/.rustup/%'
|
||||||
|
AND NOT f.directory LIKE '%/.terraform'
|
||||||
|
AND NOT f.directory LIKE '%/.terraform/%'
|
||||||
|
AND NOT f.directory LIKE '%/.vscode/extensions/%'
|
||||||
|
AND NOT f.directory LIKE '%/.vscode-insiders/extensions/%'
|
||||||
|
AND NOT f.path LIKE '/home/%/.config/bluejeans-v2/BluejeansHelper'
|
||||||
AND NOT f.path LIKE '/nix/store/%/%-wrapped'
|
AND NOT f.path LIKE '/nix/store/%/%-wrapped'
|
||||||
AND NOT (
|
AND NOT (
|
||||||
f.path LIKE '/nix/store/%'
|
f.path LIKE '/nix/store/%'
|
||||||
AND p0.name LIKE '%-wrappe%'
|
AND p0.name LIKE '%-wrappe%'
|
||||||
)
|
)
|
||||||
|
GROUP BY f.path
|
Loading…
Reference in New Issue
Block a user