I’m investigating file-write attribution for iCloud Drive on an Apple silicon Mac running macOS 26.6.2. For a specified file, I’d like to correlate three pieces of information for the same operation: the process that initiated the request, the process that received it, and the process that performed the filesystem write. The receiver and the writer may be different processes.
In a read-only review of existing logs, I could correlate several File Provider job events by item identifier. Those entries were logged by fileproviderd. I also checked the Endpoint Security XPC connection event, which exposes the service name and domain type. I haven’t found a way to use those records to identify the process that received an individual request, especially when it travels over an already-open XPC connection.
Is there a supported macOS API or tracing workflow that can correlate a specific request to its receiving process and the corresponding file operation? If so, which fields should I use to join the events, and what permissions are required? If the available tools can attribute the filesystem write, how can I tell whether the receiver of the original request is also observable?