LOGBOOK

HELP

Quiz Entry - updated: 2026.11.26

What is the Linux audit subsystem, and how do you use it to watch Docker's sensitive files?

auditd is a kernel-level logging subsystem that records access to files and directories you tell it to watch; you add watch rules for Docker's binaries and config, then review events with aureport.

Audit logs activity at the kernel level, so it captures operations regardless of which tool performed them. You tell it what to watch with rules, typically dropped into /etc/audit/rules.d/*.rules (audit compiles all .rules files into one ruleset):

-w /usr/bin/docker -p wa
-w /var/lib/docker -p wa
-w /etc/docker -p wa
-w /etc/docker/daemon.json -p rwa
  • -w <path> — watch this file or directory.
  • -p — which operations to log: read, write, attribute change, execute (e.g. wa = writes and attribute changes; rwa adds reads).

After editing rules you restart the service (systemctl restart auditd); from then on any matching operation is logged. Review with aureport -f (file events).

Nobody reads these by hand at scale: audit logs feed visualisation/SIEM tools (e.g. the Elastic/Filebeat auditd module) that surface anomalies — unexpected changes to daemon.json, tampering with Docker binaries — so defenders can react. Audit is a detective control: it doesn't block the attack, it makes it visible.

Go deeper:

From Quiz: ISLAB / Docker Security | Updated: Nov 26, 2026