-
Notifications
You must be signed in to change notification settings - Fork 27
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
Some new logs cannot be dumped with archive logs #21
Comments
Hi @Gomeow, Did you think about comparing the number of events shown in Event Viewer and the number of event dumped with evtxdump ? If that number is the same for a given file it is likely the issue is not on evtxdump side. Please let me know what is the result of this comparison. Cheers, |
Hi @qjerome , They do have difference and here are some snap. Just using the file uploaded before.(with 1.2.2 release) There should be 460 recoreds in the evtx file. Thanks. |
Thank you for your feedback. This is indeed very strange. |
It seems the Security.evtx file is not consistent.
You can see that there are 4 chunks, a chunk being a structure where several events are encoded.
So my theory is the following, your file has a wrong header for a reason I ignore. When you open it in Event Viewer, it sees that there is an error and fixes the header. That is why after you have opened the file, it gets modified on disk and then the number of event is correct with evtxdump. So I would not qualify this issue as a bug in evtxdump because the tool parses the data correctly with the data it has, it is just that the header is incorrect. I will not provide any fix to address that issue since there is already the carving option to force chunk parsing when that is needed. Though I am considering implementing a verify option to diagnose this kind of issue more easily. Thanks for reporting that issue. |
Hey @Gomeow, After a deeper analysis I noticed that your file was in a "dirty" state. Thanks again for reporting this issue that allowed me to improve the tool. |
* fixes 0xrawsec#12 - only unmarshal UTF16String when the size is greater than zero * Update evtx.File to support generic interfaces * Docs * Fix issue 0xrawsec#12 * Changed version in makefile * Fixed issue 0xrawsec#16 * Corrected wrong fix of issue 0xrawsec#16, then also fix issue 0xrawsec#17 * Fixed issues: 0xrawsec#15 and 0xrawsec#21 * Version upgrade * Version bump for evtxdump and evtxmon * Fixed issue 0xrawsec#23 * Addressed issue 0xrawsec#25 * Fixed issue 0xrawsec#25 * Fixed issue 0xrawsec#27 * Standardized GoEvtxMap.Del API * Fixed bug in GoEvtxMap.Del * Return error from TemplateInstance.ElementToGoEvtx * Bubble up error from NodeToGoEvtx * Bubble up error from ElementToGoEvtx * Bubble up errors from GoEvtxMap * Update tests * Panic on error in tests Co-authored-by: Josh VanderLinden <[email protected]> Co-authored-by: Quentin JEROME <[email protected]>
Hello everyone,
I have some problem with archive evtx logs on windows server 2016(1607).
Some new logs cannot be shown when using evtxdump.
How it happens: Install one 2016 server, set 'Security Log' to Archieve when is full. Then dump the 'Security.evtx' without open it in eventviewer.
I found out the logs canbe correctly dumped when double click on the evtx file (open it with windows eventviewer).
And also the file was changed only by open it with windows eventviewer.(Some times the evtx file sizes changed at all.)
The different dump only with opend the file:
Here is the evtx file.
Security.zip
Thanks.
The text was updated successfully, but these errors were encountered: