Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Output failed file? #39

Closed
Kerokus opened this issue Nov 12, 2021 · 3 comments · Fixed by #44
Closed

Output failed file? #39

Kerokus opened this issue Nov 12, 2021 · 3 comments · Fixed by #44
Assignees
Labels
bug Something isn't working

Comments

@Kerokus
Copy link

Kerokus commented Nov 12, 2021

We pull event logs out of RAM for forensic analysis. This can lead to both complete and incomplete files, and when you have hundreds of event logs trying to figure out which ones are good and which ones are bad can be tedious. When Chainsaw hits an incomplete/corrupt file it stops the whole search with the message "an error occurred while trying to deserialize evtx stream". If there's 400 evtx logs and only 1 of them is bad, it will stop the whole search.

Is it possible to have it skip files it can't parse in order to complete the search? Or barring that can it at least output which file it hung up on so I can remove it from the directory?

@fscc-jamesd fscc-jamesd self-assigned this Nov 17, 2021
@fscc-jamesd fscc-jamesd added the bug Something isn't working label Nov 17, 2021
@fscc-jamesd
Copy link
Contributor

Hi @Kerokus

This is a good find, thanks for rasing this issue. I never considered the use case of needed to supported partially corrupted event logs, but your explanation makes sense. I'll look at adding this though a --skip-verify option or similar.

@fscc-jamesd
Copy link
Contributor

Re-opened, closed it by mistake. I've got a fix on the way for this.

@fscc-jamesd
Copy link
Contributor

fscc-jamesd commented Nov 25, 2021

@Kerokus This should be fixed in #44. Chainsaw will now output the name of the EVTX file that failed to parse. This PR also adds the --ignore-errors option to not stop chainsaw when it hits an evtx parsing error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants