← All Threat Hunting ReportsThreat Hunting Exercise

Threat Hunting Exercise: Analyzing Linux Auditd Rule Deletion Log Tampering Dataset

This hunt uses a simulated Linux auditd/syslog dataset (linux_auditd_tamper_2022-12-06T193000.json) capturing T1562.001 / T1070.002: Impair Defenses / Indicator Removal: Clear Linux or Mac System Logs, where an attacker with root access flushes or disables the Linux audit framework to blind subsequent forensic and detection capability before continuing their intrusion.

Step 1: Hypothesis Formation

Hypothesis: A root-context process executes auditctl -D (delete all rules), auditctl -e 0 (disable auditing), or stops/masks the auditd service, and this action is not part of a scheduled, documented maintenance window, indicating deliberate defense-evasion to prevent further audit-trail generation. Indicators:

Null Hypothesis: A system administrator is legitimately performing scheduled audit-subsystem maintenance (e.g., rule reloading during a patch cycle) as part of an approved change window. Invalidate by checking the action against the change-management calendar and confirming the administrator's identity via a secondary authentication factor/session record.

Rationale: Because auditd is frequently the sole source of detailed process-execution and file-access telemetry on Linux hosts without a full EDR agent, disabling it - even briefly - creates a forensic blind spot that attackers exploit deliberately to mask their most sensitive follow-on actions (credential theft, lateral movement, data staging).

Step 2: Data Sources and Scope

Step 3: Key Findings

Parsed events (5 shown) confirm a root shell disabled the audit subsystem on SVR-APP-31 for 22 minutes, immediately after a suspicious sudo privilege-escalation event, and re-enabled it afterward to minimize the visible gap.

Timestamp (UTC)HostEventDetailIOC/Why Suspicious?
2022-12-06 19:28:14SVR-APP-31auditd (SYSCALL)sudo -u root /bin/bash executed by svc-monitoring account (not in the sudoers group per baseline)Precursor IOC: an unexpected successful privilege escalation immediately precedes the audit-disable action, suggesting the attacker moved quickly to cover their tracks after gaining root.
2022-12-06 19:29:47SVR-APP-31auditd (CONFIG_CHANGE, last entry before gap)op=remove_rule, res=success, command auditctl -DDirect-Disable IOC: this is the explicit "delete all audit rules" command, the standard first step in blinding the Linux audit framework.
2022-12-06 19:29:47 - 19:51:36SVR-APP-31(Log-forwarding pipeline)Zero audit.log events ingested for SVR-APP-31 across 22 minutes, versus a 7-day baseline average of ~40 events/5minGap IOC: this statistically significant silence, against an otherwise consistently active host, directly evidences the disable command's effect.
2022-12-06 19:51:36SVR-APP-31auditd (CONFIG_CHANGE, first entry after gap)op=set auid=0 re-loading the default audit rule setRe-Enable IOC: audit was restored shortly after the gap, a pattern consistent with an attacker attempting to minimize the visible disable-window rather than leaving auditing permanently off (which would itself draw immediate attention).
--(Change-calendar check)No approved maintenance window covers SVR-APP-31 in this timeframeConfirms this was not sanctioned administrative activity.

Validation:

Step 4: Recommendations & Next Steps

Hypothesis confirmed - an attacker who escalated to root via an unauthorized sudo path immediately disabled the Linux audit subsystem for 22 minutes to mask follow-on activity, then re-enabled it to minimize the visible logging gap!