Skip to content

Commit

Permalink
Address issues which kept these alerts from firing
Browse files Browse the repository at this point in the history
  • Loading branch information
tstromberg committed Sep 25, 2023
1 parent 715f37b commit 6b4700c
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
8 changes: 6 additions & 2 deletions detection/evasion/unexpected-dev-executables-linux.sql
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,10 @@ WHERE
file.uid = 1000
AND file.gid = 1000
AND file.mode = '0700'
AND magic.data = 'data'
AND (
magic.data IS NULL
OR magic.data = 'data'
)
AND file.path LIKE '/dev/shm/pulse-shm-%'
AND file.size > 60000000
) -- Seen with Steam
Expand All @@ -57,7 +60,8 @@ WHERE
AND file.mode IN ('0755', '0775')
AND file.path LIKE '/dev/shm/u1000-Shm_%'
AND (
magic.data NOT LIKE "%executable%"
magic.data IS NULL
OR magic.data NOT LIKE "%executable%"
OR magic.data IN (
'data',
'Applesoft BASIC program data, first line number 86',
Expand Down
5 changes: 4 additions & 1 deletion detection/evasion/unexpected-var-executables-linux.sql
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,8 @@ WHERE
'/var/run/lima-boot-done',
'/var/run/lima-ssh-ready'
)
AND magic.data NOT IN ('JSON data')
AND (
magic.data IS NULL
OR magic.data != 'JSON data'
)
AND file.size > 10
5 changes: 3 additions & 2 deletions detection/execution/unexpected-execdir-linux.sql
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
--
-- tags: transient process state
-- platform: linux
SELECT -- Child
SELECT
-- Child
p0.pid AS p0_pid,
p0.cgroup_path AS p0_cgroup,
p0.path AS p0_path,
Expand Down Expand Up @@ -66,7 +67,7 @@ WHERE
AND INSTR(path, "/app/") != 1
AND INSTR(path, "/ko-app") != 1
AND INSTR(path, "/usr/share/teams/") != 1
AND INSTR(path, "/.terraform/") > 0
AND path NOT LIKE "%/.terraform%"
AND NOT path LIKE '/tmp/%/osqtool'
AND NOT path LIKE '/tmp/GoLand/___go_build_%_go'
AND NOT cgroup_path LIKE '/user.slice/user-1000.slice/[email protected]/user.slice/nerdctl-%'
Expand Down

0 comments on commit 6b4700c

Please sign in to comment.