sans-blue-team / DeepBlueCLI

GNU General Public License v3.0
2.19k stars 355 forks source link

Update System EID 104 parsing output to correctly reflect the cleared log name #21

Closed zmbf0r3ns1cs closed 3 years ago

zmbf0r3ns1cs commented 3 years ago

Beforehand, DeepBlueCLI.ps1 would parse all System EID 104 events as "The System log was cleared" in any output format, as shown below using the Out-GridView cmdlet.

deepbluecli-old

However, System EID 104 can also relate to other log types than just System and the current hardcoded "The System log was cleared" message can be misleading. I modified DeepBlueCLI.ps1 to pull the "message" field from the EVTX log to a variable and utilize that for System EID 104 output instead of a hardcoded message. This adjustment is reflected below against the same log data using the Out-GridView cmdlet, showing that both System and Application log files were cleared, not just System.

deepbluecli-new

This change should help investigators more easily identify which log types were cleared on the target system they are investigating.

Please note that this proposed change only applies to the PS1 script - I have not made any attempts to utilize or adjust the Python version of this program.