Giter Club home page Giter Club logo

Comments (9)

salehmuhaysin avatar salehmuhaysin commented on June 12, 2024

hi
please check the changes
you need to replace the configuration.json file to enable regtimeline parser
https://github.com/DFIRKuiper/Kuiper/blob/master/kuiper/app/parsers/regsk/configuration.json

from kuiper.

nyrm-f avatar nyrm-f commented on June 12, 2024

hello,

thank you for the add. I've copied over the new configuration.json file and gotten it to parse.

Kuiper does now display the above keys, but the current issue is that it does not show the Values for the key.

I think this is because REGtimeline was able to parse NTUSER.dat, but it errors out parsing any SOFTWARE hive I give it, where the values of the key would be stored.

Any ideas?

Screen Shot 2022-10-12 at 10 07 26 AM

from kuiper.

nyrm-f avatar nyrm-f commented on June 12, 2024

this also had some issues parsing SYSTEM hives

from kuiper.

salehmuhaysin avatar salehmuhaysin commented on June 12, 2024

i think this issue from yarp library,
try to run yarp directly on the hive file, if failed that means the problem in yarp

regarding the data
it parses the record as either key or value, for example
image
the key is the first record, it will not have a value
the second record is the value, multiple records will have multiple records with the same key value
if you want the data for the value, check the record details
image

from kuiper.

nyrm-f avatar nyrm-f commented on June 12, 2024

thanks for the reply. Could you elaborate on how to run yarp on the file?

I've installed a fresh version of kuiper and still getting issues with system and software hvies

from kuiper.

salehmuhaysin avatar salehmuhaysin commented on June 12, 2024

download the yarp from here https://github.com/msuhanov/yarp
then run

pip3 install ./
python3 yarp-print <path-to-SYSTEM>

if it worked that means yarp has no issue of opening the file

from kuiper.

nyrm-f avatar nyrm-f commented on June 12, 2024

Hello.

I was able to run yarp on it with no issues on the same software and system hives. printed right to terminal no errors from what i could see.

I got a copy of the malware and ran it in my own VM and have attached it here.

The malicious keys are stored in the NTUSER.dat, although Kuiper is not parsing all of the keys.
Screen Shot 2022-10-16 at 11 14 10 AM

I look at how yarp parses it and can see the keys in question, its not making it over to Kuiper some how.

Screen Shot 2022-10-16 at 11 15 26 AM

here is how the keys look in registry editor, kuiper only shows value 3 out of the 7
Screen Shot 2022-10-16 at 11 17 46 AM

test_registries.zip

true_nt.txt

I've also included the file true_nt.txt which is my yarp output of the ntuser.dat in test_registries.zip.

SOFTWARE\Microsoft\Phone\paul0 is the first malicious key with 7 values. its a binary split up over 7 keys

SOFTWARE\Microsoft\Phone\paul is the second malicious key with 120+ values in it.

I've noticed they are all separate key values.

Would it be possible to have Kuiper stitch these together? so when you view the value field for SOFTWARE\Microsoft\Phone\paul for example, all of the 120 values have been reassembled into one value for the key.

This would be very helpful for getting malware out of reg keys

from kuiper.

salehmuhaysin avatar salehmuhaysin commented on June 12, 2024

Hi,

I solved the issue with REGTimeline, the source code for calling the parser function for values was commented due to the huge number of records generated by the parser, which impact the memory.
I enabled it and modified some part of the code to enhance the utilization of the memory so it will not impact the processing.

regarding combining the values to generate one record, unfortunately this is not good for two reasons.

  • Kuiper will not know what values should combined and what value should not, so it is not generic thing.
  • The Elasticsearch has a limitation of 32k bytes per field, if I combine the whole binary in one field it will not index the value to Elasticsearch, even though it is possible to modify the settings, it might impact the resource of Elasticsearch.

Note: I added troubleshooting guide for parsers here incase you faced issue later

from kuiper.

nyrm-f avatar nyrm-f commented on June 12, 2024

Understood!

Just tested out the new code and its working! thanks so much.

Great to know about the troubleshooting guide tysm

from kuiper.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.