mirror of
https://github.com/chainguard-dev/osquery-defense-kit
synced 2025-01-31 09:41:35 +00:00
name path mismatch: only whitelist shells with same cmdlines
This commit is contained in:
parent
3d13d4995a
commit
a655122eec
@ -51,13 +51,17 @@ FROM
|
||||
WHERE
|
||||
short_filename != short_name
|
||||
AND NOT p0_cmd LIKE '/nix/store/%/bin/bash%' -- Serial masqueraders
|
||||
AND NOT short_filename IN (
|
||||
'bash',
|
||||
'ruby',
|
||||
'python',
|
||||
'python3',
|
||||
'perl',
|
||||
'node'
|
||||
AND NOT (
|
||||
short_filename IN (
|
||||
'bash',
|
||||
'ruby',
|
||||
'python',
|
||||
'python3',
|
||||
'perl',
|
||||
'node'
|
||||
)
|
||||
-- ddexec
|
||||
AND LENGTH(p0.cmdline) > 2
|
||||
)
|
||||
AND exception_key NOT IN (
|
||||
'name=apt,file=dash,0',
|
||||
|
Loading…
Reference in New Issue
Block a user