osquery-defense-kit/incident_response/recent_items_macos.sql

20 lines
349 B
MySQL
Raw Permalink Normal View History

2022-10-13 13:11:17 +00:00
-- Retrieves the list of recent items opened in OSX by parsing the plist per user.
-- tags: postmortem
2022-10-13 13:11:17 +00:00
-- platform: darwin
2022-10-17 23:06:17 +00:00
select
username,
key,
value
from
plist p,
(
select
*
from
users
where
directory like '/Users/%'
) u
where
p.path = u.directory || '/Library/Preferences/com.apple.recentitems.plist';