Threat Intel
Using Auditd and Auditd Manager for Real‑Time Linux Detection
Auditd provides kernel‑level event logging for Linux, enabling precise detection of suspicious activity. Elastic’s Auditd Manager simplifies rule deployment across hosts, letting defenders focus on threat hunting rather than configuration drift. This briefing outlines how to enable Auditd, craft rules, and integrate with Elastic Stack for actionable alerts.
What Happened
Auditd is a native Linux audit daemon that logs system calls and file events. Elastic has released an Auditd Manager plugin that centralizes rule management and automates rule distribution to Auditbeat, Filebeat, and Elastic Agent.
Impact
Defenders with Linux workloads gain a granular audit trail, enabling detection of privilege escalation, file tampering, and lateral movement. Without Auditd, many low‑impact actions remain invisible to SIEMs.
What to Do
- Install Auditbeat or Filebeat with the Auditd module on all Linux hosts.
- Enable the Auditd daemon (systemctl enable auditd; systemctl start auditd).
- Deploy Auditd Manager from Elastic and import the pre‑built rule set.
- Review and customize rules to match your environment (e.g., monitor /etc/shadow modifications, execve of /bin/su).
- Configure the Elastic Stack to ingest audit logs via Beats and create detection rules in SIEM.
- Set up alerting on high‑severity events such as “auditd: denied” or “execve of sudo”.
Auditd Manager centralizes rule management, ensuring consistent detection across the fleet.
Best Practices
Keep Auditd rules minimal to reduce noise; use “-p wa” for write and attribute changes only on critical files. Rotate audit logs daily and archive them for compliance. Verify rule effectiveness by simulating benign and malicious actions and checking alert generation.