Join our Newsletter — 33% off our NHI Course
Home› Glossary› Threats, Abuse & Incident Response› Log File Deletion
Threats, Abuse & Incident Response

Log File Deletion

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

Log file deletion is the removal of log records from a system, application or security tool. It may be done by an administrator, a script or malware to reduce evidence, interfere with troubleshooting, or hide unauthorised activity. Integrity controls, write-once logging and central log collection help preserve it.

What Log File Deletion Is

Log file deletion is an anti-forensics action, not just housekeeping. It removes records that would otherwise show authentication events, administrative changes, process activity, or security alerts, which can make an incident harder to prove, scope, or reconstruct after the fact.

Because logs are often treated as evidence, deleting them changes the security story around a system. It can conceal malicious access, frustrate troubleshooting, and break the chain of observation that defenders rely on for timeline analysis and incident response.

Why Log File Deletion Matters

Log deletion is dangerous because it attacks visibility. When local records disappear, defenders may lose the simplest path to understanding what happened, especially if the system was not forwarding logs elsewhere or preserving them immutably. That is why T1070 Indicator Removal Defensive Guide is useful for understanding the cleanup behaviours that often accompany intrusion activity.

The risk is not limited to malware. An administrator, a script, or a compromised account can delete logs during maintenance, error handling, or deliberate concealment. In practice, the damage is often greatest when deletion happens on the original source before central collection, because that removes both the record and the opportunity to verify it independently.

How Defenders Preserve Evidence

Defensive logging works best when collection is separate from the system being watched. Centralised storage, off-host forwarding, and immutable retention make it much harder for an attacker to erase all traces of activity, even if they gain control of a server or endpoint.

This is especially important in cloud and hybrid estates, where control-plane events and application events can be dispersed across many services. The Cloud Logging and Audit Trail Guide covers why audit trail integrity, retention, and tamper detection need to be designed together rather than treated as separate problems.

Log integrity also depends on coverage, not just storage. If only a subset of activity is captured, deletion can hide the very events that matter most, such as privileged actions, authentication failures, or changes to logging configuration. Preserving evidence therefore means protecting both the source logs and the pipeline that exports them.

Detection and Review After Deletion

Detection usually focuses on the absence of expected records, not only on the deletion event itself. Gaps in sequence, sudden stops in telemetry, changes in log volume, or missing audit entries can all indicate tampering, especially when they coincide with privilege escalation or suspicious process activity.

After a suspected deletion event, defenders should review whether the attacker also altered log forwarding, disabled an agent, cleared command history, or removed adjacent evidence. Network and host telemetry can help reconstruct the timeline when the original log set is incomplete, and tools such as Zeek Network Monitoring Guide show how auxiliary logs can support that reconstruction.

When the deleted logs contained authentication or access evidence, the review should extend to credentials, active sessions, and administrative actions that may have occurred during the same window. If the deletion was part of a compromise, the incident is not closed when the logs are restored; the environment may still contain persistence, replayed access, or other hidden changes.

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 and CIS Controls v8 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
MITRE ATT&CKT1070 — Indicator Removal on HostLog deletion is a core ATT&CK cleanup technique.
Recommendation — Map deletion activity to T1070 and hunt for evidence tampering, log clearing, and cleanup on affected hosts.
NIST SP 800-53 Rev 5AU-9 — Protection of Audit InformationProtects audit records from deletion and tampering.
AU-11 — Audit Record RetentionDefines retention so logs remain available for review after incidents.
SI-4 — System MonitoringSupports detection of missing or altered logging behaviour.
Recommendation — Apply AU-9 to preserve audit logs against deletion, modification, and unauthorized access. Set AU-11 retention so records survive long enough for investigation and compliance review. Use SI-4 to alert on log pipeline interruption, log service disablement, and abnormal telemetry gaps.
CIS Controls v8CIS-8 — Audit Log ManagementRequires collecting and protecting logs for detection and investigations.
Recommendation — Implement CIS-8 to centralize logs, protect integrity, and retain records for investigation.

Practitioner Guidance

What to watch for: Treat unexpected log loss as a security signal, not a storage problem. Missing records, interrupted forwarding, and sudden retention changes should be investigated alongside the systems and identities that can write, rotate, or purge logs.

Governance implication: Logging ownership should include protection of the log pipeline itself, not only the application that emits the records. A monitoring program is weak if the same administrators who operate the source can silently erase the evidence it produces.

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 3, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org