Add detector and event log to watch for Event Log Service stop/start as an indicator or event log tampering with eventlogedit

This commit is contained in:
Joshua Wright
2019-04-28 14:23:23 -04:00
parent a98ef0e402
commit 2fe7d13599
2 changed files with 552 additions and 535 deletions

View File

@ -170,6 +170,23 @@ function Main {
Write-Output $obj Write-Output $obj
} }
} }
ElseIf ($event.id -eq 7040){
# The start type of the Windows Event Log service was changed from auto start to disabled.
$servicename=$eventXML.Event.EventData.Data[0]."#text"
$action = $eventXML.Event.EventData.Data[1]."#text"
if ($servicename -ccontains "Windows Event Log") {
$obj.Results = "Service name: $servicename`n"
$obj.Results += $text
if ($action -eq "disabled") {
$obj.Message = "Event Log Service Stopped"
$obj.Results += "Selective event log manipulation may follow this event."
} elseIf ($action -eq "auto start") {
$obj.Message = "Event Log Service Started"
$obj.Results += "Selective event log manipulation may precede this event."
}
Write-Output $obj
}
}
} }
ElseIf ($logname -eq "Application"){ ElseIf ($logname -eq "Application"){
if (($event.id -eq 2) -and ($event.Providername -eq "EMET")){ if (($event.id -eq 2) -and ($event.Providername -eq "EMET")){
@ -375,7 +392,7 @@ function Create-Filter($file, $logname)
{ {
# Return the Get-Winevent filter # Return the Get-Winevent filter
# #
$sys_events="7030,7036,7045" $sys_events="7030,7036,7045,7040"
$sec_events="4688,4720,4728,4732,4625" $sec_events="4688,4720,4728,4732,4625"
$app_events="2" $app_events="2"
$applocker_events="8003,8004,8006,8007" $applocker_events="8003,8004,8006,8007"

Binary file not shown.