-
Notifications
You must be signed in to change notification settings - Fork 354
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
winreg parser bails out on single corrupt key - please make it more resilient #3571
Comments
I'm unable to reproduce this with the SYSTEM file in test data:
|
@MikeHofmann can you provide the output of Also see: https://plaso.readthedocs.io/en/latest/sources/Troubleshooting.html |
@MikeHofmann log2timeline-20210429T074209.log.gz is the log file, what does you psort output tell you? |
@MikeHofmann also can you try |
Then again for me l2tcsv does show both control sets:
|
Attaching both logs (had to redact some path informations) log2timeline-20210429T074209.log.redacted.gz
noted. We use this for analyzing in Erics TimeLineExplorer and it's easier to quickly |
At first glance I do not see anything in Plaso that hints at an error.
|
Hmmh, these tools seems to be older when i install them inside the log2timeline-container. They don't feature the
When used without any cli-options on the Hive, i do get some errors on stderr:
I do see |
Can you try |
This would indicate libregf is not able to find all the data it needs.
|
Nope, the PPA wasnt enabled, had to:
Tools are newer, but still
When using
but
While i do find the
Yes, same problem exists when i process the entire
Yes, one warning present:
|
Maybe something I added more recent than 20201007
To determine if this is corruption or some format edge case I assume you cannot share the file? If not could you compile the latest from source with verbose and debug output https://github.com/libyal/libregf/wiki/Troubleshooting#verbose-and-debug-output
Don't know I would need to see the actual data |
No, this agency is not known for sharing. 😄
I quickly slapped a docker-container together and compiled (
|
Can you compress it with gzip and mail it to me ?
any special chars in the key path ? |
One thing that could be happening is that winreg stops parsing because the exception is raised. I'll have a look if I can make this more error resilient. |
Whats seems odd, that my compiled version doesn't complain nor does the exporter from ppa:gift/stable, it's only from the docker-container. Could be the build process for the container using some old libraries? |
The version detected in the
which was the latest version when the container was released |
thx, received will have a look later Also made some changes to make winreg more resilient to corrupt files https://github.com/log2timeline/plaso/pull/3572/files |
Tested with this change, this fixes the issue. Thx. Any idea when this will reach the container on hub.docker.com? |
Was a little too hasty here. The SYSTEM hive has three ControlSets (
But CurrentControlSet doesn't have any of these services. It has another set of services, which doesn't match any ControlSet. |
Oh and
|
In the next release (https://github.com/log2timeline/plaso/milestone/33), end of June likely
Can you provide an example entry?
CurrentControlSet of what? How are you looking at CurrentControlSet? |
Uff, i think i need a break. I was operating under the assumption, that log2timeline includes the virtual CurrentControlSet into the timeline as well. And i couldn't find the services i was looking for by grepping in the psorted TLDR: I think this can be closed now. Do you keep this open until everything is merged or can i close it? |
Keep it open for now, is a reminder for me to add test coverage for a corrupted Windows NT Registry file. |
Just some statistical ramblings, no action needed: I was wondering, on how often our images would run into a
|
|
Unfortunately these images are below average quality from a forensics standpoint. From the three images above: one was done with FTK Imager, another one with Logicube Falcon and the last just a .vmdk. No written aquisition reports, sometimes a log file from the aquisition/imager tool, no name of examiner, etc. Probably need to parse |
|
Test file added #3576, closing issue |
Description of problem:
Followup from #3238
log2timeline.py parses only the Service from the SYSTEM hive CurrentControlSet but ignores other ControlSets from past working configurations.
Command line and arguments:
has been used to generate the timeline.
log2timeline.py sees the ControlSet002:
but no Services are parsed:
See below for more details.
Source data:
I exported a SYSTEM Hive from a Windows XP (sigh) System. I extracted the corresponding Software Keys using xways by hand:
The hive seems healthy:
and i can export from a past
ControlSet002
a malicious service using:giving:
Plaso version:
Operating system Plaso is running on:
Installed using latest docker image
Installation method:
see above
If multiple methods were used please indicate.
The text was updated successfully, but these errors were encountered: