mirror of
https://github.com/chainguard-dev/osquery-defense-kit
synced 2024-12-13 17:44:33 +00:00
unexpected-osascript: Include signature data
This commit is contained in:
parent
cfed94d0d9
commit
f0617d5ee2
@ -15,18 +15,25 @@ SELECT
|
||||
p.euid,
|
||||
p.parent,
|
||||
p.syscall,
|
||||
hash.sha256,
|
||||
pp.path AS parent_path,
|
||||
pp.name AS parent_name,
|
||||
TRIM(p.cmdline) AS parent_cmd,
|
||||
TRIM(pp.cmdline) AS parent_cmd,
|
||||
pp.euid AS parent_euid,
|
||||
phash.sha256 AS parent_sha256
|
||||
hash.sha256 AS parent_sha256,
|
||||
signature.identifier AS parent_identifier,
|
||||
signature.authority AS parent_auth,
|
||||
CONCAT(signature.identifier, ",", signature.authority, ",", SUBSTR(TRIM(p.cmdline), 0, 54)) AS exception_key
|
||||
FROM
|
||||
uptime,
|
||||
process_events p
|
||||
LEFT JOIN processes pp ON p.parent = pp.pid
|
||||
LEFT JOIN hash ON p.path = hash.path
|
||||
LEFT JOIN hash AS phash ON pp.path = hash.path
|
||||
LEFT JOIN hash ON pp.path = hash.path
|
||||
LEFT JOIN signature ON pp.path = signature.path
|
||||
WHERE
|
||||
p.path = '/usr/bin/osascript'
|
||||
AND p.time > (strftime('%s', 'now') -60)
|
||||
AND exception_key != 'com.vng.zalo,Developer ID Application: VNG ONLINE CO.,LTD (CVB6BX97VM),osascript -ss'
|
||||
AND cmd != 'osascript -e user locale of (get system info)'
|
||||
AND NOT (
|
||||
exception_key='org.python.python,,osascript' AND parent_cmd LIKE '% /opt/homebrew/bin/jupyter-notebook'
|
||||
)
|
Loading…
Reference in New Issue
Block a user