Clear Windows Event Logs

https://attack.mitre.org/techniques/T1070/001/

ATT&CK ID: T1070.001

Permissions Required:

Description

Adversaries may clear Windows Event Logs to hide the activity of an intrusion. Windows Event Logs are a record of a computer's alerts and notifications. There are three system-defined sources of events: System, Application, and Security, with five event types: Error, Warning, Information, Success Audit, and Failure Audit.

These logs may also be cleared through other mechanisms, such as the event viewer GUI or PowerShell.

[Source]

Techniques

Metasploit

This meterpreter command wipes logs from Application,System and Security logs.

# Meterpreter
clearev

PowerShell

Performing this command leaves an event for the logs being cleared.

Wevtutil

Mitigation

  • Automatically forward events to a log server or data repository to prevent conditions in which the adversary can locate and manipulate data on the local system. When possible, minimize time delay on event reporting to avoid prolonged storage on the local system.

  • Protect generated event files that are stored locally with proper permissions and authentication and limit opportunities for adversaries to increase privileges by preventing Privilege Escalation opportunities.

Further Reading

Wevtutil: https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/wevtutil

Clear-EventLog: https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.management/clear-eventlog?view=powershell-5.1

Last updated