Indicator Removal: File Deletion is an attack technique where an adversary deletes files to hide activity, remove evidence, or disrupt recovery. It commonly targets logs, tools, scripts, or temporary artefacts on a host or server, and is often used with log clearing, timestomping, or other anti-forensic actions.
What File Deletion Means in Indicator Removal
File deletion in this context is not simple cleanup, it is an anti-forensic action designed to erase artefacts that explain what happened on a host. Adversaries use it to remove logs, scripts, dropped binaries, temporary working files, or evidence of staging, making subsequent investigation and recovery materially harder.
The technique is dangerous because deleted files often include the very records defenders need to reconstruct execution, persistence, and lateral movement. Once those artefacts are gone, analysts may lose context on timing, tooling, or the sequence of actions that led to compromise.
How File Deletion Fits the Wider Indicator-Removal Pattern
File deletion is usually one part of a broader cleanup sequence. Attackers may pair it with log clearing, timestomping, history wiping, or deletion of utility files used during compromise so that the environment looks quieter than it really is. That is why this technique is best understood as a concealment step, not an isolated action.
In practice, the target is often evidence rather than data value. The adversary removes the artefacts that would reveal commands run, binaries staged, or defensive tools disabled, which can delay detection and weaken confidence in what the host actually did during the incident.
Operational Consequences for Defenders
When file deletion succeeds, defenders may see gaps in host telemetry, missing scripts, incomplete process lineage, or the disappearance of tools that would otherwise support triage. This can force responders to rely on memory, partial logs, or external telemetry instead of direct host evidence.
That is why off-host logging, immutable retention, and coverage from adjacent telemetry sources matter so much. The most useful countermeasure is often not recovering the deleted file itself, but preserving enough surrounding evidence to prove it existed and to reconstruct its role in the intrusion.
For defenders, the practical question is whether deletion was opportunistic cleanup or part of deliberate anti-forensic tradecraft. The answer affects how aggressively to review adjacent systems, rotate secrets, and search for related tampering on other endpoints.
Detection, Recovery, and Evidence Preservation
Detection is strongest when organisations compare file-system events with log pipelines, endpoint telemetry, and administrative actions. Sudden deletions of logs, security tools, scripts, or unusual temporary files are all useful signals, especially when they occur near privilege escalation or lateral movement.
After suspected compromise, responders should treat deleted files as a clue to broader tampering. A deleted artefact may mean the attacker also touched logs, cleared command history, or altered defensive tooling, so post-incident review should extend beyond the deleted item itself to the surrounding trust chain and evidence sources.
Where possible, preserve images, shadow copies, immutable log copies, and external telemetry before rebuilding or remediating the host. Once the local artefact is gone, recovery depends on whether another system already retained a trustworthy copy of the event history.
Risk and Threat Considerations
File deletion becomes a security risk when it removes the artefacts needed to verify what an attacker did, when they did it, and whether they left persistence behind. It also creates recovery risk, because defenders may lose the evidence needed to determine scope, trace execution, or confirm complete eradication.
Failure mechanism: An adversary deletes locally stored logs, scripts, staging files, or temporary working artefacts after using them, which breaks forensic continuity and can hide follow-on actions.
Impact: Incident response slows down, attacker dwell time can increase, and the organisation may miss related compromise indicators on the same host or across linked systems.
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 surface, CIS Controls v8 and NIST SP 800-53 Rev 5 set the technical controls, and ISO/IEC 27001:2022 defines the regulatory obligations.
| Framework | Control / Reference | Relevance |
|---|---|---|
| MITRE ATT&CK | T1070.004 — File Deletion | This technique is the ATT&CK sub-technique for deleting files to remove evidence. |
| Recommendation — Map file deletions to T1070.004 and hunt for evidence-suppression patterns in endpoint telemetry. | ||
| CIS Controls v8 | CIS-8 — Audit Log Management | File deletion often targets logs and evidence needed for incident review. |
| Recommendation — Centralise and protect audit logs so local file deletion cannot erase investigative evidence. | ||
| NIST SP 800-53 Rev 5 | AU-9 — Protection of Audit Information | This control protects audit records from tampering, deletion, and destruction. |
| SI-4 — System Monitoring | Monitoring is needed to detect suspicious file deletion and related anti-forensic activity. | |
| Recommendation — Protect audit information so attackers cannot delete records that support detection and response. Monitor file-system and endpoint events for suspicious deletions and evidence-suppression behavior. | ||
| ISO/IEC 27001:2022 | A.8.15 — Logging | Logging controls directly address loss of records through deletion or tampering. |
| Recommendation — Preserve and forward logs so file deletion on the host does not destroy security evidence. | ||
Practitioner Guidance
What to watch for: Treat unexpected deletion of security logs, command histories, deployment scripts, or uncommon temporary files as an investigation trigger, especially when it coincides with log tampering or tool removal. The key judgement is whether the deletion pattern is consistent with normal housekeeping or with evidence suppression.
Practitioner takeaway: Do not rely on the host you are investigating to preserve its own story; make sure another system is already keeping that story for you.
Related resources from NHI Mgmt Group
- Guide: Mobile T1630 Indicator Removal on Host
- Indicator Removal
- What breaks when SharePoint deletion is limited to the main file only?
- Who is accountable when a platform promises account deletion but provides no working removal mechanism?
- Why do user-group administration workflows need clearer separation between removal and deletion actions?
Deepen Your Knowledge
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.
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