osquery-defense-kit/startup/fake-apple-launchd.sql

14 lines
278 B
MySQL
Raw Normal View History

2022-09-08 21:58:56 +00:00
-- https://posts.specterops.io/hunting-for-bad-apples-part-1-22ef2b44c0aa
select
*
FROM
signature s
JOIN launchd d ON d.program_arguments = s.path
WHERE
d.name LIKE 'com.apple.%'
AND (
signed = 0
OR authority != 'Software Signing'
)
AND d.run_at_load = 1;