Course contentsShow
← Security
Lesson 1491 of 3,05230. Operating System Security - MonitoringFree lesson

Introduction to Linux Auditing Framework

Overview of the Linux audit system architecture, kernel audit subsystem, and when to use auditd vs other logging mechanisms.

Introduction to Linux Auditing Framework

What you'll learn: You'll understand the Linux audit system's architecture, how it differs from regular logging, and when to use it for security monitoring.

What Is the Linux Auditing Framework?

The Linux Auditing Framework is a dedicated security tracking system built directly into the kernel. Unlike general-purpose logging (syslog, journald) that captures application and system events, the audit framework records security-relevant system calls and events with precision and tamper-resistance.

Think of it this way: regular logs are like a security camera in a store lobby—they capture what's happening. The audit framework is like a specialized camera pointed at the safe, recording every single finger movement on the combination lock.

Architecture Components

The framework consists of three layers:

  1. Kernel Audit Subsystem – Lives in kernel space, intercepts system calls, and generates audit records before events complete
  2. auditd Daemon – User-space service that collects kernel audit events and writes them to disk
  3. Audit Rules and Tools – Configuration for what to monitor (auditctl) and analysis utilities (ausearch, aureport)

When to Use auditd vs Other Logging

Use auditd when you need:

  • Compliance requirements (PCI-DSS, HIPAA, STIG) demanding specific system call tracking
  • Forensic-grade evidence that's legally defensible
  • File access monitoring with precise who/what/when details
  • System call auditing (e.g., tracking all network connections, privilege escalations)

Use rsyslog/journald for:

  • Application logs and general system events
  • Performance monitoring
  • Debugging and operational troubleshooting

Key Takeaway: The Linux Auditing Framework provides kernel-level, tamper-resistant security monitoring through auditd, designed specifically for compliance and forensic use cases where regular logging isn't precise or trustworthy enough.