CmdID / Techniques / T1685
T1685.005 Disable or Modify Tools: Clear Windows Event Logs
Adversaries may clear Windows Event Logs to hide the activity of an intrusion. MITRE ATT&CK
3 Sigma rules T1685.005 on attack.mitre.org
Part of
Sigma rules tagged with it
Command lines CmdID reads as it
Clear all of the events from the Application log after saving them to C:\admin\backups\a10306.evtx on the page for wevtutil
wevtutil cl Application /bu:C:\admin\backups\a10306.evtxIdentifyClear specific event log types from the local computer on the page for Clear-EventLog
Clear-EventLog "Windows PowerShell"IdentifyClear specific multiple log types from the local and remote computers on the page for Clear-EventLog
Clear-EventLog -LogName ODiag, OSession -ComputerName localhost, Server02IdentifyClear all logs on the specified computers then display the event log list on the page for Clear-EventLog
Clear-EventLog -LogName Application, System -ConfirmIdentifyClear all logs on the specified computers then display the event log list on the page for Clear-EventLog
function clear-all-event-logs ($ComputerName="localhost")
{
$logs = Get-EventLog -ComputerName $ComputerName -List | ForEach-Object {$_.Log}
$logs | ForEach-Object {Clear-EventLog -ComputerName $ComputerName -LogName $_ }
Get-EventLog -ComputerName $ComputerName -List
}
clear-all-event-logs -ComputerName Server01IdentifyIncrease the size of an event log on the page for Limit-EventLog
Limit-EventLog -LogName "Windows PowerShell" -MaximumSize 20KBIdentifyRetain an event log for a specified duration on the page for Limit-EventLog
Limit-EventLog -LogName Security -ComputerName "Server01", "Server02" -RetentionDays 7IdentifyChange the overflow action of all event logs on the page for Limit-EventLog
$Logs = Get-EventLog -List | foreach {$_.Log}
Limit-EventLog -OverflowAction OverwriteOlder -LogName $Logs
Get-EventLog -ListIdentifyRemove an event log from the local computer on the page for Remove-EventLog
Remove-EventLog -LogName "MyLog"IdentifyRemove an event log from several computers on the page for Remove-EventLog
Remove-EventLog -LogName "MyLog", "TestLog" -ComputerName "Server01", "Server02", "localhost"IdentifyDelete an event source on the page for Remove-EventLog
Remove-EventLog -Source "MyApp"IdentifyAn example is here when CmdID’s reading of it names T1685.005: a Sigma rule it trips is tagged with it, or its abuse is documented as it.