EQTY LabDocs

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.

View as Markdown

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

json
{"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":…}
FieldMeaning
ts_unix_nsNanoseconds since the Unix epoch.
cgroup_idThe kernel cgroup id, for correlating with a container manager.
pathOn 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.
decisionsThe output of the policy chain: default rules tag suspicious paths and credential-file accesses.
droppedThe 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

EventLinux (eBPF)macOS (kqueue)Windows (ETW)
ExecYes, bprm_execve kprobeYes, proc_listallpids pollYes
ForkYes, sched_process_fork tracepointYes, NOTE_FORKNo
ExitYes, sched_process_exit tracepointYes, NOTE_EXITYes
OpenYes, do_sys_openat2 kprobeNo; needs an Endpoint Security entitlementNo
CloseYes, sys_enter_close tracepointNoNo
Read, writeNoNoNo

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

SettingDefaultEffect
EQTY_AUDIT_MAX_FILE_BYTES64 MiBOne process log stops growing here; later events count as dropped.
EQTY_AUDIT_MAX_TOTAL_BYTES1 GiBTotal for the directory.
EQTY_AUDIT_RETENTION_DAYS7Expired, 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.