Giter VIP home page Giter VIP logo

registryplugins's Introduction

RegistryPlugins

This repo that contains all the Registry Plugins used by Eric Zimmerman's Registry Explorer and RECmd. You can download both tools here.

Ongoing Projects

  • RegistryPlugins - Development roadmap for Registry Explorer/RECmd Plugins. Please feel free to contribute by adding ideas or by finishing tasks in the To Do column. Any help is appreciated!

How Plugins Affect Output

Plugins are helpful in that they are able to display more data within the Registry in less rows. Using RECmd's CSV output, the ValueData column will be used to displayed parsed data regardless of whether a Plugin exists for a specific artifact. However, when a Plugin is being used to parse data from the Registry, the ValueData2 and ValueData3 are utilized to display more data relevant to the artifact while reducing the amount of rows within the CSV output. Additionally, Plugins are able to "translate" some of the data within the Registry, i.e., convert timestamps or convert Binary data into something human readable.

Plugin Output in Registry Explorer

This example highlights what the UserAssist Plugin provides as an added benefit vs. the raw data values parsed from the Registry.

The Values tab shows the raw values within the Registry in their native ROT13 format. The UserAssist tab shows the ROT13 output converted into human readable data.

gif

Plugin Output in RECmd (CSV)

You will know that a Plugin is being used within your RECmd CSV output if the ValueType columns displays (plugin) as the value. From there, the author of the Plugin will be able to organize the parsed data within the ValueData, ValueData2, and the ValueData3 columns. This allows for more data to be parsed in less rows for more efficient and useful CSV output!

test

RECmd Batch Files help make CSV output useful and efficient while reducing the noise. The Kroll Batch File is currently taking advantage of most, if not all, of the Registry Plugins within this repo. It is strongly recommended to use that Batch File when parsing the Windows Registry with RECmd.

registryplugins's People

Contributors

0xhasanm avatar 4n68r avatar andrewrathbun avatar cohennadi avatar danzek avatar dfirjos avatar enqueuing avatar eran-yt avatar ericzimmerman avatar frankcoleman avatar hyuunnn avatar msoheem avatar pelparp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

registryplugins's Issues

RECmd/RegistryExplorer Not Loading Plugin DLLs

I've replicated this issue across two separate Win10 hosts for both RegistryExplorer and RECmd. Below is an example output.

Win10 Build: 18363

`C:\Users<Username>\Triage\RegistryExplorer>RECmd.exe -f c:\Users<Username>\NTUSER.DAT --sa "userassist"
RECmd version 1.5.2.0

Author: Eric Zimmerman ([email protected])
https://github.com/EricZimmerman/RECmd

Note: Enclose all strings containing spaces (and all RegEx) with double quotes

Command line: -f c:\Users<Username>\NTUSER.DAT --sa userassist

Error loading plugin: C:\Users<Username>\Triage\RegistryExplorer\Plugins\RegistryPlugin.7-ZipHistory.dll
Error loading plugin: C:\Users<Username>\Triage\RegistryExplorer\Plugins\RegistryPlugin.Adobe.dll
Error loading plugin: C:\Users<Username>\Triage\RegistryExplorer\Plugins\RegistryPlugin.AppCompatCache.dll
Error loading plugin: C:\Users<Username>\Triage\RegistryExplorer\Plugins\RegistryPlugin.AppCompatFlags.dll
Error loading plugin: C:\Users<Username>\Triage\RegistryExplorer\Plugins\RegistryPlugin.Ares.dll
Error loading plugin: C:\Users<Username>\Triage\RegistryExplorer\Plugins\RegistryPlugin.BamDam.dll
Error loading plugin: C:\Users<Username>\Triage\RegistryExplorer\Plugins\RegistryPlugin.BluetoothServicesBthPort.dll
Error loading plugin: C:\Users<Username>\Triage\RegistryExplorer\Plugins\RegistryPlugin.CIDSizeMRU.dll
Error loading plugin: C:\Users<Username>\Triage\RegistryExplorer\Plugins\RegistryPlugin.DHCPNetworkHint.dll
Error loading plugin: C:\Users<Username>\Triage\RegistryExplorer\Plugins\RegistryPlugin.FileExts.dll
Error loading plugin: C:\Users<Username>\Triage\RegistryExplorer\Plugins\RegistryPlugin.FirstFolder.dll
Error loading plugin: C:\Users<Username>\Triage\RegistryExplorer\Plugins\RegistryPlugin.JumplistData.dll
Error loading plugin: C:\Users<Username>\Triage\RegistryExplorer\Plugins\RegistryPlugin.KnownNetworks.dll
Error loading plugin: C:\Users<Username>\Triage\RegistryExplorer\Plugins\RegistryPlugin.LastVisitedMRU.dll
Error loading plugin: C:\Users<Username>\Triage\RegistryExplorer\Plugins\RegistryPlugin.LastVisitedPidlMRU.dll
Error loading plugin: C:\Users<Username>\Triage\RegistryExplorer\Plugins\RegistryPlugin.MountedDevices.dll
Error loading plugin: C:\Users<Username>\Triage\RegistryExplorer\Plugins\RegistryPlugin.OfficeMRU.dll
Error loading plugin: C:\Users<Username>\Triage\RegistryExplorer\Plugins\RegistryPlugin.OpenSaveMRU.dll
Error loading plugin: C:\Users<Username>\Triage\RegistryExplorer\Plugins\RegistryPlugin.OpenSavePidlMRU.dll
Error loading plugin: C:\Users<Username>\Triage\RegistryExplorer\Plugins\RegistryPlugin.RecentApps.dll
Error loading plugin: C:\Users<Username>\Triage\RegistryExplorer\Plugins\RegistryPlugin.RecentDocs.dll
Error loading plugin: C:\Users<Username>\Triage\RegistryExplorer\Plugins\RegistryPlugin.RunMRU.dll
Error loading plugin: C:\Users<Username>\Triage\RegistryExplorer\Plugins\RegistryPlugin.SAM.dll
Error loading plugin: C:\Users<Username>\Triage\RegistryExplorer\Plugins\RegistryPlugin.Services.dll
Error loading plugin: C:\Users<Username>\Triage\RegistryExplorer\Plugins\RegistryPlugin.SyscacheObjectTable.dll
Error loading plugin: C:\Users<Username>\Triage\RegistryExplorer\Plugins\RegistryPlugin.Taskband.dll
Error loading plugin: C:\Users<Username>\Triage\RegistryExplorer\Plugins\RegistryPlugin.TaskFlowShellActivities.dll
Error loading plugin: C:\Users<Username>\Triage\RegistryExplorer\Plugins\RegistryPlugin.TerminalServerClient.dll
Error loading plugin: C:\Users<Username>\Triage\RegistryExplorer\Plugins\RegistryPlugin.TimeZoneInformation.dll
Error loading plugin: C:\Users<Username>\Triage\RegistryExplorer\Plugins\RegistryPlugin.TrustedDocuments.dll
Error loading plugin: C:\Users<Username>\Triage\RegistryExplorer\Plugins\RegistryPlugin.TypedURLs.dll
Error loading plugin: C:\Users<Username>\Triage\RegistryExplorer\Plugins\RegistryPlugin.UserAssist.dll
Error loading plugin: C:\Users<Username>\Triage\RegistryExplorer\Plugins\RegistryPlugin.WordWheelQuery.dll

Processing hive 'c:\Users<Username>\NTUSER.DAT'
'c:\Users<Username>\NTUSER.DAT' is in use. Rerouting...

Two transaction logs found. Determining primary log...
Primary log: c:\Users<Username>\ntuser.dat.LOG2, secondary log: c:\Users<Username>\ntuser.dat.LOG1
Replaying log file: c:\Users<Username>\ntuser.dat.LOG2
Replaying log file: c:\Users<Username>\ntuser.dat.LOG1
At least one transaction log was applied. Sequence numbers have been updated to 0x1AFEA. New Checksum: 0x1DE42454
Found 1 search hit in 'c:\Users<Username>\NTUSER.DAT'
Key: 'SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\UserAssist'`

Possibly issue with parsing OpenSavePidMRU in RECmd and RegistryExplorer in latest version

** RECmd version # **
Reporting the version for REcmd and RegistryExplorer is difficult because for the last 12 - 18 months, the version displayed is 2.0.0.0, and there have been several updates in that time frame. Here is the best I can do identifying the version.

Machine A 22.2 - referred to as “earlier version” in the screenshots
RECmd Version: 2.0.0.0 Date Created 2022-10-02
RegistryExplorer Version 2.0.0.0 Date Created 2022-10-02

Machine B 23.1 - referred to as the “latest version” in the screenshots
RECmd Version: 2.0.0.0 Date Created 2023-01-17
RegistryExplorer Version: 2.0.0.0 Date Created 2023-01-17

Describe the bug
This may be an intentional change that the author has made or possibly an inadvertent change in the code. When the SANS FOR500 course VM was in QA review this week, one of the Registry labs was not producing the expected results for the OpenSavePidMRU key values shown in the ComDlg32 OpenSavePidMRU bookmark.

The tests I have run were done on two separate VMs; Machine A has an older version of EZTools. Machine B has the latest version of EZTools. The data used in the lab is the rocba ntuser.dat from a KAPE Triage image. I’ll try to upload that file. The data in both VMs are identical.

The issue is that the new version (Machine B) of RECmd and RE drops some of the data that has historically been in the Absolute Path column. Specifically, the Absolute Path no longer shows the folders and file names, it only shows only the drive letter, colon, and three slashes. In the lab, we are trying to find files that have “My Drive” in the Absolute Path, but on the screenshots, I am using “F:\” has the filter to illustrate the issue. See the screenshots below.

To Reproduce
Steps to reproduce the behavior:

For each version of RE or RECmd do the following:

  1. Load a clean ntuser.dat into RE or process with RECmd. Both tools produce the same results
  2. The recmd.exe command line used is provided below.
  3. in RE, select the Bookmarks tab and select the ComDlg32 OpenSavePidMRU bookmark.
  4. Filter the Absolute Path column on “F:\”
  5. Review the values in the Absolute Path Column.

Expected behavior
The absolute Path should show the folder and file for each row in the table.

Screenshots

From Registry Explorer - Machine A
image

From recmd.exe - UserActivity.reb - Machine A
image

From Registry Explorer - Machine B
image

From recmd.exe - UserActivity.reb - Machine B
image

Plugin Feedback from Chad Tilbury

Update https://github.com/EricZimmerman/RegistryPlugins/blob/master/RegistryPlugin.USB/USB.cs
-  Add columns for the values Service and ParentIdPrefix located in key: SYSTEM\<ControlSet>\Enum\USB\<Device ID>\<Serial Number>  
(Not all keys will have ParentIdPrefix, but it is important for cross-referencing information in the HID and SCSI keys)

Create a new plugin for the SYSTEM\<ControlSet>\Enum\SCSI key. This plugin should be nearly identical to the existing USBSTOR plugin (https://github.com/EricZimmerman/RegistryPlugins/tree/master/RegistryPlugin.USBSTOR), with a couple of column changes:
- Change "Serial Number" column name to "ParentIdPrefix"
- No "Version" column
Everything else should be in the same places, including Disk Id and timestamps

@hyuunnn would you mind doing the above when you have a chance?

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.