-
Notifications
You must be signed in to change notification settings - Fork 65
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
Feature request - Add ZimmermanTools to the SIFT #602
Comments
Hi @mark-hallman , sounds interesting. I'll see if I can take a look at it tonight and see how it goes! |
Zimmerman tools would be a nice addition. We did it manually for FOR508. One thing to consider including is a set of aliases to make it easier to run the commands (so you can just run
|
Looks good, I'll use and test these, no sense reinventing the wheel :) |
So there will need to be a couple of changes, but this can work. The changes I'll need to make are:
Other than that, everything should work fine. @mpilking or @mark-hallman , do either of you have known-good artifacts I can use to test each of these tools to ensure that these work prior to rolling out? |
Use the aliases file that I included in my 1st post. They are Mike's aliases from 508, but they have been updated to use an environment $ZIMMERMAN_HOME to make it easier to change the install location. The most important change is that the path in the aliases has been updated to include "zimmermantools/net6". This is required to use Eric's script to update tools. These tools are updated often. If you use the steps I included, the installer will do all these things. I think it is easier to reinstall the tools using Get-ZimmermanTool alias that I added to the alias file than to try and add the net6 dir and move the files. Happy to answer any questions etc and to test. I check out the issues with PECmd and SUMECmd. The error message you included makes sense; modern prefetch files are compressed. |
Aliases file updated for iisGeolocate sub-dir. I confirmed that PECmd and SumECmd do have issues running in a non-Windows env. I'll reach out to Eric and see if he has a solution or if that is just how it is. If PECmd doesn't work, that's a real bummer, but happy to take what we can get. |
One more for the does not work on a non-Windows OS. I'm wondering how to deal with this. We probably want to remove the aliases for these three. Even if we remove the exe and dll for those three, the next time that an update is run, they will get repopulated. I feel that if someone is smart enough to figure out how to run those specific tools without the alias, they should be able to deal with the messages that are returned. Thoughts? |
Never midn about the last comment about adding |
State is complete, final testing underway. I've opted for using the "wrapper" method vice the "alias" method, whereby a short bash script will be created in #!/bin/bash
dotnet /opt/zimmermantools/{{ tool }}.dll ${*} The reasoning behind this is that, when writing to a universal /etc/ aliases file (eg /etc/profile.d/10-aliases.sh or the like), it could become more challenging to update / modify the alias should something change, and it avoids collision with an existing aliases file if the user is installing SIFT alongside another tool-set in the same VM, or if the user has already customized their aliases files. This method will also make the tools available to the root user, and other new users down the road, without additional modification of the aliases file. If you believe the aliases method is a better option, please let me know! I'm all about making sure we get the best product in the end. :) |
So, I've been trying for an hour or two, and I can't complete an accurate test, due to some ongoing internet connectivity issues I'm having with my ISP. Rest assured, the state is ready to go, but until I can complete an accurate test, I won't be able to push it as a PR. Hopefully this isn't an issue tomorrow. |
The wrapper seems like the better approach. It also probably has the benefit that it works better inside other shell scripts. I created a bash script for some automation recently and tried to use the Thanks for your help! |
So far I've tested a couple of the zimmerman apps on SIFT and I'm really liking it, but I ran into another app that is cranky but wasn't called out as one that has issues on Linux. When I run SrumECmd I get this message. ~Salty |
I have been doing some testing of the non-GUI tools to run in Linux and should be able to add most of the tools to SANS SiFT without issue. The following tools run fine by downloading the compiled windows version and using the dotnet command and file's DLL and by compiling WXTCmd and SQLECmd work after applying the instructions in Linux.md for each repo and compiling SumECmd, Srum and PECmd execute with the following errors: Tested on dotnet 9, Ubuntu 22.04 and 24.04 Here is the install script I use for Siftgrab that installs PowerShell, dotnet 9, runs Get-Zimmermantools.ps1 and adds aliases and here is a Linux-x64 compiled version of WxTCmd and SQLECmd: |
Hi @dfir-scripts , this is already on the roadmap and should be available soon. For more details, you can review the state file here. Cheers! |
Thats awesome! I love Zimmerman's tools
…On Mon, Mar 3, 2025, 22:34 Digital Sleuth ***@***.***> wrote:
Hi @dfir-scripts <https://github.com/dfir-scripts> , this is already on
the roadmap and should be available soon. For more details, you can review
the state file here
<https://github.com/teamdfir/sift-saltstack/blob/support-24.04/sift/scripts/zimmerman.sls>
.
Cheers!
—
Reply to this email directly, view it on GitHub
<#602 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACHSM6XSLRJDZTFJMQUUZNL2SUNNPAVCNFSM6AAAAABYIPEMEWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMOJWGA4TKNZZGQ>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
[image: digitalsleuth]*digitalsleuth* left a comment (teamdfir/sift#602)
<#602 (comment)>
Hi @dfir-scripts <https://github.com/dfir-scripts> , this is already on
the roadmap and should be available soon. For more details, you can review
the state file here
<https://github.com/teamdfir/sift-saltstack/blob/support-24.04/sift/scripts/zimmerman.sls>
.
Cheers!
—
Reply to this email directly, view it on GitHub
<#602 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACHSM6XSLRJDZTFJMQUUZNL2SUNNPAVCNFSM6AAAAABYIPEMEWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMOJWGA4TKNZZGQ>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
All,
I have docs and script to install all the non-gui EZTools apps in Ubuntu. There are also alias to make the commands work the same way as they do in Windows… even the Get_ZimmermanTools update scripts. Sounds very similar to
Corey's (Digital Sleuth) . Corey, let’s compare notes and update our respective code/approach if necessary. It has been a while since we last had comms on this. I like the part of your script that checks for .NET9 and installs it if necessary… very cool. Mike did most of the work on the aliases.
…-Mark
Mobile: 830.255.1551
-Mark
On Mar 3, 2025, at 9:14 PM, jbrown ***@***.***> wrote:
I have been doing some testing of the non-GUI tools to run in Linux and should be able to add most of the tools to SANS SiFT without issue.
The following tools run fine by downloading the compiled windows version and using the dotnet command and file's DLL and by compiling
AmcacheParser
AppCompatCacheParser
Bstrings
EvtxeCmd
JLECmd
LECmd
MFTECmd
RBCmd
RecentFileCacheParser
RECmd/RECmd
Rla
SBECmd
WXTCmd and SQLECmd work after applying the instructions in Linux.md for each repo and compiling
SumECmd, Srum and PECmd execute with the following errors:
SumECmd, Srum
Non-Windows platforms not supported due to the need to load ESI specific Windows libraries! Exiting...
PECmd
Non-Windows platforms not supported due to the need to load decompression specific Windows libraries! Exiting...
According to Eric Z the non-working tools have unmet Windows dependencies and are working as designed
Tested on dotnet 9, Ubuntu 22.04 and 24.04
Here is the install script I use for Siftgrab that installs PowerShell, dotnet 9, runs Get-Zimmermantools.ps1 and adds aliases
https://gist.githubusercontent.com/dfir-scripts/10034ce77b04db988dcafbbb2567a426/raw/setup-zimmerman-tools.sh<https://urldefense.com/v3/__https://gist.githubusercontent.com/dfir-scripts/10034ce77b04db988dcafbbb2567a426/raw/setup-zimmerman-tools.sh__;!!MlQdS1fu!TR_yB85m8H5PITc3oDH6rqe2zlDvCJk4GrUqaqHg-RoQCKR-g7TMCI1P6vUBudGDv1hqCeuWUb-ceua8AdF_tA$>
and here is a Linux-x64 compiled version of WxTCmd and SQLECmd:
https://drive.google.com/file/d/1qfiqzv3geQNYsr6R8sZaWPl7nO6NlLeu/view?usp=sharing<https://urldefense.com/v3/__https://drive.google.com/file/d/1qfiqzv3geQNYsr6R8sZaWPl7nO6NlLeu/view?usp=sharing__;!!MlQdS1fu!TR_yB85m8H5PITc3oDH6rqe2zlDvCJk4GrUqaqHg-RoQCKR-g7TMCI1P6vUBudGDv1hqCeuWUb-ceuYqEpsEXQ$>
—
Reply to this email directly, view it on GitHub<https://urldefense.com/v3/__https://github.com/teamdfir/sift/issues/602*issuecomment-2696069005__;Iw!!MlQdS1fu!TR_yB85m8H5PITc3oDH6rqe2zlDvCJk4GrUqaqHg-RoQCKR-g7TMCI1P6vUBudGDv1hqCeuWUb-ceuYwT1zuaw$>, or unsubscribe<https://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AEAHTAAY7J6MQPWEGFFADO32SULBBAVCNFSM6AAAAABYIPEMEWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMOJWGA3DSMBQGU__;!!MlQdS1fu!TR_yB85m8H5PITc3oDH6rqe2zlDvCJk4GrUqaqHg-RoQCKR-g7TMCI1P6vUBudGDv1hqCeuWUb-ceuambmAMFQ$>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
[dfir-scripts]dfir-scripts left a comment (teamdfir/sift#602)<https://urldefense.com/v3/__https://github.com/teamdfir/sift/issues/602*issuecomment-2696069005__;Iw!!MlQdS1fu!TR_yB85m8H5PITc3oDH6rqe2zlDvCJk4GrUqaqHg-RoQCKR-g7TMCI1P6vUBudGDv1hqCeuWUb-ceuYwT1zuaw$>
I have been doing some testing of the non-GUI tools to run in Linux and should be able to add most of the tools to SANS SiFT without issue.
The following tools run fine by downloading the compiled windows version and using the dotnet command and file's DLL and by compiling
AmcacheParser
AppCompatCacheParser
Bstrings
EvtxeCmd
JLECmd
LECmd
MFTECmd
RBCmd
RecentFileCacheParser
RECmd/RECmd
Rla
SBECmd
WXTCmd and SQLECmd work after applying the instructions in Linux.md for each repo and compiling
SumECmd, Srum and PECmd execute with the following errors:
SumECmd, Srum
Non-Windows platforms not supported due to the need to load ESI specific Windows libraries! Exiting...
PECmd
Non-Windows platforms not supported due to the need to load decompression specific Windows libraries! Exiting...
According to Eric Z the non-working tools have unmet Windows dependencies and are working as designed
Tested on dotnet 9, Ubuntu 22.04 and 24.04
Here is the install script I use for Siftgrab that installs PowerShell, dotnet 9, runs Get-Zimmermantools.ps1 and adds aliases
https://gist.githubusercontent.com/dfir-scripts/10034ce77b04db988dcafbbb2567a426/raw/setup-zimmerman-tools.sh<https://urldefense.com/v3/__https://gist.githubusercontent.com/dfir-scripts/10034ce77b04db988dcafbbb2567a426/raw/setup-zimmerman-tools.sh__;!!MlQdS1fu!TR_yB85m8H5PITc3oDH6rqe2zlDvCJk4GrUqaqHg-RoQCKR-g7TMCI1P6vUBudGDv1hqCeuWUb-ceua8AdF_tA$>
and here is a Linux-x64 compiled version of WxTCmd and SQLECmd:
https://drive.google.com/file/d/1qfiqzv3geQNYsr6R8sZaWPl7nO6NlLeu/view?usp=sharing<https://urldefense.com/v3/__https://drive.google.com/file/d/1qfiqzv3geQNYsr6R8sZaWPl7nO6NlLeu/view?usp=sharing__;!!MlQdS1fu!TR_yB85m8H5PITc3oDH6rqe2zlDvCJk4GrUqaqHg-RoQCKR-g7TMCI1P6vUBudGDv1hqCeuWUb-ceuYqEpsEXQ$>
—
Reply to this email directly, view it on GitHub<https://urldefense.com/v3/__https://github.com/teamdfir/sift/issues/602*issuecomment-2696069005__;Iw!!MlQdS1fu!TR_yB85m8H5PITc3oDH6rqe2zlDvCJk4GrUqaqHg-RoQCKR-g7TMCI1P6vUBudGDv1hqCeuWUb-ceuYwT1zuaw$>, or unsubscribe<https://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AEAHTAAY7J6MQPWEGFFADO32SULBBAVCNFSM6AAAAABYIPEMEWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMOJWGA3DSMBQGU__;!!MlQdS1fu!TR_yB85m8H5PITc3oDH6rqe2zlDvCJk4GrUqaqHg-RoQCKR-g7TMCI1P6vUBudGDv1hqCeuWUb-ceuambmAMFQ$>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Hi @mark-hallman , sorry just getting to see this now. The Zimmerman state I referenced above actually accomplishes all of the same things that you were looking to do in your script, with the exception of having to execute I'm open to some new ideas though if you have an approach that would streamline this further. Cheers! |
@digitalsleuth I reviewed the install script and it looks solid to me. One thing... can we use Something like this might work.
^^^^ partially AI generated |
We're already actually installing PowerShell, both in the current release (v7.4.1) and the upcoming release (v7.4.6). v7.4.6 and above is required for PowerShell to work in Ubuntu Noble. However, running PowerShell for what Salt can do natively (ie download, extract) isn't computationally economical, given the amount of overhead. Additionally, the PowerShell script won't organize and generate the wrappers as we've already done. |
Cool, nice to know. Thanks. |
This is a pretty simple install with just one prereq, .Net6.
/opt/zimmermantools
Get-ZimmermanTools.zip
from hereGet-ZimmermanTools.zip
and copyGet-ZimmermanTools.ps1
to/opt/zimmermantools
Get-ZimmermanTools
, which is an alias for'cd $ZIMMERMAN_HOME && powershell $ZIMMERMAN_HOME/Get-ZimmermanTools.ps1'
All the ZimmermanTools will be downloaded, and the tools can be run with the aliases provided. The aliases provide the same experience that one would see in a Windows environment.zimmermantools_linx_aliases.txt
The text was updated successfully, but these errors were encountered: