Audit Log
The per-process JSONL log the observer writes for every tracked process, its event types by platform, and what to do about dropped events.
Every process the notary tracks gets its own log file under EQTY_LOG_DIR, default
/var/log/eqty-notary/: one JSON object per line, one line per event the kernel reported for
that process. The file is named pid-<pid>-<unique_tag>.jsonl, where the tag is the process
start time, so a reused PID gets a new file.
The logs are software-level attestation: what a process did, as observed. They are not part of
any credential, and the notary never deletes a file for a reason other than the retention
policy below. /v1/processes gives the current file for each tracked PID.
Events
{"type":"exec","pid":12345,"ts_unix_ns":1730000000000000000,
"comm":"bash","path":"/usr/bin/bash","cgroup_id":24351,
"binary_hash":"ab12…","decisions":[{"level":"info","message":"exec"}]}
{"type":"open","pid":12345,"ts_unix_ns":…,"comm":"bash","path":"/etc/hostname","flags":0,"decisions":[…]}
{"type":"close","pid":12345,"ts_unix_ns":…,"comm":"bash","path":"hostname","written":false,"decisions":[…]}
{"type":"fork","parent_pid":12345,"child_pid":12346,"ts_unix_ns":…,"comm":"bash","decisions":[…]}
{"type":"exit","pid":12345,"ts_unix_ns":…,"status":0,"decisions":[…]}
{"type":"dropped","count":5,"ts_unix_ns":…}| Field | Meaning |
|---|---|
ts_unix_ns | Nanoseconds since the Unix epoch. |
cgroup_id | The kernel cgroup id, for correlating with a container manager. |
path | On open, the full path from the syscall argument. On close, the basename only; resolving the full path at close time needs bpf_d_path, which is not available from tracepoint context. It may be ? for descriptors opened before tracking started, or for pipes and sockets. Reconstruct descriptor to path from the open events. |
decisions | The output of the policy chain: default rules tag suspicious paths and credential-file accesses. |
dropped | The per-process channel overflowed. The log has a gap. See below. |
A fork child inherits tracking from its parent until it execs an unregistered binary, at which
point it is dropped from the tracked set. The file is closed and synced on exit. If the daemon
crashes mid-process the file may end mid-line; consumers should tolerate a trailing partial line.
Coverage by platform
| Event | Linux (eBPF) | macOS (kqueue) | Windows (ETW) |
|---|---|---|---|
| Exec | Yes, bprm_execve kprobe | Yes, proc_listallpids poll | Yes |
| Fork | Yes, sched_process_fork tracepoint | Yes, NOTE_FORK | No |
| Exit | Yes, sched_process_exit tracepoint | Yes, NOTE_EXIT | Yes |
| Open | Yes, do_sys_openat2 kprobe | No; needs an Endpoint Security entitlement | No |
| Close | Yes, sys_enter_close tracepoint | No | No |
| Read, write | No | No | No |
Open is enough to reconstruct which files a process touched without flooding the log; read and
write would fire per syscall. On macOS, open and close events need Apple to grant the
com.apple.developer.endpoint-security.client entitlement plus hardened-runtime signing and
notarization; the kqueue observer the package ships needs no entitlement.
With auto-registration, a process the kernel never saw exec, because it was already running when it first called in, is adopted on the spot. Its open and close events are not logged, and its exit is detected by polling.
Dropped events and completeness
The observer hands events to a bounded channel per process. Under load, or when the kernel ring
buffer overflows, events are dropped and a dropped line is written with the count. The
dispatcher then rechecks every tracked PID’s start time and live executable hash and evicts
stale entries, so a lost untrack event cannot leave a signing capability behind. Signing is
unaffected; the detailed event stream is incomplete after a drop, and the audit log says so.
GET /v1/audit_status reports complete, droppedEvents, logFailures and storedBytes so a
consumer can tell before reading the files.
Limits and retention
| Setting | Default | Effect |
|---|---|---|
EQTY_AUDIT_MAX_FILE_BYTES | 64 MiB | One process log stops growing here; later events count as dropped. |
EQTY_AUDIT_MAX_TOTAL_BYTES | 1 GiB | Total for the directory. |
EQTY_AUDIT_RETENTION_DAYS | 7 | Expired, inactive logs are removed at startup and hourly. |
On Linux the directory is 0750 root:eqty-notary: add yourself to the eqty-notary group to
read the logs as a non-root user. Logs may carry process information, so they are not world
readable.