Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fpr: kubernetes pods, clickshare, repos, zig-cache #459

Merged
merged 2 commits into from
Feb 19, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions detection/evasion/hidden-executable.sql
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ WHERE
'~/code',
'~/Code',
'~/.goenv',
'~/repos',
'/nix/store/.links',
'~/Projects',
'~/src',
Expand All @@ -104,6 +105,7 @@ WHERE
)
AND NOT f.directory = '/nix/store/.links'
AND NOT f.directory LIKE '%/.terraform/%'
AND NOT f.directory LIKE '%/.zig-cache/%'
AND NOT f.directory LIKE '%/anchore/grype/.tool%'
AND NOT f.directory LIKE '%/Applications/PSI Bridge Secure Browser.app/Contents/Resources/.apps/darwin/%'
AND NOT f.directory LIKE '%/com.jetbrains.GoLand/cache/JetBrains/GoLand%'
Expand Down
1 change: 1 addition & 0 deletions detection/execution/unexpected-execdir-macos.sql
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ WHERE
'~/.kuberlr/',
'~/.provisio/',
'~/.clickshare_button/',
'~/.clickshare/',
'~/.pulumi/',
'~/.pyenv/',
'~/.rbenv/',
Expand Down
15 changes: 6 additions & 9 deletions detection/persistence/unexpected-listening-port-linux.sql
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ SELECT
p_p.cmdline AS p1_cmd,
p_p_p.cmdline AS p2_cmd,
p.cgroup_path,
datetime (file.mtime, 'unixepoch') AS mtime,
datetime(file.mtime, 'unixepoch') AS mtime,
p.cwd,
hash.sha256,
CONCAT (
Expand Down Expand Up @@ -226,15 +226,11 @@ WHERE
)
-- Exclude common/default DNS talking
AND NOT (
p.name IN (
'aardvark-dns',
'coredns',
'dnsmasq'
)
p.name IN ('aardvark-dns', 'coredns', 'dnsmasq')
AND lp.port IN (
53, -- DNS
67, -- DHCP/BOOTP
547 -- DHCPv6 server
53, -- DNS
67, -- DHCP/BOOTP
547 -- DHCPv6 server
)
AND lp.protocol IN (
6, -- TCP
Expand All @@ -243,6 +239,7 @@ WHERE
)
-- Exclude processes running inside of Docker containers
AND NOT p.cgroup_path LIKE '/system.slice/docker-%'
AND NOT p.cgroup_path LIKE '/kubepods.slice/%'
AND NOT p.cgroup_path LIKE '/user.slice/user-%.slice/user@%.service/user.slice/nerdctl-%'
AND NOT p.cgroup_path LIKE '/user.slice/user-1000.slice/[email protected]/user.slice/libpod-%'
AND NOT p1_cmd LIKE 'bwrap --bind%'
Expand Down
Loading