Giter Club home page Giter Club logo

ir-rescue's Introduction

Hi there ๐Ÿ‘‹

I am a cybersecurity practitioner based in Europe doing DFIR, malware analysis and detection engineering for a number of years. My malsub and ir-rescue tools have been used by a number of cybersecurity teams and organizations across the world. If you like my work, you can support me with GitHub Sponsors.

  • ๐ŸŒฑ I am currently looking to learn Rust;
  • ๐Ÿ”๏ธ I enjoy swimming and mountain biking;
  • ๐Ÿ’ฌ Ask me about cybersecurity;
  • ๐Ÿ“ซ How to reach me: [email protected];
  • โšก Fun fact: I have lived and worked in five countries.

Diogo's GitHub Stats

ir-rescue's People

Contributors

diogo-fernan avatar fmurer avatar mczap 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  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  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

ir-rescue's Issues

Simple method for downloading Sysinternals tools and saving to respective directories

Hi Diogo,

Thanks very much for crafting and sharing your IR script.

Here's a simple way for users to download the required Systinternals tools directly from Microsoft and save them to their respective directories. Since we're using relative paths in the destination directories, we'll need to cd into ir-rescue-master\win before running the script.

if exist "%PROGRAMFILES(X86)%" (
	bitsadmin /transfer /download /priority foreground https://live.sysinternals.com/accesschk64.exe %CD%\tools-win\sys\accesschk64.exe
	bitsadmin /transfer /download /priority foreground https://live.sysinternals.com/Autoruns64.exe %CD%\tools-win\mal\Autoruns64.exe
	bitsadmin /transfer /download /priority foreground https://live.sysinternals.com/autorunsc64.exe %CD%\tools-win\mal\autorunsc64.exe
	bitsadmin /transfer /download /priority foreground https://live.sysinternals.com/ntfsinfo64.exe %CD%\tools-win\fs\ntfsinfo64.exe
	bitsadmin /transfer /download /priority foreground https://live.sysinternals.com/psloglist.exe %CD%\tools-win\evt\psloglist.exe
	bitsadmin /transfer /download /priority foreground https://live.sysinternals.com/psfile64.exe %CD%\tools-win\net\psfile64.exe
	bitsadmin /transfer /download /priority foreground https://live.sysinternals.com/PsGetsid64.exe %CD%\tools-win\sys\PsGetsid64.exe
	bitsadmin /transfer /download /priority foreground https://live.sysinternals.com/PsInfo64.exe %CD%\tools-win\sys\PsInfo64.exe
	bitsadmin /transfer /download /priority foreground https://live.sysinternals.com/logonsessions64.exe %CD%\tools-win\sys\logonsessions64.exe
	bitsadmin /transfer /download /priority foreground https://live.sysinternals.com/PsLoggedon64.exe %CD%\tools-win\sys\PsLoggedon64.exe
	bitsadmin /transfer /download /priority foreground https://live.sysinternals.com/sdelete64.exe %CD%\tools-win\sdelete64.exe
	bitsadmin /transfer /download /priority foreground https://live.sysinternals.com/tcpvcon.exe %CD%\tools-win\net\tcpvcon.exe
) else (
	bitsadmin /transfer /download /priority foreground https://live.sysinternals.com/accesschk.exe %CD%\tools-win\sys\accesschk.exe
	bitsadmin /transfer /download /priority foreground https://live.sysinternals.com/Autoruns.exe %CD%\tools-win\mal\Autoruns.exe
	bitsadmin /transfer /download /priority foreground https://live.sysinternals.com/autorunsc.exe %CD%\tools-win\mal\autorunsc.exe
	bitsadmin /transfer /download /priority foreground https://live.sysinternals.com/ntfsinfo.exe %CD%\tools-win\fs\ntfsinfo.exe
	bitsadmin /transfer /download /priority foreground https://live.sysinternals.com/psloglist.exe %CD%\tools-win\evt\psloglist.exe
	bitsadmin /transfer /download /priority foreground https://live.sysinternals.com/psfile.exe %CD%\tools-win\net\psfile.exe
	bitsadmin /transfer /download /priority foreground https://live.sysinternals.com/PsGetsid.exe %CD%\tools-win\sys\PsGetsid.exe
	bitsadmin /transfer /download /priority foreground https://live.sysinternals.com/PsInfo.exe %CD%\tools-win\sys\PsInfo.exe
	bitsadmin /transfer /download /priority foreground https://live.sysinternals.com/logonsessions.exe %CD%\tools-win\sys\logonsessions.exe
	bitsadmin /transfer /download /priority foreground https://live.sysinternals.com/PsLoggedon.exe %CD%\tools-win\sys\PsLoggedon.exe
	bitsadmin /transfer /download /priority foreground https://live.sysinternals.com/sdelete.exe %CD%\tools-win\sdelete.exe
	bitsadmin /transfer /download /priority foreground https://live.sysinternals.com/tcpvcon.exe %CD%\tools-win\net\tcpvcon.exe
)

Aloha,

Miles

Use memtriage

Hi Diogo,

Use memtriage to grab all the relevant info without dumping memory.

Compressed folder on windows after using the .bat

I used the file ir-rescue-win.bat to analyse the PC. And at the end, i got a compressed archive.
I want to open it but i can't because i need a password, i tried the password of the VM but didn't work.
What is the password ?

mdp
.

Unexpected exit when running `chcp 65001 > NUL 2>&1`

Hi Diogo!

I did run ir-rescue-win-v1.4.4.bat on Windows Server 2008 R2 and got unexpected exit after executing chcp 65001 > NULL 2>&1. It looks like when trying to execute chcp 65001 > NULL 2>&1, the batch script will not work too (on the same cmd.exe).

If you need any clarification, please don't hesitate to ask me.

Update 1: My workaround is to remove this line and the batch script will work fine.

Large .bin files in fs folder

I have a few questions. What program created these .bin files, how do you view their contents, and can we disable .bin files from being created somehow?

Feature request: encrypt the final archive using gnupg

Hi,
First of all - great job making ir-rescue!
Secondly - I think that it will be great if the archive can be encrypted using provided gpg public key.
This way - the archive can be decrypted without password being stored on the infected computer (on the HDD or in memory).

Here is a link with a simple workaround how to encrypt providing a key-file - https://security.stackexchange.com/questions/86721/can-i-specific-a-public-key-name-instead-of-recipient-when-encrypt-with-gpg

Also, it will be great if the archive can be encrypted using several key-files (e.g. stored in a folder named "keys").

So, I hope you will consider the gpg idea!

2 letter username (space in between) not working well

ir-rescue-win-v1.4.3 20190326 9:08:26.41 (India Standard Time): "tools-win\activ\exiftool.exe -csv C:\Users*Forensic*\AppData\Roaming\Microsoft\Windows\Recent*"

No matching files

ir-rescue-win-v1.4.3 20190326 9:08:27.82 (India Standard Time): "tools-win\activ\exiftool.exe -csv C:\Users*Forensic*\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup*"

No matching files

Actual User name is "Forensic Workstation"

Automatically update the tools

Hi,
First, I like your tool. Would there be a way to automatically update all the used tools? Like a second script that checks if the tools are up to date and in case not download the newest version.

AV detecting two files

While this isn't an issue with the project, the default use on windows is blocked by defender. Two files are the culprit, should we consider updating or replacing?
\win\tools-win\fs\ExtractUsnJrnl.exe
\win\tools-win\fs\RawCopy64.exe
this project is great by the way!

Update bat for live parsing

Hi Diogo,

Is it possible to update your batch script to include the live command capabilites for Eric Zimmerman tools like MFT,Amcache and so on.

Autorun and Web browser history

Hello,
For the windows version
I think there is a problem with the autoruns.exe (see screenshot)

Screenshot 2023-03-07 at 10 14 13

Also for the web browser history, instead of :
"%BHV% /HistorySource 1 /VisitTimeFilterType 1 /LoadIE 1 /LoadFirefox 1 /LoadChrome 1 /LoadSafari 0 /sort ~2 /scomma %WEB%\browsing-history.csv"
It would be better with
"%BHV% /HistorySource 1 /sort "Visit Time" /scomma %WEB%\browsing-history.csv"
In order to have all the browser.

Improper User data collection lead to domain user passwords being overwritten

It seems there is an error in the script on lines 701 and 705 which can lead to domain users' password being overwritten (if the user executing the script has admin rights)

701 : net user !users[%%i]! /domain %USERDOMAIN% > NUL 2>&1
[...]
705 : call:cmd %SYS%\acc "net user !users[%%i]! /domain %USERDOMAIN%"

According to net.exe documentation :

net user [<UserName> {<Password> | *} [<Options>]] [/domain]
...
/domain 
Performs the operation on the domain controller in the computer's primary domain.

The user's domain must not be provided after the /domainparameter.

As a consequence The %USERDOMAIN% variables should be removed on lines 701 and 705.

The impact is quite severe since it overwrite the domain user password with the password contained in the variable %USERDOMAIN% (overwriting domain admin password if you have this right...)

Tell me if you prefer a pull request

Appart from that, really useful tool !
Thanks for sharing

Getting an Error: initializing

Hi,

I am getting the following error (and it exits) when I execute "ir-rescue-win-v1.4.1.bat" on a Windows 10 machine.

initializing...
& was unexpected at this time.

Any idea what the problem could be?

Thanks.

Missing Config file

Where can I find the config file? I downloaded the application and am running it for windows, but there is not a config file. The only thing I can see remotely close would be to manually edit the batch file. Is there a sample config file that has all the options available to enable or disable? Thanks

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.