Join our Newsletter — 33% off our NHI Course
Threats, Abuse & Incident Response

Log Clearing

← Back to Glossary
By NHI Mgmt Group Updated November 25, 2026 Domain: Threats, Abuse & Incident Response

Log clearing is the removal, truncation, or alteration of log records on a system or application. It can be done by administrators for housekeeping, but attackers also use it to hide traces, weaken incident investigation, and reduce the integrity of audit evidence.

What Log Clearing Means in Practice

Log clearing is not just deleting evidence, it is altering the record of what happened, when it happened, and who or what did it. That makes it a security-relevant action because logs are often the main source of truth for investigations, monitoring, and compliance review, especially when the change is intentional rather than routine housekeeping.

In normal administration, clearing logs can be legitimate after retention windows, storage rollover, or maintenance. The security question is whether the action is authorised, expected, and traceable. If a system allows silent or frequent clearing, the same mechanism that tidies records can also erase the trail needed to prove misuse, mistakes, or compromise.

Why Log Clearing Undermines Visibility

Logs support detection, forensic analysis, and accountability. When they are removed or truncated, defenders can lose chronology, lose event correlation, or miss the first signs of intrusion. Even when some telemetry survives elsewhere, local log loss can still break the chain of evidence that shows which account, process, or host was involved.

That is why log clearing is treated as an anti-forensics pattern. Attackers use it to hide failed logons, privilege changes, service manipulation, malware execution, and other actions that would otherwise be visible to defenders. The danger is not only deletion, but the confidence gap it creates, because investigators may no longer know whether the absence of records is benign or adversarial.

How Log Clearing Is Detected and Investigated

Detection usually relies on indirect signals as well as the clearing event itself. Useful clues include gaps in expected sequence numbers, sudden drops in log volume, missing time ranges, audit configuration changes, or evidence that forwarding stopped before the local record was wiped. In many environments, defenders also compare the endpoint copy with centralised or immutable copies to confirm whether the loss is local or system-wide.

Investigation should focus on the surrounding activity, not just the cleared file or channel. A cleared log often matters because it sits next to a compromise event, such as tool execution, account abuse, or defence impairment. If the environment keeps separate audit trails for administration, authentication, and security tooling, those records can help reconstruct the window even when the original log source was tampered with.

For deeper detection patterns around indicator removal and system file tampering, see T0872 Indicator Removal on Host and Anti-Forensics Detection Guide.

How Organisations Reduce the Impact of Log Clearing

Resilience comes from reducing the value of any single log store. Centralised forwarding, immutable retention, protected backup copies, and separation between the system being administered and the system storing the evidence all make log clearing less effective. Where logs are shipped off-host quickly, the attacker has less time to erase the only copy that matters.

Control hardening also matters. If clearing is necessary for administration, it should be restricted, monitored, and auditable so that the action itself becomes part of the evidence chain. System integrity monitoring helps here by watching log files, audit settings, and related configuration for tampering rather than assuming the record will remain trustworthy on its own.

Useful control patterns for this include M1029 Remote Data Storage, D3-SFA System File Analysis, and D3-OSM Operating System Monitoring.

Risk and Threat Considerations

Log clearing is dangerous because it directly attacks visibility, accountability, and post-incident reconstruction. Even a brief window of missing records can be enough to hide privilege escalation, persistence, or lateral movement, and it can also make an otherwise recoverable incident much harder to scope accurately.

Failure mechanism: An attacker with sufficient access deletes or alters local records, disables forwarding, or corrupts audit settings so the evidence stream becomes incomplete or misleading.

Impact: Defenders lose trustworthy history, incident timelines become uncertain, and compromise can persist longer because the usual signals for detection and review are absent.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

MITRE ATT&CK addresses the attack and risk surface, while NIST SP 800-53 Rev 5 sets the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
MITRE ATT&CKT1070 — Indicator Removal on HostLog clearing is a classic ATT&CK indicator-removal technique used to hide activity.
Recommendation — Map log-clearing activity to T1070 and hunt for evidence of local record suppression or tampering.
NIST SP 800-53 Rev 5AU-9 — Protection of Audit InformationAU-9 directly governs protecting audit records from alteration or destruction.
AU-6 — Audit Review, Analysis, and ReportingAU-6 supports reviewing logs for gaps and suspicious clearing events.
SI-4 — System MonitoringSI-4 covers monitoring for events that indicate tampering with logs or logging services.
Recommendation — Protect audit records against deletion, truncation, and unauthorised modification. Review audit data for missing ranges, abnormal clears, and correlated compromise activity. Monitor logging services and integrity signals so log clearing is detected quickly.

Practitioner Guidance

Why practitioners should care: Treat log clearing as a security event, not just an administrative action. The key judgement is whether the clearing was planned, authorised, and preserved in a separate record, because unreviewed clearing can mask both operational mistakes and active intrusion.

What to watch for: Watch for repeated clearing, unexplained retention gaps, disabled forwarding, or log changes that occur immediately after authentication failures, service changes, or privilege use. Those patterns often matter more than the clearing action alone.

Practitioner takeaway: The strongest posture is one where an attacker can clear a local view, but cannot erase the organisation's evidence trail.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on November 25, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org