Giter Club home page Giter Club logo

magnet-response-powershell's Introduction

PowerShell scripts to run Magnet RESPONSE forensic collection tool in large enterprises.


Magnet RESPONSE PowerShell

v1.7

Functions:
  • 💻 Capture specified triage artifacts using profiles with Magnet RESPONSE,
  • 🐏 Capture a memory image with DumpIt for Windows,
  • 💾 Save all artifacts, output, and audit logs to network drive.
Prerequisites:
  • Magnet RESPONSE
  • Web server where you can host MagnetRESPONSE.zip that’s accessible to endpoints.
  • File server repository to save the file collections to.

Please note this is not a Magnet supported product. This script is open source. If you have comments, updates, or suggestions - please do so here on GitHub via discussion or pull request.


Magnet RESPONSE is a free tool from Magnet Forensics that lets investigators and non-technical users easily collect and preserve critical data relevant to incident response investigations from local endpoints. Pre-set collection profiles let you target a comprehensive set of files and data relevant to incident response investigations, including RAM.

What happens when you need to collect from dozens endpoints? That’s where the CLI (Command Line Interface) functionality of Magnet RESPONSE comes into play.

There are two areas of the script for you to customize.

  • The Variable Setup contains the case identification, file server and web server locations.
  • The second section, Collection Profiles, define which artifact groups you want to collect. You can see all the options available in the Magnet RESPONSE CLI Guide.

VARIABLE SETUP

$caseID = "demo-161" # no spaces

$outputpath = "\\Server\Share" # Update to reflect output destination.

$server = "192.168.4.187" # "192.168.1.10" resolves to http://192.168.1.10/MagnetRESPONSE.zip

COLLECTION PROFILES

Within the script we need to have at least one set of collection arguments defined. In this case I’ve built multiple profiles, which are simply un-commented to mark the profile as active. You only want to have one profile enabled at a time. You can design your own collection profiles using any of the available CLI options, just follow the format below.

#### Extended Process Capture

$profileName = "EXTENDED PROCESS CAPTURE"

$arguments = "/capturevolatile /captureextendedprocessinfo /saveprocfiles"

Execution

Once your environment and collection variables are defined, go ahead and run the script on your endpoints. Every host that executes the script will download RESPONSE from the web server, run the specified collection profile, and then transfer the output to the file server.  All data defined in the collection profile will be collected and organized by hostname in the central collection location. The returned files can be examined manually, using open source tools, or products like Magnet AXIOM Cyber.


Defender_RESPONSE.ps1

v1.1

SYNOPSIS

This script can be used to leverage Magnet RESPONSE and the Microsoft Defender for Endpoint Live Response console to capture triage collections on remote endpoints.

PREREQUISITES:

  • Upload MagnetRESPONSE.exe to Defender Live Response Console Library
  • Upload Defender_RESPONSE.ps1 to Defender Live Response Console Library

OPERATION:

  1. connect to endpoint in Live Response // establish connection with the endpoint
  2. put MagnetRESPONSE.exe // copies the exe to the target system
  3. run Defender_RESPONSE.ps1 // where the magic happens

RETREIVING THE COLLECTION:

Once the script has finished running, the zipped output will be saved at the location C:\Temp\RESPONSE on the remote machine.

  • Navigate to output folder cd c:\Temp\RESPONSE
  • List files using dir command
  • Copy the zip filename <filename.zip>
  • After the output filename is copied, collect the output by downloading it from the remote machine to your local system using the “Download” command. Download <filename.zip> &

COLLECTION SIZE LIMITATIONS:

Collections over 3GB cannot be copied across the Defender console directly. See Ginsu.

magnet-response-powershell's People

Contributors

dwmetz avatar

Stargazers

Norbert Bonnici avatar  avatar  avatar Varth Dader avatar  avatar  avatar Fulco avatar  avatar Boyd Fields avatar Kevin - Stark 4N6 avatar  avatar  avatar James Ward-Smith avatar  avatar  avatar Sebastian Bocquier avatar yk avatar kurt avatar zer0lightning avatar  avatar

Watchers

Jad @ Magnet Forensics avatar

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.