Channels
android_tests
apple-silicon
arm-architecture
auditing-warroom
aws
carving
code-review
community-feeds
core
darkbytes
doorman
ebpf
eclecticiq-polylogyx-extension
extensions
file-carving
fim
fleet
fleet-dev
fleetosquery
foundation
fuzzing
general
golang
goquery
infrastructure
jobs
kolide
linen-dev
linux
macos
officehours
osctrl
plugins
process-auditing
querycon
queryhub
random
selfgroup
sql
tls
uptycs
vendor-feeds
website
windows
zeek
zentral
zercurity
Powered by
Title
e
etsang
03/23/2021, 5:46 PM
how can I use pid as a key to query for file_evernts? I want to know which files a known pid has accessed and changed? I am not seeing pid as part of the file_events table returned.
j
Jocelyn Bothe
03/23/2021, 6:22 PM
https://osquery.io/schema/4.7.0/#file_events
Do you mean UID rather than PID? return * from file_events where uid is XXX
e
etsang
03/23/2021, 6:25 PM
No I was referring to process. I want to find out what a process is doing.
j
Jocelyn Bothe
03/23/2021, 6:25 PM
that's not supported by the schema
e
etsang
03/23/2021, 6:33 PM
anyone know if there is another query that can find out what files a process has access/changed?
j
Jocelyn Bothe
03/23/2021, 7:04 PM
https://osquery.io/schema/4.7.0/#process_file_events
https://osquery.io/schema/4.7.0/#process_open_files
4 Views
#general
Join Slack