Fleet uses osquery tables to query operating system, hardware, and software data. Each table provides specific data for analysis and filtering.
userassist
UserAssist Registry Key tracks when a user executes an application from Windows Explorer.
Column | Type | Description |
---|---|---|
count | integer | Number of times the application has been executed. |
last_execution_time | bigint | Most recent time application was executed. |
path | text | Application file path. |
sid | text | User SID. |
The User Assist featureset allows Windows to keep track of most recently used applications. Because of that, it is a useful datasource to pull from during investigations and incident response. The following example queries the userassist table and converts the last_execution_time into a human readable format (using UTC) and then sorts the results by this column, descending. It also joins the users table to change the user SID into a human readable username. The output from this query displays most recently used applications, sorted by most recent timestamp as well as the username of who ran it.
SELECT userassist.path, datetime(userassist.last_execution_time, 'unixepoch') AS timestamp_of_last_exec, userassist.count as execution_count, users.username FROM userassist join users ON users.uuid = userassist.sid ORDER BY timestamp_of_last_exec DESC;