name path mismatch: only whitelist shells with same cmdlines

This commit is contained in:
Thomas Stromberg 2023-02-17 10:47:49 -05:00
parent 3d13d4995a
commit a655122eec
Failed to extract signature

View File

@ -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',